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

Commit bf0d4eb

Browse files
author
Johnson Su
committed
Patch directive for readNetFromDarknet
1 parent 31a8bfd commit bf0d4eb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cc/modules/dnn/dnnBindings.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
namespace DnnBindings {
77

8+
#if CV_VERSION_MINOR > 3
89
struct readNetFromDarknetWorker : public CatchCvExceptionWorker{
910
public:
1011
std::string cfgFile;
@@ -34,6 +35,7 @@ namespace DnnBindings {
3435
StringConverter::optArg(1, &darknetModelFile, info));
3536
}
3637
};
38+
#endif
3739

3840
struct ReadNetFromTensorflowWorker : public CatchCvExceptionWorker {
3941
public:

0 commit comments

Comments
 (0)