|
GECKO 1.0
Human-computer interface based on hand gesture recognition
|
Plot the center of the hand on display. {
//-- Allocate the display matrix if needed:
if ( dst.total() == 0 )
dst = src.clone();
//-- Plot center
if ( _hand_found )
{
if ( show_predicted )
//-- Print predicted point on screen:
cv::circle( dst, _hand_center_prediction, 4, cv::Scalar( 0, 255, 0), 2 );
if ( show_actual )
//-- Print cog on screen:
cv::circle( dst, _hand_center, 5, cv::Scalar( 255, 0, 0), 2 );
if ( show_corrected )
//-- Print estimation on screen:
cv::circle( dst, _hand_center_estimation, 3, cv::Scalar( 0, 0, 255), 2 );
}
}
|
1.7.4