Detection using cv2 operations