To test the performance of the resulting shape-placement procedure, the program in visualize_face_detector.cpp calls the face_detector::detect function for each image in the video or camera input stream and draws the results on screen. An example of the results using this approach is shown in the following figure Although the placed shape does not match the individual in the image, its placement is close enough so that face tracking can proceed using the approach described in the
following section: