From 14edccf2d46b254b1405ac4c7769f38632c5c2ab Mon Sep 17 00:00:00 2001 From: FEIJINTI <83849113+FEIJINTI@users.noreply.github.com> Date: Sun, 12 Mar 2023 16:34:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BA=86=E5=AE=9E=E6=97=B6?= =?UTF-8?q?=E6=A0=A1=E6=AD=A3=E7=9A=84=E5=8A=9F=E8=83=BD=EF=BC=88=E6=9C=AA?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- socket_detector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/socket_detector.py b/socket_detector.py index c2a7852..d28f246 100644 --- a/socket_detector.py +++ b/socket_detector.py @@ -34,7 +34,7 @@ def process_cmd(cmd: str, data: any, connected_sock: socket.socket, detector: Wo elif cmd == 'TR': detector = WoodClass(w=4096, h=1200, n=3000, debug_mode=False) model_name = None - if "/n" in data: + if ":" in data: data, model_name = data.split(":", 1) model_name = model_name + ".p" settings.data_path = data