From b7ee7599fbd770814d4009faf29ac92d7d042d9f Mon Sep 17 00:00:00 2001 From: leaf <48828021+leafliber@users.noreply.github.com> Date: Sat, 2 Jul 2022 16:37:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gr.py b/gr.py index c904a15..660eb74 100644 --- a/gr.py +++ b/gr.py @@ -95,12 +95,12 @@ class Main: def gr_img(self, filedir, diy): print(filedir) - img = cv2.imread(filedir) if diy: cnn = torch.load("CNN.pkl") cnn_two = torch.load("CNN_two.pkl") while True: not_match = 0 + img = cv2.imread(filedir) img_tm = copy.deepcopy(img) is_one_hand = self.at_main.gesture_recognition(self.at_detector, img, cnn_two) if is_one_hand: