I want to build a app that keeps detecting face from the Camera. I have integrated the library but not getting any valid source from where i can start
Asked
Active
Viewed 3,687 times
2
-
you can check with this post http://www.appcoda.com/face-detection-core-image/ – Antony Raphel Mar 01 '17 at 07:09
-
@AntonyRaphel yup its good but i am a newbie to Swift so basically i want it in objective c – Ahmed Sahib Mar 01 '17 at 07:13
-
@AntonyRaphel i want to use OpenCV to achieve – Ahmed Sahib Mar 01 '17 at 07:14
-
Possible duplicate of [Face Recognition on the iPhone](http://stackoverflow.com/questions/10272129/face-recognition-on-the-iphone) – kb920 Mar 01 '17 at 07:15
-
1then try this one https://github.com/ekurutepe/iOS-OpenCV-FaceRec or https://github.com/macmade/FaceDetect – Antony Raphel Mar 01 '17 at 07:15
-
@AntonyRaphel i downloaded the github.com/macmade/FaceDetect and tried to configure it but i am facing issue in Xcode 8 – Ahmed Sahib Mar 01 '17 at 11:42
-
@AntonyRaphel I have tried the link suggested by you (github.com/ekurutepe/iOS-OpenCV-FaceRec ) but the problem is the image gets converted to grey scale so how can i convert it to original image – Ahmed Sahib Mar 07 '17 at 07:20
-
@AhmedSahib those issues you need to raise for **iOS-OpenCV-FaceRec** library. – Antony Raphel Mar 07 '17 at 07:24
1 Answers
2
I think this is a good starting point if you want to use Objective C:
https://jkbdev.wordpress.com/2015/09/22/getting-started-with-opencv-on-ios/
When you manage to get this to build and run, look for an opencv face detection example and incorporate that into your iOS app.
If you really want to do this in one go, you can try the link suggested by @Anthony above (https://github.com/ekurutepe/iOS-OpenCV-FaceRec).

Totoro
- 3,398
- 1
- 24
- 39
-
1http://docs.opencv.org/3.0-beta/doc/tutorials/ios/video_processing/video_processing.html i already build and run and now going for the 2nd tutorial – Ahmed Sahib Mar 01 '17 at 09:03
-
Thanks, didn't knoe that OpenCV 3.0 comes with a good tutorial like that. – Totoro Mar 02 '17 at 02:04
-
I have tried the link suggested by Anthony but the problem is the image gets converted to grey scale so how can i convert it to original image – Ahmed Sahib Mar 07 '17 at 07:17
-
The input to opencv face detection is a grayscale image, and the output is a set of rectangles that show face locations. You just have to draw the face rectangles on the original image, instead f the gray image. – Totoro Mar 07 '17 at 07:39
-
how to face red mark and pimple detect objective c , any know please let me know , how to possible .. ? – Ramani Hitesh Oct 08 '18 at 14:45
-
The first approach that comes to mind is taking the HSV image of the face and looking for patches with more red. On dark skin, you will have to look for highlights. – Totoro Oct 09 '18 at 20:11