-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker 容器 Ubuntu 运行 Umi-OCR_v2 #61
Comments
试了一下功能是好的,就是黑屏识别的图片
响应结果{"code": 100, "data": [{"box": [[18, 27], [482, 27], [482, 50], [18, 50]], "score": 0.993669793009758, "text":
"1\u3001\u652f\u6301\u5c4f\u5e55\u622a\u56fe\u540e\u76f4\u63a5\u5728\u6b64\u5904\u7c98\u8d34\u8fdb\u884c\u8f6c\u5316"},
{"box": [[17, 61], [675, 61], [675, 85], [17, 85]], "score": 0.9954219460487366, "text":
"2\u3001\u652f\u6301\u590d\u5236\u6587\u4ef6\u3001\u590d\u5236\u56fe\u7247\u5728\u7ebf\u5730\u5740\u5728\u6b64\u5904\u76f4\u63a5\u7c98\u8d34\u8fdb\u884c\u8f6c\u5316"}],
"time": 0.5707409381866455, "timestamp": 1700022530.5771704}
转以后结果{
"code": 100,
"data": [
{
"box": [
[
18,
27
],
[
482,
27
],
[
482,
50
],
[
18,
50
]
],
"score": 0.993669793009758,
"text": "1、支持屏幕截图后直接在此处粘贴进行转化"
},
{
"box": [
[
17,
61
],
[
675,
61
],
[
675,
85
],
[
17,
85
]
],
"score": 0.9954219460487366,
"text": "2、支持复制文件、复制图片在线地址在此处直接粘贴进行转化"
}
],
"time": 0.5707409381866455,
"timestamp": 1700022530.5771704
} |
哇,能在ubuntu上跑起来已经很令我意外了…… 能跑起来就有希望!你可以按照下列步骤将渲染器改为CPU软渲染,尝试绕过显卡兼容的问题。 用文本编辑器打开 如果改完后打开软件产生一些报错,可能需要下载一些dll,如 #22 如果AA_UseSoftwareOpenGL不行,可以试试换为别的选项: |
另外 http://127.0.0.1:1224/api/ocr 这个URL本身是空的。如果想测试网络连接,可以访问 http://127.0.0.1:1224 ,它将返回软件版本号。 |
我试试看,如果不行能关掉GUI模式也行 |
可以了,跑起来了可以 docker 体验一波封装的最新容器使用教程在这里 【OCR容器服务】 # 运行容器
docker run -itd --name=ocr -p 80:80 iszmxw/ocr:2.0 bash
# 查看容器id
docker ps -a
# 进入容器
docker exec -it "容器ID" bash
# 启动 ocr 服务
wine /root/Downloads/Umi-OCR_Rapid_dev_20231114/Umi-OCR.exe
wine ~/Desktop/Umi-OCR_Rapid_dev_20231114/Umi-OCR.exe
# 打开浏览器访问容器的 80 端口进入 ubuntu 服务器查看 后期可以优化一下容器的大小,开放
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
软件版本
运行环境
如图
我用的是wine 启动的
是否需要下载三方组件和.net库才能跑
【已解决,可以完美运行了 】
The text was updated successfully, but these errors were encountered: