내가 이미지에서 얼굴을 검출하기 위해 아래의 코드를 사용한 작동하지 않습니다 :얼굴 인식 알고리즘은
-(void)markFaces:(UIImageView *)imagePick {
CIImage* image = [CIImage imageWithCGImage:imagePick.image.CGImage];
CIDetector* detector = [CIDetector detectorOfType:CIDetectorTypeFace
context:nil options:[NSDictionary dictionaryWithObject:CIDetectorAccuracyHigh forKey:CIDetectorAccuracy]];
NSDictionary* imageOptions = [NSDictionary dictionaryWithObject:[NSNumber numberWithInt:6] forKey:CIDetectorImageOrientation];
NSLog(@"imageOptions %@",imageOptions);
NSArray* features = [detector featuresInImage:image options:imageOptions];
if([features count] > 0)
{
NSLog(@"Face Found");
}
else
{
NSLog(@"Face not Found");
}
}
내가 풍경에서 스냅을 클릭하면이 알고리즘이 작동하지 않습니다 방법. 왜? 어떤 도움을 주시면 감사하겠습니다.
덕분에 사전에
그것을합니까 (내가 그것을 보았으므로 이제 버그를 제출해야합니다) 것을 짜증나 세로로 거꾸로 촬영 한 이미지 (맨 위에있는 홈 버튼)에서 작동합니다. 변형을 적용하여 캡처 이미지를 회전 할 수 있습니다 .. – lukya
살펴보기 http://stackoverflow.com/questions/10496724/how-to-develop-a-face-recognition-iphone-app/10497002#10497002 그것은 당신을 도울지도 모른다 : –