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:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user