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

自定义本地 OCR #108

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Conversation

moeshin
Copy link

@moeshin moeshin commented Mar 31, 2023

PantsuDango/DangoOCR#8

close #47

offline_ocr_cmd:
- D:\Projects\Python\DangoOCR\venv\Scripts\python.exe
- D:\Projects\Python\DangoOCR\app.py
- -p
- 6667
offline_ocr_url: http://127.0.0.1:6667/ocr/api

@moeshin moeshin marked this pull request as draft April 1, 2023 14:31
(cherry picked from commit 100e77c)
(cherry picked from commit bf499aa)
(cherry picked from commit c69524f)
@moeshin moeshin marked this pull request as ready for review April 3, 2023 12:59
@moeshin moeshin marked this pull request as draft April 4, 2023 00:43
@moeshin moeshin marked this pull request as ready for review April 4, 2023 00:54
Copy link

@touero touero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pep8的写法

@@ -324,7 +324,7 @@ def offlineOCR(object) :
# except Exception :
# object.logger.error(format_exc())

url = "http://127.0.0.1:6666/ocr/api"
url = "http://127.0.0.1:%d/ocr/api" % object.yaml["port"]
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

url = f'http://127.0.0.1:{object.yaml["port"]}/ocr/api'

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

Successfully merging this pull request may close these issues.

运行报错
2 participants