MCPcopy Create free account
hub / github.com/Smorodov/Multitarget-tracker / main

Function main

async_detector/main.cpp:33–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31// ----------------------------------------------------------------------
32
33int main(int argc, char** argv)
34{
35 Help();
36
37 cv::CommandLineParser parser(argc, argv, keys);
38
39 bool useOCL = parser.get<int>("gpu") ? 1 : 0;
40 cv::ocl::setUseOpenCL(useOCL);
41 std::cout << (cv::ocl::useOpenCL() ? "OpenCL is enabled" : "OpenCL not used") << std::endl;
42
43 AsyncDetector asyncDetector(parser);
44 asyncDetector.Process();
45
46#ifndef SILENT_WORK
47 cv::destroyAllWindows();
48#endif
49
50 std::cout << "Correct exit" << std::endl;
51 return 0;
52}

Callers

nothing calls this directly

Calls 2

ProcessMethod · 0.80
HelpFunction · 0.70

Tested by

no test coverage detected