0
我的需求是我需要从给定的cctv图像中检测人脸。在中央电视台的图像会有哪些必须removed.if所获得的人脸图像是模糊的,需要提高质量以及从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