Skip to content

Bug in Python-Motion-Detector #1

@Botnet123

Description

@Botnet123

Error: (,cnts,) = cv2.findContours(thres_frame.copy(), cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE)
ValueError: not enough values to unpack (expected 3, got 2)

Solution:When i changed that (,cnts,) to cnt,_ then its working properly.
cnt here is None Type,since the update we have to define:
cnts,_ = cv2.findContours(thres_frame.copy(), cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE)

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