-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Description: Log:
- Loading branch information
Showing
9 changed files
with
71 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
[current] | ||
tag = 2.3.4-dev | ||
tag = 2.3.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/usr/bin/env python3 | ||
# _*_ coding:utf-8 _*_ | ||
|
||
# SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. | ||
|
||
# SPDX-License-Identifier: GPL-2.0-only | ||
# pylint: disable=C0114 | ||
# pylint: disable=E0401,C0413,R0903,W0707,W0611 | ||
try: | ||
import cv2 as cv | ||
|
||
GET_OPENCV_FORM_RPC = False | ||
except ModuleNotFoundError: | ||
GET_OPENCV_FORM_RPC = True | ||
|
||
from pdocr_rpc import OCR as _OCR | ||
from pdocr_rpc.conf import setting as ocr_setting | ||
|
||
from setting import conf | ||
|
||
ocr_setting.PORT = conf.OCR_PORT | ||
ocr_setting.SERVER_IP = conf.OCR_SERVER_HOST | ||
ocr_setting.NETWORK_RETRY = int(conf.OCR_NETWORK_RETRY) | ||
ocr_setting.PAUSE = float(conf.OCR_PAUSE) | ||
ocr_setting.TIMEOUT = float(conf.OCR_TIMEOUT) | ||
ocr_setting.MAX_MATCH_NUMBER = int(conf.OCR_MAX_MATCH_NUMBER) | ||
|
||
|
||
class OCRUtils(_OCR): | ||
"""OCR识别的工具类""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters