From 14b629ce194c36b4986eada3be9db89fdc60f4b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Weronika=20Gor=C4=85cy?= Date: Thu, 7 May 2020 19:26:39 +0000 Subject: [PATCH] Zaktualizuj 'neurons.py' --- neurons.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neurons.py b/neurons.py index bd044bb..af6f80f 100644 --- a/neurons.py +++ b/neurons.py @@ -11,7 +11,7 @@ class Neurons: output_layers = [layer_names[i[0] - 1] for i in net.getUnconnectedOutLayers()] return output_layers def whatIsIt(self, path): - image = cv2.imread(path) + """image = cv2.imread(path) scale = 0.00392 classes = None with open("yolov3.txt", 'r') as f: @@ -28,7 +28,7 @@ class Neurons: confidence = scores[class_id] if confidence > 0.5: class_ids.append(class_id) - print([classes[ids] for ids in class_ids]) + print([classes[ids] for ids in class_ids])""" x = [1, 0, 0, 0, 0] numpy.random.shuffle(x) if x[0]==1: