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

Move ORB to SIFT feature detection #6

Open
khufkens opened this issue Mar 29, 2024 · 3 comments
Open

Move ORB to SIFT feature detection #6

khufkens opened this issue Mar 29, 2024 · 3 comments

Comments

@khufkens
Copy link
Collaborator

SIFT is now off patent and should be better than ORB feature matching for the template matching routine

@derrickmuheki
Copy link
Collaborator

I've just had a quick try with this and i get the figure attached here.
template_matched.pdf
using the figures below:
Uploading form_82_13.jpg…
Uploading IMG_1311.JPG…

It seems there are diagonal matches detected even though that shouldn't be the case. Perhaps, I need to check my code more. i used the Brute Force Matching with SIFT described here: https://docs.opencv.org/4.x/dc/dc3/tutorial_py_matcher.html

@khufkens
Copy link
Collaborator Author

khufkens commented Apr 2, 2024

There is a lot of filtering afterwards, also note that the template does not match the target in content. This is a different format. Note the switch in the label on the left! These things are sensitive to these changes. You should also remove or trim the template to be as small as possible (not include the black border - the same goes for the target page but I think this is covered in the routine).

@derrickmuheki
Copy link
Collaborator

**Update. I've over the past weeks made some good progress on the transcribing and will update the github in the next days after cleaning up. I used k-means clustering for ensuring the bounding boxes are placed in the right locations in the output excel file and it works well for the few sheets that I've tested it on. We'll see how it performs on more different images.

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

2 participants