Skip to content
This repository was archived by the owner on Oct 18, 2023. It is now read-only.

Commit 95d8e55

Browse files
committed
cc: fix compatibility issues
1 parent 6ec968d commit 95d8e55

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cc/modules/dnn/dnnBindings.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ namespace DnnBindings {
7777
bool swapRB = true;
7878
bool crop = true;
7979
int ddepth = CV_32F;
80-
8180
cv::Mat returnValue;
8281

8382
std::string executeCatchCvExceptionWorker() {
@@ -90,10 +89,10 @@ namespace DnnBindings {
9089
}
9190
#else
9291
if (isSingleImage) {
93-
returnValue = cv::dnn::blobFromImage(image, scalefactor, size, mean, swapRB, crop);
92+
returnValue = cv::dnn::blobFromImage(image, scalefactor, size, mean, swapRB);
9493
}
9594
else {
96-
returnValue = cv::dnn::blobFromImages(images, scalefactor, size, mean, swapRB, crop);
95+
returnValue = cv::dnn::blobFromImages(images, scalefactor, size, mean, swapRB);
9796
}
9897
#endif
9998
return "";

0 commit comments

Comments
 (0)