def find_contours(image):
# Attempt to locate the goals by finding all contours not enclosed within another.
_, contours, _ = cv2.findContours(image, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_TC89_KCOS)
return contours
文章目录