10 #include "pipelines/database.h"
14 namespace reconstruction {
19 static const std::unordered_map<std::string, std::string>
22 "Path to database in which to store the extracted data"},
23 {
"first_database_path",
24 "The first imported database directory."},
25 {
"second_database_path",
26 "The other imported database directory"},
27 {
"merged_database_path",
"The merged database directory"},
28 {
"type",
"supported type {all, images, features, matches}"}};
31 m.def(
"clean_database", &CleanDatabase,
32 py::call_guard<py::gil_scoped_release>(),
33 "Function for the clearance of database",
"database_path"_a,
38 m.def(
"create_database", &CreateDatabase,
39 py::call_guard<py::gil_scoped_release>(),
40 "Function for the creation of database",
"database_path"_a);
44 m.def(
"merge_database", &MergeDatabase,
45 py::call_guard<py::gil_scoped_release>(),
46 "Function for the merge between two databases",
47 "first_database_path"_a,
"second_database_path"_a,
48 "merged_database_path"_a);
54 py::module m_submodule =
55 m.def_submodule(
"database",
"Reconstruction Database.");
void FunctionDocInject(py::module &pybind_module, const std::string &function_name, const std::unordered_map< std::string, std::string > &map_parameter_body_docs)
void pybind_database(py::module &m)
void pybind_database_methods(py::module &m)
static const std::unordered_map< std::string, std::string > map_shared_argument_docstrings
Generic file read and write utility for python interface.