Image processing using OpenCv, Python