GithubHelp home page GithubHelp logo

error: (-28:Unknown error code -28) The input arrays should have at least 4 corresponding point sets to calculate Homography in function 'findHomography' about norfair HOT 6 CLOSED

utility-aagrawal avatar utility-aagrawal commented on September 27, 2024
error: (-28:Unknown error code -28) The input arrays should have at least 4 corresponding point sets to calculate Homography in function 'findHomography'

from norfair.

Comments (6)

aguscas avatar aguscas commented on September 27, 2024 1

The reason might be because that bug was fixed not long ago, but the fix is still not part of the latest release. Maybe try installing Norfair from the master branch:

pip install git+https://github.com/tryolabs/norfair.git@master#egg=norfair

Tell me if this fixes the issue.

from norfair.

aguscas avatar aguscas commented on September 27, 2024 1

If you want to avoid having that warning (so that you always estimate the transformation), you can also try setting the max_points argument of the MotionEstimator to a higher value (so that it tries sampling more points), or the min_distance argument to a smaller value (so that we allow to sample points that are closer to each other).

from norfair.

utility-aagrawal avatar utility-aagrawal commented on September 27, 2024

Thanks a lot, @aguscas !

Installing from master seemed to work. I do get the following warning though:

image

Does this mean that transformation will be skipped for the frame in case of this issue but everything else will work fine?

from norfair.

aguscas avatar aguscas commented on September 27, 2024

Everything should work fine. That means that the coord_transformation will not be updated in that frame (the MotionEstimator will return the latest transformation it could estimate). As long as that doesn't happen often it shouldn't be a problem with the coord_transformation, since typically a single frame shouldn't affect that much at the coordinate_transformation.

from norfair.

utility-aagrawal avatar utility-aagrawal commented on September 27, 2024

Makes sense! Closing this issue. Again, thanks so much for your help!

from norfair.

utility-aagrawal avatar utility-aagrawal commented on September 27, 2024

For now, it's not an issue for me but I'll experiment with those two parameters. Thanks a lot!

from norfair.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.