Skip to content

Commit

Permalink
Set OpenCV DNN's default backend and target for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterBowman committed Oct 17, 2024
1 parent a6412ef commit a2d3be8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/testDnnDetector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ class DnnDetectorTest : public testing::Test
{"device", yarp::os::Value("DnnDetector")},
{"trainedModel", yarp::os::Value("yolov3-tiny/yolov3-tiny.weights")},
{"configDNNModel", yarp::os::Value("yolov3-tiny/yolov3-tiny.cfg")},
{"classesTrainedModel", yarp::os::Value("coco-object-categories.txt")}
{"classesTrainedModel", yarp::os::Value("coco-object-categories.txt")},
{"backend", yarp::os::Value(0)}, // DNN_BACKEND_DEFAULT
{"target", yarp::os::Value(0)} // DNN_TARGET_CPU
};

if (!detectorDevice.open(deviceOptions))
Expand Down

0 comments on commit a2d3be8

Please sign in to comment.