Skip to content

Commit

Permalink
try updating tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Serafadam committed Jan 15, 2025
1 parent 78d697f commit b11585f
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions tests/src/ondevice_tests/rgbd_test.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <catch2/catch_all.hpp>
#include <catch2/catch_test_macros.hpp>
#include <depthai/depthai.hpp>
#include "depthai/depthai.hpp"

TEST_CASE("basic rgbd") {
// Create pipeline
Expand All @@ -11,18 +11,11 @@ TEST_CASE("basic rgbd") {
auto stereo = pipeline.create<dai::node::StereoDepth>();
auto rgbd = pipeline.create<dai::node::RGBD>()->build();
auto color = pipeline.create<dai::node::Camera>();
stereo->setExtendedDisparity(false);
color->build();

left->build(dai::CameraBoardSocket::LEFT);
right->build(dai::CameraBoardSocket::RIGHT);
stereo->setSubpixel(true);
stereo->setExtendedDisparity(false);
stereo->setDefaultProfilePreset(dai::node::StereoDepth::PresetMode::HIGH_DENSITY);
stereo->setLeftRightCheck(true);
stereo->setRectifyEdgeFillColor(0); // black, to better see the cutout
stereo->enableDistortionCorrection(true);
stereo->initialConfig.setLeftRightCheckThreshold(10);
stereo->setDefaultProfilePreset(dai::node::StereoDepth::PresetMode::DEFAULT);

auto *out = color->requestOutput(std::pair<int, int>(1280, 720), dai::ImgFrame::Type::RGB888i);
out->link(stereo->inputAlignTo);
Expand Down

0 comments on commit b11585f

Please sign in to comment.