Skip to content

Commit

Permalink
add dnn data search
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksandrPanov committed Aug 22, 2022
1 parent f090916 commit 10706c4
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion modules/wechat_qrcode/test/test_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,19 @@
#include <hpx/hpx_main.hpp>
#endif

CV_TEST_MAIN("cv")
static
void initTests()
{
#ifdef HAVE_OPENCV_DNN
const char* extraTestDataPath =
#ifdef WINRT
NULL;
#else
getenv("OPENCV_DNN_TEST_DATA_PATH");
#endif
if (extraTestDataPath)
cvtest::addDataSearchPath(extraTestDataPath);
#endif // HAVE_OPENCV_DNN
}

CV_TEST_MAIN("cv", initTests())

0 comments on commit 10706c4

Please sign in to comment.