Add verbosity option, fix regression with separation of lines/paragraphs in terminal text output with coordinate-enabled engines
This commit is contained in:
@@ -50,8 +50,10 @@ parser.add_argument('-sc', '--screen_capture_combo', type=str, default=argparse.
|
||||
help='When reading with screen capture, combo to wait on for taking a screenshot instead of using the delay. As an example: "<ctrl>+<shift>+s". The list of keys can be found here: https://pynput.readthedocs.io/en/latest/keyboard.html#pynput.keyboard.Key')
|
||||
parser.add_argument('-l', '--language', type=str, default=argparse.SUPPRESS,
|
||||
help='Two letter language code for filtering screencapture OCR results. Ex. "ja" for Japanese, "zh" for Chinese, "ko" for Korean, "ar" for Arabic, "ru" for Russian, "el" for Greek, "he" for Hebrew, "th" for Thai. Any other value will use Latin Extended (for most European languages and English).')
|
||||
parser.add_argument('-of', '--output_format', type=str, default=argparse.SUPPRESS, choices=['text', 'json'],
|
||||
parser.add_argument('-of', '--output_format', type=str, default=argparse.SUPPRESS,
|
||||
help='The output format for OCR results. Can be "text" (default) or "json" (to include coordinates).')
|
||||
parser.add_argument('-v', '--verbosity', type=int, default=argparse.SUPPRESS,
|
||||
help='Terminal window verbosity. Can be -2 (all recognized text is showed whole, default), -1 (only timestamps are shown), 0 (nothing is shown but errors), or larger than 0 to cut displayed text to that amount of characters.')
|
||||
|
||||
class Config:
|
||||
has_config = False
|
||||
@@ -82,7 +84,8 @@ class Config:
|
||||
'screen_capture_combo': '',
|
||||
'screen_capture_old_macos_api': False,
|
||||
'language': 'ja',
|
||||
'output_format': 'text'
|
||||
'output_format': 'text',
|
||||
'verbosity': -2
|
||||
}
|
||||
|
||||
def __parse(self, value):
|
||||
|
||||
Reference in New Issue
Block a user