remove code tha tis already in OpenCV