From b15246b6b5a19ad6be58b4fae457b772fb81c75b Mon Sep 17 00:00:00 2001 From: bill-work-acc <77520952+bill-work-acc@users.noreply.github.com> Date: Sat, 8 Jan 2022 04:01:43 +0800 Subject: [PATCH] =?UTF-8?q?Update=20=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 示例参数的`image`应该为`img` --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index abaa713..f69a88e 100644 --- a/README.md +++ b/README.md @@ -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示例: @@ -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" }