-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython-bindings.cpp
More file actions
23 lines (18 loc) · 833 Bytes
/
python-bindings.cpp
File metadata and controls
23 lines (18 loc) · 833 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <filesystem>
#include "pybind11/pybind11.h"
#include "pybind11/stl.h" // for std::map
#include "pybind11/stl/filesystem.h"
#include "pybind11_opencv.hpp"
#include "mimetrik/FacebowFileReader.hpp"
namespace py = pybind11;
PYBIND11_MODULE(FacebowFileReader, m)
{
m.doc() = "Facebow MFBA file reader Python bindings";
py::class_<mimetrik::FacebowFileReader>(m, "FacebowFileReader")
.def(py::init<const std::filesystem::path&>(),
"Construct a FacebowFileReader object for the given MFBA file.")
.def("get_image_count", &mimetrik::FacebowFileReader::get_image_count,
"Returns the number of images in the MFBA file.")
.def("get_image", &mimetrik::FacebowFileReader::get_image, "Doc")
.def("get_metadata", &mimetrik::FacebowFileReader::get_metadata, "Doc");
}