yahboom
HomeLearn
Solution
Blog
Online Store
About Us
EN/中文
Hailo-8 AI HAT +📖
0. Preparation
  • 0.Preparation
1.Environment construction
  • Environment Construction
2. rpicam-apps
  • rpicam-apps
3.Test case
  • Object Detection
4.Instance segmentation
  • Instance segmentation
5.Pose estimation
  • Pose Estimation
6.Segmented application
  • 6.Segmented application
7.Monocular depth
  • 7.Monocular depth
Download
  • Image_System_File
Download ZIP

Welcome to Hailo-8 AI HAT + repository

7.Monocular depth

7.Monocular depth

This example demonstrates depth estimation using the scdepthv3 model. The result of depth estimation is essentially assigning an additional attribute to each pixel in an image frame—its distance from the camera.

1. Detection in Video

Terminal input,

cd hailo-apps

Then enter the command to enter the virtual environment.

xxxxxxxxxx
source setup_env.sh  

Enter the command. Run the video inspection.

xxxxxxxxxx
hailo-depth

image-20260131122332513

 

To close the window, press Ctrl+C.

2. Real-time Camera Detection

In the virtual terminal environment, enter the following command. By default, it will automatically detect available USB cameras (if multiple cameras are connected, it will use the first one detected). You can change the input source using the --input flag, for example, videox, then the input source would be:

--input /dev/videox (replace x with the actual device number).

xxxxxxxxxx
hailo-depth --input usb        #USB camera
hailo-depth --input rpi         #CSI camera

image-20260131122316676

If the camera is not displaying correctly, you can check which video devices are available by running the following command:

xxxxxxxxxx
ls /dev/video*

You can test if the camera is working properly by running the following command:

xxxxxxxxxx
ffplay -f v4l2 /dev/video0

If you encounter an error, try a different device, such as /dev/video2.

For more information, please refer to:hailo-apps/hailo_apps/python/pipeline_apps/depth/README.md at main · hailo-ai/hailo-apps · GitHub

Segmented application

COMPANY

  • About us
  • Team Style
  • Blog

LEARNING & EXPLORATION

  • Tutorials
  • Edge AI hardware
  • Educational robots
  • Embedded intelligent hardware

WHERE TO BUY

  • Yahboom Online Store
  • Amazon
  • Alibaba
  • AliExpress
  • Mercado

TECHNOLOGY SUPPORT

  • Email: support@yahboom.com

BE A DISTRIBUTOR

  • Email: sales@yahboom.com
QR Code

Copyright © 2017-2026 Yahboom. All Rights Reserved.

EN/中文