public DetectionModule(byte[] proto, byte[] caffeModel, string embeddingModel, string embeddingSecondModel, double minConfidence) { //todo : is there a way to read embeddingModel from bytes? it's a torch model. embedder = DnnInvoke.ReadNet(embeddingModel); embedderSecond = GetEmbedderFromCaffe("Models.deploy.prototxt", "Models.res10_300x300_ssd_iter_140000.caffemodel"); this.minConfidence = minConfidence; }
public DetectionModule(byte[] proto, byte[] caffeModel, string embeddingModel, double minConfidence) { detector = DnnInvoke.ReadNetFromCaffe(proto, caffeModel); //todo : is there a way to read embeddingModel from bytes? it's a torch model. embedder = DnnInvoke.ReadNet(embeddingModel); this.minConfidence = minConfidence; }
public DetectionModule(FaceRecognitionParams facePars) { Console.WriteLine("[INFO] loading face detector..."); detector = GetDetector(facePars); Console.WriteLine("[INFO] load serialized face embedding model from disk..."); embedder = DnnInvoke.ReadNet(facePars.EmbeddingModel); minConfidence = facePars.Confidence; }
public DetectionModule(string embeddingModel, string embeddingSecondModel, double minConfidence) { Console.WriteLine("[INFO] loading face detector..."); detector = GetDetector(); faceEyeDetector = new FaceEyeDetector("Models\\haarcascade_frontalface_default.xml", "Models\\haarcascade_eye.xml"); Console.WriteLine("[INFO] load serialized face embedding model from disk..."); embedder = DnnInvoke.ReadNet(embeddingModel); embedderSecond = GetEmbedderFromCaffe("Models.deploy.prototxt", "Models.res10_300x300_ssd_iter_140000.caffemodel"); this.minConfidence = minConfidence; }