Convert to cv2 interface.