forked from luxonis/depthai-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpy_bindings.cpp
More file actions
56 lines (43 loc) · 1.29 KB
/
Copy pathpy_bindings.cpp
File metadata and controls
56 lines (43 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#include <exception>
#include <fstream>
#include <iostream>
#include <list>
#include <memory>
#include <string>
#include <vector>
// pybind11
#include "pybind11_common.hpp"
// depthai-core
#include "depthai/build/version.hpp"
// project
#include "depthai/depthai.hpp"
#include "pipeline/AssetManagerBindings.hpp"
#include "pipeline/PipelineBindings.hpp"
#include "pipeline/CommonBindings.hpp"
#include "pipeline/NodeBindings.hpp"
#include "XLinkConnectionBindings.hpp"
#include "DeviceBindings.hpp"
#include "DeviceBootloaderBindings.hpp"
#include "DatatypeBindings.hpp"
#include "DataQueueBindings.hpp"
#include "openvino/OpenVINOBindings.hpp"
#include "log/LogBindings.hpp"
PYBIND11_MODULE(depthai,m)
{
// Depthai python version consists of: (depthai-core).(bindings revision)[+bindings hash]
m.attr("__version__") = DEPTHAI_PYTHON_VERSION;
// Add bindings
OpenVINOBindings::bind(m);
AssetManagerBindings::bind(m);
NodeBindings::bind(m);
PipelineBindings::bind(m);
XLinkConnectionBindings::bind(m);
DeviceBindings::bind(m);
DeviceBootloaderBindings::bind(m);
CommonBindings::bind(m);
DatatypeBindings::bind(m);
DataQueueBindings::bind(m);
LogBindings::bind(m);
// Call dai::initialize on 'import depthai' to initialize asap
dai::initialize();
}