Save a BOWImgDescriptorExtractor?

43 views
Skip to first unread message

Amrita

unread,
Aug 20, 2015, 10:19:53 PM8/20/15
to javacv
Hi everyone,

I'm using the most recent version of JavaCV and trying to save a  BOWImgDescriptorExtractor for later use. So far I've tried using opencv_core.write(fileStorage, "bowDesEx"), but it produces a blank file with no extension. Also looked at opencv_core.PCA.write(fileStorage), but that doesn't seem to exist in the current version or I've missed something. In any case, I need some help. Does anyone know how to save a BOWImgDescriptorExtractor and how to load it from a saved file?

Thanks in advance for any help.

Samuel Audet

unread,
Aug 22, 2015, 10:22:59 PM8/22/15
to jav...@googlegroups.com
AFAIU, we can get the data with getVocabulary(), save that disk, and
reset it back with setVocabulary()... Does that procedure accomplish
what you need?

Samuel

Amrita

unread,
Aug 24, 2015, 10:53:40 AM8/24/15
to javacv
Hi Samuel,

Yes, that's what I eventually ended up doing. Worked like a charm. Thank you.
Reply all
Reply to author
Forward
0 new messages