1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 08:13:04 +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
+2 -2
View File
@@ -113,8 +113,8 @@ int main(int argc, char **argv)
exit(-1);
}
resize(img, img, Size(500, 500)); //FCN accepts 500x500 RGB-images
Mat inputBlob = blobFromImage(img); //Convert Mat to batch of images
resize(img, img, Size(500, 500)); //FCN accepts 500x500 BGR-images
Mat inputBlob = blobFromImage(img, 1, Size(), Scalar(), false); //Convert Mat to batch of images
//! [Prepare blob]
//! [Set input blob]