This repo is a fork of this adapted to opencv4 and added a cmake to find numpy
import pydbow3 as bow
voc = bow.Vocabulary()
voc.load("PyDBoW3/modules/dbow3/orbvoc.dbow3")
db = bow.Database()
db.setVocabulary(voc)
# extract features using OpenCV
...
# add features to database
for features in features_list:
db.add(features)
# query features
feature_to_query = 1
results = db.query(features_list[feature_to_query])
- OpenCV
- CMake
- clone the repo with
--recursive
- build and install
modules/DBoW3
usingdbow.sh
- install with
pip install .
- currently only
*nix
is supported
This work is based on https://github.com/foxis/pyDBoW3 and https://github.com/edmBernard/ybind11_opencv_numpy.git