【发布时间】:2016-06-16 13:04:09
【问题描述】:
我正在尝试对网络摄像头检测到的所有人的面部进行模糊处理。 问题是当网络摄像头检测到面部时,程序会显示带有模糊面部的裁剪垫。
我尝试将模糊面放入原始垫子中,但它不起作用。
for(Rect rect : faces.toArray()){
Imgproc.rectangle(frame, rect.tl(), rect.br(), new Scalar(0,0,255),3);
Rect rectCrop = new Rect(rect.x, rect.y , rect.width, rect.height);
Mat imageROI = grayFrame.submat(rectCrop);
//frame is the original mat with the correct size
Imgproc.GaussianBlur(imageROI, frame, new Size(55, 55), 55);
}
没有人脸检测:
人脸检测:
【问题讨论】: