You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,10 @@ Ready-to-use OCR with 80+ [supported languages](https://www.jaided.ai/easyocr) a
11
11
[Try Demo on our website](https://www.jaided.ai/easyocr)
12
12
13
13
## What's new
14
+
- 20 April 2021 - Version 1.3.1
15
+
- Add support for PIL image (thanks [@prays](https://github.com/prays))
16
+
- Update argument setting for command line
17
+
- Add `x_ths` and `y_ths` to control merging behavior when `paragraph=True`
14
18
- 21 March 2021 - Version 1.3
15
19
- Second-generation models: multiple times smaller size, multiple times faster inference, additional characters, comparable accuracy to the first generation models.
16
20
EasyOCR will choose the latest model by default but you can also specify which model to use by passing `recog_network` argument when creating `Reader` instance.
help="Force EasyOCR to recognize only subset of characters",
112
+
)
113
+
parser.add_argument(
114
+
"--blocklist",
115
+
type=str,
116
+
default=None,
117
+
help="Block subset of character. This argument will be ignored if allowlist is given.",
118
+
)
22
119
parser.add_argument(
23
120
"--detail",
24
121
type=int,
@@ -27,20 +124,150 @@ def parse_args():
27
124
help="simple output (default: 1)",
28
125
)
29
126
parser.add_argument(
30
-
"--gpu",
127
+
"--rotation_info",
128
+
type=list,
129
+
default=None,
130
+
help="Allow EasyOCR to rotate each text box and return the one with the best confident score. Eligible values are 90, 180 and 270. For example, try [90, 180 ,270] for all possible text orientations.",
131
+
)
132
+
parser.add_argument(
133
+
"--paragraph",
31
134
type=bool,
32
135
choices=[True, False],
33
-
default=True,
34
-
help="Using GPU (default: True)",
136
+
default=False,
137
+
help="Combine result into paragraph",
138
+
)
139
+
parser.add_argument(
140
+
"--min_size",
141
+
type=int,
142
+
default=20,
143
+
help="Filter text box smaller than minimum value in pixel",
144
+
)
145
+
parser.add_argument(
146
+
"--contrast_ths",
147
+
type=float,
148
+
default=0.1,
149
+
help="Text box with contrast lower than this value will be passed into model 2 times. First is with original image and second with contrast adjusted to 'adjust_contrast' value. The one with more confident level will be returned as a result.",
150
+
)
151
+
parser.add_argument(
152
+
"--adjust_contrast",
153
+
type=float,
154
+
default=0.5,
155
+
help="target contrast level for low contrast text box",
156
+
)
157
+
parser.add_argument(
158
+
"--text_threshold",
159
+
type=float,
160
+
default=0.7,
161
+
help="Text confidence threshold",
35
162
)
163
+
parser.add_argument(
164
+
"--low_text",
165
+
type=float,
166
+
default=0.4,
167
+
help="Text low-bound score",
168
+
)
169
+
parser.add_argument(
170
+
"--link_threshold",
171
+
type=float,
172
+
default=0.4,
173
+
help="Link confidence threshold",
174
+
)
175
+
parser.add_argument(
176
+
"--canvas_size",
177
+
type=int,
178
+
default=2560,
179
+
help="Maximum image size. Image bigger than this value will be resized down.",
180
+
)
181
+
parser.add_argument(
182
+
"--mag_ratio",
183
+
type=float,
184
+
default=1.,
185
+
help="Image magnification ratio",
186
+
)
187
+
parser.add_argument(
188
+
"--slope_ths",
189
+
type=float,
190
+
default=0.1,
191
+
help="Maximum slope (delta y/delta x) to considered merging. Low value means tiled boxes will not be merged.",
192
+
)
193
+
parser.add_argument(
194
+
"--ycenter_ths",
195
+
type=float,
196
+
default=0.5,
197
+
help="Maximum shift in y direction. Boxes with different level should not be merged.",
198
+
)
199
+
parser.add_argument(
200
+
"--height_ths",
201
+
type=float,
202
+
default=0.5,
203
+
help="Maximum different in box height. Boxes with very different text size should not be merged. ",
204
+
)
205
+
parser.add_argument(
206
+
"--width_ths",
207
+
type=float,
208
+
default=0.5,
209
+
help="Maximum horizontal distance to merge boxes.",
210
+
)
211
+
parser.add_argument(
212
+
"--y_ths",
213
+
type=float,
214
+
default=0.5,
215
+
help="Maximum horizontal distance to merge boxes (when paragraph = True).",
216
+
)
217
+
parser.add_argument(
218
+
"--x_ths",
219
+
type=float,
220
+
default=1.0,
221
+
help="Maximum horizontal distance to merge boxes (when paragraph = True).",
222
+
)
223
+
parser.add_argument(
224
+
"--add_margin",
225
+
type=float,
226
+
default=0.1,
227
+
help="Extend bounding boxes in all direction by certain value. This is important for language with complex script (E.g. Thai).",
Copy file name to clipboardExpand all lines: releasenotes.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,7 @@
1
+
- 20 April 2021 - Version 1.3.1
2
+
- Add support for PIL image (thanks [@prays](https://github.com/prays))
3
+
- Update argument setting for command line
4
+
- Add `x_ths` and `y_ths` to control merging behavior when `paragraph=True`
1
5
- 21 March 2021 - Version 1.3
2
6
- Second-generation models: multiple times smaller size, multiple times faster inference, additional characters, comparable accuracy to the first generation models.
3
7
EasyOCR will choose the latest model by default but you can also specify which model to use by passing `recog_network` argument when creating `Reader` instance.
0 commit comments