according to the documentation, its possible to convert an KeyPoint into a point2f…
Well im trying to convert an array of keyPoints from cvOrb.
let orb = new cv.ORB();
cv.cvtColor(object.im, object.gray, cv.COLOR_RGBA2GRAY, 0);
orb.detectAndCompute(object.gray, new cv.Mat(), object.kp, object.descriptors);
let t = new cv.Mat();
well, i want to do this, because i need to load 40 images everytime i start this app… and it takes time to generate all the keypoints needed. then i could boost the load of the app
instead of needing to load all the images, i could just load a file with keypoints, and the features matrix.
well, the matching uses descriptors only , so it’s far more imprtant to save those
last, this sounds, like you ty to match a query image to a “gallery” – what is the purpose of it ? if it’s “finding similar images”, you’re probably on the wrong bus, the matching process here is the wrong approach for that (lookup “BagOfWords” then)
are you sure? In here the ORB detectAndCompute is using the keypoints.
this.matcher.orb.detectAndCompute(this.scene.gray, new cv.Mat(), this.scene.kp, this.scene.descriptors);
Anyway I am more focus on just solving on how-to store the keypoints, not on how to detect Images. because that has been debated before and we are happy ORB for our purpose. Anyway i didn’t understand what is your suggestion about that. can you make it more clear? thanks
sorry i didnt explain. so we have a collection of many images that need to be detect using a camera in the real world. When an image is detected the app will redirect the person to a specific url, image, sound, video, or even an AR mode using jsartoolkit5
nice, that you could finish this (without any docs or tuts !)
we now also have a working js example for feature matching here, good !
(ppl will come for this !)
as long as ALL your images come from the (same) camera, it might even give meaningful matching results (just DONT add a feature, where users can upload their own images, then it’ll break, comparing apples to pears)
im finishing up an example on how-to to use it
what do you mean from the same camera? it works with many different setups. lemme finish this example
I used many tutorials, and different stuff. opencv is cool!
So what i want to do is to store the object descriptors in the local storage of the browser or as a file (generated previously)
I wonder if generating it previously bring problems, but i will make some tests. the issue is that i use the videoWidth to calculate the descriptors, but it seems a bit irrelevant, since the image size changes on the camera image too…