Welcome to DOFBOT Pro repository
2. CLI Usage
CLI Usage
CLI Usage1. Download Source Code2. Enable Maximum Board Performance2.1. Enable MAX Power Mode2.2. Enable Jetson Clocks3. Use CLI for Prediction3.1. CLI Usage Syntax3.2. Image PredictionEffect Preview3.3. Video PredictionEffect Preview3.4. Real-time PredictionReferences
1. Download Source Code
git clone https://github.com/ultralytics/ultralytics.git2. Enable Maximum Board Performance
2.1. Enable MAX Power Mode
Enabling MAX Power Mode on Jetson will ensure that all CPU and GPU cores are turned on:
xxxxxxxxxx#Orin Nanosudo nvpmodel -m 2#Orin Nxsudo nvpmodel -m 02.2. Enable Jetson Clocks
Enabling Jetson Clocks will ensure that all CPU and GPU cores run at maximum frequency:
xxxxxxxxxxsudo jetson_clocks3. Use CLI for Prediction
CLI (Command-Line Interface) is a way for users to interact with computers or software programs. Users run programs or execute tasks by typing text commands, rather than clicking icons or buttons through a graphical user interface (GUI).
3.1. CLI Usage Syntax
xyolo TASK MODE ARGSWhere TASK (optional) is one of [detect, segment, classify, pose, obb] MODE (required) is one of [train, val, predict, export, track, benchmark] ARGS (optional) are any number of custom 'arg=value' pairs like 'imgsz=320' that override defaults.3.2. Image Prediction
Use yolo11n.pt to predict the built-in images in the ultralytics project: If the system cannot find the corresponding model file in the directory where the command is running, it will be automatically downloaded (if download fails, you can copy the model in yourself)
Enter the project folder:
xxxxxxxxxxcd /home/jetson/ultralytics/ultralytics/Use yolo11n.pt to detect images in the target folder and output results:
xxxxxxxxxxyolo predict model=yolo11n source='/home/jetson/ultralytics/ultralytics/assets'
Effect Preview
yolo recognition output video location: /home/jetson/ultralytics/ultralytics/runs/detect;
Each time it runs, predict under this folder automatically increments by 1

3.3. Video Prediction
Use yolo11n.pt to predict videos in the ultralytics project (not videos that come with ultralytics): If the system cannot find the corresponding model file in the directory where the command is running, it will be automatically downloaded (if download fails, you can copy the model in yourself)
Enter the project folder:
xxxxxxxxxxcd /home/jetson/ultralytics/ultralyticsUse yolo11n.pt to detect videos in the target folder and output results:
xxxxxxxxxxyolo predict model=yolo11n source='/home/jetson/ultralytics/ultralytics/videos'
Effect Preview
yolo recognition output video location: /home/jetson/ultralytics/ultralytics/runs/detect
Each time it runs, predict under this folder automatically increments by 1
You can use ffmpeg to view videos. Use the following command to install:
xxxxxxxxxxsudo apt updatesudo apt install ffmpeg -yPlay video:
xxxxxxxxxxffplay <video_name>.avi
3.4. Real-time Prediction
Use yolo11n.pt to predict USB camera feed: If the system cannot find the corresponding model file in the directory where the command is running, it will be automatically downloaded (if download fails, you can copy the model in yourself)
Enter the project folder:
xxxxxxxxxxcd /home/jetson/ultralytics/ultralyticsUse yolo11n.pt to detect camera feed and output results: Currently only USB cameras can directly use CLI for real-time prediction. No relevant information found for CSI cameras as direct input source
xxxxxxxxxxyolo predict model=yolo11n.pt source=0 save=False show # Object detection# Instance segmentation: yolo predict model=yolo11n-seg.pt source=0 save=False show# Image classification: yolo predict model=yolo11n-cls.pt source=0 save=False show# Pose estimation: yolo predict model=yolo11n-pose.pt source=0 save=False show# Oriented object detection: yolo predict model=yolo11n-obb.pt source=0 save=False showClick on the terminal and press "Ctrl + C" shortcut to terminate the program!
Parameter Description
model: Specify YOLO model
source: Specify recognition source: multiple cameras can switch numbers
save=False: Disable saving results
show: Real-time display
