How to save the flann index in opencv for java

asked 2016-02-09 03:35:17 -0600

501 - not implemented gravatar image

Hello,

Can someone help me to save a trained flann index?

In time I serialize all descriptors to json and reoad all descriptors after the program is started.

For a lot of descriptors this takes a long time.

Is there another method to save the flann index with java?

edit retag flag offensive close merge delete

Comments

did you mean a DescriptorMatcher ? (afaik, flann::index is not avilable in java)

berak gravatar imageberak ( 2016-02-09 03:56:21 -0600 )edit

yes, i mean the DescriptorMatcher. Is there a work around?

501 - not implemented gravatar image501 - not implemented ( 2016-02-09 04:04:43 -0600 )edit

it has a read() / write() method, no ?

berak gravatar imageberak ( 2016-02-09 04:07:18 -0600 )edit

Can I use JavaCV to save a trained index?

501 - not implemented gravatar image501 - not implemented ( 2016-02-09 04:12:19 -0600 )edit

idk. javacv != opencv' s java wrappers. unsupported 3rd party api.

berak gravatar imageberak ( 2016-02-09 04:16:47 -0600 )edit

okay sorry, yes the DescriptorMatcher has read and write methods but I think it only used to load the properties for the matcher (algorithm,...)

501 - not implemented gravatar image501 - not implemented ( 2016-02-09 07:06:57 -0600 )edit

^^ ah, right. sorry i forgot that.

berak gravatar imageberak ( 2016-02-09 07:51:00 -0600 )edit