Changed to C++ OpenCV