Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
betab0t committed Apr 24, 2019
1 parent adbfd57 commit c2fcd9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nodes/simple_ball_tracker_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def filter_non_red_colors(rgb_image):

@staticmethod
def _find_contours_cross_opencv_versions(image):
if cv2.getVersionMajor() == 3:
if cv2.__version__.startswith('3'):
_, contours, _ = cv2.findContours(image, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)
else:
contours, _ = cv2.findContours(image, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)
Expand Down

0 comments on commit c2fcd9d

Please sign in to comment.