-
Notifications
You must be signed in to change notification settings - Fork 466
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
101 changed files
with
109,701 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# ZED SDK - Exposure ROI | ||
|
||
## This sample shows how to capture images with the ZED SDK and adjust camera settings. | ||
|
||
### Features | ||
- Camera images are displayed on an OpenCV windows | ||
- The auto exposure using an ROI can be changed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
CMAKE_MINIMUM_REQUIRED(VERSION 3.5) | ||
PROJECT(ZED_ROI_Exposure) | ||
|
||
set(CMAKE_CXX_STANDARD 14) | ||
set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
SET(CMAKE_BUILD_TYPE "Release") | ||
|
||
option(LINK_SHARED_ZED "Link with the ZED SDK shared executable" ON) | ||
|
||
if (NOT LINK_SHARED_ZED AND MSVC) | ||
message(FATAL_ERROR "LINK_SHARED_ZED OFF : ZED SDK static libraries not available on Windows") | ||
endif() | ||
|
||
find_package(ZED 3 REQUIRED) | ||
find_package(OpenCV REQUIRED) | ||
find_package(CUDA ${ZED_CUDA_VERSION} REQUIRED) | ||
|
||
include_directories(${CUDA_INCLUDE_DIRS}) | ||
include_directories(${ZED_INCLUDE_DIRS}) | ||
include_directories(${OpenCV_INCLUDE_DIRS}) | ||
|
||
link_directories(${ZED_LIBRARY_DIR}) | ||
link_directories(${OpenCV_LIBRARY_DIRS}) | ||
link_directories(${CUDA_LIBRARY_DIRS}) | ||
|
||
ADD_EXECUTABLE(${PROJECT_NAME} src/main.cpp) | ||
|
||
if (LINK_SHARED_ZED) | ||
SET(ZED_LIBS ${ZED_LIBRARIES} ${CUDA_CUDA_LIBRARY} ${CUDA_CUDART_LIBRARY}) | ||
else() | ||
SET(ZED_LIBS ${ZED_STATIC_LIBRARIES} ${CUDA_CUDA_LIBRARY} ${CUDA_LIBRARY}) | ||
endif() | ||
|
||
TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${ZED_LIBS} ${OpenCV_LIBRARIES}) | ||
|
||
if(INSTALL_SAMPLES) | ||
LIST(APPEND SAMPLE_LIST ${PROJECT_NAME}) | ||
SET(SAMPLE_LIST "${SAMPLE_LIST}" PARENT_SCOPE) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# ZED SDK - Camera Control | ||
|
||
This sample shows how to capture images with the ZED SDK and adjust camera settings. | ||
|
||
## Getting Started | ||
- Get the latest [ZED SDK](https://www.stereolabs.com/developers/release/) | ||
- Check the [Documentation](https://www.stereolabs.com/docs/) | ||
|
||
## Build the program | ||
- Build for [Windows](https://www.stereolabs.com/docs/app-development/cpp/windows/) | ||
- Build for [Linux/Jetson](https://www.stereolabs.com/docs/app-development/cpp/linux/) | ||
|
||
## Run the program | ||
- Navigate to the build directory and launch the executable | ||
- Or open a terminal in the build directory and run the sample : | ||
|
||
./ZED_ROI_Exposure | ||
|
||
### Features | ||
|
||
- Camera images are displayed on an OpenCV windows | ||
- The auto exposure using an ROI can be changed | ||
|
||
|
||
## Support | ||
If you need assistance go to our Community site at https://community.stereolabs.com/ |
Oops, something went wrong.