Skip to content

Commit

Permalink
Remove duplicate frame rotation.
Browse files Browse the repository at this point in the history
  • Loading branch information
ernestvmo committed May 23, 2022
1 parent ed2327e commit a0f38f2
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion ObjectDetection/ball_detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ def __init__(self, ball_color="red", offset=0, fire_trigger_timing=20, minimum_s
self.minimum_size = minimum_size

def check_for_object(self, frame, render=False):
frame = cv2.rotate(frame, cv2.ROTATE_180)
hsv = cv2.cvtColor(frame, cv2.COLOR_BGR2HSV)

red_mask = cv2.inRange(hsv, self.color_lower, self.color_upper)
Expand Down

0 comments on commit a0f38f2

Please sign in to comment.