forked from stereolabs/zed-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add csharp samples and tuto * update Csharp cmake style Co-authored-by: Bvallon-sl <[email protected]>
- Loading branch information
1 parent
b08cbf8
commit ee3ef19
Showing
217 changed files
with
18,194 additions
and
768 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
# Stereolabs ZED - Examples | ||
# ZED SDK | ||
|
||
Links | ||
-------- | ||
ZED SDK - https://www.stereolabs.com/developers/ | ||
The Stereolabs ZED SDK is a cross-platform library designed to get the best out of the [ZED](https://www.stereolabs.com/store/) cameras. | ||
|
||
General Documentation - https://docs.stereolabs.com/ | ||
For the latest release check our [Developer Center](https://www.stereolabs.com/developers/). | ||
|
||
API Documentation - https://www.stereolabs.com/developers/documentation/API/latest | ||
General [Documentation](https://www.stereolabs.com/docs/) gives in-depth information about the products and their functionalities. | ||
|
||
Compilation Instructions - https://www.stereolabs.com/docs/getting-started/application-development/ | ||
Compilation Instructions for [Windows](https://www.stereolabs.com/docs/app-development/cpp/windows/) and [Linux/Jetson](https://www.stereolabs.com/docs/app-development/cpp/linux/) are avaible for C++ and [Python](https://www.stereolabs.com/docs/app-development/python/install/). | ||
|
||
Contents | ||
-------- | ||
The ZED SDK includes tutorials and samples that demonstrate the API features and code. | ||
|
||
If you need help or more informations check our [Support](https://support.stereolabs.com/) page or join our [Community](https://community.stereolabs.com/). | ||
|
||
|
||
# Examples Overview | ||
|
||
* **Tutorials** - A series of basic tutorials that demonstrate the use of each API module. | ||
|
||
|
@@ -32,9 +32,4 @@ The ZED SDK includes tutorials and samples that demonstrate the API features and | |
|
||
* **SVO Recording** - This sample shows how to record and playback video files in SVO format. SVO files lets you use all the ZED SDK features without having a ZED connected. | ||
|
||
* **Other** - Other general samples that demonstrate the use of the ZED SDK. | ||
|
||
|
||
Support | ||
------- | ||
If you need assistance with the ZED, visit our Help Center at https://support.stereolabs.com or contact us at [email protected]. | ||
* **Other** - Other general samples that demonstrate the use of the ZED SDK. |
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 |
---|---|---|
@@ -1,14 +1,13 @@ | ||
# Stereolabs ZED - Body Tracking Viewer | ||
# ZED SDK - Body Tracking | ||
|
||
This sample shows how to detect and track bodies in space and display it. It demonstrates how to: | ||
## This sample shows how to detect and track human bodies in space. | ||
|
||
- Detect and track bodies/objects in the scene using the ZED SDK API | ||
- Show the image with 3D bounding box with OpenGL | ||
### Features | ||
- Camera images are displayed with human bodies as skeletons | ||
- Bodies are tracked across time and space | ||
- Display bodies bounding boxes by pressing the `b` key | ||
|
||
## Getting started | ||
 | ||
|
||
- First, download the latest version of the ZED SDK on [stereolabs.com](https://www.stereolabs.com). | ||
- For more information, read the ZED [API documentation](https://www.stereolabs.com/developers/documentation/API/). | ||
|
||
*NOTE:* A ZED 2 is required to run use this module. | ||
*NOTE2:* This sample is only available in C++ | ||
>*NOTE: A [ZED 2](https://store.stereolabs.com/products/zed-2) is required to use this module.* |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,24 @@ | ||
# ZED SDK - Body Tracking | ||
|
||
This sample shows how to detect and track human bodies in space. | ||
|
||
## 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 | ||
*NOTE: A [ZED 2](https://store.stereolabs.com/products/zed-2) is required to use this module.* | ||
- Navigate to the build directory and launch the executable | ||
- Or open a terminal in the build directory and run the sample : | ||
|
||
./ZED_Body_Tracking | ||
|
||
## Features | ||
- Display bodies bounding boxes by pressing the `b` key. | ||
|
||
## Support | ||
If you need assistance go to our Community site at https://community.stereolabs.com/ |
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,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<startup> | ||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/> | ||
</startup> | ||
</configuration> |
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,43 @@ | ||
cmake_minimum_required( VERSION 3.8.0 ) | ||
|
||
project(ZED_Body_Tracking CSharp) | ||
|
||
add_executable(${PROJECT_NAME} | ||
Program.cs | ||
MainWindow.cs | ||
GLViewer.cs | ||
App.config | ||
packages.config | ||
Properties/AssemblyInfo.cs | ||
) | ||
|
||
# Set the target platform to x64, since ZED SDK does not support 32-bits arch | ||
target_compile_options(${PROJECT_NAME} PRIVATE "/platform:x64" ) | ||
|
||
# Set the .NET Framework version for the target. | ||
set_property(TARGET ${PROJECT_NAME} PROPERTY VS_DOTNET_TARGET_FRAMEWORK_VERSION "v4.6.1") | ||
|
||
# Set the C# language version, otherwise default 3.0 is taken | ||
set(CMAKE_CSharp_FLAGS "/langversion:7") | ||
|
||
set_property(TARGET ${PROJECT_NAME} PROPERTY VS_DOTNET_REFERENCES | ||
"Microsoft.CSharp" | ||
"PresentationCore" | ||
"PresentationFramework" | ||
"System" | ||
"System.Xaml" | ||
"System.Data" | ||
"System.Linq" | ||
"System.Windows" | ||
"System.Windows.Forms" | ||
"System.Numerics" | ||
"System.Drawing" | ||
"WindowsBase" | ||
) | ||
|
||
set_property(TARGET ${PROJECT_NAME} PROPERTY VS_PACKAGE_REFERENCES | ||
"OpenGL.Net_0.8.4" | ||
"OpenGL.Net.CoreUI_0.8.4" | ||
"Stereolabs.zed_3.3.1-rc" | ||
"sl_zed_interface_3.3.1-rc" | ||
) |
Oops, something went wrong.