Ask Your Question

Revision history [back]

I was missing the following, which apparently is required to run the net in C++:

net.setPreferableBackend(cv::dnn::DNN_BACKEND_OPENCV);
net.setPreferableTarget(cv::dnn::DNN_TARGET_CPU);

(The above for CPU inference).