From 5a674a74009b26546b3c92e0d34fe5203ec4a66c Mon Sep 17 00:00:00 2001 From: FEIJINTI <83849113+FEIJINTI@users.noreply.github.com> Date: Fri, 16 Sep 2022 10:19:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E4=B8=80=E4=B8=AAbu?= =?UTF-8?q?g?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- socket_detector.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/socket_detector.py b/socket_detector.py index 3fc2685..0c3d490 100644 --- a/socket_detector.py +++ b/socket_detector.py @@ -55,11 +55,10 @@ def main(): socket_send.send(b'G') elif (size_buff[4] == 2): str_size = size_buff[0] << 8 | size_buff[1] - select_model = socket_receive.recv(str_size) + select_model = socket_receive.recv(str_size).decode("ascii") model_path = os.path.join("models", select_model) detector = WoodClass(w=4096, h=1200, n=3000, debug_mode=False) detector.load(path=model_path) - break