-
Notifications
You must be signed in to change notification settings - Fork 20
/
0. Note.ahk
65 lines (55 loc) · 1.95 KB
/
0. Note.ahk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
MsgBox,
(
Requires:
vc2015-vc2017 x64 runtime library.
Usage:
PaddleOCR(Image, Configs)
Image
Can be an image of almost any format.
For details see: https://github.com/iseahound/ImagePut
Configs
Below are the supported settings and their default values.
Some of them will affect the recognition result, all of them can be omitted.
See the examples or souce code for the meaning.
{
"model": "server"
"get_all_info": 0
"use_gpu": 0
"gpu_id": 0
"gpu_mem": 4000
"cpu_math_library_num_threads": 10
"use_mkldnn": 0
"max_side_len": 960
"det_db_thresh": 0.5
"det_db_box_thresh": 0.5
"det_db_unclip_ratio": 2.2
"use_polygon_score": 1
"use_angle_cls": 0
"cls_thresh": 0.9
"visualize": 0
"use_tensorrt": 0
"use_fp16": 0
}
How to switch language:
Download recognition model.
https://github.com/PaddlePaddle/PaddleOCR/blob/release/2.3/doc/doc_en/models_list_en.md
Overwrite "PaddleOCR\Dll\inference\mobile_rec"
Overwrite "PaddleOCR\Dll\inference\server_rec"
Download dict file.
https://github.com/PaddlePaddle/PaddleOCR/blob/release/2.3/doc/doc_en/models_list_en.md
Rename and overwrite "PaddleOCR\Dll\inference\dict.txt"
Thanks:
PaddleOCR
https://github.com/PaddlePaddle/PaddleOCR
PaddleOCR Dll
Made by thqby. (https://gitee.com/orz707)
He release it in QQ Group.
ImagePut
Made by iseahound.
https://github.com/iseahound/ImagePut
)
MsgBox,
(
If you wait more than 1 minute without seeing OCR results, the most likely reason is that the vc2015-2017 x64 runtime library is missing.
Another possibility is that your CPU is too old.
)