A mutli-threaded version of the facial recognition code taken from Mastering OpenCV with Practical Computer Vision Projects