def getGoalArea(image): gol = Goal() tol = gol.find_goal_single_image(image) print("goal is at x = {}".format(tol)) area = tol[2] * tol[3] print("The area is {}".format(area)) return area
def getGoalCord(image): gol = Goal() x, y, w, h = gol.find_goal_single_image(image) return x, y, w, h
def goalWidth(image): gol = Goal() tol = gol.find_goal_single_image(image) goal_width = tol[2] return goal_width