Image Recognition and Face Detection

December 30, 2015
By

(This article was first published on Florian Teschner, and kindly contributed to R-bloggers)

Image recognition and face detection has been around for some years. However, usage and adoption was limited due to quality and ease of development.
With the release of Microsoft’s Project Oxford, the accessibility to such tools has massively improved.
Their simple to use REST API provides an excellent opportunity for the average developer to augment their apps with fancy -state of the art- machine learning features.

To give you an example how this looks like:

Detecting Arnold Schwarzenegger

The API detects two faces (correct), one male one female (correct), the male face smiles (correct), the female face does not (correct).
It also provides an age guess for Maria Shriver(36) and Arnold Schwarzenegger(48). As I don’t know when the photo was taken, it is hard to judge the accuracy. However, I assume that the guess is too low.

Let’s take a look at a more complex example; the German government.

Detecting German Government

Even though the images are pretty small, and faces are tilted in different ways the API does a good job at identifying faces, emotions, gender and ages.

In case you want to try it yourself, head over to my minimalistic implementation; provide an url of an image (with faces) and hit “classify”.

For the interested coder, I compiled a small R package Roxford providing access to the API. Please read the short installation guide.

To sum up; giving the complexity of image/face detection, I find it pretty amazing (and scary!) how easy it is. As faces get unique IDs, the API also provides functionality to label individuals in a large image library.

To leave a comment for the author, please follow the link and comment on their blog: Florian Teschner.

R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...



If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.

Search R-bloggers


Sponsors

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)