The best programming language used with Face Recognition and Image Object Recognition in my opinion is python3. There is literally a python library to use when comes to matching face images to other face images.
First, we will need to install one library then we will use git to clone a repository to play with the predefined image.
Using pip3 after installing your trusty python3 programming language. We can run the following commands.
pip3 install --user face_recognition
git clone https://github.com/bradtraversy/face_recognition_examples
As simple as cake, the above two lines of items would be needed to get started in working on using this Face Recognition application. When you run the face_recognition software it will take in two arguments. The zero location will be the application, the first location is the known images and lastly the second location will be the unknown facial images.
hobbit@Hobbit : ~/github/facerecog $ /Users/hobbit/Library/Python/3.7/bin/face_recognition /Users/hobbit/facerecog/img/known/ /Users/hobbit/facerecog/img/unknown/
WARNING: No faces found in ./img/known/Bananas.jpg. Ignoring file.
/Users/flo/Library/Python/3.7/lib/python/site-packages/PIL/Image.py:932: UserWarning: Palette images with Transparency expressed in bytes should be converted to RGBA images
"Palette images with Transparency expressed in bytes should be "
i tried inserting a image of a banana.jpg into this facial recognition application to see whether it would detect another banana01.jpg in the unknown directory. Interesting enough, this facial recognition is only able to detect faces. As you can see, this application detected an unknown image in the known directory which was not recognizable as a face. It then skipped over.
I felt as if facial recognition application will only work with facial images unlike where if one were to use an application to recognize a known physical object, one would then require other arsenals in the python lib. perhaps, Facial recognition is far different than object recognition as I digressed.