Skip to content

Command-Line Interface

Hope Documents provides a command-line interface for interacting with the application.

extract

Extract text from one or more images.

Usage:

extract [OPTIONS] FILEPATHS...

Options:

  -a, --auto
  -t, --threshold INTEGER      cv2 threshold [0..255]
  -p, --psm INTEGER            TS Page segmentation mode [0..13]
  -o, --oem INTEGER            TS OCR Engine mode [0..3]
  -m, --mode [BEST|FIRST|ALL]  Match mode
  -n, --number-only            Only extract numbers
  -r, --rotate INTEGER         Rotate image
  -s, --pattern TEXT           Pattern to search
  --debug                      Debug mode
  --help                       Show this message and exit.