Using SIFT/SURF obj. detection with Android

asked 2016-02-26 04:26:34 -0600

panc gravatar image

Hi guys,

I'm working again on a shelf detector (detects product on a shelf and cut them into images) but the last approach (using hist inspection, as mentioned in my previous question) did not suited for my purposes.

So, my tutor told me to try to use an object detection algorithm like SIFT or SURF and use the features extracted from a template image to detect other products.

Because the products differ in their "contents", i.e. logos and drawings on their covers, my idea is to use object detection and then tell to do opencv something like this:

1)get descriptors 2)match all the part of the test image that has a % of keys (not 100% match) > of TOT%

so I have to write an algorithm that selects objects in the test image that has a % of keys matching the template image.

Is this possible with opencv?

Thank you in advance, Panc

edit retag flag offensive close merge delete


  • SIFT & SURF are not available from java (try AKAZE/ORB)
  • there will be several items of a kind in your image. i doubt, that the objdetect idea works nicely here.
berak gravatar imageberak ( 2016-02-26 05:45:40 -0600 )edit

hi, thank you for the reply.

I know that sift and surf are nonfree, but I didn't heard that they arent implemented in java, i know that I have to recompile openCV with the nonfree module.

In your opinion, which are the best methodologies for this type of problem? thanks!

panc gravatar imagepanc ( 2016-02-27 03:44:12 -0600 )edit

"i know that I have to recompile openCV with the nonfree module." - that is unfortunately only half of the job. you also need to modify some intenals of the java wrappers, and then - this would be a local-only solution, since other users of your app will need the opencv-manager, and thus won't get your fix.

berak gravatar imageberak ( 2016-02-27 04:10:08 -0600 )edit

thank you so far. I didn't know that is not so simple as I thought. In your opinion which type of methodology can i follow to achieve my goal?

panc gravatar imagepanc ( 2016-02-29 05:17:24 -0600 )edit

@panc, Did you get the project working?

sengsational gravatar imagesengsational ( 2017-05-17 11:13:33 -0600 )edit