switch to cv2 syntax