Question Vocabulary file
Droppix opened this issue · 2 comments
Droppix commented
Hi,
1/ Can I build database without Vocabulary file ?
I have a crash. (Have you an example?)
2/ Is it possible to append the vocabulary file?
To be more precise, I have files that will be added in time (uploaded by users), and therefore I would like to avoid rebuilding the vocabulary file every time a file is added.
3/ Is it possible replace file database (yml) by a database (cf. MongoDB) ?
Thanks
Regards
dorian3d commented
Hi Ribert,
- The database indexes images in their bow representation, so it's not possible to use it without a vocabulary.
- My implementation does not deal with incremental vocabulary creation, so I'm afraid you have to recreate it if you want to update it. However, you can add images to a database that is based on a generic vocabulary.
- The current implementation doesn't use any format other than the yml one. It's text-based (after unzipped if necessary), and the format is not difficult if you look at the source code. So you may want to write a script to convert to yml from other formats.
Droppix commented
Thanks for your response.
So, I modified "TemplatedDatabase.h" for customization the output (load, add), for write directly in the database, and add the possiblity to remove.