【发布时间】:2015-04-23 00:21:47
【问题描述】:
我正在使用 CIFaceFeature 来检测眼睛坐标。从眼睛坐标中,我将眉毛图像添加到脸部。但这对我来说是静态的。它不适合所有的人脸。有什么方法可以得到眼宽吗? `
for (CIFaceFeature *faceFeature in features) {
// Draw a highlight around the subject's face.
CGRect faceRect = faceFeature.bounds;
CGPoint leftPoint = [self leftEyePositionForImage:self.imageView.image inView:self.imageView.bounds.size];
CGPoint rightPoint = [self rightEyePositionForImage:self.imageView.image inView:self.imageView.bounds.size];
}
我的代码和上面一样。获得眼睛中心点后,我在该中心点上方添加 UIImageview。
【问题讨论】: