GECKO 1.0
Human-computer interface based on hand gesture recognition
void HandDetector::drawFaceMarks ( const cv::Mat &  src,
cv::Mat &  dst,
cv::Scalar  color = cv::Scalar(0, 255, 0),
int  thickness = 1 
)

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.

Parameters:
srcOriginal image coming from the video input.
dstOutput image with the squares over the faces.
colorColor of the squares, default is black.
thicknessThickness of the square drawn over the faces.
{
    //-- 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 );
    }

}
 All Classes Functions Variables