Skip to content

Commit

Permalink
Merge branch 'release_2.20.1.0' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
themarpe committed Jan 24, 2023
2 parents b4ca86b + f579f50 commit 4d7264b
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion examples/Camera/camera_preview.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import time

# Connect to device and start pipeline
with dai.Device(dai.OpenVINO.DEFAULT_VERSION, dai.UsbSpeed.SUPER_PLUS) as device:
with dai.Device() as device:
# Device name
print('Device name:', device.getDeviceName())
# Bootloader version
Expand Down
3 changes: 1 addition & 2 deletions examples/calibration/calibration_flash.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/env python3

from pathlib import Path
import cv2
import depthai as dai
import argparse

Expand All @@ -13,7 +12,7 @@
args = parser.parse_args()

# Connect device
with dai.Device(dai.OpenVINO.VERSION_2021_4, dai.UsbSpeed.HIGH) as device:
with dai.Device(dai.OpenVINO.VERSION_UNIVERSAL, dai.UsbSpeed.HIGH) as device:

deviceCalib = device.readCalibration()
deviceCalib.eepromToJsonFile(calibBackUpFile)
Expand Down
4 changes: 2 additions & 2 deletions src/DeviceBindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ static void bindConstructors(ARG& arg){
auto dev = deviceSearchHelper<D>();
py::gil_scoped_release release;
return std::make_unique<D>(version, dev);
}), py::arg("version") = OpenVINO::DEFAULT_VERSION, DOC(dai, DeviceBase, DeviceBase, 10))
}), py::arg("version") = OpenVINO::VERSION_UNIVERSAL, DOC(dai, DeviceBase, DeviceBase, 10))
.def(py::init([](OpenVINO::Version version, bool usb2Mode){
auto dev = deviceSearchHelper<D>();
py::gil_scoped_release release;
Expand Down Expand Up @@ -491,7 +491,7 @@ void DeviceBindings::bind(pybind11::module& m, void* pCallstack){
.def_static("getAnyAvailableDevice", [](){ return DeviceBase::getAnyAvailableDevice(); }, DOC(dai, DeviceBase, getAnyAvailableDevice, 2))
.def_static("getFirstAvailableDevice", &DeviceBase::getFirstAvailableDevice, py::arg("skipInvalidDevices") = true, DOC(dai, DeviceBase, getFirstAvailableDevice))
.def_static("getAllAvailableDevices", &DeviceBase::getAllAvailableDevices, DOC(dai, DeviceBase, getAllAvailableDevices))
.def_static("getEmbeddedDeviceBinary", py::overload_cast<bool, OpenVINO::Version>(&DeviceBase::getEmbeddedDeviceBinary), py::arg("usb2Mode"), py::arg("version") = OpenVINO::DEFAULT_VERSION, DOC(dai, DeviceBase, getEmbeddedDeviceBinary))
.def_static("getEmbeddedDeviceBinary", py::overload_cast<bool, OpenVINO::Version>(&DeviceBase::getEmbeddedDeviceBinary), py::arg("usb2Mode"), py::arg("version") = OpenVINO::VERSION_UNIVERSAL, DOC(dai, DeviceBase, getEmbeddedDeviceBinary))
.def_static("getEmbeddedDeviceBinary", py::overload_cast<DeviceBase::Config>(&DeviceBase::getEmbeddedDeviceBinary), py::arg("config"), DOC(dai, DeviceBase, getEmbeddedDeviceBinary, 2))
.def_static("getDeviceByMxId", &DeviceBase::getDeviceByMxId, py::arg("mxId"), DOC(dai, DeviceBase, getDeviceByMxId))
.def_static("getAllConnectedDevices", &DeviceBase::getAllConnectedDevices, DOC(dai, DeviceBase, getAllConnectedDevices))
Expand Down
1 change: 1 addition & 0 deletions src/openvino/OpenVINOBindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ void OpenVINOBindings::bind(pybind11::module& m, void* pCallstack){
.value("VERSION_2021_3", OpenVINO::Version::VERSION_2021_3)
.value("VERSION_2021_4", OpenVINO::Version::VERSION_2021_4)
.value("VERSION_2022_1", OpenVINO::Version::VERSION_2022_1)
.value("VERSION_UNIVERSAL", OpenVINO::Version::VERSION_UNIVERSAL)
.export_values()
;
// DEFAULT_VERSION binding
Expand Down
2 changes: 1 addition & 1 deletion src/pipeline/PipelineBindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ void PipelineBindings::bind(pybind11::module& m, void* pCallstack){
.def("unlink", &Pipeline::unlink, DOC(dai, Pipeline, unlink), DOC(dai, Pipeline, unlink))
.def("getAssetManager", static_cast<const AssetManager& (Pipeline::*)() const>(&Pipeline::getAssetManager), py::return_value_policy::reference_internal, DOC(dai, Pipeline, getAssetManager))
.def("getAssetManager", static_cast<AssetManager& (Pipeline::*)()>(&Pipeline::getAssetManager), py::return_value_policy::reference_internal, DOC(dai, Pipeline, getAssetManager))
.def("setOpenVINOVersion", &Pipeline::setOpenVINOVersion, py::arg("version") = OpenVINO::DEFAULT_VERSION, DOC(dai, Pipeline, setOpenVINOVersion))
.def("setOpenVINOVersion", &Pipeline::setOpenVINOVersion, py::arg("version"), DOC(dai, Pipeline, setOpenVINOVersion))
.def("getOpenVINOVersion", &Pipeline::getOpenVINOVersion, DOC(dai, Pipeline, getOpenVINOVersion))
.def("getRequiredOpenVINOVersion", &Pipeline::getRequiredOpenVINOVersion, DOC(dai, Pipeline, getRequiredOpenVINOVersion))
.def("setCameraTuningBlobPath", &Pipeline::setCameraTuningBlobPath, py::arg("path"), DOC(dai, Pipeline, setCameraTuningBlobPath))
Expand Down

0 comments on commit 4d7264b

Please sign in to comment.