dnn(samples): fix python syntax (false -> False)
authorAlexander Alekhin <alexander.a.alekhin@gmail.com>
Sun, 8 Oct 2017 16:17:40 +0000 (19:17 +0300)
committerAlexander Alekhin <alexander.a.alekhin@gmail.com>
Sun, 8 Oct 2017 16:17:40 +0000 (19:17 +0300)
samples/dnn/googlenet_python.py
samples/dnn/resnet_ssd_face_python.py

index 85d56a9..0a5caaa 100644 (file)
@@ -11,7 +11,7 @@ def get_class_list():
     with open('synset_words.txt', 'rt') as f:
         return [x[x.find(" ") + 1:] for x in f]
 
-blob = dnn.blobFromImage(cv2.imread('space_shuttle.jpg'), 1, (224, 224), (104, 117, 123), false)
+blob = dnn.blobFromImage(cv2.imread('space_shuttle.jpg'), 1, (224, 224), (104, 117, 123), False)
 print("Input:", blob.shape, blob.dtype)
 
 net = dnn.readNetFromCaffe('bvlc_googlenet.prototxt', 'bvlc_googlenet.caffemodel')
index e385a0c..172ee23 100644 (file)
@@ -27,7 +27,7 @@ if __name__ == '__main__':
         cols = frame.shape[1]
         rows = frame.shape[0]
 
-        net.setInput(dnn.blobFromImage(frame, 1.0, (inWidth, inHeight), (104.0, 177.0, 123.0), false))
+        net.setInput(dnn.blobFromImage(frame, 1.0, (inWidth, inHeight), (104.0, 177.0, 123.0), False))
         detections = net.forward()
 
         perf_stats = net.getPerfProfile()