Skip to content

Commit 8ac2c5d

Browse files
committed
Merge pull request opencv#9796 from lzx1413:patch-1
2 parents 2c1b4f5 + 9661d60 commit 8ac2c5d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

samples/dnn/googlenet_python.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def get_class_list():
1111
with open('synset_words.txt', 'rt') as f:
1212
return [x[x.find(" ") + 1:] for x in f]
1313

14-
blob = dnn.blobFromImage(cv2.imread('space_shuttle.jpg'), 1, (224, 224), (104, 117, 123), false)
14+
blob = dnn.blobFromImage(cv2.imread('space_shuttle.jpg'), 1, (224, 224), (104, 117, 123), False)
1515
print("Input:", blob.shape, blob.dtype)
1616

1717
net = dnn.readNetFromCaffe('bvlc_googlenet.prototxt', 'bvlc_googlenet.caffemodel')

samples/dnn/mobilenet_ssd_python.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
while True:
4242
# Capture frame-by-frame
4343
ret, frame = cap.read()
44-
blob = cv.dnn.blobFromImage(frame, inScaleFactor, (inWidth, inHeight), meanVal, false)
44+
blob = cv.dnn.blobFromImage(frame, inScaleFactor, (inWidth, inHeight), meanVal, False)
4545
net.setInput(blob)
4646
detections = net.forward()
4747

samples/dnn/resnet_ssd_face_python.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
cols = frame.shape[1]
2828
rows = frame.shape[0]
2929

30-
net.setInput(dnn.blobFromImage(frame, 1.0, (inWidth, inHeight), (104.0, 177.0, 123.0), false))
30+
net.setInput(dnn.blobFromImage(frame, 1.0, (inWidth, inHeight), (104.0, 177.0, 123.0), False))
3131
detections = net.forward()
3232

3333
perf_stats = net.getPerfProfile()

0 commit comments

Comments
 (0)