Jan 19, 2026, 04:12 PM
8h 58m 15s
First, set your API key as an environment variable to authenticate with Ultralytics Platform:
export ULTRALYTICS_API_KEY=your_api_key_herefrom ultralytics import YOLO
# Load your trained model from Ultralytics Platform
model = YOLO("user-fftk5o/yolo26n-numberratplant/exp-5")
# Run inference on an image
results = model("path/to/image.jpg")
# Process results
for result in results:
boxes = result.boxes # Bounding boxes
result.show() # Display annotated image