ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
You just wait for 10 miliseconds for a key input on every image.
if(waitKey(10) != 'y')
{
face = detectAndDisplay(cv_ptr->image);
}
I don't think that's enough time four you to press the key in the right moment ;)
Wait for something like 2-3 seconds to have enough time to press the right key, if that's not an option you need to think about a design change (maybe put the image display in an extra thread).
Hope that helps.
2 | No.2 Revision |
You just wait for 10 miliseconds for a key input on every image.
if(waitKey(10) != 'y')
{
face = detectAndDisplay(cv_ptr->image);
}
I don't think that's enough time four for you to press the key in the right moment ;)
Wait for something like 2-3 seconds some more to have enough time be able to press the right key, if that's not an option you need may want to think about a design change (maybe put the image display in an extra thread).
Hope that helps.