예제 #1
0
        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);
        }
예제 #2
0
        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));
            }
        }
예제 #3
0
        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);
        }