object selection in video using opencv library in C++