Hey all,
Would anyone happen to know why CIDetectorAccuracyHigh won't work on a simulator? It always can't find a face in any image. Can't find anything to suggest it shouldn't work online.
The same code below is able to find a face on sim if I use CIDetectorAccuracyLow:
public func retrieveFacesFrom(_ image: CIImage, completion: @escaping ([Feature]?) -> ()) {
let ciDetector = CIDetector(ofType: CIDetectorTypeFace,
context: nil,
options: [CIDetectorAccuracy : CIDetectorAccuracyHigh])
let features = ciDetector?.features(in: image) as? [CIFeature]
completion(features?.map { Feature(bounds: $0.bounds) })
}
Thanks in advance.