Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert DBoW3 vocabulary to fbow #41

Closed
hellovuong opened this issue Sep 14, 2022 · 4 comments
Closed

Convert DBoW3 vocabulary to fbow #41

hellovuong opened this issue Sep 14, 2022 · 4 comments

Comments

@hellovuong
Copy link

Hello,
I have a DBoW3 vocabulary and I want to convert it to fbow format to use with this repo, Does anyone knows how to do it? I really appreciate any suggestions and advice!

@fightmoney
Copy link

Hello,bro!
You have great work which uses TBB on ORB_SLAM3. Do you convert your images to DBow3 vocabulary? How to combine it with ORB_SLAM3?

@hellovuong
Copy link
Author

Hello @fightmoney, Thank you for interesting in it. For sure I will do it soon.

@Wallong
Copy link

Wallong commented Nov 23, 2022

Hello @hellovuong, I have the same problem, have you found a solution?

@ehratjon
Copy link

ehratjon commented Jun 4, 2024

Not sure if this is relevant for anyone here, but I'll provide the solution that worked for me for anyone visiting in the future.

If you check the tests folder, you will see a file called dbow2fbow.cpp. This code can be used to convert DBoW to FBoW vocabularies.

So in the CMakeLists file in tests add the executable ADD_EXECUTABLE(dbow2fbow dbow2fbow.cpp dbow2/ScoringObject.cpp dbow2/BowVector.h dbow2/FClass.h dbow2/FeatureVector.h dbow2/FORB.h dbow2/ScoringObject.h dbow2/TemplatedVocabulary.h).

This will lead to some errors of the form

error: ‘struct DBoW2::TemplatedVocabulary<cv::Mat, DBoW2::FORB>::Node’ is protected within this context

I just changed the corresponding protected keywords to public in TemplatedVocabulary.h.
While it might not be best practice it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants