We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c70aea7 commit e4cff82Copy full SHA for e4cff82
cc/io/io.cc
@@ -16,7 +16,9 @@ NAN_MODULE_INIT(Io::Init) {
16
Nan::SetMethod(target, "imshowWait", ImshowWait);
17
Nan::SetMethod(target, "imwrite", Imwrite);
18
Nan::SetMethod(target, "waitKey", WaitKey);
19
+#if CV_VERSION_GREATER_EQUAL(3, 2, 0)
20
Nan::SetMethod(target, "waitKeyEx", WaitKeyEx);
21
+#endif
22
Nan::SetMethod(target, "imencode", Imencode);
23
Nan::SetMethod(target, "imdecode", Imdecode);
24
Nan::SetMethod(target, "moveWindow", MoveWindow);
@@ -106,6 +108,7 @@ NAN_METHOD(Io::WaitKey) {
106
108
info.GetReturnValue().Set(Nan::New(key));
107
109
}
110
111
112
NAN_METHOD(Io::WaitKeyEx) {
113
int key;
114
if (info[0]->IsNumber()) {
@@ -115,6 +118,7 @@ NAN_METHOD(Io::WaitKeyEx) {
115
118
116
119
117
120
121
122
123
NAN_METHOD(Io::MoveWindow) {
124
FF::TryCatch tryCatch("Io::MoveWindow");
cc/io/io.h
@@ -16,7 +16,9 @@ class Io {
static NAN_METHOD(Imshow);
static NAN_METHOD(ImshowWait);
static NAN_METHOD(WaitKey);
static NAN_METHOD(WaitKeyEx);
static NAN_METHOD(MoveWindow);
static NAN_METHOD(DestroyWindow);
static NAN_METHOD(DestroyAllWindows);
0 commit comments