Files
owocr/owocr_config.ini
2025-10-06 02:23:46 +02:00

56 lines
3.0 KiB
INI

[general]
;engines = avision,alivetext,bing,glens,glensweb,gvision,azure,mangaocr,winrtocr,oneocr,easyocr,rapidocr,ocrspace
;engine = glens
;read_from = clipboard
;read_from_secondary =
;write_to = clipboard
;note: this specifies an amount of seconds to wait for auto pausing the program after a successful text recognition. Will be ignored when reading with screen capture. 0 to disable.
;auto_pause = 0
;pause_at_startup = False
;logger_format = <green>{time:HH:mm:ss.SSS}</green> | <level>{message}</level>
;engine_color = cyan
;websocket_port = 7331
;delay_secs = 0.5
;notifications = False
;ignore_flag = False
;delete_images = False
;note: terminal window verbosity. Can be -2 (all recognized text is showed whole), -1 (only timestamps are shown), 0 (nothing is shown but errors), or larger than 0 to cut displayed text to that amount of characters.
;verbosity = -2
;note: this specifies a combo to wait on for pausing the program. As an example: <ctrl>+<shift>+p. The list of keys can be found here: https://pynput.readthedocs.io/en/latest/keyboard.html#pynput.keyboard.Key
;combo_pause = <ctrl>+<shift>+p
;note: this specifies a combo to wait on for switching the OCR engine. As an example: <ctrl>+<shift>+a. To be used with combo_pause. The list of keys can be found here: https://pynput.readthedocs.io/en/latest/keyboard.html#pynput.keyboard.Key
;combo_engine_switch = <ctrl>+<shift>+a
;note: screen_capture_area can be empty for the coordinate picker, "screen_N" (where N is the screen number starting from 1) for an entire screen, have a manual set of coordinates (x,y,width,height) or a window name (the first matching window title will be used).
;screen_capture_area =
;screen_capture_area = screen_1
;screen_capture_area = 400,200,1500,600
;screen_capture_area = OBS
;note: if screen_capture_area is a window name, this can be changed to capture inactive windows too.
;screen_capture_only_active_windows = True
;screen_capture_delay_secs = 3
;note: this specifies a 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
;screen_capture_combo = <ctrl>+<shift>+s
;screen_capture_old_macos_api = False
;note: this specifies the language to use for some engines and text filtering while using "screencapture". Valid values: ja: (Japanese) zh: (Chinese) ko: (Korean) ar: (Arabic) ru: (Russian) el: (Greek) he: (Hebrew) th: (Thai)
;Any other value will use Latin Extended (for most European languages and English).
;language = ja
;note: can be "text" (default) or "json" (to include coordinates).
;output_format = text
;[winrtocr]
;url = http://aaa.xxx.yyy.zzz:8000
;[oneocr]
;url = http://aaa.xxx.yyy.zzz:8001
;[azure]
;api_key = api_key_here
;endpoint = https://YOURPROJECT.cognitiveservices.azure.com/
;[mangaocr]
;pretrained_model_name_or_path = kha-white/manga-ocr-base
;force_cpu = False
;[easyocr]
;gpu = True
;[ocrspace]
;api_key = api_key_here
;engine_version = 2
;[rapidocr]
;high_accuracy_detection = False
;high_accuracy_recognition = True