use `cv2.cv` if importing `cv` fails

... as in https://github.com/thumbor/thumbor/blob/master/thumbor/detectors/local_detector.py