increased ocr timeout and allow offline

This commit is contained in:
Maxim Devaev 2025-04-05 12:36:35 +03:00
parent 71617cc62a
commit 04209e2a6b
2 changed files with 2 additions and 1 deletions

View File

@ -459,7 +459,7 @@ def _get_config_scheme() -> dict:
"unix": Option("/run/kvmd/ustreamer.sock", type=valid_abs_path, unpack_as="unix_path"), "unix": Option("/run/kvmd/ustreamer.sock", type=valid_abs_path, unpack_as="unix_path"),
"timeout": Option(2.0, type=valid_float_f01), "timeout": Option(2.0, type=valid_float_f01),
"snapshot_timeout": Option(1.0, type=valid_float_f01), # error_delay * 3 + 1 "snapshot_timeout": Option(5.0, type=valid_float_f01), # error_delay * 3 + 1
"process_name_prefix": Option("kvmd/streamer"), "process_name_prefix": Option("kvmd/streamer"),

View File

@ -179,6 +179,7 @@ export function Ocr(__getGeometry) {
tools.el.setEnabled($("stream-ocr-lang-selector"), false); tools.el.setEnabled($("stream-ocr-lang-selector"), false);
$("stream-ocr-led").className = "led-yellow-rotating-fast"; $("stream-ocr-led").className = "led-yellow-rotating-fast";
let params = { let params = {
"allow_offline": 1,
"ocr": 1, "ocr": 1,
"ocr_langs": $("stream-ocr-lang-selector").value, "ocr_langs": $("stream-ocr-lang-selector").value,
"ocr_left": __sel.left, "ocr_left": __sel.left,