Zaktualizuj 'neurons.py'
This commit is contained in:
parent
8a9b1ae46f
commit
14b629ce19
@ -11,7 +11,7 @@ class Neurons:
|
|||||||
output_layers = [layer_names[i[0] - 1] for i in net.getUnconnectedOutLayers()]
|
output_layers = [layer_names[i[0] - 1] for i in net.getUnconnectedOutLayers()]
|
||||||
return output_layers
|
return output_layers
|
||||||
def whatIsIt(self, path):
|
def whatIsIt(self, path):
|
||||||
image = cv2.imread(path)
|
"""image = cv2.imread(path)
|
||||||
scale = 0.00392
|
scale = 0.00392
|
||||||
classes = None
|
classes = None
|
||||||
with open("yolov3.txt", 'r') as f:
|
with open("yolov3.txt", 'r') as f:
|
||||||
@ -28,7 +28,7 @@ class Neurons:
|
|||||||
confidence = scores[class_id]
|
confidence = scores[class_id]
|
||||||
if confidence > 0.5:
|
if confidence > 0.5:
|
||||||
class_ids.append(class_id)
|
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]
|
x = [1, 0, 0, 0, 0]
|
||||||
numpy.random.shuffle(x)
|
numpy.random.shuffle(x)
|
||||||
if x[0]==1:
|
if x[0]==1:
|
||||||
|
Loading…
Reference in New Issue
Block a user