fall back to cv if cv2 is not available