mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
increased ocr timeout and allow offline
This commit is contained in:
parent
71617cc62a
commit
04209e2a6b
@ -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"),
|
||||||
|
|
||||||
|
|||||||
@ -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,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user