perf_main.cpp 468 B

12345678910111213141516171819202122
  1. #include "perf_precomp.hpp"
  2. #if defined(HAVE_HPX)
  3. #include <hpx/hpx_main.hpp>
  4. #endif
  5. static
  6. void initTests()
  7. {
  8. const char* extraTestDataPath =
  9. #ifdef WINRT
  10. NULL;
  11. #else
  12. getenv("OPENCV_DNN_TEST_DATA_PATH");
  13. #endif
  14. if (extraTestDataPath)
  15. cvtest::addDataSearchPath(extraTestDataPath);
  16. cvtest::addDataSearchSubDirectory(""); // override "cv" prefix below to access without "../dnn" hacks
  17. }
  18. CV_PERF_TEST_MAIN(video, initTests())