Object detection using C++ and opencv