yahboom
HomeLearn
Solution
Blog
Online Store
About Us
EN/中文
Hailo-10H AI HAT +2📖
1.Product Introduction
  • Product Introduction
2. Local Deployment Tutorial for LLM and VLM
  • 1. Environment Installation
  • 2. Text-based interactive LLM
  • 3. Visual and text interaction VLM
3. AI Vision Model Acceleration Tutorial
  • 1. Environment Setup
  • 2. rpicam-apps
  • 3.Test case
  • 4. Instance segmentation
  • 5.Pose estimation
  • 6.Segmented application
  • 7.Monocular depth
Download
  • System_File
Download ZIP

Welcome to Hailo-10H AI HAT +2 repository

4. Instance segmentation

4. Instance segmentation

Instance segmentation refers to the process of identifying and segmenting individual objects within a video frame. It combines object detection (locating objects and drawing bounding boxes) with semantic segmentation (assigning pixel-level labels to image regions). The goal is not only to detect objects but also to generate a mask for each detected object, distinguishing it from other objects and the background.

1. Detecting Objects 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-seg

image-20260131122749449

 

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-seg --input usb        #USB camera
hailo-seg --input rpi          #CSI camera

image-20260131122949355

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/instance_segmentation/README.md at main · hailo-ai/hailo-apps · GitHub

 

Test case
Pose estimation

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/中文