Skip to content

ValueError in DetectBall.detect_ball_position(Image) of BallTracker.py #1

@sarveshpro

Description

@sarveshpro

I get the Following ValueError while running TableSoccer.py

log -
PS I:\TableSoccerCV> python TableSoccer.py Session started 192.9516106247902 Please put the ball an the center spot! Calibration starts - 5 seconds for positioning... 1.059940684013998 Calibration succeeded 6.306161969713371 Traceback (most recent call last): File "TableSoccer.py", line 140, in <module> DetectBall.detect_ball_position(Image) File "I:\TableSoccerCV\BallTracker.py", line 110, in detect_ball_position im2, contours, hierarchy = cv2.findContours(mask, cv2.RETR_TREE, cv2.CHAIN_APPROX_NONE) ValueError: not enough values to unpack (expected 3, got 2)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions