Skip to content

Commit

Permalink
[3.0.0] Import f48bec34040
Browse files Browse the repository at this point in the history
  • Loading branch information
nbourdis-psee committed May 31, 2022
1 parent cad27e9 commit ce9249e
Show file tree
Hide file tree
Showing 577 changed files with 83,212 additions and 2,692 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ If the earlier steps didn't solve the problem, raise an issue providing:
* your camera type and its serial number that can be found on your camera's base (bottom) plate
* software that has an issue, expected and actual behavior, and reproduction steps as detailed as possible

If you are a Metavision Professional customer, you are also granted access to our personal support and our Knowledge Center. Contact us via [email protected]
If you are a Metavision SDK customer, you are also granted access to our personal support and our Knowledge Center. Contact us via [email protected]
21 changes: 16 additions & 5 deletions .github/workflows/all_jobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
python3-pip python3-distutils xvfb libglfw3 libglfw3-dev libglew-dev libopencv-dev ffmpeg \
libboost-dev libboost-program-options-dev libboost-filesystem-dev libboost-timer-dev \
libboost-chrono-dev libboost-thread-dev zip unzip git-lfs
pip install opencv-python $numpy_version pytest
pip install opencv-python $numpy_version pytest torch scipy sk-video numba h5py
- name: Build pybind
run: |
Expand Down Expand Up @@ -76,7 +76,7 @@ jobs:
libboost-dev libboost-program-options-dev libboost-filesystem-dev libboost-timer-dev \
libboost-chrono-dev libboost-thread-dev zip unzip
python3 -m pip install --upgrade pip
python3 -m pip install opencv-python $numpy_version pytest
python3 -m pip install opencv-python $numpy_version pytest torch scipy sk-video numba h5py
- name: Build pybind and gtest
run: |
Expand Down Expand Up @@ -135,19 +135,30 @@ jobs:
name: vcpkg_binaries
path: ".."

- name: Install python and vcpkg dependencies
- name: Download ffmpeg archive
uses: dawidd6/action-download-artifact@v2
with:
workflow: upload_win_binaries.yaml
workflow_conclusion: success
name: ffmpeg_archive
path: ".."

- name: Install build and tests dependencies
shell: bash
run: |
cd ..
unzip -q "vcpkg-export.zip"
py -$python_versions -m pip install pytest $numpy_version opencv-python
7z x ffmpeg-archive.7z
$python_executable -m pip install pytest $numpy_version opencv-python torch scipy sk-video numba h5py
cd openeb
- name: Build openEB
shell: bash
run: |
export PATH=$PATH:`realpath ../ffmpeg-5.0.1-full_build/bin`
mkdir build && cd build
cmake -A x64 -DCMAKE_TOOLCHAIN_FILE="../../vcpkg/scripts/buildsystems/vcpkg.cmake" \
cmake -A x64 -DCMAKE_TOOLCHAIN_FILE="../cmake/toolchains/vcpkg.cmake" \
-DVCPKG_DIRECTORY=`realpath ../../vcpkg`
-D Python3_EXECUTABLE=$python_executable \
-DBUILD_TESTING=ON ..
cmake --build . --config Release --parallel 4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/upload_datasets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- cron: "15 2 1 */2 *"

env:
dataset_download_address: "https://dataset.prophesee.ai/index.php/s/VfhepWI4MPVWh9o/download"
dataset_download_address: "https://dataset.prophesee.ai/index.php/s/hyCzGM4tpR8w5bx/download"

jobs:
get_artifacts:
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/upload_win_binaries.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ on:
- cron: "15 2 1 */2 *"

env:
win_binaries_download_address: "https://prophesee-bamboo.s3.eu-west-1.amazonaws.com/build-env/vcpkg-export-20210831-MV2.3.0.zip"
win_binaries_download_address: "https://prophesee-bamboo.s3.eu-west-1.amazonaws.com/build-env/vcpkg-export-20220511-MV3.0.0.zip"
ffmpeg_archive_download_address: "https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-full.7z"

jobs:
get_artifacts:
Expand All @@ -17,13 +18,20 @@ jobs:
timeout-minutes: 10
run: |
curl -L -o vcpkg-export.zip $win_binaries_download_address
curl -L -o ffmpeg-archive.7z $ffmpeg_archive_download_address
- name: Uploading binaries to storage
uses: actions/upload-artifact@master
with:
name: vcpkg_binaries
path: vcpkg-export.zip

- name: Uploading ffmpeg to storage
uses: actions/upload-artifact@master
with:
name: ffmpeg_archive
path: ffmpeg-archive.7z

- name: Slack Notification
if: always()
uses: rtCamp/action-slack-notify@v2
Expand Down
76 changes: 41 additions & 35 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

cmake_minimum_required(VERSION 3.5)

project(metavision VERSION 2.3.2)
project(metavision VERSION 3.0.0)
set(PROJECT_VERSION_SUFFIX "")

if(PROJECT_VERSION_SUFFIX STREQUAL "")
Expand Down Expand Up @@ -168,24 +168,27 @@ set(DATASET_DIR "" CACHE PATH "Folder with dataset for testing")
################################################### Detect which SDK modules are available

set(METAVISION_SDK_MODULES_OPEN base core driver CACHE STRING "SDK Open modules")
set(METAVISION_SDK_MODULES_PROFESSIONAL analytics calibration cv ml CACHE STRING "SDK Professional modules")
if (COMPILE_PYTHON3_BINDINGS)
list(APPEND METAVISION_SDK_MODULES_OPEN core_ml)
endif (COMPILE_PYTHON3_BINDINGS)
set(METAVISION_SDK_MODULES_ADVANCED analytics calibration cv ml CACHE STRING "SDK Advanced modules")

if (NOT ANDROID)
list(APPEND METAVISION_SDK_MODULES_OPEN ui)
list(APPEND METAVISION_SDK_MODULES_PROFESSIONAL 3dview cv3d)
list(APPEND METAVISION_SDK_MODULES_ADVANCED 3dview cv3d)
endif (NOT ANDROID)

set(METAVISION_SDK_MODULES_AVAILABLE)
foreach(metavision_offer OPEN PROFESSIONAL)
set(METAVISION_SDK_${metavision_offer}_MODULES_AVAILABLE)
message(STATUS "Building METAVISION_SDK_MODULES_${metavision_offer} modules : ${METAVISION_SDK_MODULES_${metavision_offer}}")
foreach(module_name IN LISTS METAVISION_SDK_MODULES_${metavision_offer})
foreach(metavision_modules_set OPEN ADVANCED)
set(METAVISION_SDK_${metavision_modules_set}_MODULES_AVAILABLE)
message(STATUS "Building METAVISION_SDK_MODULES_${metavision_modules_set} modules : ${METAVISION_SDK_MODULES_${metavision_modules_set}}")
foreach(module_name IN LISTS METAVISION_SDK_MODULES_${metavision_modules_set})
if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/sdk/modules/${module_name}/CMakeLists.txt")
list(APPEND METAVISION_SDK_${metavision_offer}_MODULES_AVAILABLE "${module_name}")
list(APPEND METAVISION_SDK_${metavision_modules_set}_MODULES_AVAILABLE "${module_name}")
endif(EXISTS "${CMAKE_CURRENT_LIST_DIR}/sdk/modules/${module_name}/CMakeLists.txt")
endforeach(module_name)
list(APPEND METAVISION_SDK_MODULES_AVAILABLE ${METAVISION_SDK_${metavision_offer}_MODULES_AVAILABLE})
endforeach(metavision_offer)
list(APPEND METAVISION_SDK_MODULES_AVAILABLE ${METAVISION_SDK_${metavision_modules_set}_MODULES_AVAILABLE})
endforeach(metavision_modules_set)

################################################### Find needed packages and programs

Expand Down Expand Up @@ -229,8 +232,8 @@ if (BUILD_TESTING)
if(NOT EXISTS "${PROJECT_SOURCE_DIR}/datasets" AND GIT_LFS_NOT_AVAILABLE)
message("---------------------------------------------------------------------------------------------------------")
message("| Test data was not found. To run the tests, please download the test data adapted to your project: |")
message("| - OpenEB: https://dataset.prophesee.ai/index.php/s/VfhepWI4MPVWh9o (500 Mb archive) |")
message("| - Metavision Professional: https://dataset.prophesee.ai/index.php/s/JJ5xStgd8GSUWFz (3 Gb archive) |")
message("| - OpenEB: https://dataset.prophesee.ai/index.php/s/hyCzGM4tpR8w5bx (500 Mb archive) |")
message("| - Metavision SDK: https://dataset.prophesee.ai/index.php/s/TF6yotuIukg5dcB (3 Gb archive) |")
message("---------------------------------------------------------------------------------------------------------\n")
endif()

Expand Down Expand Up @@ -308,10 +311,10 @@ include(uninstall)
include(add_library_version_header)
include(add_cpack_component)
include(create_metavision_open_archive)
if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/cmake/custom_targets_metavision_professional")
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/custom_targets_metavision_professional)
include(create_metavision_professional_archives)
endif(EXISTS "${CMAKE_CURRENT_LIST_DIR}/cmake/custom_targets_metavision_professional")
if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/cmake/custom_targets_metavision_sdk")
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/custom_targets_metavision_sdk)
include(create_metavision_sdk_source_archives)
endif(EXISTS "${CMAKE_CURRENT_LIST_DIR}/cmake/custom_targets_metavision_sdk")

# Add Metavision Open debian packages :
add_cpack_component(PUBLIC metavision-open-lib metavision-open-bin metavision-open-dev metavision-open-samples)
Expand All @@ -320,27 +323,33 @@ if(COMPILE_PYTHON3_BINDINGS)
add_python_cpack_components(PUBLIC metavision-open)
endif(COMPILE_PYTHON3_BINDINGS)

# Add Metavision Essentials and SDK Pro debian packages :
if (METAVISION_SDK_PROFESSIONAL_MODULES_AVAILABLE)
# SDK Pro
add_cpack_component(PUBLIC metavision-sdk-pro-lib metavision-sdk-pro-bin)
# Add Metavision SDK debian packages :
if (METAVISION_SDK_ADVANCED_MODULES_AVAILABLE)
# Advanced
add_cpack_component(PUBLIC metavision-sdk-advanced-lib metavision-sdk-advanced-bin metavision-sdk-advanced-dev metavision-sdk-advanced-samples)
if(COMPILE_PYTHON3_BINDINGS)
add_cpack_component(PUBLIC metavision-sdk-pro-python-samples)
add_python_cpack_components(PUBLIC metavision-sdk-pro)
add_cpack_component(PUBLIC metavision-sdk-advanced-python metavision-sdk-advanced-python-samples)
add_python_cpack_components(PUBLIC metavision-sdk-advanced)
endif(COMPILE_PYTHON3_BINDINGS)
# Essentials
add_cpack_component(PUBLIC metavision-essentials-licence metavision-essentials-lib metavision-essentials-bin metavision-essentials)

# SDK
add_cpack_component(PUBLIC metavision-sdk-lib metavision-sdk-bin metavision-sdk-dev metavision-sdk-samples metavision-sdk)
if(COMPILE_PYTHON3_BINDINGS)
add_cpack_component(PUBLIC metavision-essentials-python-samples)
add_python_cpack_components(PUBLIC metavision-essentials)
add_cpack_component(PUBLIC metavision-sdk-python metavision-sdk-python-samples)
add_python_cpack_components(PUBLIC metavision-sdk)
endif(COMPILE_PYTHON3_BINDINGS)

if(EXISTS "${PROJECT_SOURCE_DIR}/licensing/LICENSE_ESSENTIALS")
install(FILES ${PROJECT_SOURCE_DIR}/licensing/LICENSE_ESSENTIALS
if(EXISTS "${PROJECT_SOURCE_DIR}/licensing/LICENSE_METAVISION_INTELLIGENCE")
install(FILES ${PROJECT_SOURCE_DIR}/licensing/LICENSE_METAVISION_INTELLIGENCE
DESTINATION share/metavision/licensing
COMPONENT metavision-essentials-licence)
COMPONENT metavision-sdk-base-lib)
endif()
endif (METAVISION_SDK_PROFESSIONAL_MODULES_AVAILABLE)
else ()
# Installing metavision open
install(FILES ${PROJECT_SOURCE_DIR}/licensing/LICENSE_OPEN
DESTINATION share/metavision/licensing
COMPONENT metavision-sdk-base-lib)
endif (METAVISION_SDK_ADVANCED_MODULES_AVAILABLE)

################################
# Utils ##
Expand All @@ -356,9 +365,6 @@ add_subdirectory(hal)
if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/hal_psee_plugins/CMakeLists.txt")
add_subdirectory(hal_psee_plugins)
endif(EXISTS "${CMAKE_CURRENT_LIST_DIR}/hal_psee_plugins/CMakeLists.txt")
if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/hal_openeb_plugins/CMakeLists.txt")
add_subdirectory(hal_openeb_plugins)
endif(EXISTS "${CMAKE_CURRENT_LIST_DIR}/hal_openeb_plugins/CMakeLists.txt")

################################
# SDK ##
Expand Down Expand Up @@ -403,8 +409,8 @@ set(cpack_all_components ${cpack_public_components} ${cpack_internal_components}
list(REMOVE_DUPLICATES cpack_all_components)
file(WRITE ${GENERATE_FILES_DIRECTORY}/meta-package.log "")
foreach(comp ${cpack_all_components})
if ("${comp}" MATCHES "^metavision-(open|essentials|sdk-pro|designer)-(lib|bin|dev|samples|python3.*|python|python-samples)$" OR
"${comp}" STREQUAL "metavision-essentials")
if ("${comp}" MATCHES "^metavision-(open|sdk|sdk-advanced|designer)-(lib|bin|dev|samples|python3.*|python|python-samples)$" OR
"${comp}" STREQUAL "metavision-sdk")
install(FILES ${GENERATE_FILES_DIRECTORY}/meta-package.log
DESTINATION share/metavision/log/${comp}
COMPONENT ${comp}
Expand Down
Loading

0 comments on commit ce9249e

Please sign in to comment.