Skip to content
Open
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
1 change: 1 addition & 0 deletions cmake/depthaiOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ option(DEPTHAI_ENABLE_PROTOBUF "Enable Protobuf support" ON)
option(DEPTHAI_ENABLE_CURL "Enable CURL support" ${DEPTHAI_DEFAULT_CURL_SUPPORT})
option(DEPTHAI_ENABLE_KOMPUTE "Enable Kompute support" OFF)
option(DEPTHAI_ENABLE_MP4V2 "Enable video recording using the MP4V2 library" ON)
option(DEPTHAI_FETCH_ARTIFACTS "Enable fetching artifacts from remote repository" ON)

# ---------- Optional Features (public) -------------
option(DEPTHAI_OPENCV_SUPPORT "Enable optional OpenCV support" ON)
Expand Down
22 changes: 13 additions & 9 deletions examples/cpp/AprilTags/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,23 @@ cmake_minimum_required(VERSION 3.10)
## function: dai_set_example_test_labels(example_name ...)

# Download lenna :0
private_data(
URL "https://artifacts.luxonis.com/artifactory/luxonis-depthai-data-local/images/april_tags.jpg"
FILE "april_tags.jpg"
SHA1 "6818a531e71948bd28e1f0ab3e76b18aff6150fb"
LOCATION april_tags
)
if(DEPTHAI_FETCH_ARTIFACTS)
private_data(
URL "https://artifacts.luxonis.com/artifactory/luxonis-depthai-data-local/images/april_tags.jpg"
FILE "april_tags.jpg"
SHA1 "6818a531e71948bd28e1f0ab3e76b18aff6150fb"
LOCATION april_tags
)
endif

dai_add_example(april_tags april_tags.cpp ON OFF)
dai_set_example_test_labels(april_tags ondevice rvc2_all rvc4 rvc4rgb ci)

dai_add_example(april_tags_12mp april_tags_12mp.cpp ON OFF)
dai_set_example_test_labels(april_tags_12mp ondevice rvc2_all rvc4 rvc4rgb ci)

dai_add_example(april_tags_replay april_tags_replay.cpp ON OFF)
target_compile_definitions(april_tags_replay PRIVATE APRIL_TAGS_PATH="${april_tags}")
dai_set_example_test_labels(april_tags_replay ondevice rvc2_all rvc4 rvc4rgb ci)
if(DEPTHAI_FETCH_ARTIFACTS)
dai_add_example(april_tags_replay april_tags_replay.cpp ON OFF)
target_compile_definitions(april_tags_replay PRIVATE APRIL_TAGS_PATH="${april_tags}")
dai_set_example_test_labels(april_tags_replay ondevice rvc2_all rvc4 rvc4rgb ci)
endif()
20 changes: 11 additions & 9 deletions examples/cpp/DetectionNetwork/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,17 @@ cmake_minimum_required(VERSION 3.10)
## function: dai_add_example(example_name example_src enable_test use_pcl)
## function: dai_set_example_test_labels(example_name ...)

# Video file with objects to detect
private_data(
URL "https://artifacts.luxonis.com/artifactory/luxonis-depthai-data-local/network/construction_vest.mp4"
SHA1 "271d8d0b702e683ce02957db7c100843de5ceaec"
FILE "construction_vest.mp4"
LOCATION construction_vest
)
if(DEPTHAI_FETCH_ARTIFACTS)
# Video file with objects to detect
private_data(
URL "https://artifacts.luxonis.com/artifactory/luxonis-depthai-data-local/network/construction_vest.mp4"
SHA1 "271d8d0b702e683ce02957db7c100843de5ceaec"
FILE "construction_vest.mp4"
LOCATION construction_vest
)
endif()

if(DEPTHAI_ENABLE_REMOTE_CONNECTION)
if(DEPTHAI_ENABLE_REMOTE_CONNECTION AND DEPTHAI_FETCH_ARTIFACTS)
dai_add_example(detection_network_replay detection_network_replay.cpp OFF OFF)
target_compile_definitions(detection_network_replay PRIVATE VIDEO_PATH="${construction_vest}")
endif()
Expand All @@ -21,4 +23,4 @@ dai_add_example(detection_network detection_network.cpp ON OFF)
dai_set_example_test_labels(detection_network ondevice rvc2_all rvc4 rvc4rgb ci)

dai_add_example(detection_network_remap detection_network_remap.cpp ON OFF)
dai_set_example_test_labels(detection_network_remap ondevice rvc2_all rvc4 ci)
dai_set_example_test_labels(detection_network_remap ondevice rvc2_all rvc4 ci)
24 changes: 14 additions & 10 deletions examples/cpp/ImageManip/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,26 @@ cmake_minimum_required(VERSION 3.10)


# Download lenna :0
private_data(
URL "https://artifacts.luxonis.com/artifactory/luxonis-depthai-data-local/images/lenna.png"
FILE "lenna.png"
SHA1 "3ee0d360dc12003c0d43e3579295b52b64906e85"
LOCATION lenna
)
if(DEPTHAI_FETCH_ARTIFACTS)
private_data(
URL "https://artifacts.luxonis.com/artifactory/luxonis-depthai-data-local/images/lenna.png"
FILE "lenna.png"
SHA1 "3ee0d360dc12003c0d43e3579295b52b64906e85"
LOCATION lenna
)
endif()

dai_add_example(image_manip_resize image_manip_resize.cpp ON OFF)
dai_set_example_test_labels(image_manip_resize ondevice rvc2_all rvc4 rvc4rgb ci)

dai_add_example(image_manip_multi_ops image_manip_multi_ops.cpp ON OFF)
dai_set_example_test_labels(image_manip_multi_ops ondevice rvc2_all rvc4 rvc4rgb ci)

dai_add_example(image_manip_all_ops image_manip_all_ops.cpp ON OFF)
target_compile_definitions(image_manip_all_ops PRIVATE LENNA_PATH="${lenna}")
dai_set_example_test_labels(image_manip_all_ops ondevice rvc2_all rvc4 rvc4rgb ci)
if(DEPTHAI_FETCH_ARTIFACTS)
dai_add_example(image_manip_all_ops image_manip_all_ops.cpp ON OFF)
target_compile_definitions(image_manip_all_ops PRIVATE LENNA_PATH="${lenna}")
dai_set_example_test_labels(image_manip_all_ops ondevice rvc2_all rvc4 rvc4rgb ci)
endif()

dai_add_example(image_manip_remap image_manip_remap.cpp ON OFF)
dai_set_example_test_labels(image_manip_remap ondevice rvc2_all rvc4 rvc4rgb ci)
dai_set_example_test_labels(image_manip_remap ondevice rvc2_all rvc4 rvc4rgb ci)
26 changes: 15 additions & 11 deletions examples/cpp/NeuralNetwork/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,23 @@ cmake_minimum_required(VERSION 3.10)
## function: dai_set_example_test_labels(example_name ...)

# Download lenna :0
private_data(
URL "https://artifacts.luxonis.com/artifactory/luxonis-depthai-data-local/images/lenna.png"
FILE "lenna.png"
SHA1 "3ee0d360dc12003c0d43e3579295b52b64906e85"
LOCATION lenna
)
if(DEPTHAI_FETCH_ARTIFACTS)
private_data(
URL "https://artifacts.luxonis.com/artifactory/luxonis-depthai-data-local/images/lenna.png"
FILE "lenna.png"
SHA1 "3ee0d360dc12003c0d43e3579295b52b64906e85"
LOCATION lenna
)
endif()

dai_add_example(neural_network neural_network.cpp ON OFF)
dai_set_example_test_labels(neural_network ondevice rvc2_all rvc4 rvc4rgb ci)

dai_add_example(neural_network_multi_input neural_network_multi_input.cpp ON OFF)
target_compile_definitions(neural_network_multi_input PRIVATE LENNA_PATH="${lenna}")
dai_set_example_test_labels(neural_network_multi_input ondevice rvc2_all rvc4 rvc4rgb ci)
if(DEPTHAI_FETCH_ARTIFACTS)
dai_add_example(neural_network_multi_input neural_network_multi_input.cpp ON OFF)
target_compile_definitions(neural_network_multi_input PRIVATE LENNA_PATH="${lenna}")
dai_set_example_test_labels(neural_network_multi_input ondevice rvc2_all rvc4 rvc4rgb ci)

dai_add_example(neural_network_multi_input_combined neural_network_multi_input_combined.cpp ON OFF)
target_compile_definitions(neural_network_multi_input_combined PRIVATE LENNA_PATH="${lenna}")
dai_add_example(neural_network_multi_input_combined neural_network_multi_input_combined.cpp ON OFF)
target_compile_definitions(neural_network_multi_input_combined PRIVATE LENNA_PATH="${lenna}")
endif()
22 changes: 13 additions & 9 deletions examples/cpp/RecordReplay/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,25 @@ cmake_minimum_required(VERSION 3.10)
## function: dai_add_example(example_name example_src enable_test use_pcl)
## function: dai_set_example_test_labels(example_name ...)

private_data(
URL "https://artifacts.luxonis.com/artifactory/luxonis-depthai-data-local/misc/recording.tar"
SHA1 "b1e31a26c83dc1e315132c9226097da4b1a5cbb7"
FILE "recording.tar"
LOCATION recording_path
)
if(DEPTHAI_FETCH_ARTIFACTS)
private_data(
URL "https://artifacts.luxonis.com/artifactory/luxonis-depthai-data-local/misc/recording.tar"
SHA1 "b1e31a26c83dc1e315132c9226097da4b1a5cbb7"
FILE "recording.tar"
LOCATION recording_path
)
endif()

dai_add_example(replay_video_meta replay_video_meta.cpp OFF OFF)

dai_add_example(replay_video replay_video.cpp OFF OFF)

dai_add_example(replay_imu replay_imu.cpp OFF OFF)

dai_add_example(holistic_replay holistic_replay.cpp ON OFF)
target_compile_definitions(holistic_replay PRIVATE RECORDING_PATH="${recording_path}")
if(DEPTHAI_FETCH_ARTIFACTS)
dai_add_example(holistic_replay holistic_replay.cpp ON OFF)
target_compile_definitions(holistic_replay PRIVATE RECORDING_PATH="${recording_path}")
endif()

dai_add_example(record_video record_video.cpp OFF OFF)

Expand All @@ -28,4 +32,4 @@ dai_add_example(record_encoded record_encoded.cpp OFF OFF)

dai_add_example(record_raw record_raw.cpp OFF OFF)

dai_add_example(record_imu record_imu.cpp OFF OFF)
dai_add_example(record_imu record_imu.cpp OFF OFF)
Loading