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
@@ -186,6 +197,7 @@ int main(int argc, char **argv) {
186
197
add_option("min-width", min_width, "Minimum width in pixels to consider a subpicture for OCR (Default: 9)").
187
198
add_option("min-height", min_height, "Minimum height in pixels to consider a subpicture for OCR (Default: 1)").
188
199
add_option("max-threads", max_threads, "Maximum number of threads to use to do the OCR, use 0 to autodetect the number of cores (Default: 0)").
200
+
add_option("disable-invert", disable_invert, "By default the image will be inverted before the OCR because it works better with black on white background, disable it").
189
201
add_unnamed(subname, "subname", "name of the subtitle files WITHOUT .idx/.sub ending! (REQUIRED)");
190
202
if(not opts.parse_cmd(argc, argv) or subname.empty()) {
191
203
return1;
@@ -344,6 +356,9 @@ int main(int argc, char **argv) {
0 commit comments