Zaktualizuj 'neurons.py'

This commit is contained in:
Weronika Gorący 2020-05-07 19:26:39 +00:00
parent 8a9b1ae46f
commit 14b629ce19

View File

@ -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: