January 2018
Beginner to intermediate
548 pages
12h 11m
English
OpenCV (Open Computer Vision) is an open source C++ library for computer vision. It features algorithms for image segmentation, object recognition, augmented reality, face detection, and other computer vision tasks.
In this recipe, we will use OpenCV in Python to detect faces in a picture.
You need OpenCV and the Python wrapper. You can install them with the following command:
conda install -c conda-forge opencv
>>> import io
import zipfile
import requests
import numpy as np
import cv2
import matplotlib.pyplot as plt
%matplotlib inlinedata/ subfolder:>>> url = ('https://github.com/ipython-books/' 'cookbook-2nd-data/blob/master/' ...Read now
Unlock full access