Creating a Distance-Measuring WinForms App with ZED 2 Stereo Camera and OpenCV in C#

preview_player
Показать описание
WinForms app to measure distance using Visual Studio 2022, OpenCV wrapper (OpenCVSharp) in C#, and the ZED 2 Stereo Camera. The ZED 2 is a next-generation stereo camera that combines advanced depth sensing with AI, enabling you to build cutting-edge spatial intelligence applications. I created this app to learn about computer vision and AI.

There are two cameras connected to the laptop: the ZED 2 is used to measure distance, and a regular camera is used to provide a demo view.

The depth range of the ZED 2 is 0.2 to 20 meters (0.65 to 65 feet), allowing for accurate detection of various objects.

In this video, I am using the tutorial Depth Perception sample code. No Arduino or ultrasonic sensor is required.

Depth Perception:

Depth Settings:

ZED 2 Camera:

To set up the environment, you'll need to:

- Install Python 3.6.0:

- Install the SDK based on the CUDA version on your computer (e.g., CUDA 12):
To check the CUDA version, use the following command in the command prompt:
'nvcc --version'

python -m pip install cython numpy opencv-python pyopengl

Start exploring the exciting possibilities of computer vision and AI with the ZED 2 Stereo Camera.

If you found this information helpful and interesting, please consider liking this video and subscribing to our channel for more exciting content!
Рекомендации по теме