ddddocr icon indicating copy to clipboard operation
ddddocr copied to clipboard

启动自定义内容模型识别后调用问题

Open qianse opened this issue 10 months ago • 1 comments

dddocr.exe --ocr --ocr-path model/ggal --address 0.0.0.0 --jsonp

model/ggal.onnx 和model/ggal.json存在且正常的。py版本正常调用识别的。英文数字特殊符号的 调用识别异常。

python test_api.py
jsonp, api_url=http://127.0.0.1:9898/ocr/b64/text, resp.text=handle("")
jsonp, api_url=http://127.0.0.1:9898/ocr/b64/json, resp.text=handle("{"msg":"Data type mismatch: was Int64, tried to convert to Uint32","status":404}")
api_url=http://127.0.0.1:9898/ocr/file/text, resp.text=
api_url=http://127.0.0.1:9898/ocr/file/json, resp.text={"msg":"Data type mismatch: was Int64, tried to convert to Uint32","status":404}
api_url=http://127.0.0.1:9898/ocr/b64/text, resp.text=
api_url=http://127.0.0.1:9898/ocr/b64/json, resp.text={"msg":"Data type mismatch: was Int64, tried to convert to Uint32","status":404}
api_url=http://127.0.0.1:9898/old/file/text, resp.text=
api_url=http://127.0.0.1:9898/old/file/json, resp.text={"msg":"预期之外的选项: old, 请确认服务是否已开启","status":404} api_url=http://127.0.0.1:9898/old/b64/text, resp.text=
api_url=http://127.0.0.1:9898/old/b64/json, resp.text={"msg":"预期之外的选项: old, 请确认服务是否已开启","status":404}
api_url=http://127.0.0.1:9898/ocr_probability/file/text, resp.text=
api_url=http://127.0.0.1:9898/ocr_probability/file/json, resp.text={"msg":"预期之外的选项: ocr_probability, 请确认服务是否已开启","status":404}
api_url=http://127.0.0.1:9898/ocr_probability/b64/text, resp.text=
api_url=http://127.0.0.1:9898/ocr_probability/b64/json, resp.text={"msg":"预期之外的选项: ocr_probability, 请确认服务是 否已开启","status":404}
api_url=http://127.0.0.1:9898/old_probability/file/text, resp.text=
api_url=http://127.0.0.1:9898/old_probability/file/json, resp.text={"msg":"预期之外的选项: old_probability, 请确认服务是否已开启","status":404}
api_url=http://127.0.0.1:9898/old_probability/b64/text, resp.text=
api_url=http://127.0.0.1:9898/old_probability/b64/json, resp.text={"msg":"预期之外的选项: old_probability, 请确认服务是 否已开启","status":404}
api_url=http://127.0.0.1:9898/det/file/text, resp.text=
api_url=http://127.0.0.1:9898/det/file/json, resp.text={"msg":"预期之外的选项: det, 请确认服务是否已开启","status":404} api_url=http://127.0.0.1:9898/det/b64/text, resp.text=
api_url=http://127.0.0.1:9898/det/b64/json, resp.text={"msg":"预期之外的选项: det, 请确认服务是否已开启","status":404}
api_url=http://127.0.0.1:9898/match/file/text, resp.text=
api_url=http://127.0.0.1:9898/match/file/json, resp.text={"msg":"预期之外的选项: match, 请确认服务是否已开启","status":404}
api_url=http://127.0.0.1:9898/match/b64/text, resp.text=
api_url=http://127.0.0.1:9898/match/b64/json, resp.text={"msg":"预期之外的选项: match, 请确认服务是否已开启","status":404}
api_url=http://127.0.0.1:9898/simple_match/file/text, resp.text=
api_url=http://127.0.0.1:9898/simple_match/file/json, resp.text={"msg":"预期之外的选项: simple_match, 请确认服务是否已开启","status":404}
api_url=http://127.0.0.1:9898/simple_match/b64/text, resp.text=
api_url=http://127.0.0.1:9898/simple_match/b64/json, resp.text={"msg":"预期之外的选项: simple_match, 请确认服务是否已开 启","status":404}
api_url=http://127.0.0.1:9898/compare/file/text, resp.text=
api_url=http://127.0.0.1:9898/compare/file/json, resp.text={"msg":"预期之外的选项: compare, 请确认服务是否已开启","status":404}
api_url=http://127.0.0.1:9898/compare/b64/text, resp.text=
api_url=http://127.0.0.1:9898/compare/b64/json, resp.text={"msg":"预期之外的选项: compare, 请确认服务是否已开启","status":404}

qianse avatar Feb 18 '25 00:02 qianse

Data type mismatch: was Int64, tried to convert to Uint32

应该是把 u32 改成 i64

---原始邮件--- 发件人: @.> 发送时间: 2025年2月18日(周二) 上午8:32 收件人: @.>; 抄送: @.***>; 主题: [86maid/ddddocr] 启动自定义内容模型识别后调用问题 (Issue #23)

dddocr.exe --ocr --ocr-path model/ggal --address 0.0.0.0 --json

model/ggal.onnx 和model/ggal.json存在且正常的。py版本正常调用识别的。英文数字特殊符号的 调用识别异常。

python test_api.py jsonp, api_url=http://127.0.0.1:9898/ocr/b64/text, resp.text=handle("") jsonp, api_url=http://127.0.0.1:9898/ocr/b64/json, resp.text=handle("{"msg":"Data type mismatch: was Int64, tried to convert to Uint32","status":404}") api_url=http://127.0.0.1:9898/ocr/file/text, resp.text= api_url=http://127.0.0.1:9898/ocr/file/json, resp.text={"msg":"Data type mismatch: was Int64, tried to convert to Uint32","status":404} api_url=http://127.0.0.1:9898/ocr/b64/text, resp.text= api_url=http://127.0.0.1:9898/ocr/b64/json, resp.text={"msg":"Data type mismatch: was Int64, tried to convert to Uint32","status":404} api_url=http://127.0.0.1:9898/old/file/text, resp.text= api_url=http://127.0.0.1:9898/old/file/json, resp.text={"msg":"预期之外的选项: old, 请确认服务是否已开启","status":404} api_url=http://127.0.0.1:9898/old/b64/text, resp.text= api_url=http://127.0.0.1:9898/old/b64/json, resp.text={"msg":"预期之外的选项: old, 请确认服务是否已开启","status":404} api_url=http://127.0.0.1:9898/ocr_probability/file/text, resp.text= api_url=http://127.0.0.1:9898/ocr_probability/file/json, resp.text={"msg":"预期之外的选项: ocr_probability, 请确认服务是否已开启","status":404} api_url=http://127.0.0.1:9898/ocr_probability/b64/text, resp.text= api_url=http://127.0.0.1:9898/ocr_probability/b64/json, resp.text={"msg":"预期之外的选项: ocr_probability, 请确认服务是 否已开启","status":404} api_url=http://127.0.0.1:9898/old_probability/file/text, resp.text= api_url=http://127.0.0.1:9898/old_probability/file/json, resp.text={"msg":"预期之外的选项: old_probability, 请确认服务是否已开启","status":404} api_url=http://127.0.0.1:9898/old_probability/b64/text, resp.text= api_url=http://127.0.0.1:9898/old_probability/b64/json, resp.text={"msg":"预期之外的选项: old_probability, 请确认服务是 否已开启","status":404} api_url=http://127.0.0.1:9898/det/file/text, resp.text= api_url=http://127.0.0.1:9898/det/file/json, resp.text={"msg":"预期之外的选项: det, 请确认服务是否已开启","status":404} api_url=http://127.0.0.1:9898/det/b64/text, resp.text= api_url=http://127.0.0.1:9898/det/b64/json, resp.text={"msg":"预期之外的选项: det, 请确认服务是否已开启","status":404} api_url=http://127.0.0.1:9898/match/file/text, resp.text= api_url=http://127.0.0.1:9898/match/file/json, resp.text={"msg":"预期之外的选项: match, 请确认服务是否已开启","status":404} api_url=http://127.0.0.1:9898/match/b64/text, resp.text= api_url=http://127.0.0.1:9898/match/b64/json, resp.text={"msg":"预期之外的选项: match, 请确认服务是否已开启","status":404} api_url=http://127.0.0.1:9898/simple_match/file/text, resp.text= api_url=http://127.0.0.1:9898/simple_match/file/json, resp.text={"msg":"预期之外的选项: simple_match, 请确认服务是否已开启","status":404} api_url=http://127.0.0.1:9898/simple_match/b64/text, resp.text= api_url=http://127.0.0.1:9898/simple_match/b64/json, resp.text={"msg":"预期之外的选项: simple_match, 请确认服务是否已开 启","status":404} api_url=http://127.0.0.1:9898/compare/file/text, resp.text= api_url=http://127.0.0.1:9898/compare/file/json, resp.text={"msg":"预期之外的选项: compare, 请确认服务是否已开启","status":404} api_url=http://127.0.0.1:9898/compare/b64/text, resp.text= api_url=http://127.0.0.1:9898/compare/b64/json, resp.text={"msg":"预期之外的选项: compare, 请确认服务是否已开启","status":404}

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***> qianse created an issue (86maid/ddddocr#23)

dddocr.exe --ocr --ocr-path model/ggal --address 0.0.0.0 --json

model/ggal.onnx 和model/ggal.json存在且正常的。py版本正常调用识别的。英文数字特殊符号的 调用识别异常。

python test_api.py jsonp, api_url=http://127.0.0.1:9898/ocr/b64/text, resp.text=handle("") jsonp, api_url=http://127.0.0.1:9898/ocr/b64/json, resp.text=handle("{"msg":"Data type mismatch: was Int64, tried to convert to Uint32","status":404}") api_url=http://127.0.0.1:9898/ocr/file/text, resp.text= api_url=http://127.0.0.1:9898/ocr/file/json, resp.text={"msg":"Data type mismatch: was Int64, tried to convert to Uint32","status":404} api_url=http://127.0.0.1:9898/ocr/b64/text, resp.text= api_url=http://127.0.0.1:9898/ocr/b64/json, resp.text={"msg":"Data type mismatch: was Int64, tried to convert to Uint32","status":404} api_url=http://127.0.0.1:9898/old/file/text, resp.text= api_url=http://127.0.0.1:9898/old/file/json, resp.text={"msg":"预期之外的选项: old, 请确认服务是否已开启","status":404} api_url=http://127.0.0.1:9898/old/b64/text, resp.text= api_url=http://127.0.0.1:9898/old/b64/json, resp.text={"msg":"预期之外的选项: old, 请确认服务是否已开启","status":404} api_url=http://127.0.0.1:9898/ocr_probability/file/text, resp.text= api_url=http://127.0.0.1:9898/ocr_probability/file/json, resp.text={"msg":"预期之外的选项: ocr_probability, 请确认服务是否已开启","status":404} api_url=http://127.0.0.1:9898/ocr_probability/b64/text, resp.text= api_url=http://127.0.0.1:9898/ocr_probability/b64/json, resp.text={"msg":"预期之外的选项: ocr_probability, 请确认服务是 否已开启","status":404} api_url=http://127.0.0.1:9898/old_probability/file/text, resp.text= api_url=http://127.0.0.1:9898/old_probability/file/json, resp.text={"msg":"预期之外的选项: old_probability, 请确认服务是否已开启","status":404} api_url=http://127.0.0.1:9898/old_probability/b64/text, resp.text= api_url=http://127.0.0.1:9898/old_probability/b64/json, resp.text={"msg":"预期之外的选项: old_probability, 请确认服务是 否已开启","status":404} api_url=http://127.0.0.1:9898/det/file/text, resp.text= api_url=http://127.0.0.1:9898/det/file/json, resp.text={"msg":"预期之外的选项: det, 请确认服务是否已开启","status":404} api_url=http://127.0.0.1:9898/det/b64/text, resp.text= api_url=http://127.0.0.1:9898/det/b64/json, resp.text={"msg":"预期之外的选项: det, 请确认服务是否已开启","status":404} api_url=http://127.0.0.1:9898/match/file/text, resp.text= api_url=http://127.0.0.1:9898/match/file/json, resp.text={"msg":"预期之外的选项: match, 请确认服务是否已开启","status":404} api_url=http://127.0.0.1:9898/match/b64/text, resp.text= api_url=http://127.0.0.1:9898/match/b64/json, resp.text={"msg":"预期之外的选项: match, 请确认服务是否已开启","status":404} api_url=http://127.0.0.1:9898/simple_match/file/text, resp.text= api_url=http://127.0.0.1:9898/simple_match/file/json, resp.text={"msg":"预期之外的选项: simple_match, 请确认服务是否已开启","status":404} api_url=http://127.0.0.1:9898/simple_match/b64/text, resp.text= api_url=http://127.0.0.1:9898/simple_match/b64/json, resp.text={"msg":"预期之外的选项: simple_match, 请确认服务是否已开 启","status":404} api_url=http://127.0.0.1:9898/compare/file/text, resp.text= api_url=http://127.0.0.1:9898/compare/file/json, resp.text={"msg":"预期之外的选项: compare, 请确认服务是否已开启","status":404} api_url=http://127.0.0.1:9898/compare/b64/text, resp.text= api_url=http://127.0.0.1:9898/compare/b64/json, resp.text={"msg":"预期之外的选项: compare, 请确认服务是否已开启","status":404}

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

86maid avatar Feb 18 '25 01:02 86maid