Skip to content

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

@qianse

Description

@qianse

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}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions