Convert Matplotlib Plot To Opencv University