We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
虚拟机centos7 运行./run.sh --port 25555,然后出现 OCR socket mode. Addr:loopback,port:25555 OCR init completed Socket init completed. 127.0.0.1:25555 但是本地主机连不上虚拟机的ocr程序 报错 Traceback (most recent call last): File "D:\pythonpro\3.10\PaddleOCR_json\PaddleOCR-json-release-1.4.1\api\python\main.py", line 5, in ocr = GetOcrApi(r"remote://192.168.31.61:25555", ipcMode="socket") File "D:\pythonpro\3.10\PaddleOCR_json\PaddleOCR-json-release-1.4.1\api\python\PPOCR_api.py", line 327, in GetOcrApi return PPOCR_socket(exePath, modelsPath, argument) File "D:\pythonpro\3.10\PaddleOCR_json\PaddleOCR-json-release-1.4.1\api\python\PPOCR_api.py", line 217, in init raise Exception(f"Socket connection fail.") Exception: Socket connection fail.
The text was updated successfully, but these errors were encountered:
from PPOCR_api import GetOcrApi from PPOCR_visualize import visualize
if name == 'main': ocr = GetOcrApi(r"remote://192.168.31.61:25555", ipcMode="socket")
testImg = "./test.jpg" getObj = ocr.run(testImg) if not getObj["code"] == 100: print('识别失败!!') exit() textBlocks = getObj["data"] # 提取文本块数据 visualize(textBlocks, testImg).show() visualize(textBlocks, testImg).save('可视化结果.png') ocr.exit()
测试源码
Sorry, something went wrong.
已解决,输入PaddleOCR-json -port=30000 -addr=any服务端启动命令(防火墙需要暴露30000端口)
No branches or pull requests
虚拟机centos7 运行./run.sh --port 25555,然后出现
OCR socket mode. Addr:loopback,port:25555
OCR init completed
Socket init completed. 127.0.0.1:25555
但是本地主机连不上虚拟机的ocr程序
报错
Traceback (most recent call last):
File "D:\pythonpro\3.10\PaddleOCR_json\PaddleOCR-json-release-1.4.1\api\python\main.py", line 5, in
ocr = GetOcrApi(r"remote://192.168.31.61:25555", ipcMode="socket")
File "D:\pythonpro\3.10\PaddleOCR_json\PaddleOCR-json-release-1.4.1\api\python\PPOCR_api.py", line 327, in GetOcrApi
return PPOCR_socket(exePath, modelsPath, argument)
File "D:\pythonpro\3.10\PaddleOCR_json\PaddleOCR-json-release-1.4.1\api\python\PPOCR_api.py", line 217, in init
raise Exception(f"Socket connection fail.")
Exception: Socket connection fail.
The text was updated successfully, but these errors were encountered: