Revision history [back]

Face detection model doesn't detect any face (OpenCV with IE)

Hi, I've compile OpenCV with inference engine (IE) successfully. Since I'm using OpenCVSharp, I've also complied it with OpenCV with IE. Then, when I try to detect faces with the model face-detection-adas-0001 it doesn't detect any faces. The model is loaded successfully, it seems to do the foward pass but the output Mat has always col=-1 and row=-1. Although I'm using C#, if someone has already used this model in C++, please clarify how the input blob should be. I think that is probably what I'm getting wrong. Here is the code:

var net = CvDnn.ReadNet(model, modeltxt);
var image = System.IO.Path.Combine(Location, sampleImage);
net.SetPreferableBackend(Net.Backend.INFERENCE_ENGINE);
net.SetPreferableTarget(Net.Target.CPU);