Skip to content
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

Update 示例 #394

Open
wants to merge 1 commit into
base: onnx
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ python backend/main.py
POST 方式调用, 请求地址: http://www.cnocrlite.com/api/tr-run/
请求参数:

image : 图片的base64
img : 图片的base64

language_type: 语言 支持 "en","ja","zh","kr
python示例:
Expand All @@ -30,7 +30,7 @@ url = "http://www.cnocrlite.com/api/tr-run/"
f = open(img, "rb")
base64_data = base64.b64encode(f.read()).decode("utf-8")
data = {
"image": base64_data,
"img": base64_data,
"language_type": "ch", # 支持 "en","ja","ch","kr"
}

Expand Down