Annotate.cpp
bool Annotate::userVideoControls(bool& pause)
{
    char key = cv::waitKey(delay);
    if (key == char('q'))
    {
    	//std::cout << "Video closed." << std::endl;
    	return false;
    }
    else if (key == char('p'))
    {
    	//if (!pause) { std::cout << "Video paused." << std::endl; }
    	//else { std::cout << "Video unpaused." << std::endl; }
    	pause = !pause;
    	return true;
    }
    else { return true; }
}
/**
 * Grabs keyboard video controls from user.
 *
 * @param[out]	pause	true if user paused video, else false
 *
 * @return  false if user presses 'q', else true
 */
Grabs keyboard video controls from user.
@param[out]  pause   true if user paused video, else false

@return  false if user presses 'q', else true
Grabs keyboard video controls from user . @param [ out ] pause true if user paused video else false @return false if user presses ' q ' else true
bool Annotate::userVideoControls(bool& pause)
{
    char key = cv::waitKey(delay);
    if (key == char('q'))
    {
    	return false;
    }
    else if (key == char('p'))
    {
    	pause = !pause;
    	return true;
    }
    else { return true; }
}
bool Annotate :: userVideoControls ( bool & pause ) { char key = cv :: waitKey ( delay ) ; if ( key == char ( ' ' ) ) { return false ; } else if ( key == char ( ' ' ) ) { pause = ! pause ; return true ; } else { return true ; } }
Grabs keyboard video controls from user.
Grabs keyboard video controls from user .
//std::cout << "Video closed." << std::endl; //if (!pause) { std::cout << "Video paused." << std::endl; } //else { std::cout << "Video unpaused." << std::endl; }