https://github.com/stereolabs/zed-c-api
https://github.com/stereolabs/zed-c-api
c stereo-vision zed-camera
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/stereolabs/zed-c-api
- Owner: stereolabs
- License: mit
- Created: 2021-07-23T12:58:48.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2026-02-10T13:19:47.000Z (5 months ago)
- Last Synced: 2026-02-10T18:10:56.887Z (5 months ago)
- Topics: c, stereo-vision, zed-camera
- Language: C
- Homepage: https://www.stereolabs.com/developers/
- Size: 581 KB
- Stars: 1
- Watchers: 4
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: ReadMe.md
- License: LICENSE
Awesome Lists containing this project
README
## C API
This package lets you use the ZED stereo camera in C .The C API is a wrapper around the ZED SDK which is written in C++ optimized code.
## Getting started
- First, download the latest version of the ZED SDK on [stereolabs.com](https://www.stereolabs.com/developers/release/).
- For more information, read the ZED [API documentation](https://www.stereolabs.com/docs/api/index.html).
## Prerequisites
To start using the ZED SDK in C, you will need to install the following dependencies on your system:
- [ZED SDK 5.1](https://www.stereolabs.com/developers/release/) and its dependency [CUDA](https://developer.nvidia.com/cuda-downloads)
## Installing the C API
#### Windows
- Create a "build" folder in the source folder
- Open cmake-gui and select the source and build folders
- Generate the Visual Studio `Win64` solution
- Open the resulting solution
- Build the solution in **Release** mode
- Build **INSTALL**.
#### Linux
Open a terminal in the root directory and execute the following command:
```
mkdir build
cd build
cmake ..
make
sudo make install
```
## Use the C api
- Link your project to the sl_zed_c library
- Import the c interface in your code like this :
```
#include
```
### Run the tutorials
The [tutorials](https://github.com/stereolabs/zed-examples/tree/master/tutorials) provide simple projects to show how to use each module of the ZED SDK.
## Support
If you need assistance go to our Community site at https://community.stereolabs.com/