yahboom
HomeTutorialsProduct
Solution
Blog
Online Store
About Us
EN/中文
Store
RDK S100(P) Board📖
0. RDK S100(P) Developer Kit
  • 1. RDK S100(P) Official Tutorial
1. Introduction to RDK S100(P) Development Board
  • 1.1 Introduction to the RDK S100(P) Development Board
  • 1.2 Install Operating System
  • 1.3 Interface Descriptions
  • 1.4 Accessory installation
  • 1.5 Camera Expansion Board
  • 1.6 MCU Port Expansion Board
  • 1.7 Precautions for using 15.6-inch screens
2. Basic Settings Course
  • 2.1 Network Configuration
  • 2.2 Remote Login
  • 2.3 System Update
  • 2.4 Boot Auto-Start Configuration
  • 2.5 RDK Exclusive Command Usage
  • 2.6 Linux Command Usage
  • 2.7 Example of GPIO read and write operations
  • 2.8 Using USB Camera
  • 2.9 Using MIPI Camera
  • 2.10 SSD mounting
  • 2.11 Binocular camera depth algorithm
3. TogetheROS.Bot Vision Applications
  • 1. About TogetheROS. Bot
  • 2. System Installation
  • 3. Object Detection(YOLO)
  • 4. Image Classification(mobilenetv2)
  • 5. Image Segmentation(mobilenet_unet)
  • 6. Perception Algorithm(BEV)
  • 7. Human Detection and Tracking (Ultralytics YOLO Pose)
4.Offline AI model course
Offline large model (Text Interaction)
  • 1. AI large model environment deployment
  • 2. Install large model dialogue platform
  • 3. Meta AI Llama 3.2 model
  • 4. Alibaba Cloud Qwen3 model
  • 5. Microsoft Phi-4 mini model
  • 6. DeepSeek - DeepSeek-R1 model
  • 7. Alibaba Cloud Qwen2.5vl Visual Multimodal Large Model
  • 8. Google Gemma3 Visual Multimodal Large Model
  • 9. Lava Visual Multimodal Large Model
  • 10. MiniCPM-V Visual Multimodal Large Model
  • 11. Multimodal visual understand application
  • 12. Multimodal text to image application
  • 13. Multimodal visual localization application
  • 14. Multimodal table scanning application
  • 15. Multimodal Autonomous Agent Applications
Offline large model (Voice Interaction)
  • 0. Voice Interaction Hardware Connection (Must Read)
  • 1. Offline speech-to-text (ASR)
  • 2. Offline Text-to-Speech (TTS)
  • 3.AI large model voice interaction
  • 4. Multimodal visual understanding voice interaction
  • 5. Multimodal Text-to-Image application
  • 6. Multimodal video analytics application
  • 7. Multimodal visual localization application
  • 8. Multimodal table scanning application
  • 9. Multimodal autonomous agent application
  • 10. AI Large Model Offline Voice Assistant
5.Online AI model course
Online large model (Text Interaction)
  • 1.OpenRouter large model API aggregation platform
  • 2.Multimodal visual understand application
  • 3.Multimodal visual localization application
  • 4.Multimodal table scanning application
  • 5.Multimodal autonomous agent application
Online large model (Voice Interaction)
  • 0.Voice interaction hardware connection (ReadMe)
  • 1.Online speech to text (ASR)
  • 2.Online text to speech (TTS)
  • 3.AI large model voice interaction
  • 4.Multimodal visual understand speech interaction
  • 5.Multimodal visual localization application
  • 6.Multimodal table scanning application
  • 7.Multimodal autonomous proxy application
  • 8.AI large model online voice assistant
6.YOLO26 tutorials
  • 01.YOLO26 environment
  • 02.CLI use
  • 03.Object detection
  • 04.Instance segmentation
  • 05.Pose estimation
  • 06.Image classification
  • 07.Oriented object detection
  • 08.Model conversion
  • 09.Dataset annotation
  • 10.Model training - conversion
  • 11.Model prediction
7.OpenClaw Advanced Development
  • 1.OpenClaw Deployment
  • 2.OpenClaw WhatsApp Plugin Application
  • 3.OpenClaw WebChat Interaction
  • 4.OpenClaw TUI Interaction
  • 5.OpenClaw Tools Introduction
  • 6.OpenClawGate Gateway User Manual
  • 7.OpenClaw Features Overview
  • 8.OpenClawClawHub Introduction (Skill Installation)
  • 9.OpenClaw Application - File Management
  • 10.OpenClaw Application - Camera
  • 11.OpenClaw Application - Browser Control
  • 12.OpenClaw Application - Script Execution
  • 13.OpenClaw Application - AI Programming (Peripheral & GPIO Control)
  • 14.OpenClaw Application - Dedicated AI Assistant
  • 15.OpenClaw Web Search Capability Configuration
8.ROS2 basic course
  • 1.Introduction to ROS2
  • 2.ROS2 install Humble
  • 3.ROS2 development environment
  • 4.ROS2 workspace
  • 5.ROS2 function package
  • 6.ROS2 node
  • 7.ROS2 topic communication
  • 8.ROS2 service communication
  • 9.ROS2 action communication
  • 10.ROS2 custom interface message
  • 11.ROS2 parameter service case
  • 12.ROS2 meta-function package
  • 13.ROS2 distributed communication
  • 14.ROS2 DDS
  • 15.ROS2 time related API
  • 16.ROS2 common command tools
  • 17.ROS2 rviz2 use
  • 18.ROS2 rqt toolbox
  • 19.ROS2 Launch startup file configuration
  • 20.ROS2 recording and playback tool
  • 21.ROS2 URDF model
  • 22.ROS2 Gazebo simulation platform
  • 23.ROS2 TF2 coordinate transformation
Download
  • Annex_File
  • Code
Download ZIP

Welcome to RDK S100(P) Board repository

03.Object detection

Object Detection

Object Detection1. Model Introduction2. Object Prediction: ImageEffect Preview3. Object Prediction: VideoEffect Preview4. Object Prediction: Real-time Detection4.1. USB CameraEffect Preview4.2. CSI CameraEffect PreviewReferences

Use Python to demonstrate Ultralytics: Object Detection effects on images, videos, and real-time detection.

1. Model Introduction

Object detection is a task that involves identifying the location and class of objects in images or video streams.

The output of an object detector is a set of bounding boxes that surround objects in the image, along with class labels and confidence scores for each box. If you need to identify objects of interest in a scene but don't need to know the exact position or precise shape of the objects, object detection is a good choice.

2. Object Prediction: Image

Use yolo26n_ncnn_model to predict images in the ultralytics26 folder.

Enter the code folder:

cd /home/sunrise/ultralytics26/yahboom_demo

Run the code:

xxxxxxxxxx
python3 01.detection_image.py

Effect Preview

YOLO recognition output image location: /home/sunrise/ultralytics26/output/

image-20260326113659761

Example code:

​x
from ultralytics import YOLO
​
# Load a model
model = YOLO("/home/sunrise/ultralytics26/yolo26n_ncnn_model")
# model = YOLO("/home/sunrise/ultralytics26/yolo26n.pt")
​
# Run batched inference on a list of images
results = model("/home/sunrise/ultralytics26/assets/bus.jpg")  # return a list of Results objects
​
# Process results list
for result in results:
    boxes = result.boxes  # Boxes object for bounding box outputs
    # masks = result.masks  # Masks object for segmentation masks outputs
    # keypoints = result.keypoints  # Keypoints object for pose outputs
    # probs = result.probs  # Probs object for classification outputs
    # obb = result.obb  # Oriented boxes object for OBB outputs
    result.show()  # display to screen
    result.save(filename="/home/sunrise/ultralytics26/output/bus_output.jpg")  # save to disk

3. Object Prediction: Video

Use yolo26n_ncnn_model to predict videos in the ultralytics26 folder (not videos that come with ultralytics).

Enter the code folder:

xxxxxxxxxx
cd /home/sunrise/ultralytics26/yahboom_demo

Run the code:

xxxxxxxxxx
python3 01.detection_video.py

Effect Preview

YOLO recognition output video location: /home/sunrise/ultralytics26/output/

image-20260326113933025

Example code:

xxxxxxxxxx
import cv2
from ultralytics import YOLO
​
# Load the YOLO model
model = YOLO("/home/sunrise/ultralytics26/yolo26n_ncnn_model")
# model = YOLO("/home/sunrise/ultralytics26/yolo26n.pt")
​
# Open the video file
video_path = "/home/sunrise/ultralytics26/videos/people_animals.mp4"
cap = cv2.VideoCapture(video_path)
​
# Get the video frame size and frame rate
frame_width = int(cap.get(cv2.CAP_PROP_FRAME_WIDTH))
frame_height = int(cap.get(cv2.CAP_PROP_FRAME_HEIGHT))
fps = int(cap.get(cv2.CAP_PROP_FPS))
​
# Define the codec and create a VideoWriter object to output the processed video
output_path = "/home/sunrise/ultralytics26/output/01.people_animals_output.mp4"
fourcc = cv2.VideoWriter_fourcc(*'mp4v')  # You can use 'XVID' or 'mp4v' depending on your platform
out = cv2.VideoWriter(output_path, fourcc, fps, (frame_width, frame_height))
​
# Loop through the video frames
while cap.isOpened():
    # Read a frame from the video
    success, frame = cap.read()
​
    if success:
        # Run YOLO inference on the frame
        results = model(frame)
​
        # Visualize the results on the frame
        annotated_frame = results[0].plot()
​
        # Write the annotated frame to the output video file
        out.write(annotated_frame)
​
        # Display the annotated frame
        cv2.imshow("YOLO Inference", cv2.resize(annotated_frame, (640, 480)))
​
        # Break the loop if 'q' is pressed
        if cv2.waitKey(1) & 0xFF == ord("q"):
            break
    else:
        # Break the loop if the end of the video is reached
        break
# Release the video capture and writer objects, and close the display window
cap.release()
out.release()
cv2.destroyAllWindows()

4. Object Prediction: Real-time Detection

4.1. USB Camera

Use yolo26n_ncnn_model to predict USB camera feed.

Enter the code folder:

xxxxxxxxxx
cd /home/pi/ultralytics26/yahboom_demo

Run the code: Click on the preview window and press the 'q' key to terminate the program!

xxxxxxxxxx
python3 01.detection_camera_usb.py

Effect Preview

YOLO recognition output video location: /home/pi/ultralytics26/output/

image-20260326114259388

Example code:

xxxxxxxxxx
import cv2
from ultralytics import YOLO
​
# Load the YOLO model
model = YOLO("/home/sunrise/ultralytics26/yolo26n_ncnn_model")
# model = YOLO("/home/sunrise/ultralytics26/yolo26n.pt")
​
​
Open the camera:
cap = cv2.VideoCapture(0)
cap.set(6, cv2.VideoWriter.fourcc('M', 'J', 'P', 'G'))
cap.set(cv2.CAP_PROP_FRAME_WIDTH, 640)
cap.set(cv2.CAP_PROP_FRAME_HEIGHT, 480)
​
# Get the video frame size and frame rate
frame_width = int(cap.get(cv2.CAP_PROP_FRAME_WIDTH))
frame_height = int(cap.get(cv2.CAP_PROP_FRAME_HEIGHT))
fps = int(cap.get(cv2.CAP_PROP_FPS))
​
# Define the codec and create a VideoWriter object to output the processed video
output_path = "/home/sunrise/ultralytics26/output/01.detection_camera_usb.mp4"
fourcc = cv2.VideoWriter_fourcc(*'mp4v')  # You can use 'XVID' or 'mp4v' depending on your platform
out = cv2.VideoWriter(output_path, fourcc, fps, (frame_width, frame_height))
​
# Loop through the video frames
while cap.isOpened():
    # Read a frame from the video
    success, frame = cap.read()
​
    if success:
        # Run YOLO inference on the frame
        results = model(frame)
​
        # Visualize the results on the frame
        annotated_frame = results[0].plot()
​
        # Write the annotated frame to the output video file
        out.write(annotated_frame)
​
​
        # Display the annotated frame
        cv2.imshow("YOLO Inference", cv2.resize(annotated_frame, (640, 480)))
​
        # Break the loop if 'q' is pressed
        if cv2.waitKey(1) & 0xFF == ord("q"):
            break
    else:
        # Break the loop if the end of the video is reached
        break
# Release the video capture and writer objects, and close the display window
cap.release()
out.release()
cv2.destroyAllWindows()

4.2. CSI Camera

Use yolo26n_ncnn_model to predict CSI camera feed.

Enter the code folder:

xxxxxxxxxx
cd /home/sunrise/ultralytics26/yahboom_demo

Run the code: Click on the preview window and press the 'q' key to terminate the program!

xxxxxxxxxx
python3 01.detection_camera_csi.py

image-20260326114449340

When this prompt appears in the terminal, press 2 and then Enter.

 

Effect Preview

image-20260326114555512

Example code:

xxxxxxxxxx
import cv2
import sys
from hobot_vio import libsrcampy
import numpy as np
​
from ultralytics import YOLO
​
fps = 30
w = 1920
h = 1080
​
cam = libsrcampy.Camera()
ret = cam.open_cam(0, 0, fps, w, h)
​
# Load the YOLO model
model = YOLO("/home/sunrise/ultralytics26/yolo26n_ncnn_model")
# model = YOLO("/home/sunrise/ultralytics26/yolo26n.pt")
​
# Set up video output
output_path = "/home/sunrise/ultralytics26/output/01.detection_camera_csi.mp4"
fourcc = cv2.VideoWriter_fourcc(*'mp4v')
out = cv2.VideoWriter(output_path, fourcc, 30, (640, 480))
​
while True:
    #
    img_bytes = cam.get_img(1)
    yuv = np.frombuffer(img_bytes, dtype=np.uint8).reshape(-1, w)
    frame = cv2.cvtColor(yuv, cv2.COLOR_YUV2BGR_NV12)
​
    # Run YOLO11 inference on the frame
    results = model(frame)
​
    # Visualize the results on the frame
    annotated_frame = results[0].plot()
​
​
    # Display the resulting frame
    cv2.imshow("Camera", annotated_frame)
​
    # Break the loop if 'q' is pressed
    if cv2.waitKey(1) == ord("q"):
        break
​
out.release()
cv2.destroyAllWindows()
​

References

Object Detection - Ultralytics YOLO Documentation

CLI use
Instance segmentation

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