O'Reilly logo

Automate it! - Recipes to upskill your business by Chetan Giridhar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Face detection

We covered a lot of operations on images in the preceding sections. In this recipe, let's delve deeper and cover an advanced operation such as face detection in images.

Getting ready

In this recipe, we will use Python's opencv module, so let's start by installing the required module.

  1. For using opencv Python bindings, we have to first install opencv on our computer. On my Mac OS X machine, I use the brew utility to install opencv this way:
            (ch10)chetans-MacBookPro:ch10 Chetan$ brew install 
            homebrew/science/opencv 
            ==> Tapping homebrew/science 
            Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-
            science'... 
            ... 
            ... 
            ==> Summary 
              /usr/local/Cellar/opencv/2.4.13.1: 277 files, 35.5M 
    
  2. Just installing opencv on your computer doesn't ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required