VikParuchuri / surya

OCR, layout analysis, reading order, line detection in 90+ languages
https://www.datalab.to
GNU General Public License v3.0
9.77k stars 631 forks source link

Math #136

Open Mori-hub opened 2 months ago

Mori-hub commented 2 months ago

Hi, Thank you for this project.

When I'm going to use --math, this error appears: surya_ocr: error: unrecognized arguments: --math

I try these two methods:

surya_ocr samples/air1.png --math

surya_ocr samples/air1.png --images --langs en --math

Could you please help me...

KTibow commented 1 month ago
options:
  -h, --help            show this help message and exit
  --results_dir RESULTS_DIR
                        Path to JSON file with OCR results.
  --max MAX             Maximum number of pages to process.
  --start_page START_PAGE
                        Page to start processing at.
  --images              Save images of detected bboxes.
  --langs LANGS         Language(s) to use for OCR. Comma separate for multiple. Can be a capitalized language name, or a 2-letter
                        ISO 639 code.
  --lang_file LANG_FILE
                        Path to file with languages to use for OCR. Should be a JSON dict with file names as keys, and the value
                        being a list of language codes/names.

Those are the only supported arguments.