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

API調用 #36

Open
maxkaoppp opened this issue Apr 19, 2021 · 2 comments
Open

API調用 #36

maxkaoppp opened this issue Apr 19, 2021 · 2 comments

Comments

@maxkaoppp
Copy link

請問一下 要怎麼POST照片

@yiyuezhuo
Copy link

import requests
resp = requests.post("http://127.0.0.1:11111/invoice-ocr", files={"file": open("test.jpg", 'rb')})
resp.content.decode()

# '{"FileName":"test.jpg","code":100,"data":{"发票代码":"144001809010","发票号码":"00000001","校验码":":00000"," 税后价格":"¥106.60"},"message":"识别成功","ocrIdentifyTime":"2021-04-20 16:56:50"}\n'

@wangshuai-007
Copy link

作者有附图说明使用方法:
使用方法

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants