• Stars
    star
    137
  • Rank 264,642 (Top 6 %)
  • Language
    C++
  • License
    MIT License
  • Created about 9 years ago
  • Updated 10 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

ZED SDK interface sample for OpenCV

Stereolabs ZED - OpenCV

This sample is the perfect place to get started coding with the ZED and OpenCV. It shows how to:

  • Capture image, depth and point cloud from the ZED.
  • Convert image and depth map to compatible 32-bits float OpenCV matrix.
  • Display video and depth with OpenCV.
  • Adjust several depth parameters: depth sensing mode, quality, units, resolution.
  • Save side by side image, depth image and point cloud in various formats

Getting started

Prerequisites

OpenCV can be installed from source on Linux, please refer to this guide to proceed with the installation.

C++

Read the guide to learn how to build and launch this sample in C++.

Python

Read the guide to learn how to build and launch this sample in Python.

Installing OpenCV

Installing OpenCV on Windows

OpenCV provides already compiled binaries, it can be downloaded at https://opencv.org/releases/

Installing OpenCV on Linux

Some sample can require OpenCV, here is a tutorial on how to install it.

OpenCV can be downloaded at this location : https://opencv.org/releases/

For a more detailed OpenCV tutorial installation, refer to the opencv documention.

Installation steps

  • Install the required dependencies
sudo apt-get install build-essential cmake libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
wget https://github.com/opencv/opencv/archive/4.1.0.zip -O /tmp/opencv_src.zip
cd ~/
unzip /tmp/opencv_src.zip ; rm /tmp/opencv_src.zip
  • Navigate to the extracted sources, create a temporary build directory and enter it. For example,
cd ~/opencv-*
mkdir build
cd build
  • Run cmake
cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local -DBUILD_TESTS=OFF -DBUILD_PERF_TESTS=OFF -DBUILD_EXAMPLES=OFF -DBUILD_JAVA=OFF -DWITH_OPENGL=ON ..
  • Execute make. The compilation can take a while
make -j$(nproc)
  • Install the libraries
sudo make install

Support

If you need assistance go to our Community site at https://community.stereolabs.com/

More Repositories

1

zed-sdk

⚑️The spatial perception framework for rapidly building smart robots and spaces
C++
784
star
2

zed-ros-wrapper

ROS wrapper for the ZED SDK
C++
440
star
3

zed-unity

ZED SDK Unity plugin
C#
245
star
4

zed-python-api

Python API for the ZED SDK
Cython
206
star
5

zed-yolo

3D Object detection using Yolo and the ZED in Python and C++
Python
155
star
6

zed-ros2-wrapper

ROS 2 wrapper for the ZED SDK
C++
148
star
7

zed-open-capture

Low level Linux camera driver for the ZED USB3 stereo cameras. API docs available here:
C++
96
star
8

zed-ros-examples

Examples for the ZED SDK ROS wrapper
C++
85
star
9

zed-unreal-examples

Stereolabs ZED - UE4 Examples
C++
77
star
10

zed-tensorflow

3D Object detection using the ZED and Tensorflow
Python
77
star
11

zed-UE5

ZED plugin and examples for Unreal Engine 5 (Standard Engine)
C++
60
star
12

zed-gstreamer

Package of GStreamer elements to interface with ZED Cameras
C++
59
star
13

zed-pcl

ZED SDK interface sample for PCL, the Point Cloud Library
C++
58
star
14

zed-multi-camera

ZED SDK sample with multiple ZEDs
C++
52
star
15

zed-pytorch

3D Object detection using the ZED and Pytorch
Jupyter Notebook
48
star
16

zed-docker

Docker images for the ZED SDK
Dockerfile
48
star
17

zed-unreal-plugin

Stereolabs ZED - UE4 Plugin
C++
41
star
18

zed-openpose

Real-time 3D multi-person with OpenPose and the ZED
C++
40
star
19

zed-opencv-native

Native stereo capture with OpenCV
C++
37
star
20

zed-livelink

ZED LiveLink Plugin for Unreal
C++
32
star
21

zed-ros2-examples

A collection of examples and tutorials to illustrate how to better use the ZED cameras in the ROS2 framework
C++
30
star
22

zed-matlab

ZED SDK interface sample for Matlab
C++
28
star
23

zed-oculus

ZED Viewer for Oculus Rift
C++
27
star
24

zed-aruco

ZED SDK samples using ArUco tag detection
C++
21
star
25

zed-tracking-viewer

[DEPRECATED] ZED SDK sample to show the tracking capability
C++
17
star
26

zed-csharp-api

C# API for the ZED SDK
C#
10
star
27

zed-3d-social-distancing

Using 3D Cameras to Monitor Social Distancing
C++
10
star
28

zed-ros-interfaces

ROS interfaces for the ZED ROS Wrapper
CMake
9
star
29

zed-ros2-interfaces

ROS2 interfaces for the ZED ROS2 Wrapper
CMake
5
star
30

zed-hub-examples

ZEDHub app tutorials
Python
5
star
31

zed-isaac-sim

NVIDIA Isaac Sim integration for ZED SDK
Python
5
star
32

zed-unity-livelink

ZED Livelink plugin for Unity
C++
5
star
33

zed-opengl

ZED SDK interface sample for OpenGL
C++
2
star
34

zed-openni

C
2
star
35

zedx-one-capture

Camera control API for ZED X One GMSL2 cameras from Stereolabs
C++
2
star