Welcome to DOFBOT-JetsonNANO repository
6.YOLOv11 object recognition
YOLOv11 Object Recognition
1. YOLOv11 Introduction
YOLOv11 is a lightweight, high-precision, real-time object detection model launched by Ultralytics at the end of 2024. It achieves a better balance in speed, accuracy, and parameter count, making it suitable for edge and industrial deployment. It focuses on the optimal solution for speed - accuracy - deployment cost, while maintaining YOLOv8 ecosystem compatibility, with fewer parameters, faster inference, and higher accuracy. It supports detection, segmentation, pose estimation, OBB, classification, tracking. Ultralytics YOLO is compatible with ONNX/TensorRT/TFLite, making it easy to deploy to edge devices (Jetson, CPU).
Core advantages include the following:
- Lighter and Faster: Reduced parameter count, increased speed (CPU inference about 30% faster).
- Higher Accuracy: 2–5% mAP improvement over YOLOv8.
- Stronger Small Object Detection: Attention mechanism optimization, significant improvement in small object AP.
- Deployment Friendly: Compatible with Ultralytics ecosystem, convenient quantization and export.
Main use scenarios:
- Real-time detection on edge devices (security, robotics, autonomous driving)
- Industrial quality inspection, medical imaging, aerospace remote sensing
- Mobile / embedded vision applications
2. Function Startup
After the program starts, it will load the trained model and recognize objects. After entering the main board desktop, open the terminal and run the following command to start the corresponding Dofbot container:
./Docker_Ros.sh
Then enter the following command in the docker terminal to start,
xxxxxxxxxxpython3 /root/Dofbot_2D/src/dofbot_garbage/garbage_detect.py

Press the q key to exit the program.
Program code path: /root/Dofbot_2D/src/dofbot_garbage/garbage_detect.py
ximport cv2from ultralytics import YOLOfrom Arm_Lib import Arm_DeviceArm = Arm_Device()init_joints = [90.0, 120.0, 0.0, 0.0, 90.0, 0.0]Arm.Arm_serial_servo_write6_array(init_joints,2000)