1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 00:03:03 +04:00

Merge pull request #10492 from pengli:dnn

This commit is contained in:
Alexander Alekhin
2018-01-04 04:40:02 +00:00
2 changed files with 101 additions and 0 deletions
+6
View File
@@ -30,6 +30,7 @@ const char* params
"{ model | | model weights (res10_300x300_ssd_iter_140000.caffemodel) }"
"{ camera_device | 0 | camera device number }"
"{ video | | video or image for detection }"
"{ opencl | false | enable OpenCL }"
"{ min_confidence | 0.5 | min confidence }";
int main(int argc, char** argv)
@@ -62,6 +63,11 @@ int main(int argc, char** argv)
exit(-1);
}
if (parser.get<bool>("opencl"))
{
net.setPreferableTarget(DNN_TARGET_OPENCL);
}
VideoCapture cap;
if (parser.get<String>("video").empty())
{