HomeWork Implementation using OpenCV+Python