pybindSrc/pyStag.cpp
void declearType_Stag_Detector(py::module &m) {
  py::class_<Stag>(m, "Detector")
      .def(py::init<>())
      .def(py::init<int, int, bool>(), "libraryHD"_a, "errorCorrection"_a,
           "inKeepLogs"_a)
      .def("detect", &Stag::detectMarkers, "inImage"_a)
      .def("log2File", &Stag::logResults, "path"_a)
      .def("getContours", &Stag::getContours)
      .def("getIds", &Stag::getIds);
}
// this is a simple warpping of the Stag detector.
// you can add your customized function or varialbes interface as fllow.
this is a simple warpping of the Stag detector.
you can add your customized function or varialbes interface as fllow.
this is a simple warpping of the Stag detector . you can add your customized function or varialbes interface as fllow .
void declearType_Stag_Detector(py::module &m) {
  py::class_<Stag>(m, "Detector")
      .def(py::init<>())
      .def(py::init<int, int, bool>(), "libraryHD"_a, "errorCorrection"_a,
           "inKeepLogs"_a)
      .def("detect", &Stag::detectMarkers, "inImage"_a)
      .def("log2File", &Stag::logResults, "path"_a)
      .def("getContours", &Stag::getContours)
      .def("getIds", &Stag::getIds);
}
void declearType_Stag_Detector ( py :: module & m ) { py :: class_ < Stag > ( m , " " ) . def ( py :: init < > ( ) ) . def ( py :: init < int , int , bool > ( ) , " " _a , " " _a , " " _a ) . def ( " " , & Stag :: detectMarkers , " " _a ) . def ( " " , & Stag :: logResults , " " _a ) . def ( " " , & Stag :: getContours ) . def ( " " , & Stag :: getIds ) ; }
this is a simple warpping of the Stag detector.
this is a simple warpping of the Stag detector .