检测来自中央电视台图像的脸部

时间:2016-12-23 13:11:14

标签: image opencv human-computer-interface

我的要求是我需要从给定的cctv图像中检测人脸。在cctv图像中会有不必要的物体需要被移除。如果获得的脸部图像模糊,也需要提高质量

目前我们正在尝试使用opencv API,代码如下

CascadeClassifier cascadeClassifier = new 
CascadeClassifier("haarcascade_profileface.xml");
Mat image=Highgui.imread("testing.jpg");
MatOfRect bodyDetections = new MatOfRect();
cascadeClassifier.detectMultiScale(image, bodyDetections);
for (Rect rect : bodyDetections.toArray()) {
BufferedImage croppedImage = originalPic.getSubimage(rect.x, 
rect.y,rect.width,rect.height); **unable to detect the body coordinates
here** 

}

在上述方法中,图像的多个对象被检测为面部,这是错误的。

在cctvc图像中,如果只有侧面如何提取完整的脸部?

请建议达到我要求的最佳方式。

由于 IMGen

1 个答案:

答案 0 :(得分:1)

您可能希望查看新的AWS解决方案

https://aws.amazon.com/blogs/aws/category/amazon-rekognition/