Zaktualizuj 'Find_animal.py'

This commit is contained in:
Norbert Węgrzyn 2020-01-11 12:13:00 +00:00
parent 7a8b8b4a8e
commit ec6ee7f2fa

View File

@ -90,9 +90,9 @@ textGraph = "./mask.pbtxt";
modelWeights = "./mask/frozen_inference_graph.pb"; modelWeights = "./mask/frozen_inference_graph.pb";
# Załadowanie z sieci # Załadowanie z sieci
net = cv.dnn.readNetFromTensorflow(modelWeights, textGraph); #net = cv.dnn.readNetFromTensorflow(modelWeights, textGraph);
net.setPreferableBackend(cv.dnn.DNN_BACKEND_OPENCV) #net.setPreferableBackend(cv.dnn.DNN_BACKEND_OPENCV)
net.setPreferableTarget(cv.dnn.DNN_TARGET_CPU) #net.setPreferableTarget(cv.dnn.DNN_TARGET_CPU)
# załadowanie klas # załadowanie klas
colorsFile = "colors.txt"; colorsFile = "colors.txt";