forked from zivid/zivid-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathReleasableFrame.cpp
More file actions
21 lines (18 loc) · 825 Bytes
/
ReleasableFrame.cpp
File metadata and controls
21 lines (18 loc) · 825 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <ZividPython/ReleasableFrame.h>
#include <pybind11/pybind11.h>
namespace py = pybind11;
namespace ZividPython
{
void wrapClass(pybind11::class_<ReleasableFrame> pyClass)
{
pyClass.def(py::init())
.def(py::init<const std::string &>(), py::arg("file_name"))
.def("save", &ReleasableFrame::save, py::arg("file_name"))
.def("load", &ReleasableFrame::load, py::arg("file_name"))
.def_property_readonly("settings", &ReleasableFrame::settings)
.def_property_readonly("state", &ReleasableFrame::state)
.def_property_readonly("info", &ReleasableFrame::info)
.def_property_readonly("camera_info", &ReleasableFrame::cameraInfo)
.def("point_cloud", &ReleasableFrame::pointCloud);
}
} // namespace ZividPython