Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/source/components/pipeline.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ The reason behind this is that OpenVINO doesn't provide version inside the blob.

pipeline = depthai.Pipeline()
# Set the correct version:
pipeline.setOpenVINOVersion(depthai.OpenVINO.Version.VERSION_2020_1)
pipeline.setOpenVINOVersion(depthai.OpenVINO.Version.VERSION_2021_4)

How to place it
###############
Expand Down
9 changes: 4 additions & 5 deletions src/openvino/OpenVINOBindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,18 @@ void OpenVINOBindings::bind(pybind11::module& m){
;

// not strongly typed enum OpenVINO::Version
// previous step defined class 'OpenVINO' (variable 'openvino')
// previous step defined class 'OpenVINO' (variable 'openvino')
// which is used in defining the following enum (its scope)
// and that the values are available directly under OpenVINO.VERSION_2020_1, ...
// and that the values are available directly under OpenVINO.VERSION_2021_4, ...
// they are exported
// By default, pybind creates strong typed enums, eg: OpenVINO::Version::VERSION_2020_1
// By default, pybind creates strong typed enums, eg: OpenVINO::Version::VERSION_2021_4
py::enum_<OpenVINO::Version>(openvino, "Version", DOC(dai, OpenVINO, Version))
.value("VERSION_2020_1", OpenVINO::Version::VERSION_2020_1)
.value("VERSION_2020_2", OpenVINO::Version::VERSION_2020_2)
.value("VERSION_2020_3", OpenVINO::Version::VERSION_2020_3)
.value("VERSION_2020_4", OpenVINO::Version::VERSION_2020_4)
.value("VERSION_2021_1", OpenVINO::Version::VERSION_2021_1)
.value("VERSION_2021_2", OpenVINO::Version::VERSION_2021_2)
.value("VERSION_2021_3", OpenVINO::Version::VERSION_2021_3)
.value("VERSION_2021_4", OpenVINO::Version::VERSION_2021_4)
.export_values()
;

Expand Down