Skip to content

Commit 6e53b41

Browse files
committed
Added depthai initialization on module load
1 parent fe96436 commit 6e53b41

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/py_bindings.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include "depthai/build/version.hpp"
1515

1616
// project
17+
#include "depthai/depthai.hpp"
1718
#include "pipeline/AssetManagerBindings.hpp"
1819
#include "pipeline/PipelineBindings.hpp"
1920
#include "pipeline/NodeBindings.hpp"
@@ -51,6 +52,9 @@ PYBIND11_MODULE(depthai,m)
5152
DataQueueBindings::bind(m);
5253

5354

55+
// Call dai::initialize on 'import depthai' to initialize asap
56+
dai::initialize();
57+
5458
}
5559

5660

0 commit comments

Comments
 (0)