Skip to content

Commit 10706c4

Browse files
author
AleksandrPanov
committed
add dnn data search
1 parent f090916 commit 10706c4

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

modules/wechat_qrcode/test/test_main.cpp

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,19 @@
1111
#include <hpx/hpx_main.hpp>
1212
#endif
1313

14-
CV_TEST_MAIN("cv")
14+
static
15+
void initTests()
16+
{
17+
#ifdef HAVE_OPENCV_DNN
18+
const char* extraTestDataPath =
19+
#ifdef WINRT
20+
NULL;
21+
#else
22+
getenv("OPENCV_DNN_TEST_DATA_PATH");
23+
#endif
24+
if (extraTestDataPath)
25+
cvtest::addDataSearchPath(extraTestDataPath);
26+
#endif // HAVE_OPENCV_DNN
27+
}
28+
29+
CV_TEST_MAIN("cv", initTests())

0 commit comments

Comments
 (0)