public void SaveDetection(DetectionReturn detectionReturn, String fileNameToSave) { foreach (Rectangle item in detectionReturn.Detections) { detectionReturn.Image.Draw(item, new Bgr(0, 0, 255), 2); } detectionReturn.Image.Save(fileNameToSave); }
public void Profile() { FaceDetection.Detection faceDetection = new Detection(); String[] files = System.IO.Directory.GetFiles("C:\\Temp"); foreach (String file in files) { FaceDetection.DetectionReturn detectionReturn = faceDetection.DetectFace(DetectionType.Profile, file, sensibility); faceDetection.SaveDetection(detectionReturn, "C:\\Temp\\Profile\\" + Path.GetFileName(file)); } }