Skip to content

Commit

Permalink
Merge branch 'release_v2.22.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
themarpe committed Jun 13, 2023
2 parents 125feb8 + 2facab6 commit 82ab07d
Show file tree
Hide file tree
Showing 103 changed files with 1,545 additions and 338 deletions.
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ if(WIN32)
endif()

# Create depthai project
project(depthai VERSION "2.21.2" LANGUAGES CXX C)
project(depthai VERSION "2.22.0" LANGUAGES CXX C)
get_directory_property(has_parent PARENT_DIRECTORY)
if(has_parent)
set(DEPTHAI_VERSION ${PROJECT_VERSION} PARENT_SCOPE)
Expand Down Expand Up @@ -204,6 +204,7 @@ add_library(${TARGET_CORE_NAME}
src/pipeline/node/XLinkOut.cpp
src/pipeline/node/ColorCamera.cpp
src/pipeline/node/Camera.cpp
src/pipeline/node/ToF.cpp
src/pipeline/node/MonoCamera.cpp
src/pipeline/node/StereoDepth.cpp
src/pipeline/node/NeuralNetwork.cpp
Expand All @@ -222,6 +223,7 @@ add_library(${TARGET_CORE_NAME}
src/pipeline/node/SPIIn.cpp
src/pipeline/node/FeatureTracker.cpp
src/pipeline/node/DetectionParser.cpp
src/pipeline/node/UVC.cpp
src/pipeline/datatype/Buffer.cpp
src/pipeline/datatype/ImgFrame.cpp
src/pipeline/datatype/ImageManipConfig.cpp
Expand All @@ -241,11 +243,14 @@ add_library(${TARGET_CORE_NAME}
src/pipeline/datatype/EdgeDetectorConfig.cpp
src/pipeline/datatype/TrackedFeatures.cpp
src/pipeline/datatype/FeatureTrackerConfig.cpp
src/pipeline/datatype/ToFConfig.cpp
src/utility/Initialization.cpp
src/utility/Resources.cpp
src/utility/Path.cpp
src/utility/Platform.cpp
src/utility/Environment.cpp
src/utility/XLinkGlobalProfilingLogger.cpp
src/utility/Logging.cpp
src/xlink/XLinkConnection.cpp
src/xlink/XLinkStream.cpp
src/openvino/OpenVINO.cpp
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,9 @@ The following environment variables can be set to alter default behavior of the
| DEPTHAI_CONNECT_TIMEOUT | Specifies timeout in milliseconds for establishing a connection to a given device. |
| DEPTHAI_BOOTUP_TIMEOUT | Specifies timeout in milliseconds for waiting the device to boot after sending the binary. |
| DEPTHAI_PROTOCOL | Restricts default search to the specified protocol. Options: any, usb, tcpip. |
| DEPTHAI_DEVICE_MXID_LIST | Restricts default search to the specified MXIDs. Accepts comma separated list of MXIDs |
| DEPTHAI_DEVICE_MXID_LIST | Restricts default search to the specified MXIDs. Accepts comma separated list of MXIDs. Lists filter results in an "AND" manner and not "OR" |
| DEPTHAI_DEVICE_ID_LIST | Alias to MXID list. Lists filter results in an "AND" manner and not "OR" |
| DEPTHAI_DEVICE_NAME_LIST | Restricts default search to the specified NAMEs. Accepts comma separated list of NAMEs. Lists filter results in an "AND" manner and not "OR" |
| DEPTHAI_DEVICE_BINARY | Overrides device Firmware binary. Mostly for internal debugging purposes. |
| DEPTHAI_BOOTLOADER_BINARY_USB | Overrides device USB Bootloader binary. Mostly for internal debugging purposes. |
| DEPTHAI_BOOTLOADER_BINARY_ETH | Overrides device Network Bootloader binary. Mostly for internal debugging purposes. |
Expand Down
4 changes: 2 additions & 2 deletions cmake/Depthai/DepthaiBootloaderConfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ set(DEPTHAI_BOOTLOADER_MATURITY "release")
# set(DEPTHAI_BOOTLOADER_MATURITY "snapshot")

# "version if applicable"
set(DEPTHAI_BOOTLOADER_VERSION "0.0.24")
# set(DEPTHAI_BOOTLOADER_VERSION "0.0.23+9704fa354a72599286e0be08663cee084266fda6")
set(DEPTHAI_BOOTLOADER_VERSION "0.0.26")
# set(DEPTHAI_BOOTLOADER_VERSION "0.0.24+57c26493754e2f00e57f6594b0b1a317f762d5f2")
2 changes: 1 addition & 1 deletion cmake/Depthai/DepthaiDeviceSideConfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")

# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "3575b77f20e796b4e79953bf3d2ba22f0416ee8b")
set(DEPTHAI_DEVICE_SIDE_COMMIT "f033fd9c7eb0b3578d12f90302e87759c78cfb36")

# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
4 changes: 2 additions & 2 deletions cmake/Hunter/config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ hunter_config(
hunter_config(
XLink
VERSION "luxonis-2021.4.2-develop"
URL "https://github.com/luxonis/XLink/archive/b7c3aca2ba8b9d598be886a8076a875b50f5184f.tar.gz"
SHA1 "6c19757c6fe6871a9f40688871edbfc6f1e939ee"
URL "https://github.com/luxonis/XLink/archive/457b23fb33e1146610e1a4e52defa7565046977a.tar.gz"
SHA1 "006a2bd391498aea7895e988b787a420e7f51fa9"
)

hunter_config(
Expand Down
2 changes: 1 addition & 1 deletion examples/AprilTag/apriltag.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ int main() {

// Properties
monoLeft->setResolution(dai::MonoCameraProperties::SensorResolution::THE_400_P);
monoLeft->setBoardSocket(dai::CameraBoardSocket::LEFT);
monoLeft->setCamera("left");

aprilTag->initialConfig.setFamily(dai::AprilTagConfig::Family::TAG_36H11);

Expand Down
2 changes: 1 addition & 1 deletion examples/AprilTag/apriltag_rgb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ int main() {

// Properties
camRgb->setResolution(dai::ColorCameraProperties::SensorResolution::THE_1080_P);
camRgb->setBoardSocket(dai::CameraBoardSocket::RGB);
camRgb->setBoardSocket(dai::CameraBoardSocket::CAM_A);

manip->initialConfig.setResize(480, 270);
manip->initialConfig.setFrameType(dai::ImgFrame::Type::GRAY8);
Expand Down
1 change: 1 addition & 0 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ dai_add_example(device_queue_event host_side/device_queue_event.cpp ON)
dai_add_example(opencv_support host_side/opencv_support.cpp ON)
dai_add_example(queue_add_callback host_side/queue_add_callback.cpp ON)
dai_add_example(device_information host_side/device_information.cpp OFF)
dai_add_example(device_logging host_side/device_logging.cpp OFF)

# ImageManip
dai_add_example(image_manip ImageManip/image_manip_example.cpp ON)
Expand Down
2 changes: 1 addition & 1 deletion examples/ColorCamera/rgb_isp_scale.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ int main() {
xoutVideo->setStreamName("video");

// Properties
camRgb->setBoardSocket(dai::CameraBoardSocket::RGB);
camRgb->setBoardSocket(dai::CameraBoardSocket::CAM_A);
camRgb->setResolution(dai::ColorCameraProperties::SensorResolution::THE_4_K);
camRgb->setIspScale(1, 2);
camRgb->setVideoSize(1920, 1080);
Expand Down
2 changes: 1 addition & 1 deletion examples/ColorCamera/rgb_preview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ int main() {

// Properties
camRgb->setPreviewSize(300, 300);
camRgb->setBoardSocket(dai::CameraBoardSocket::RGB);
camRgb->setBoardSocket(dai::CameraBoardSocket::CAM_A);
camRgb->setResolution(dai::ColorCameraProperties::SensorResolution::THE_1080_P);
camRgb->setInterleaved(false);
camRgb->setColorOrder(dai::ColorCameraProperties::ColorOrder::RGB);
Expand Down
2 changes: 1 addition & 1 deletion examples/ColorCamera/rgb_video.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ int main() {
xoutVideo->setStreamName("video");

// Properties
camRgb->setBoardSocket(dai::CameraBoardSocket::RGB);
camRgb->setBoardSocket(dai::CameraBoardSocket::CAM_A);
camRgb->setResolution(dai::ColorCameraProperties::SensorResolution::THE_1080_P);
camRgb->setVideoSize(1920, 1080);

Expand Down
6 changes: 3 additions & 3 deletions examples/EdgeDetector/edge_detector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ int main() {
xinEdgeCfg->setStreamName(edgeCfgStr);

// Properties
camRgb->setBoardSocket(dai::CameraBoardSocket::RGB);
camRgb->setBoardSocket(dai::CameraBoardSocket::CAM_A);
camRgb->setResolution(dai::ColorCameraProperties::SensorResolution::THE_1080_P);

monoLeft->setResolution(dai::MonoCameraProperties::SensorResolution::THE_400_P);
monoLeft->setBoardSocket(dai::CameraBoardSocket::LEFT);
monoLeft->setCamera("left");
monoRight->setResolution(dai::MonoCameraProperties::SensorResolution::THE_400_P);
monoRight->setBoardSocket(dai::CameraBoardSocket::RIGHT);
monoRight->setCamera("right");

edgeDetectorRgb->setMaxOutputFrameSize(camRgb->getVideoWidth() * camRgb->getVideoHeight());

Expand Down
4 changes: 2 additions & 2 deletions examples/FeatureTracker/feature_detector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ int main() {

// Properties
monoLeft->setResolution(dai::MonoCameraProperties::SensorResolution::THE_720_P);
monoLeft->setBoardSocket(dai::CameraBoardSocket::LEFT);
monoLeft->setCamera("left");
monoRight->setResolution(dai::MonoCameraProperties::SensorResolution::THE_720_P);
monoRight->setBoardSocket(dai::CameraBoardSocket::RIGHT);
monoRight->setCamera("right");

// Disable optical flow
featureTrackerLeft->initialConfig.setMotionEstimator(false);
Expand Down
4 changes: 2 additions & 2 deletions examples/FeatureTracker/feature_tracker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ int main() {

// Properties
monoLeft->setResolution(dai::MonoCameraProperties::SensorResolution::THE_720_P);
monoLeft->setBoardSocket(dai::CameraBoardSocket::LEFT);
monoLeft->setCamera("left");
monoRight->setResolution(dai::MonoCameraProperties::SensorResolution::THE_720_P);
monoRight->setBoardSocket(dai::CameraBoardSocket::RIGHT);
monoRight->setCamera("right");

// Linking
monoLeft->out.link(featureTrackerLeft->inputImage);
Expand Down
2 changes: 1 addition & 1 deletion examples/ImageManip/image_manip_rotate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ int main() {
// Rotate mono frames
auto monoLeft = pipeline.create<dai::node::MonoCamera>();
monoLeft->setResolution(dai::MonoCameraProperties::SensorResolution::THE_400_P);
monoLeft->setBoardSocket(dai::CameraBoardSocket::LEFT);
monoLeft->setCamera("left");

auto manipLeft = pipeline.create<dai::node::ImageManip>();
dai::RotatedRect rr = {{monoLeft->getResolutionWidth() / 2.0f, monoLeft->getResolutionHeight() / 2.0f}, // center
Expand Down
2 changes: 1 addition & 1 deletion examples/MobileNet/mono_mobilenet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ int main(int argc, char** argv) {
nnOut->setStreamName("nn");

// Properties
monoRight->setBoardSocket(dai::CameraBoardSocket::RIGHT);
monoRight->setCamera("right");
monoRight->setResolution(dai::MonoCameraProperties::SensorResolution::THE_720_P);

// Convert the grayscale frame into the nn-acceptable form
Expand Down
4 changes: 2 additions & 2 deletions examples/MonoCamera/mono_camera_control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ int main() {
dai::Point2f bottomRight(0.8f, 0.8f);

// Properties
monoRight->setBoardSocket(dai::CameraBoardSocket::RIGHT);
monoLeft->setBoardSocket(dai::CameraBoardSocket::LEFT);
monoRight->setCamera("right");
monoLeft->setCamera("left");
monoRight->setResolution(dai::MonoCameraProperties::SensorResolution::THE_720_P);
monoLeft->setResolution(dai::MonoCameraProperties::SensorResolution::THE_720_P);
manipRight->initialConfig.setCropRect(topLeft.x, topLeft.y, bottomRight.x, bottomRight.y);
Expand Down
2 changes: 1 addition & 1 deletion examples/MonoCamera/mono_full_resolution_saver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ int main() {
xoutRight->setStreamName("right");

// Properties
monoRight->setBoardSocket(dai::CameraBoardSocket::RIGHT);
monoRight->setCamera("right");
monoRight->setResolution(dai::MonoCameraProperties::SensorResolution::THE_720_P);

// Linking
Expand Down
4 changes: 2 additions & 2 deletions examples/MonoCamera/mono_preview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ int main() {
xoutRight->setStreamName("right");

// Properties
monoLeft->setBoardSocket(dai::CameraBoardSocket::LEFT);
monoLeft->setCamera("left");
monoLeft->setResolution(dai::MonoCameraProperties::SensorResolution::THE_720_P);
monoRight->setBoardSocket(dai::CameraBoardSocket::RIGHT);
monoRight->setCamera("right");
monoRight->setResolution(dai::MonoCameraProperties::SensorResolution::THE_720_P);

// Linking
Expand Down
4 changes: 2 additions & 2 deletions examples/NeuralNetwork/concat_multi_input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ int main(int argc, char** argv) {
camRgb->setColorOrder(dai::ColorCameraProperties::ColorOrder::BGR);

auto right = pipeline.create<dai::node::MonoCamera>();
right->setBoardSocket(dai::CameraBoardSocket::RIGHT);
right->setCamera("right");
right->setResolution(dai::MonoCameraProperties::SensorResolution::THE_400_P);

auto manipRight = pipeline.create<dai::node::ImageManip>();
Expand All @@ -40,7 +40,7 @@ int main(int argc, char** argv) {
right->out.link(manipRight->inputImage);

auto left = pipeline.create<dai::node::MonoCamera>();
left->setBoardSocket(dai::CameraBoardSocket::LEFT);
left->setCamera("left");
left->setResolution(dai::MonoCameraProperties::SensorResolution::THE_400_P);

auto manipLeft = pipeline.create<dai::node::ImageManip>();
Expand Down
6 changes: 3 additions & 3 deletions examples/ObjectTracker/spatial_object_tracker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@ int main(int argc, char** argv) {
camRgb->setColorOrder(dai::ColorCameraProperties::ColorOrder::BGR);

monoLeft->setResolution(dai::MonoCameraProperties::SensorResolution::THE_400_P);
monoLeft->setBoardSocket(dai::CameraBoardSocket::LEFT);
monoLeft->setCamera("left");
monoRight->setResolution(dai::MonoCameraProperties::SensorResolution::THE_400_P);
monoRight->setBoardSocket(dai::CameraBoardSocket::RIGHT);
monoRight->setCamera("right");

// setting node configs
stereo->setDefaultProfilePreset(dai::node::StereoDepth::PresetMode::HIGH_DENSITY);
// Align depth map to the perspective of RGB camera, on which inference is done
stereo->setDepthAlign(dai::CameraBoardSocket::RGB);
stereo->setDepthAlign(dai::CameraBoardSocket::CAM_A);
stereo->setOutputSize(monoLeft->getResolutionWidth(), monoLeft->getResolutionHeight());

spatialDetectionNetwork->setBlobPath(nnPath);
Expand Down
2 changes: 1 addition & 1 deletion examples/Script/script_change_pipeline_flow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ int main() {
dai::Pipeline pipeline;

auto cam = pipeline.create<dai::node::ColorCamera>();
cam->setBoardSocket(dai::CameraBoardSocket::RGB);
cam->setBoardSocket(dai::CameraBoardSocket::CAM_A);
cam->setInterleaved(false);
cam->setIspScale(2, 3);
cam->setVideoSize(720, 720);
Expand Down
4 changes: 2 additions & 2 deletions examples/SpatialDetection/spatial_calculator_multi_roi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ int main() {

// Properties
monoLeft->setResolution(dai::MonoCameraProperties::SensorResolution::THE_400_P);
monoLeft->setBoardSocket(dai::CameraBoardSocket::LEFT);
monoLeft->setCamera("left");
monoRight->setResolution(dai::MonoCameraProperties::SensorResolution::THE_400_P);
monoRight->setBoardSocket(dai::CameraBoardSocket::RIGHT);
monoRight->setCamera("right");

stereo->setDefaultProfilePreset(dai::node::StereoDepth::PresetMode::HIGH_DENSITY);
stereo->setLeftRightCheck(true);
Expand Down
4 changes: 2 additions & 2 deletions examples/SpatialDetection/spatial_location_calculator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ int main() {

// Properties
monoLeft->setResolution(dai::MonoCameraProperties::SensorResolution::THE_400_P);
monoLeft->setBoardSocket(dai::CameraBoardSocket::LEFT);
monoLeft->setCamera("left");
monoRight->setResolution(dai::MonoCameraProperties::SensorResolution::THE_400_P);
monoRight->setBoardSocket(dai::CameraBoardSocket::RIGHT);
monoRight->setCamera("right");

bool lrcheck = false;
bool subpixel = false;
Expand Down
6 changes: 3 additions & 3 deletions examples/SpatialDetection/spatial_mobilenet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@ int main(int argc, char** argv) {
camRgb->setColorOrder(dai::ColorCameraProperties::ColorOrder::BGR);

monoLeft->setResolution(dai::MonoCameraProperties::SensorResolution::THE_400_P);
monoLeft->setBoardSocket(dai::CameraBoardSocket::LEFT);
monoLeft->setCamera("left");
monoRight->setResolution(dai::MonoCameraProperties::SensorResolution::THE_400_P);
monoRight->setBoardSocket(dai::CameraBoardSocket::RIGHT);
monoRight->setCamera("right");

// Setting node configs
stereo->setDefaultProfilePreset(dai::node::StereoDepth::PresetMode::HIGH_DENSITY);
// Align depth map to the perspective of RGB camera, on which inference is done
stereo->setDepthAlign(dai::CameraBoardSocket::RGB);
stereo->setDepthAlign(dai::CameraBoardSocket::CAM_A);
stereo->setOutputSize(monoLeft->getResolutionWidth(), monoLeft->getResolutionHeight());

spatialDetectionNetwork->setBlobPath(nnPath);
Expand Down
4 changes: 2 additions & 2 deletions examples/SpatialDetection/spatial_mobilenet_mono.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ int main(int argc, char** argv) {
imageManip->initialConfig.setFrameType(dai::ImgFrame::Type::BGR888p);

monoLeft->setResolution(dai::MonoCameraProperties::SensorResolution::THE_400_P);
monoLeft->setBoardSocket(dai::CameraBoardSocket::LEFT);
monoLeft->setCamera("left");
monoRight->setResolution(dai::MonoCameraProperties::SensorResolution::THE_400_P);
monoRight->setBoardSocket(dai::CameraBoardSocket::RIGHT);
monoRight->setCamera("right");

// StereoDepth
stereo->setDefaultProfilePreset(dai::node::StereoDepth::PresetMode::HIGH_DENSITY);
Expand Down
6 changes: 3 additions & 3 deletions examples/SpatialDetection/spatial_tiny_yolo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@ int main(int argc, char** argv) {
camRgb->setColorOrder(dai::ColorCameraProperties::ColorOrder::BGR);

monoLeft->setResolution(dai::MonoCameraProperties::SensorResolution::THE_400_P);
monoLeft->setBoardSocket(dai::CameraBoardSocket::LEFT);
monoLeft->setCamera("left");
monoRight->setResolution(dai::MonoCameraProperties::SensorResolution::THE_400_P);
monoRight->setBoardSocket(dai::CameraBoardSocket::RIGHT);
monoRight->setCamera("right");

// setting node configs
stereo->setDefaultProfilePreset(dai::node::StereoDepth::PresetMode::HIGH_DENSITY);
// Align depth map to the perspective of RGB camera, on which inference is done
stereo->setDepthAlign(dai::CameraBoardSocket::RGB);
stereo->setDepthAlign(dai::CameraBoardSocket::CAM_A);
stereo->setOutputSize(monoLeft->getResolutionWidth(), monoLeft->getResolutionHeight());

spatialDetectionNetwork->setBlobPath(nnPath);
Expand Down
4 changes: 2 additions & 2 deletions examples/StereoDepth/depth_crop_control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ int main() {
dai::Point2f bottomRight(0.8f, 0.8f);

// Properties
monoRight->setBoardSocket(dai::CameraBoardSocket::RIGHT);
monoLeft->setBoardSocket(dai::CameraBoardSocket::LEFT);
monoRight->setCamera("right");
monoLeft->setCamera("left");
monoRight->setResolution(dai::MonoCameraProperties::SensorResolution::THE_400_P);
monoLeft->setResolution(dai::MonoCameraProperties::SensorResolution::THE_400_P);

Expand Down
4 changes: 2 additions & 2 deletions examples/StereoDepth/depth_post_processing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ int main() {

// Properties
monoLeft->setResolution(dai::MonoCameraProperties::SensorResolution::THE_400_P);
monoLeft->setBoardSocket(dai::CameraBoardSocket::LEFT);
monoLeft->setCamera("left");
monoRight->setResolution(dai::MonoCameraProperties::SensorResolution::THE_400_P);
monoRight->setBoardSocket(dai::CameraBoardSocket::RIGHT);
monoRight->setCamera("right");

// Create a node that will produce the depth map (using disparity output as it's easier to visualize depth this way)
depth->setDefaultProfilePreset(dai::node::StereoDepth::PresetMode::HIGH_DENSITY);
Expand Down
4 changes: 2 additions & 2 deletions examples/StereoDepth/depth_preview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ int main() {

// Properties
monoLeft->setResolution(dai::MonoCameraProperties::SensorResolution::THE_400_P);
monoLeft->setBoardSocket(dai::CameraBoardSocket::LEFT);
monoLeft->setCamera("left");
monoRight->setResolution(dai::MonoCameraProperties::SensorResolution::THE_400_P);
monoRight->setBoardSocket(dai::CameraBoardSocket::RIGHT);
monoRight->setCamera("right");

// Create a node that will produce the depth map (using disparity output as it's easier to visualize depth this way)
depth->setDefaultProfilePreset(dai::node::StereoDepth::PresetMode::HIGH_DENSITY);
Expand Down
Loading

0 comments on commit 82ab07d

Please sign in to comment.