Using cv2 for region detection