Skip to content

Commit 4f1af71

Browse files
committed
text: fix wrong channel swap in TestDetectorCNN
1 parent 7031316 commit 4f1af71

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

modules/text/samples/text_recognition_cnn.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,4 +106,3 @@ int main(int argc, const char * argv[])
106106
waitKey();
107107
return 0;
108108
}
109-

modules/text/src/text_detectorCNN.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class TextDetectorCNNImpl : public TextDetectorCNN
8383
Size inputGeometry = sizes_[i];
8484
Mat inputImage = inputImage_.getMat().clone();
8585
resize(inputImage, inputImage, inputGeometry);
86-
net_.setInput(blobFromImage(inputImage, 1, inputGeometry, Scalar(123, 117, 104)), "data");
86+
net_.setInput(blobFromImage(inputImage, 1, inputGeometry, Scalar(123, 117, 104), false), "data");
8787
Mat outputNet = net_.forward();
8888
int nbrTextBoxes = outputNet.size[2];
8989
int nCol = outputNet.size[3];

0 commit comments

Comments
 (0)