public string procImage(Bitmap bitmapData)
        {
            string filePath = SaveImage(bitmapData);

            FaceProcessing FaceProcessor = new FaceProcessing();

            IplImage IplObject = FaceProcessor.BitmapToIpImage(new Bitmap(filePath));
            Bitmap processImage = FaceProcessor.FaceDetect(IplObject);

            processImage.Save(filePath.Insert(filePath.Length - 4, "_proc"), ImageFormat.Jpeg);

            return filePath;
        }
Example #2
0
        public string procImage(Bitmap bitmapData)
        {
            string filePath = SaveImage(bitmapData);

            FaceProcessing FaceProcessor = new FaceProcessing();

            IplImage IplObject    = FaceProcessor.BitmapToIpImage(new Bitmap(filePath));
            Bitmap   processImage = FaceProcessor.FaceDetect(IplObject);

            processImage.Save(filePath.Insert(filePath.Length - 4, "_proc"), ImageFormat.Jpeg);

            return(filePath);
        }