Can google vision API detect specific faces? - google-vision

Can I use google's vision API to not only detect faces on a specific picture but to detect which person is in the picture ?
Can this be done for celebrities (or ppl which can be easily find via a google search) automatically ? For unfamiliar ppl via some learning/look-alike mechanism ?
Thanks.

No. From the Google Vision API description:
Face Detection
Detect multiple faces within an image, along with the associated key facial attributes like emotional state or wearing headwear. Facial Recognition is not supported.
But, you can implement facial recognition yourself using OpenCV. I don't know your preferred language, but here is a tutorial on how to implement facial recognition in Python. OpenCV also has interfaces for C++ and Java.

Related

To integrate a trained machine learning model with react native app

I have an FYP project (a social media app like Instagram) that requires me to create a simple recommendation system. I've trained my dataset on cosine similarity using Python, but I'm at a loss on what to do next. How can I integrate my trained ml model to React native or if there is a better and easier way to make a recommendation system?
I tried reading documentation and watching videos. But I still don't seem to be able to grasp some difficult concepts. I would greatly appreciate it if you could give me instructions or steps on what to learn after training my model. Or if I have to use some library or packages etc. [not sure if this is the appropriate forum for this inquiry]

Google MLKit Pose Detection with React Native

I wanted came across this guide https://developers.google.com/ml-kit/vision/pose-detection/classifying-poses and I wanted to develop a cross plateform app with pose classification using react native.
I haven't been able to find any wrapper from react-native ? Is this going to be developped one day ?
I thought about using the flutter one but it seems that it doesn't contain the pose detection library ?
ML Kit itself does not currently have a plan to provide React Native or Flutter wrappers. Some developers have come up their own wrappers, e.g. https://pub.dev/packages/google_ml_kit. They are not officially endorsed by ML Kit and your mileage may vary.
For React Native we have a wrapper for ML Kit https://github.com/a7medev/react-native-ml-kit but pose detection is not implemented yet.

Is it possible to create real time custom object detection using React Native?

I want to do this without using recognition on server or on cloud. I already trained tensorflow-lite model. I've seen tflite-react-native but it works only with images not real time camera streaming. I'm wandering if it's even possible to make capturing and recognition custom object in real time without streaming the video on backend. Any advices and thoughts are very appreciated.

Unsupervised Learning : Clustering based Facial Recognition

I am able to do supervised learning for Facial Recognition with TensorFlow and especially after reading this great tutorial. I highly recommend the tutorial even if you don't intend on running the code.
Does anyone know of an open sourced library that does clustering of images based on facial recognition similar to Google Photos for instance? Or even a tutorial with sample code?
I found a good tutorial on autoencoders, so building my own is an option, but I wanted to check if there's something open sourced, or some tutorial that has code I maybe able to borrow?

Facial Feature Detection

Currently working on a project with a hospital where I need to detect facial features to determine if any facial deformities exist through iPhone App.
For example I found https://github.com/auduno/clmtrackr which showed facial feature detection points. I thought maybe look at the code and make it into objective C. The problem is when I tested clmtrackr with a face with deformity it did not work as intended.
You can check it also: http://www.auduno.com/clmtrackr/clm_image.html
Also tried this image:
both were inconsistent with detecting all the features points it can detect.
Do you know of any API that could do this? Or do you know what techniques I should look up so that I can make one myself.
Thank you
There are several libraries for facial landmark detection:
Dlib ( C++ / Python )
CLM-Framework (C++)
Face++ ( FacePlusPlus ) : Web API
OpenCV. Here's a tutorial: http://www.learnopencv.com/computer-vision-for-predicting-facial-attractiveness/
You can read more at: http://www.learnopencv.com/facial-landmark-detection/
you can use dlib since it's face detection algorithm is faster and it also includes a pre-trained model
https://github.com/davisking/dlib/
https://github.com/davisking/dlib-models
refer this for integration to ios how to build DLIB for iOS
alternatively you could use openface for checking it out just download the binaries http://www.cl.cam.ac.uk/~tb346/software/OpenFace_0.2_win_x86.zip and you're ready to go with command lines https://github.com/TadasBaltrusaitis/OpenFace/wiki/Command-line-arguments
note:- i wont prefer to use opencv since training process and results and not so regular