| 
    GECKO 1.0 
   Human-computer interface based on hand gesture recognition 
   | 
 
 Tracks and covers the faces that appear in the image. The faces are covered with a square so they do not interfere with the rest of the segmentation. 
 {
    //-- Allocate the dst matrix if empty:
    if ( dst.total() == 0)
            dst = src.clone();
    //-- Plot the bounding rectangles:
    if ( !lastFacesPos.empty() )
    {
        std::cout << "[Debug] Detected " << lastFacesPos.size() << " face(s)." << std::endl;
        for ( int i = 0; i < lastFacesPos.size(); i++)
            cv::rectangle( dst, lastFacesPos[i], color, thickness );
    }
}
 | 
  
 1.7.4