我用下面的代碼來檢測人臉的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