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; }
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); }