How to save the flann index in opencv for java

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

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 -0500 )edit

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

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

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

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

Can I use JavaCV to save a trained index?

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

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

berak gravatar imageberak ( 2016-02-09 04:16:47 -0500 )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 -0500 )edit

^^ ah, right. sorry i forgot that.

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