Introduction: Facial recognition is a computer technology that uses image algorithms to determine the position and size of faces. It identifies facial features and ignores other image noise, such as buildings, trees and bodies. Most photo albums on social networking platforms now have this function. After you upload a photo, it automatically runs an algorithm and identifies your friends in the photo. This article introduces you to different plug-ins and libraries to achieve this function.
jQuery facial recognition
jQuery plugin identifies faces on photos and gives their coordinates and sizes. This plug-in was developed by Liuliu (transliteration: Liuliu) in combination with HTML5 canvas, so it can only run on clients that support HTML5. If you are interested, you can see this sample (see the picture below, but you have to circumvent the firewall). The entire algorithm code can be downloaded from git hub.
PHP facial recognition extension
Provides OpenCV (Open Source Computer Vision) implemented in PHP. It contains two functions face_count () and face_detect (). The first one gives the number of faces identified on an image. The second one gives a sequence of their coordinates and the total number. You can find the installer and manual, as well as demos, on XARG’s page.
Face Recognition API
This API was developed by a Romanian. This is still very convenient to use. Your program sends it the API credentials and the URL of the image to analyze, and it returns you an XML data containing all the facial data found on the image. This package is particularly convenient because it can analyze URLs directly instead of image data, so you can grab the link directly on the server and analyze it.
Ruby
This is similar to the program using OpenCV's Ruby package and PHP. You can download the program on the Ruby page.
OpenCVDotNet
This is a program management developed for the .NET framework, through which OpenCV functions can be called directly from C#. It includes a DLL (written in C++) that wraps OpenCV in a .NET class so that it can be used by VB.NET, C++ and C#.