GithubHelp home page GithubHelp logo

Comments (4)

rmislam avatar rmislam commented on June 28, 2024

Hi @ChargedMonk, can you please attach your two images here so I can debug?

from pythonsift.

ChargedMonk avatar ChargedMonk commented on June 28, 2024

Here are the two images -

Image 1

Image 2

from pythonsift.

rmislam avatar rmislam commented on June 28, 2024

@ChargedMonk I can't exactly reproduce your error, but I have an idea of what is happening. Probably very few keypoints are generated for your images. When I run the matching script with your images on my computer, I only generate 9 keypoints, which is enough to generate a homography. However, possibly on your machine, there are fewer than 4 keypoints generated.

When you run template_matching_demo.py on your machine, what is the length of the list variable good? This is the number of keypoint matches. If there are too few points, I can suggest some threshold changes in the demo script for you.

from pythonsift.

rmislam avatar rmislam commented on June 28, 2024

I also realize you must have reduced the value of MIN_MATCH_COUNT at the top of the script. I've set this to 10 specifically to avoid this problem. You need at least 4 keypoints to generate a unique homography, and typically around 10 keypoints for the homography to be stable. If you can't generate enough keypoints, I suggest you try higher resolution images.

I'm going to close this issue because it's not an issue with the actual code -- it's just that not enough keypoints are generated for your particular images.

from pythonsift.

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.