Ask Your Question
-1

ORB implementation in Java(Android package)

asked 2019-03-20 13:01:38 -0600

LiorA gravatar image

updated 2019-03-21 07:23:39 -0600

Hi,

Im searching for a simple implementation of comparison , between two images using java (Android package). Using non-deprecated functions..

Any help would be welcomed..

edit retag flag offensive close merge delete

Comments

1

i'm vaguely guessing: you read a silly blog post, that recommended using ORB features for image comparison.

a doomed idea. feature matching can be used to find the position of a known part of the scene but not for comparing arbitrary images for similarity.

back to the drawing board (aka own research) for you.

berak gravatar imageberak ( 2019-03-21 02:39:19 -0600 )edit

I searching for it a while already..

I started with this, and this, and read here, and here , and here . and I have countless "here" 's.

opencv hard to understand (Im using 3.4.3 (Android)), part of the docs is not exists and every example that I find is Deprecated.

I understand that ORB(feature Det.) is the way that I need to take. But now I dont find any example or explanation how to use ORB with Non-Deprecated functions.

LiorA gravatar imageLiorA ( 2019-03-21 07:13:31 -0600 )edit

short comment : Hi, Thanks on the comment, I worked following this : see here.

I tried to do this

Feature detection is not my solution ?. ( everything I saw by now says it is..) I just searched for any example or explanation how to use ORB with Non-Deprecated functions..(Android package)

LiorA gravatar imageLiorA ( 2019-03-21 07:37:25 -0600 )edit

don't trust SO, esp. not questions from 2012...

again, you main problem is a poor understanding / description of this part:

for a simple implementation of comparison , between two images

that's far too broad / unspecific. what does it mean exactly ? are you trying to find duplicates ? same objects ? similar color schemes ?

you'll only run in circles, until you can clarify this (for your own, to start with)

berak gravatar imageberak ( 2019-03-22 04:47:27 -0600 )edit

Its the first step into to build an app that recognize parking signs all over the world.(college project).

As we need to solve small problems for understanding the library (opencv).

We will have a database of images (we will dynamically build it - according the GPS location of the user - because performance reasons ) . --> The user of the app will take a photograph of the sign, the app will need to find the most similar sign (photo) in the database.

We consider to use histograms, but we dont think it will be appropriate because all of the images will be similar.(same colors) Template matching, was also on our mind but, because the sign photograph can be taken in various angles, we thought to try first feature matching.

LiorA gravatar imageLiorA ( 2019-03-22 12:53:28 -0600 )edit

Part two: In the meantime we go with opencv 2.4.13.6 , because its almost two weeks and we dont find any example on the web in 3.4.*.

For a day progress we have the following code(opencv part): https://pastebin.com/d3MAr2LT

we have some small problems like : Imread need a path and we have a small problem to operate it in emulator of Android studio. and the exact work that happens in the 'Matching' part of the code. But at least we can write and finally starting making first's steps..

p.s : we dont need real time in this point.

LiorA gravatar imageLiorA ( 2019-03-22 13:05:15 -0600 )edit

of course that the "small problems" is ours to solve.

LiorA gravatar imageLiorA ( 2019-03-22 13:20:53 -0600 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2019-03-22 05:01:24 -0600

berak gravatar image

updated 2019-03-22 05:03:17 -0600

I just searched for any example or explanation how to use ORB with Non-Deprecated functions..

// use this for opencv 3 / 4:
ORB orb = ORB.create();
MatOfKeyPoint keypoints = new MatOfKeyPoint();
Mat descriptors = new Mat();
orb.detectAndCompute(img, new Mat(), keypoints, descriptors);
edit flag offensive delete link more

Comments

thanks mate

LiorA gravatar imageLiorA ( 2019-03-22 13:10:26 -0600 )edit
0

answered 2019-03-21 03:59:00 -0600

Orelox gravatar image
edit flag offensive delete link more

Comments

Hi, Thanks on the comment, for my understanding its not my solution.. see here.

I tried to do this

Feature detection is not my solution ?. I just searched for any example or explanation how to use ORB with Non-Deprecated functions..

LiorA gravatar imageLiorA ( 2019-03-21 07:22:30 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2019-03-20 13:00:07 -0600

Seen: 1,889 times

Last updated: Mar 22 '19