Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Xawwell opened this issue Oct 13, 2023 · 0 comments
Open

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

Xawwell opened this issue Oct 13, 2023 · 0 comments

Comments

@Xawwell
Copy link

Xawwell commented Oct 13, 2023

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.")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant