Skip to content

Commit

Permalink
Fix handling grey input frames
Browse files Browse the repository at this point in the history
  • Loading branch information
WillB97 committed May 21, 2024
1 parent d6c8113 commit 6464c09
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions april_vision/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ def from_colour_frame(
"""Load frame from a colour image in a numpy array."""
if colourspace is not None:
grey_frame = cv2.cvtColor(colour_frame, colourspace)
else:
grey_frame = colour_frame.copy()

return cls(
grey_frame=grey_frame,
Expand Down

0 comments on commit 6464c09

Please sign in to comment.