Skip to content

Video_Functions.py's cv2.estimateRigidTransform is deprecated  #1

@Xawwell

Description

@Xawwell

perform projective transform

M = cv2.estimateRigidTransform(background_data[1], arena_data[1], False)

You should modify the code to this

# perform projective transform
        M, inliers = cv2.estimateAffine2D(background_data[1], arena_data[1])
        if M is None:
            print("Transformation estimation failed.")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions