1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 00:03:03 +04:00

Set swapRB to false in Caffe tests and examples.

This commit is contained in:
jrobble
2017-09-19 02:07:33 -04:00
parent 0624411875
commit c67ad49378
10 changed files with 47 additions and 51 deletions
+1 -2
View File
@@ -27,8 +27,7 @@ if __name__ == '__main__':
cols = frame.shape[1]
rows = frame.shape[0]
net.setInput(dnn.blobFromImage(cv.resize(frame, (inWidth, inHeight)),
1.0, (inWidth, inHeight), (104., 177., 123.)))
net.setInput(dnn.blobFromImage(frame, 1.0, (inWidth, inHeight), (104.0, 177.0, 123.0), false))
detections = net.forward()
perf_stats = net.getPerfProfile()