I am trying to convert CGImage to CIImage ; however it does not work.
This line of code:
let personciImage = CIImage(CGImage: imageView.image!.CGImage!)
produces the following error
Ambiguous use of 'init (CGImage)'
I am really confused about what this error means.
I need to do this conversion because CIDetector.featuresInImage() from the CoreImage built-in framework requires CIImage
source share