I am working on an application in which I have to detect the left eye, right eye and mouth. I have an ImageView on my self.view and the imageView contains an image of a face, now I want to get the coordinates of both eyes and mouth. I saw 2-3 code examples for this, but they are all about the same in all codes that we have to invert in my view to match the coordinates that I don't want, because my view has some other controls. And one more thing they all use
UIImageView *imageView = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"image.png"]];
but my ImageView has a frame, and I cannot initialize it with the image. When I do this, I find that the faces and eyes do not match the eyes.
I started my code from this code sample , but in this view, its Y coordinate is also inverted.
Can someone help me how can I detect the face and mouth in the UIImageView image without inverting my self.view.
let me know if my question is not clear enough.
Any help would be appreciated, thanks in advance!
source share