I’ve started looking into Clarifai for facial recognition, appears to work well even in low light. The main limitation with this service is that you only get 5000 requests per month on the free tier, so approximately 1 request every 10 minutes.
The processing is on the Clarifai servers, so 7 seconds is from submission of the image to return of the result. Its certainly not good enough for video rate (which is not what I had in mind anyway) but probably adequate for unlocking a security system. Clarifai is interesting as it offers many models, not just facial recognition, and one can also train custom models.
I am interested to try the dlib (runs locally so probably comparable to openCV) and microsoft (following Microsoft own tutorial I can’t get this to work) components to see how they perform. With several cloud services offering similar recognition services, it must be that speed becomes a selling point. Cloud also appeals as less/no effort to maintain. Google an amazon also offer facial recognition API
I have been using dlib and OpenCV and their detection is far from ideal (or may be I have not configured them correctly). But, I still feel we should be able to use some of the local image_processing components or have some new one (we need a decent TensorFlow implementation).
What hardware do you have processing the OpenCV library? Is this leading to your far from ideal situation? I plan to have a dedicated Rpi Zero to process images I send to it so I’m curious about your experience.
OK so tried out Google Cloud Vision could API. Appears to be quite fast, but time varies quite a lot. Fastest to upload file and return result was about 0.5 sec, and slowest about 5 seconds.
Overall once you have it configured, Google Vision is quite a nice API. However I found it easier to get started with Clarifai.
Right now it just makes a single call in start up. This isn’t a component yet, just a proof of principle. Need to decide the vest way to implement, as you don’t want to make too many requests to the cloud API on the free tier