This repository was archived by the owner on Oct 18, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11
11
NAN_MODULE_INIT (Dnn::Init) {
12
12
Net::Init (target);
13
13
14
- Nan::SetMethod (target, " readNetFromDarknet" , readNetFromDarknet);
15
- Nan::SetMethod (target, " readNetFromDarknetAsync" , readNetFromDarknetAsync);
16
14
Nan::SetMethod (target, " readNetFromTensorflow" , ReadNetFromTensorflow);
17
15
Nan::SetMethod (target, " readNetFromTensorflowAsync" , ReadNetFromTensorflowAsync);
18
16
Nan::SetMethod (target, " readNetFromCaffe" , ReadNetFromCaffe);
@@ -22,6 +20,8 @@ NAN_MODULE_INIT(Dnn::Init) {
22
20
Nan::SetMethod (target, " blobFromImages" , BlobFromImages);
23
21
Nan::SetMethod (target, " blobFromImagesAsync" , BlobFromImagesAsync);
24
22
#if CV_VERSION_MINOR > 3
23
+ Nan::SetMethod (target, " readNetFromDarknet" , readNetFromDarknet);
24
+ Nan::SetMethod (target, " readNetFromDarknetAsync" , readNetFromDarknetAsync);
25
25
Nan::SetMethod (target, " NMSBoxes" , NMSBoxes);
26
26
#endif
27
27
};
Original file line number Diff line number Diff line change @@ -11,8 +11,6 @@ class Dnn {
11
11
public:
12
12
static NAN_MODULE_INIT (Init);
13
13
14
- static NAN_METHOD (readNetFromDarknet);
15
- static NAN_METHOD (readNetFromDarknetAsync);
16
14
static NAN_METHOD (ReadNetFromTensorflow);
17
15
static NAN_METHOD (ReadNetFromTensorflowAsync);
18
16
static NAN_METHOD (ReadNetFromCaffe);
@@ -22,6 +20,8 @@ class Dnn {
22
20
static NAN_METHOD (BlobFromImages);
23
21
static NAN_METHOD (BlobFromImagesAsync);
24
22
#if CV_VERSION_MINOR > 3
23
+ static NAN_METHOD (readNetFromDarknet);
24
+ static NAN_METHOD (readNetFromDarknetAsync);
25
25
static NAN_METHOD (NMSBoxes);
26
26
#endif
27
27
};
You can’t perform that action at this time.
0 commit comments