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

Commit 31a8bfd

Browse files
author
Johnson Su
committed
Add directive for opencv3.3.0 build
1 parent b845735 commit 31a8bfd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cc/modules/dnn/dnnBindings.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ namespace DnnBindings {
4343
cv::dnn::Net net;
4444

4545
std::string executeCatchCvExceptionWorker() {
46+
#if CV_VERSION_MINOR > 3
4647
net = cv::dnn::readNetFromTensorflow(modelFile, configFile);
48+
#else
49+
net = cv::dnn::readNetFromTensorflow(modelFile);
50+
#endif
4751
if (net.empty()) {
4852
return std::string("failed to load net: " + modelFile + "failed to load config: " + configFile).data();
4953
}

0 commit comments

Comments
 (0)