Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v2.17.0 #518

Merged
merged 99 commits into from
Jul 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
42d7acc
ImageManip refactor and added additional functionality
themarpe Nov 23, 2021
bd041da
Merge branch 'develop' into image_manip_refactor
themarpe Nov 26, 2021
3da1b89
ImageManip - fixed odd warp mesh width
themarpe Nov 26, 2021
1150aec
Updated bootloader and added some flash related examples
themarpe Dec 13, 2021
7b0e4f3
ImageManip setResize crop fix
themarpe Dec 20, 2021
ce95f64
Merge branch 'develop' into image_manip_refactor
themarpe Dec 24, 2021
796211b
Merge branch 'develop' into flash_boot_speedup
themarpe Feb 20, 2022
abe0aad
Added capability to clear flashed application
themarpe Feb 20, 2022
1c2b305
Applied style
themarpe Feb 20, 2022
bda8970
Fixed not throwing a created exception
themarpe Feb 21, 2022
8772422
Merge remote-tracking branch 'origin/develop' into image_manip_refactor
OanaMariaVatavu Mar 16, 2022
d36cee0
Update FW - [ImageManip][bug fix] Properly align the maximum size of …
OanaMariaVatavu Mar 18, 2022
2c9c81a
Merge branch 'develop' into flash_boot_speedup
themarpe Mar 30, 2022
ae77410
Added additional BL requests and fixed BL versioning
themarpe Apr 1, 2022
93e13ee
Update FW - [ImageManip][bug fix][setCropRotatedRect] Adding a fix fo…
OanaMariaVatavu Apr 1, 2022
7916045
WIP: Adding support for selecting which memory to flash the applicati…
themarpe Apr 2, 2022
2440f98
Removed custom flash read write limitations
themarpe Apr 6, 2022
950d116
Updated bootloader and device FW
themarpe Apr 6, 2022
15ddf55
1. Merge remote-tracking branch 'origin/develop' into image_manip_ref…
OanaMariaVatavu Apr 14, 2022
b5e05ba
Update FW - [ImageManip] Adding support for input/output GRAY8 format
OanaMariaVatavu Apr 14, 2022
b7b1478
Stereo: Add support for extended and subpixel together
SzabolcsGergely May 3, 2022
021ded0
Merge branch 'develop' into flash_boot_speedup_emmc
themarpe May 4, 2022
435b25a
Merge remote-tracking branch 'origin/develop' into HEAD
SzabolcsGergely May 4, 2022
dc780b6
Updated bootloader examples
themarpe May 6, 2022
1f5111f
Merge branch 'develop' into flash_boot_speedup_emmc
themarpe May 7, 2022
b381160
Added capability to flash BoardConfig with the specified pipeline
themarpe May 8, 2022
7b51e1b
Fixed sections when creating dap
themarpe May 9, 2022
88a69cf
Updated Bootloader (fixed USB BL issue) and fixed toolchain generation
themarpe May 9, 2022
1a5525b
Updated bootloader and fixed flash_boot_header for custom frequencies
themarpe May 11, 2022
c74aa86
[ImageManip] - FW update:
OanaMariaVatavu May 16, 2022
713dd08
Merge remote-tracking branch 'origin/develop' into image_manip_refactor
OanaMariaVatavu May 16, 2022
8ecc668
[ImageManip] - update FW
OanaMariaVatavu May 17, 2022
2f46866
Merge branch 'develop' into flash_boot_speedup_emmc
themarpe May 20, 2022
c6da670
Revisited bootloader memory and application info
themarpe May 20, 2022
9129750
Set lens position from calibration data
SzabolcsGergely Jun 3, 2022
359b678
Change HIL test worklfow hunter cached path
SzabolcsGergely Jun 4, 2022
cc8299a
XLink tcp device search data race fix
themarpe Jun 5, 2022
758875b
Merge branch 'main' into develop
themarpe Jun 6, 2022
06725f3
Merge branch 'xlink_tcp_search_race_fix' into develop
themarpe Jun 6, 2022
f34ac1d
Added 'hil-test' label to test workflow
themarpe Jun 6, 2022
2855b4a
Update FW: support for new devices with 3x 4-lane cam ports,
alex-luxonis Jun 6, 2022
28dfd08
Updated FW with better EEPROM board config handling
themarpe Jun 6, 2022
026ba02
Merge remote-tracking branch 'origin/develop' into HEAD
SzabolcsGergely Jun 7, 2022
c60c496
Merge branch 'develop_mainline' into flash_boot_speedup_emmc
themarpe Jun 7, 2022
4ccabbc
Merge branch 'flash_boot_speedup_emmc' into develop_mainline
themarpe Jun 7, 2022
c4eab23
Update FW: fix enabling MIPI clocks for 4-lane ports
alex-luxonis Jun 7, 2022
c033718
Updated BL & FW for small density Micron NOR chips
themarpe Jun 7, 2022
e13e4d7
Update FW; do subpixel interpolation for extended mode too
SzabolcsGergely Jun 8, 2022
4c28706
Windows - added required DLL copying for tests and examples to be run…
themarpe Jun 8, 2022
a4a385a
Merge pull request #496 from luxonis/lens_position_from_calib
SzabolcsGergely Jun 8, 2022
ed6a132
Fixed incorrect target runtime dlls usage for examples & tests
themarpe Jun 8, 2022
a386197
Improved error reporting of failed XLink initialization
themarpe Jun 8, 2022
4736833
Merge remote-tracking branch 'origin/develop' into HEAD
SzabolcsGergely Jun 8, 2022
ef79c6f
Update FW before merge
SzabolcsGergely Jun 8, 2022
9ee214d
Merge pull request #498 from luxonis/stereo_extended_subpixel
SzabolcsGergely Jun 8, 2022
acafc4f
Apply style
SzabolcsGergely Jun 8, 2022
1cb8b0a
Refactored main CI workflow
themarpe Jun 9, 2022
d754fe9
Reworked boot header flashing functions to be easier to use
themarpe Jun 9, 2022
c17aa8e
Updated flash_boot_header example
themarpe Jun 9, 2022
ed357c2
Added overload for the setBlob function
Erol444 Jun 14, 2022
15da903
Fixed wrong rpath for installed depthai library
themarpe Jun 16, 2022
59700a1
Added capability to read raw EEPROM areas
themarpe Jun 16, 2022
40be59b
Merge 'origin/develop' into new_dev_4lane
alex-luxonis Jun 16, 2022
d216ea2
FW: fix for Right cam on the new OAK-D-Pro-PoE and OAK-D-PoE S2,
alex-luxonis Jun 17, 2022
75d9906
Merge 'origin/develop' into image_manip_refactor
alex-luxonis Jun 17, 2022
a92c82c
Specify CMAKE_GENERATOR to allow the PLATFORM to be taken into account
themarpe Jun 17, 2022
87ac985
Reduced parallelism of test workflow
themarpe Jun 17, 2022
86cd814
Modified dll copying to copy_if_different
themarpe Jun 17, 2022
a261cc3
Merge branch 'setBlob_overload' into develop
themarpe Jun 17, 2022
2edc55a
Updated GENERATOR env var for windows-latest
themarpe Jun 20, 2022
dde4b3e
Added a guard for integration tests wrt OpenCV support
themarpe Jun 20, 2022
6ad19aa
Updated Windows dependency management and CI
themarpe Jun 20, 2022
c4f0488
Fixed integration test
themarpe Jun 21, 2022
9350401
Fixed Win32 integration test
themarpe Jun 22, 2022
de503e4
Added capability to read raw EEPROM areas
themarpe Jun 16, 2022
0139f91
EEPROMv7 fixes
themarpe Jun 22, 2022
428882b
Merge branch 'eeprom_v7_fixes' into develop
themarpe Jun 23, 2022
af5ef54
Merge remote-tracking branch 'origin/windows_and_ci_improvements' int…
themarpe Jun 23, 2022
629bd3d
Updated bootloader to release 0.0.19
themarpe Jun 24, 2022
55066c5
Added host monitor thread and some isClosed preventative changes
themarpe Jun 25, 2022
ffdfcc1
Add support for Yolo v6 decoding
SzabolcsGergely Jun 28, 2022
5458342
Stereo: Add pixel shift option for input frame
SzabolcsGergely Jun 30, 2022
046765f
Stereo: improve pixel shifting performance
SzabolcsGergely Jul 1, 2022
9a824cd
Merge branch 'host_monitor_thread' into develop
themarpe Jul 4, 2022
e0090d6
Fixed monitor thread warning after a proper shutdown
themarpe Jul 5, 2022
def822f
Update FW, add convenience functions
SzabolcsGergely Jul 6, 2022
c98471e
Merge pull request #512 from luxonis/stereo_pixel_shift
SzabolcsGergely Jul 6, 2022
f8bbd42
Added checks for Source Code downloaded package as well as package ex…
themarpe Jul 6, 2022
a6e7319
Merge pull request #514 from luxonis/build_from_sources_error
themarpe Jul 6, 2022
55daf87
Update FW: Fix static frame input from host with RGB alignment and st…
SzabolcsGergely Jul 6, 2022
02754a4
Merge branch 'develop_mainline' into develop
themarpe Jul 9, 2022
8315655
Updated XLink library to allow running without USB capabilities
themarpe Jul 11, 2022
5136a45
Update FW: yolov7 support
SzabolcsGergely Jul 11, 2022
1589735
Updated bootloader_version example
themarpe Jul 11, 2022
faaaeff
FW: support for the new S2/Pro devices, including OV9782 on RGB socket
alex-luxonis Jul 11, 2022
100cfcd
Updated bootloader_config example
themarpe Jul 11, 2022
f55eda1
Merge branch 'image_manip_refactor' into develop
themarpe Jul 11, 2022
3e0180e
Merge 'origin/oak_s2_support' into develop - #517
alex-luxonis Jul 11, 2022
b63ee54
Release v2.17.0
SzabolcsGergely Jul 11, 2022
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
50 changes: 18 additions & 32 deletions .github/workflows/main.workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ on:
- gen2
- gen2_develop

env:
CMAKE_WINDOWS_SDK_VERSION: '10.0.18362.0'

jobs:

style:
Expand All @@ -33,7 +30,6 @@ jobs:
- name: Install format dependencies
run: |
sudo apt-get install clang-format-10
sudo apt-get install libusb-1.0-0-dev

- name: configure
run: cmake . -Bbuild -DDEPTHAI_CLANG_FORMAT=ON -DCLANG_FORMAT_BIN=clang-format-10
Expand All @@ -53,7 +49,7 @@ jobs:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install libusb-1.0-0-dev clang-tidy-10
sudo apt-get install clang-tidy-10

- name: configure
run: cmake . -Bbuild -DDEPTHAI_CLANG_TIDY=ON -DCLANG_TIDY_BIN=clang-tidy-10
Expand All @@ -71,6 +67,7 @@ jobs:
exclude:
- os: windows-latest
cmake: '3.10.x'

steps:
- name: Cache .hunter folder
if: matrix.os != 'windows-latest'
Expand All @@ -97,21 +94,19 @@ jobs:
- name: Install dependencies
if: matrix.os == 'macos-latest'
run: |
brew install libusb opencv
brew install opencv

- name: Install dependencies
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install libusb-1.0-0-dev libopencv-dev
sudo apt-get install libopencv-dev

- name: Install dependencies
if: matrix.os == 'windows-latest'
run: |
choco install opencv
echo "OpenCV_DIR=C:\tools\opencv\build" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
echo "C:\tools\opencv\build\x64\vc15\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
echo "CMAKE_ARGS=-D'CMAKE_SYSTEM_VERSION=${{ env.CMAKE_WINDOWS_SDK_VERSION }}'" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append

- name: Build (old CMake, gcc/Clang)
if: matrix.cmake == '3.10.x' && matrix.os != 'windows-latest'
Expand All @@ -138,30 +133,30 @@ jobs:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
build-type: [Debug, Release]
shared: [Shared, Static]
shared: [true, false]
platform: [x64]
include:
- platform: Win32
os: windows-latest
shared: Shared
shared: true
build-type: Debug
- platform: Win32
os: windows-latest
shared: Shared
shared: true
build-type: Release
steps:
- name: Cache .hunter folder
if: matrix.os != 'windows-latest'
uses: actions/cache@v2
with:
path: ~/.hunter/
key: hunter-${{ matrix.os }}-${{ matrix.shared }}
key: hunter-${{ matrix.os }}-shared_${{ matrix.shared }}
- name: Cache .hunter folder
if: matrix.os == 'windows-latest'
uses: actions/cache@v2
with:
path: C:/.hunter/
key: hunter-${{ matrix.os }}-${{ matrix.shared }}
key: hunter-${{ matrix.os }}-shared_${{ matrix.shared }}

- uses: actions/checkout@v2
with:
Expand All @@ -170,33 +165,24 @@ jobs:
- name: Install dependencies
if: matrix.os == 'macos-latest'
run: |
brew install libusb opencv
brew install opencv

- name: Install dependencies
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install libusb-1.0-0-dev libopencv-dev
sudo apt-get install libopencv-dev

- name: Install dependencies
if: matrix.os == 'windows-latest'
run: |
choco install opencv
echo "OpenCV_DIR=C:\tools\opencv\build" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
echo "C:\tools\opencv\build\x64\vc15\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
echo "CMAKE_ARGS=-D'CMAKE_SYSTEM_VERSION=${{ env.CMAKE_WINDOWS_SDK_VERSION }}'" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append

- name: Configure ${{ matrix.build-type }}, ${{ matrix.shared }}, ${{ matrix.platform }}
if: matrix.shared == 'Shared' && matrix.os == 'windows-latest'
run: cmake -A ${{ matrix.platform }} -S . -B build -D BUILD_SHARED_LIBS=ON -D CMAKE_BUILD_TYPE=${{ matrix.build-type }} -D CMAKE_INSTALL_PREFIX=$GITHUB_WORKSPACE/depthai_install ${{ env.CMAKE_ARGS }}

- name: Configure ${{ matrix.build-type }}, ${{ matrix.shared }}
if: matrix.shared == 'Shared' && matrix.os != 'windows-latest'
run: cmake -S . -B build -D BUILD_SHARED_LIBS=ON -D CMAKE_BUILD_TYPE=${{ matrix.build-type }} -D CMAKE_INSTALL_PREFIX=$GITHUB_WORKSPACE/depthai_install ${{ env.CMAKE_ARGS }}
echo "CMAKE_GENERATOR=Visual Studio 17 2022" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
echo "CMAKE_GENERATOR_PLATFORM=${{ matrix.platform }}" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append

- name: Configure ${{ matrix.build-type }}, ${{ matrix.shared }}
if: matrix.shared == 'Static'
run: cmake -S . -B build -D BUILD_SHARED_LIBS=OFF -D CMAKE_BUILD_TYPE=${{ matrix.build-type }} -D CMAKE_INSTALL_PREFIX=$GITHUB_WORKSPACE/depthai_install ${{ env.CMAKE_ARGS }}
- name: Configure ${{ matrix.build-type }}, shared ${{ matrix.shared }}, ${{ matrix.platform }}
run: cmake -S . -B build -D BUILD_SHARED_LIBS=${{ matrix.shared}} -D CMAKE_BUILD_TYPE=${{ matrix.build-type }} -D CMAKE_INSTALL_PREFIX=$GITHUB_WORKSPACE/depthai_install ${{ env.CMAKE_ARGS }}

- name: Set path to shared library dll (Windows)
if: matrix.os == 'windows-latest'
Expand Down Expand Up @@ -224,21 +210,21 @@ jobs:
cmake -S tests/integration/ -B tests/integration/build_add_subdirectory -D TEST_FIND_PACKAGE=OFF ${{ env.CMAKE_ARGS }}
cmake --build tests/integration/build_add_subdirectory --config ${{ matrix.build-type }} --parallel 4
cd tests/integration/build_add_subdirectory
ctest -C ${{ matrix.build-type }} --output-on-failure
ctest -C ${{ matrix.build-type }} --output-on-failure --no-tests=error

- name: Build and test find_package (installed)
run: |
cmake -S tests/integration/ -B tests/integration/build_find_package -D TEST_FIND_PACKAGE=ON -D depthai_DIR=$GITHUB_WORKSPACE/depthai_install/lib/cmake/depthai ${{ env.CMAKE_ARGS }}
cmake --build tests/integration/build_find_package --config ${{ matrix.build-type }} --parallel 4
cd tests/integration/build_find_package
ctest -C ${{ matrix.build-type }} --output-on-failure
ctest -C ${{ matrix.build-type }} --output-on-failure --no-tests=error

- name: Build and test find_package (build directory)
run: |
cmake -S tests/integration/ -B tests/integration/build_find_package_2 -D TEST_FIND_PACKAGE=ON -D depthai_DIR=$GITHUB_WORKSPACE/build ${{ env.CMAKE_ARGS }}
cmake --build tests/integration/build_find_package_2 --config ${{ matrix.build-type }} --parallel 4
cd tests/integration/build_find_package_2
ctest -C ${{ matrix.build-type }} --output-on-failure
ctest -C ${{ matrix.build-type }} --output-on-failure --no-tests=error


release:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test.workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
arch: 'x64'
flavor: 'tsan'
fail-fast: false
runs-on: ['self-hosted', '${{ matrix.os }}', '${{ matrix.arch }}']
runs-on: ['self-hosted', 'hil-test', '${{ matrix.os }}', '${{ matrix.arch }}']

steps:
- name: Cache .hunter folder
Expand All @@ -55,16 +55,16 @@ jobs:
if: matrix.os != 'linux'
run: |
cmake -S . -B build -D CMAKE_BUILD_TYPE=Release -D HUNTER_ROOT=$HOME/.hun2_${{ matrix.flavor }} -D DEPTHAI_BUILD_EXAMPLES=ON -D DEPTHAI_BUILD_TESTS=ON -D DEPTHAI_TEST_EXAMPLES=ON
cmake --build build --parallel 8 --config Release
cmake --build build --parallel 4 --config Release
cd build
ctest -C Release --output-on-failure -L usb
ctest -C Release --output-on-failure -L usb --no-tests=error

- name: Configure, Build and Test
if: matrix.os == 'linux'
run: |
export DISPLAY=:99
xdpyinfo -display $DISPLAY >/dev/null 2>&1 || (Xvfb $DISPLAY &)
cmake -S . -B build -D CMAKE_BUILD_TYPE=Release -D HUNTER_ROOT=$HOME/.hun2_${{ matrix.flavor }} -D DEPTHAI_BUILD_EXAMPLES=ON -D DEPTHAI_BUILD_TESTS=ON -D DEPTHAI_TEST_EXAMPLES=ON
cmake --build build --parallel 8 --config Release
cmake --build build --parallel 4 --config Release
cd build
ctest -C Release --output-on-failure -L usb
ctest -C Release --output-on-failure -L usb --no-tests=error
24 changes: 20 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ if(WIN32)
endif()

# Create depthai project
project(depthai VERSION "2.16.0" LANGUAGES CXX C)
project(depthai VERSION "2.17.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 @@ -128,11 +128,19 @@ set(PROJECT_EXPORT_GROUP "${PROJECT_NAME}Targets")
find_package(Git)
if(GIT_FOUND)
execute_process(
COMMAND ${GIT_EXECUTABLE} rev-parse --is-inside-work-tree
COMMAND ${GIT_EXECUTABLE} rev-parse --show-toplevel
WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}
RESULT_VARIABLE DEPTHAI_DOWNLOADED_SOURCES
OUTPUT_QUIET ERROR_QUIET
RESULT_VARIABLE _git_root_dir_error
OUTPUT_VARIABLE _git_root_dir
ERROR_QUIET
OUTPUT_STRIP_TRAILING_WHITESPACE
)
set(DEPTHAI_DOWNLOADED_SOURCES ON)
if(_git_root_dir_error EQUAL 0 AND "${_git_root_dir}" STREQUAL "${CMAKE_CURRENT_LIST_DIR}")
set(DEPTHAI_DOWNLOADED_SOURCES OFF)
endif()
message(DEBUG "Git root dir (${_git_root_dir_error}): ${_git_root_dir}")
message(DEBUG "DepthAI as downloaded sources: ${DEPTHAI_DOWNLOADED_SOURCES}")
execute_process(
COMMAND ${GIT_EXECUTABLE} rev-parse HEAD
WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}
Expand Down Expand Up @@ -585,6 +593,14 @@ configure_file(cmake/${PROJECT_NAME}Config.cmake.in ${PROJECT_NAME}Config.cmake
set(DEPTHAI_DEPENDENCIES_INSTALLATION_PATH_REL "./dependencies")
configure_file(cmake/${PROJECT_NAME}Config.cmake.in _install/${PROJECT_NAME}Config.cmake @ONLY)

# Modify RPath to point to the cmake/depthai/dependencies/lib
# note: macOS is APPLE and also UNIX!
if(APPLE)
set_target_properties(${TARGET_CORE_NAME} PROPERTIES INSTALL_RPATH "@loader_path;@loader_path/cmake/${PROJECT_NAME}/dependencies/lib")
elseif(UNIX)
set_target_properties(${TARGET_CORE_NAME} PROPERTIES INSTALL_RPATH "$ORIGIN:$ORIGIN/cmake/${PROJECT_NAME}/dependencies/lib")
endif()

# Export to CMake registry if specified
if(CMAKE_EXPORT_PACKAGE_REGISTRY)
export(PACKAGE depthai)
Expand Down
8 changes: 4 additions & 4 deletions cmake/Depthai/DepthaiBootloaderConfig.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Maturity level "snapshot" / "release"
# set(DEPTHAI_BOOTLOADER_MATURITY "release")
set(DEPTHAI_BOOTLOADER_MATURITY "snapshot")
set(DEPTHAI_BOOTLOADER_MATURITY "release")
# set(DEPTHAI_BOOTLOADER_MATURITY "snapshot")

# "version if applicable"
# set(DEPTHAI_BOOTLOADER_VERSION "0.0.17")
set(DEPTHAI_BOOTLOADER_VERSION "0.0.18+c555ac2fb184b801291c95f7f73d23bf4dd42cf1")
set(DEPTHAI_BOOTLOADER_VERSION "0.0.19")
# set(DEPTHAI_BOOTLOADER_VERSION "0.0.19+4af3b8fe5c0dc6f9a31dedac17affe2e490f81a0")
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 "077fa75ba35a83d8c42156c40718d412a5825b77")
set(DEPTHAI_DEVICE_SIDE_COMMIT "6df2ae14def3d70c1b92ef8ce5a471b10ae30bd5")

# "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/a5bd7e7dda40e08dc2d6570f6a8c766ba3332703.tar.gz"
SHA1 "dd821a5c08a81b629dae53124cb61512d8de49f1"
URL "https://github.com/luxonis/XLink/archive/117fdee6990dfbf7ad7e056775df75f91ac902aa.tar.gz"
SHA1 "edc1fd791e2e3f02df8d22adf9e297111adc734a"
)

hunter_config(
Expand Down
31 changes: 20 additions & 11 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,14 @@ target_include_directories(utility PUBLIC "utility")
add_default_flags(utility LEAN)
target_link_libraries(utility FP16::fp16 ${OpenCV_LIBS})

# Specify path separator
set(SYS_PATH_SEPARATOR ";")
if(UNIX)
set(SYS_PATH_SEPARATOR ":")
endif()

# Create environments for usb & poe labels
set(test_usb_env
# PATH (dlls)
"PATH=${HUNTER_INSTALL_PREFIX}/bin${SYS_PATH_SEPARATOR}$ENV{PATH}"
# Misc
"UBSAN_OPTIONS=halt_on_error=1"
# DepthAI
"DEPTHAI_PROTOCOL=usb"
)
set(test_poe_env
# PATH (dlls)
"PATH=${HUNTER_INSTALL_PREFIX}/bin${SYS_PATH_SEPARATOR}$ENV{PATH}"
# Misc
"UBSAN_OPTIONS=halt_on_error=1"
# DepthAI
Expand All @@ -41,7 +31,7 @@ function(dai_add_example example_name example_src enable_test)
# Add example
add_executable(${example_name} ${example_src})
add_default_flags(${example_name} LEAN)
target_link_libraries(${example_name} PRIVATE utility depthai::opencv ${OpenCV_LIBS})
target_link_libraries(${example_name} PRIVATE utility depthai::opencv ${OpenCV_LIBS} Threads::Threads)

# Add sanitizers for example
if(COMMAND add_sanitizers)
Expand Down Expand Up @@ -78,6 +68,21 @@ function(dai_add_example example_name example_src enable_test)
set_tests_properties(${example_name}_poe PROPERTIES ENVIRONMENT "${test_poe_env}" LABELS poe)

endif()

# Copy over required DLLs (Windows)
if(WIN32)
# Copy dlls to target directory - Windows only
# TARGET_RUNTIME_DLLS generator expression available since CMake 3.21
if(CMAKE_VERSION VERSION_LESS "3.21")
file(GLOB depthai_dll_libraries "${HUNTER_INSTALL_PREFIX}/bin/*.dll")
else()
set(depthai_dll_libraries "$<TARGET_RUNTIME_DLLS:${example_name}>")
endif()
add_custom_command(TARGET ${example_name} POST_BUILD COMMAND
${CMAKE_COMMAND} -E copy_if_different ${depthai_dll_libraries} $<TARGET_FILE_DIR:${example_name}>
COMMAND_EXPAND_LISTS
)
endif()
endfunction()

# Create a custom target which runs all examples for 10 seconds max, and check if they executed without errors
Expand Down Expand Up @@ -197,6 +202,9 @@ dai_add_example(bootloader_version bootloader/bootloader_version.cpp ON)
dai_add_example(flash_bootloader bootloader/flash_bootloader.cpp OFF)
dai_add_example(bootloader_config bootloader/bootloader_config.cpp ON read)
dai_add_example(poe_set_ip bootloader/poe_set_ip.cpp OFF)
dai_add_example(read_flash_memory bootloader/read_flash_memory.cpp OFF)
dai_add_example(write_flash_memory bootloader/write_flash_memory.cpp OFF)
dai_add_example(flash_boot_header bootloader/flash_boot_header.cpp OFF)

# calibration
dai_add_example(calibration_flash calibration/calibration_flash.cpp OFF)
Expand Down Expand Up @@ -231,6 +239,7 @@ dai_add_example(image_manip ImageManip/image_manip_example.cpp ON)
dai_add_example(image_manip_rotate ImageManip/image_manip_rotate.cpp ON)
dai_add_example(image_manip_tiling ImageManip/image_manip_tiling.cpp ON)
dai_add_example(rgb_rotate_warp ImageManip/rgb_rotate_warp.cpp ON)
dai_add_example(image_manip_warp_mesh ImageManip/image_manip_warp_mesh.cpp ON)

# IMU
dai_add_example(imu_gyroscope_accelerometer IMU/imu_gyroscope_accelerometer.cpp ON)
Expand Down
4 changes: 4 additions & 0 deletions examples/ImageManip/image_manip_tiling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,15 @@ int main() {
// preview frame into 2 500x500 frames
auto manip1 = pipeline.create<dai::node::ImageManip>();
manip1->initialConfig.setCropRect(0, 0, 0.5, 1);
// Flip functionality
manip1->initialConfig.setHorizontalFlip(true);
manip1->setMaxOutputFrameSize(maxFrameSize);
camRgb->preview.link(manip1->inputImage);

auto manip2 = pipeline.create<dai::node::ImageManip>();
manip2->initialConfig.setCropRect(0.5, 0, 1, 1);
// Flip functionality
manip1->initialConfig.setVerticalFlip(true);
manip2->setMaxOutputFrameSize(maxFrameSize);
camRgb->preview.link(manip2->inputImage);

Expand Down
Loading