#include #include #include #include #include #include "aare/defs.hpp" #include "aare/Frame.hpp" #include "aare/FileHandler.hpp" namespace py = pybind11; PYBIND11_MODULE(_aare, m) { // helps to convert from std::string to std::filesystem::path py::class_(m, "Path") .def(py::init()); py::implicitly_convertible(); //TODO: find a solution to avoid code duplication and include other detectors py::class_(m, "_FileHandler") .def(py::init()) .def("get_frame", &FileHandler::get_frame); py::enum_(m, "DetectorType"); py::class_(m, "_Frame") .def(py::init()) .def("get", &Frame::get) .def_property_readonly("rows", &Frame::rows) .def_property_readonly("cols", &Frame::cols) .def_property_readonly("bitdepth", &Frame::bitdepth); }