-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev_shawn' of https://github.com/Fuynkio/arknights-mower …
…into dev_shawn
- Loading branch information
Showing
6 changed files
with
75 additions
and
36 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
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 |
---|---|---|
|
@@ -37,5 +37,7 @@ | |
"青积": "青枳", | ||
"苍替": "苍苔", | ||
"刻力": "刻刀", | ||
"泰拉大陆调查": "泰拉大陆调查团" | ||
"泰拉大陆调查": "泰拉大陆调查团", | ||
"子": "孑", | ||
"森": "森蚺" | ||
} |
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 |
---|---|---|
@@ -1,17 +1,24 @@ | ||
import os | ||
from paddleocr import PaddleOCR | ||
|
||
|
||
det_model_dir = os.path.join(os.getcwd(), "tmp", "paddle", "det", "ch") | ||
rec_model_dir = os.path.join(os.getcwd(), "tmp", "paddle", "rec", "ch") | ||
cls_model_dir = os.path.join(os.getcwd(), "tmp", "paddle", "cls") | ||
ocr = None | ||
|
||
ocr = PaddleOCR( | ||
enable_mkldnn=False, | ||
use_angle_cls=False, | ||
cls=False, | ||
show_log=False, | ||
det_model_dir=det_model_dir, | ||
rec_model_dir=rec_model_dir, | ||
cls_model_dir=cls_model_dir, | ||
) | ||
|
||
def initialize_ocr(): | ||
det_model_dir = os.path.join(os.getcwd(), "tmp", "paddle", "det", "ch") | ||
rec_model_dir = os.path.join(os.getcwd(), "tmp", "paddle", "rec", "ch") | ||
cls_model_dir = os.path.join(os.getcwd(), "tmp", "paddle", "cls") | ||
|
||
global ocr | ||
if not ocr: | ||
from paddleocr import PaddleOCR | ||
|
||
ocr = PaddleOCR( | ||
enable_mkldnn=False, | ||
use_angle_cls=False, | ||
cls=False, | ||
show_log=False, | ||
det_model_dir=det_model_dir, | ||
rec_model_dir=rec_model_dir, | ||
cls_model_dir=cls_model_dir, | ||
) |
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