Questions tagged [flannbasedmatcher]

17 questions
8
votes
1 answer

How do I use the relationships between Flann matches to determine a sensible homography?

I have a panorama image, and a smaller image of buildings seen within that panorama image. What I want to do is recognise if the buildings in that smaller image are in that panorama image, and how the 2 images line up. For this first example, I'm…
Andrew
  • 7,693
  • 11
  • 43
  • 81
4
votes
1 answer

OpenCV python FlannBasedMatcher add multiple descriptors

I'm trying to detect an image using SURF following the tutorial (https://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_feature2d/py_matcher/py_matcher.html) My goal is now to add multiple images to FlannBasedMatcher and then save…
suizo
  • 531
  • 8
  • 24
4
votes
1 answer

FlannBasedMatcher returning different results

Using the FlannBasedMatcher in OpenCV, I am getting different results calling the matcher with the same parameters. Can anyone suggest what I am doing wrong please? The code below shows a minimal example of the problem I am having - it is simplified…
cdmh
  • 3,294
  • 2
  • 26
  • 41
2
votes
2 answers

FLANN for OpenCV Java

The FLANN matcher in OpenCV C++ works fine, but from looking around it seems that there is no wrapper for FlannBasedMatcher in OpenCV Java, but I have found two possible(?) workarounds which I am not quite sure how to use. The first is an answer to…
Valckrie
  • 23
  • 1
  • 5
2
votes
0 answers

Making FLANN matcher editable and savable to disk?

I have my FLANN matcher here: flann_params = dict(algorithm = 1, trees = 4) matcher = cv2.FlannBasedMatcher(flann_params, {}) I add descriptors of training images to it in a loop and then I train…
bad_keypoints
  • 1,382
  • 2
  • 23
  • 45
1
vote
1 answer

The first-time-FlannBasedMatcher influence the result of the later FlannBasedMatcher

I use FlannBasedMatcher twice in my project, but it seems like the first FlannBasedMatcher is affecting the results of the second…
1
vote
0 answers

OpenCV FlannBasedMatcher gives different result when using for one pair image matching and when using for couple of pair image matching

I want to find a template image on some scene images. So I try to find Homography between scene images and template image. I'm using OpenCV and c++. First using SURF to find descriptors for image and template. Then using FlannBasedMatcher to get…
Ahmad
  • 109
  • 1
  • 11
1
vote
2 answers

OpenCV and DAISY descriptors

I am trying to do feature matching between 2 perspectives of the same image using DAISY and the FlannBasedMatcher. I don't think there is even a single match that is correct. Note: I also get different results each time I run the program but I think…
1
vote
1 answer

Output FLANN results in python

I am currently implementing LSH using FLANN. matches = flann.knnMatch(des1,k=2) des1 is a binary descriptor of my query image & flann is the flanbasedmatcher (using the FLANN LSH algo) variable which has all the binary descriptor of an image…
GStack
  • 33
  • 5
1
vote
1 answer

OpenCV - loading descriptors from yml - no matching function call

I'm trying to match SURF keypoints from a template image to what is being shown in a video feed but I am getting the following errors when trying to call FlannBasedMatcher. captureFromCam.cpp: In function ‘void matchAndDrawKeypoints(cv::Mat,…
Colin747
  • 4,955
  • 18
  • 70
  • 118
0
votes
0 answers

openCV-python flannbasedmatcher to compare 2 images

First of all, sorry for the title, I didn't know how to name it. Now, I am using openCV to compare 2 images. The code has been taken from…
Azazel
  • 183
  • 1
  • 1
  • 10
0
votes
1 answer

Issue converting KeyPoints to and from JSON and then using FlannBasedMatcher

I'm saving my KeyPoints and Descriptors in a JSON file. Later when I retrieve them, I am trying to use them in a FlannBasedMatcher. However, I think something is going wrong in the conversion because I am getting the following error. cv2.error:…
Anters Bear
  • 1,816
  • 1
  • 15
  • 41
0
votes
1 answer

Problem with imgIdx in DMatch class using FlannBasedMatcher in Python

I have the same issue as here: how to access best image corresponding to best keypoint match using opencv flannbasedmatcher and dmatch Unfortunately, this post doesn't have an answer. I have several images (and corresponding descriptors), that I add…
whiteShadow
  • 369
  • 4
  • 19
0
votes
1 answer

opencv program crash after matching descriptors

I'm using SIFT descriptor and FLANN matcher to get the minimum distance of the matches between two pictures. The first picture is a query picture and the second picture is from the dataset. I want to load the second picture one by one using a loop,…
Wendy
  • 1
  • 2
0
votes
2 answers

passing index Parameters for Flann matcher using opencv on android

I'm trying to customize the Flann matcher in opencv by editing the index parameters, but I'm using java for android, and I don't know how exactly it works. I found this answer but I don't know how to apply it in a correct way here is the code I've…
Lisa.s
  • 77
  • 1
  • 13
1
2