Skip to content

Commit

Permalink
Merge branch 'missing_constructor' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Matevz Morato committed Jun 13, 2024
2 parents adb6882 + 22aed65 commit 3c5ead3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/DeviceBindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,10 @@ static void bindConstructors(ARG& arg){
py::gil_scoped_release release;
return std::make_unique<D>(pipeline, deviceInfo, pathToCmd);
}), py::arg("pipeline"), py::arg("devInfo"), py::arg("pathToCmd"), DOC(dai, DeviceBase, DeviceBase, 8))

.def(py::init([](const Pipeline& pipeline, const dai::DeviceInfo info){
py::gil_scoped_release release;
return std::make_unique<D>(pipeline, info);
}), py::arg("pipeline"), py::arg("deviceInfo"), DOC(dai, DeviceBase, DeviceBase, 9))
// DeviceBase constructor - OpenVINO version
.def(py::init([](OpenVINO::Version version){
auto dev = deviceSearchHelper<D>();
Expand Down

0 comments on commit 3c5ead3

Please sign in to comment.