我用下面的代码来检测人脸的IOS 5IOS 6人脸检测不工作
CIImage *cIImage = [CIImage imageWithCGImage:image.CGImage];
CIDetector* detector = [CIDetector detectorOfType:CIDetectorTypeFace context:nil options:[NSDictionary dictionaryWithObject:CIDetectorAccuracyHigh forKey:CIDetectorAccuracy]];
NSArray *features = nil;
features = [detector featuresInImage:cIImage];
if ([features count] == 0)
{
NSDictionary* imageOptions = [NSDictionary dictionaryWithObject:[NSNumber numberWithInt:6] forKey:CIDetectorImageOrientation];
features = [detector featuresInImage:cIImage options:imageOptions];
}
有了这个代码,我能够发现在iOS 5中的脸,但最近我们已经升级了系统的Xcode 4.4和IOS 6,现在,人脸检测工作不正常,
我需要什么样的改变在IOS检测面部做6
帮助Anykind高度赞赏
我不认为这个问题会发生,请将您的样品code..i将检查它 – Rajneesh071
我已经实施了我的项目中的代码,很难发送它 – iYahoo
你可以使你的问题的样本.... – Rajneesh071