Skip to content

Ultralytics Solutions: Harness YOLO11 to Solve Real-World Problems

Ultralytics Solutions provide cutting-edge applications of YOLO models, offering real-world solutions like object counting, blurring, and security systems, enhancing efficiency and accuracy in diverse industries. Discover the power of YOLO11 for practical, impactful implementations.

Ultralytics Solutions Thumbnail



Watch: How to Run Ultralytics Solutions from the Command Line (CLI) | Ultralytics YOLO11 🚀

Solutions

Here's our curated list of Ultralytics solutions that can be used to create awesome computer vision projects.

  • Object Counting: Learn to perform real-time object counting with YOLO11. Gain the expertise to accurately count objects in live video streams.
  • Object Cropping: Master object cropping with YOLO11 for precise extraction of objects from images and videos.
  • Object Blurring: Apply object blurring using YOLO11 to protect privacy in image and video processing.
  • Workouts Monitoring: Discover how to monitor workouts using YOLO11. Learn to track and analyze various fitness routines in real time.
  • Objects Counting in Regions: Count objects in specific regions using YOLO11 for accurate detection in varied areas.
  • Security Alarm System: Create a security alarm system with YOLO11 that triggers alerts upon detecting new objects. Customize the system to fit your specific needs.
  • Heatmaps: Utilize detection heatmaps to visualize data intensity across a matrix, providing clear insights in computer vision tasks.
  • Instance Segmentation with Object Tracking: Implement instance segmentation and object tracking with YOLO11 to achieve precise object boundaries and continuous monitoring.
  • VisionEye View Objects Mapping: Develop systems that mimic human eye focus on specific objects, enhancing the computer's ability to discern and prioritize details.
  • Speed Estimation: Estimate object speed using YOLO11 and object tracking techniques, crucial for applications like autonomous vehicles and traffic monitoring.
  • Distance Calculation: Calculate distances between objects using bounding box centroids in YOLO11, essential for spatial analysis.
  • Queue Management: Implement efficient queue management systems to minimize wait times and improve productivity using YOLO11.
  • Parking Management: Organize and direct vehicle flow in parking areas with YOLO11, optimizing space utilization and user experience.
  • Analytics: Conduct comprehensive data analysis to discover patterns and make informed decisions, leveraging YOLO11 for descriptive, predictive, and prescriptive analytics.
  • Live Inference with Streamlit: Leverage the power of YOLO11 for real-time object detection directly through your web browser with a user-friendly Streamlit interface.
  • Track Objects in Zone 🚀 NEW: Learn how to track objects within specific zones of video frames using YOLO11 for precise and efficient monitoring.

Solutions Arguments

Argument Type Default Description
model str None Path to Ultralytics YOLO Model File.
region list [(20, 400), (1260, 400)] List of points defining the counting region.
show_in bool True Flag to control whether to display the in counts on the video stream.
show_out bool True Flag to control whether to display the out counts on the video stream.
analytics_type str line Type of graph, i.e., line, bar, area, or pie.
colormap int cv2.COLORMAP_JET Colormap to use for the heatmap.
json_file str None Path to the JSON file that contains all parking coordinates data.
up_angle float 145.0 Angle threshold for the 'up' pose.
kpts list[int, int, int] [6, 8, 10] List of keypoints used for monitoring workouts. These keypoints correspond to body joints or parts, such as shoulders, elbows, and wrists, for exercises like push-ups, pull-ups, squats, ab-workouts.
down_angle float 90.0 Angle threshold for the 'down' pose.
blur_ratio float 0.5 Adjusts percentage of blur intensity, with values in range 0.1 - 1.0.
crop_dir str "cropped-detections" Directory name for storing cropped detections.
records int 5 Total detections count to trigger an email with security alarm system.
vision_point tuple[int, int] (50, 50) The point where vision will track objects and draw paths using VisionEye Solution.
tracker str 'botsort.yaml' Specifies the tracking algorithm to use, e.g., bytetrack.yaml or botsort.yaml.
conf float 0.3 Sets the confidence threshold for detections; lower values allow more objects to be tracked but may include false positives.
iou float 0.5 Sets the Intersection over Union (IoU) threshold for filtering overlapping detections.
classes list None Filters results by class index. For example, classes=[0, 2, 3] only tracks the specified classes.
verbose bool True Controls the display of tracking results, providing a visual output of tracked objects.
device str None Specifies the device for inference (e.g., cpu, cuda:0 or 0). Allows users to select between CPU, a specific GPU, or other compute devices for model execution.
show bool False If True, displays the annotated images or videos in a window. Useful for immediate visual feedback during development or testing.
line_width None or int None Specifies the line width of bounding boxes. If None, the line width is automatically adjusted based on the image size. Provides visual customization for clarity.

Track args

Solutions also support some of the arguments from track, including parameters such as conf, line_width, tracker, model, show, verbose and classes.

Argument Type Default Description
tracker str 'botsort.yaml' Specifies the tracking algorithm to use, e.g., bytetrack.yaml or botsort.yaml.
conf float 0.3 Sets the confidence threshold for detections; lower values allow more objects to be tracked but may include false positives.
iou float 0.5 Sets the Intersection over Union (IoU) threshold for filtering overlapping detections.
classes list None Filters results by class index. For example, classes=[0, 2, 3] only tracks the specified classes.
verbose bool True Controls the display of tracking results, providing a visual output of tracked objects.
device str None Specifies the device for inference (e.g., cpu, cuda:0 or 0). Allows users to select between CPU, a specific GPU, or other compute devices for model execution.

Usage of SolutionAnnotator

All Ultralytics Solutions use the separate class SolutionAnnotator, that extends the main Annotator class, and have the following methods:

Method Return Type Description
draw_region() None Draws a region using specified points, colors, and thickness.
queue_counts_display() None Displays queue counts in the specified region.
display_analytics() None Displays overall statistics for parking lot management.
estimate_pose_angle() float Calculates the angle between three points in an object pose.
draw_specific_points() None Draws specific keypoints on the image.
plot_workout_information() None Draws a labeled text box on the image.
plot_angle_and_count_and_stage() None Visualizes angle, step count, and stage for workout monitoring.
plot_distance_and_line() None Displays the distance between centroids and connects them with a line.
display_objects_labels() None Annotates bounding boxes with object class labels.
seg_bbox() None Draws contours for segmented objects and optionally labels them.
sweep_annotator() None Visualizes a vertical sweep line and optional label.
visioneye() None Maps and connects object centroids to a visual "eye" point.
circle_label() None Draws a circular label in the place of a bounding box.
text_label() None Draws a rectangular label in the place of a bounding box.

Working with SolutionResults

All Solutions calls return a list of SolutionResults objects, containing comprehensive information about the solutions.

  • For object counting, the results include incounts, outcounts, and classwise_counts.

SolutionResults

counter = solutions.ObjectCounter(
    show=True,  # display the output
    region=region_points,  # pass region points
    model="yolo11n.pt",  # model="yolo11n-obb.pt" for object counting with OBB model.
    # classes=[0, 2],           # count specific classes i.e. person and car with COCO pretrained model.
    # tracker="botsort.yaml"    # Choose trackers i.e "bytetrack.yaml"
)
results = counter.count(im0)
print(results.in_counts)  # display in_counts
print(results.out_counts)  # display out_counts

For more details, refer to the SolutionResults class documentation.

Solutions Usage via CLI

Command Info

Most of the Solutions can be used directly through the command-line interface, including:

Count, Crop, Blur, Workout, Heatmap, Isegment, Visioneye, Speed, Queue, Analytics, Inference

Syntax

yolo SOLUTIONS SOLUTION_NAME ARGS
  • SOLUTIONS is a required keyword.
  • SOLUTION_NAME is one of: ['count', 'crop', 'blur', 'workout', 'heatmap', 'isegment', 'queue', 'speed', 'analytics', 'trackzone', 'inference', 'visioneye'].
  • ARGS (optional) are custom arg=value pairs, such as show_in=True, to override default settings.
yolo solutions count show=True # for object counting

yolo solutions source="path/to/video.mp4" # specify video file path

Contribute to Our Solutions

We welcome contributions from the community! If you've mastered a particular aspect of Ultralytics YOLO that's not yet covered in our solutions, we encourage you to share your expertise. Writing a guide is a great way to give back to the community and help us make our documentation more comprehensive and user-friendly.

To get started, please read our Contributing Guide for guidelines on how to open up a Pull Request (PR) 🛠️. We look forward to your contributions!

Let's work together to make the Ultralytics YOLO ecosystem more robust and versatile 🙏!

FAQ

How can I use Ultralytics YOLO for real-time object counting?

Ultralytics YOLO11 can be used for real-time object counting by leveraging its advanced object detection capabilities. You can follow our detailed guide on Object Counting to set up YOLO11 for live video stream analysis. Simply install YOLO11, load your model, and process video frames to count objects dynamically.

What are the benefits of using Ultralytics YOLO for security systems?

Ultralytics YOLO11 enhances security systems by offering real-time object detection and alert mechanisms. By employing YOLO11, you can create a security alarm system that triggers alerts when new objects are detected in the surveillance area. Learn how to set up a Security Alarm System with YOLO11 for robust security monitoring.

How can Ultralytics YOLO improve queue management systems?

Ultralytics YOLO11 can significantly improve queue management systems by accurately counting and tracking people in queues, thus helping to reduce wait times and optimize service efficiency. Follow our detailed guide on Queue Management to learn how to implement YOLO11 for effective queue monitoring and analysis.

Can Ultralytics YOLO be used for workout monitoring?

Yes, Ultralytics YOLO11 can be effectively used for monitoring workouts by tracking and analyzing fitness routines in real-time. This allows for precise evaluation of exercise form and performance. Explore our guide on Workouts Monitoring to learn how to set up an AI-powered workout monitoring system using YOLO11.

How does Ultralytics YOLO help in creating heatmaps for data visualization?

Ultralytics YOLO11 can generate heatmaps to visualize data intensity across a given area, highlighting regions of high activity or interest. This feature is particularly useful in understanding patterns and trends in various computer vision tasks. Learn more about creating and using Heatmaps with YOLO11 for comprehensive data analysis and visualization.

📅 Created 9 months ago ✏️ Updated 1 day ago

Comments