Experimental code with OpenCv in C++ and Python