Cheque verde
Enlace copiado en el portapapeles

How to run Ultralytics YOLO11 through the CLI

Explore how using the Ultralytics Python package through the command line interface (CLI) simplifies running YOLO11 solutions related to various industries.

Nowadays, cameras are everywhere - in stores, offices, streets, and public spaces - capturing moments that can answer critical questions. These cameras' visual data can reveal useful information about different aspects of our everyday lives, like traffic flow, crowd behavior, environmental conditions, and even individual movements and interactions. However, reviewing all these videos manually isn’t possible and often leaves important insights unnoticed.

Advanced AI technology, such as computer vision, can step in and take visual data analysis to a new level. It simplifies complex tasks by turning raw footage into clear, actionable insights. Whether spotting patterns, tracking activities, or improving processes, it makes things faster and more accurate. For businesses, this means less time spent on manual work and smarter, more effective decisions.

Specifically, Ultralytics YOLO11 is an advanced computer vision model that simplifies yolo tasks like real-time object detection, pose estimation, tracking, and image classification. Designed for users of varying technical experience levels, it lets anyone easily extract valuable insights from their images and videos.

In this article, we’ll take a closer look at running Ultralytics YOLO11 solutions through the command line interface (CLI). Let’s get started!

What is a command line interface?

A command line interface is a straightforward tool that lets you interact with your computer by typing simple text commands. You can directly converse with your system through a CLI to get things done quickly without relying on bulky software or complex interfaces. It’s a clean and efficient way to perform tasks, especially for those who want results without unnecessary steps.

The CLI also provides a quick and efficient way to complete repetitive tasks. Once established, a command can be easily reused whenever needed, streamlining workflows and minimizing manual effort.

With respect to computer vision, you can use Ultralytics YOLO11 through the CLI to help you analyze videos or track objects easily; no specialized expertise is required. For example, with just a few lines of commands, you can count how many people are present in a video to provide quick and accurate results to track activity.

Fig 1. Counting people for precise tracking and insights.

An overview of the Ultralytics YOLO11 solutions

The Ultralytics Python package comes with in-built solutions powered by YOLO11 to handle real-world tasks across retail, transportation, security, and sports industries. By running these solutions from the command line, businesses can quickly simplify complex tasks and gain actionable insights.

Here is a quick glance at some of the solutions Ultralytics offers:

  • Object counting: Automatically count objects in videos or live streams, like cars on roads or warehouse inventory, to track activity or manage stock.
  • Queue management: Monitor real-time queue lengths to improve service efficiency and reduce customer waiting times.
  • Security alarm system: Detect unusual movements or unauthorized objects in restricted areas and trigger alerts to enhance safety.
  • Speed estimation: Measure the speed at which vehicles or athletes move in a video to improve traffic management or sports performance analysis.

These are just a few of the versatile solutions Ultralytics offers. To explore the full range of options available, you can refer to the official Ultralytics documentation.

Unlock Ultralytics YOLO11 solutions with the CLI

Starting with the Ultralytics YOLO11 solutions is straightforward and requires no technical expertise. You can begin analyzing images and videos and gain meaningful insights in just a few simple steps.

First, open the command line interface on your computer. On Windows, simply search for “Command Prompt” in the Start menu. For macOS or Linux, you can search for the Terminal application on your system. Next, install the Ultralytics Python package using the command: `pip install ultralytics`.

With that, you are all set! The Ultralytics Python package automatically sets everything up for you, so there’s no need for complex configurations or extra tools. Once installed, you’re ready to explore its features.

The Ultralytics Python package gives you the flexibility to tailor its features to your needs. You can choose a model based on your specific application for quicker results or more detailed analysis. Also, outputs can be displayed live as the system processes your data, or they can saved to be reviewed later based on your convenience.

Turning visual data into actionable stories

Once YOLO11 is set up, you’re ready to explore how it can turn raw visual data into meaningful insights. To showcase its capabilities, let’s walk through a practical example: analyzing a video of traffic on a highway to generate a heatmap. 

Heatmaps are a great way to visualize traffic flow and identify areas with high and low activity. By revealing traffic patterns, they enable smarter decisions and more effective planning for everyday traffic management challenges.

Fig 2. A frame from a sample input video for real-world traffic analysis.

To get started, with a simple command in the CLI, you can specify the location of your video file on your system, and the solution will analyze the video to detect and track objects, generating a color-coded heatmap. Warmer colors show areas with more activity, while cooler colors highlight less active areas. The Ultralytics Heatmaps Solution Guide provides clear examples of these commands, making it simple to customize and run the solution based on your needs.

How heatmap insights drive smarter decisions

As shown below, the heatmap for the sample input frame provides a clear picture of traffic flow, highlighting areas of congestion and smoother movement. These insights are incredibly helpful for traffic management, allowing planners to redirect vehicles, improve parking layouts, and make better use of roadways.

Fig 3. Heatmap of traffic flow generated using YOLO11. Image by author.

By visualizing traffic patterns, heatmaps make it easier to identify bottlenecks or problem areas and find ways to improve efficiency. They can also uncover important details like sudden lane changes or slowdowns, which might point to safety risks. Addressing these issues helps reduce accidents and makes roads safer and more reliable. Overall, heatmaps provide the insights needed to improve traffic management and contribute to safer roadways for everyone.

Creating computer vision applications using Ultralytics solutions

Ultralytics YOLO11 solutions can be used to solve everyday challenges across different sectors, improving efficiency and decision-making. Let’s discuss a few of them in detail. 

Retail optimization with YOLO11

Managing a retail store during rush hours can feel overwhelming. Sometimes employees struggle to manually monitor customer flow, leading to overcrowded aisles and insufficient staffing at checkout counters. Using YOLO11, Ultralytics offers a simple solution to count customers entering and leaving the store, helping managers adjust staff placement to meet demand without guesswork.

YOLO11 can help improve parking management

Parking management can be frustrating when spaces are hard to find. Traditional methods like manual monitoring often can’t keep up during peak hours. Using YOLO11 can be a great way to provide real-time updates on available parking spaces. Computer vision can help guide drivers efficiently and reduce unnecessary delays.

On top of this, unauthorized vehicles occupying reserved spots can raise security concerns. With YOLO11 and ANPR (Automatic Number Plate Recognition), these violations can be detected and addressed promptly, ensuring that restricted areas remain secure. Also, by analyzing traffic patterns within the parking lot, bottlenecks can be minimized, creating a better experience for drivers.

Fig 4. Smart parking management using YOLO11.

Optimizing agricultural operations with YOLO11

Another interesting Ultralytics solution is related to object counting in specific regions. It can be used to help farmers manage large-scale operations more effectively. For example, it can analyze drone footage to monitor crops or livestock within specific areas, making it easier to detect issues like pest outbreaks or disease hotspots early. This makes it possible for farmers to act quickly to protect their harvest and reduce losses. 

Fig 5. Using computer vision to detect beetles.

Benefits of using Ultralytics YOLO11 solutions

Here are some unique benefits that showcase the positive impact that Ultralytics YOLO11 solutions can have on various business workflows:

  • Improves resource allocation: YOLO11 can help identify where resources are most needed, such as deploying staff in busier areas or adjusting layouts to boost efficiency.
  • Reduces operational costs: Video analysis automation reduces the reliance on manual efforts, saving time and lowering expenses while keeping operations running smoothly.
  • Identifies hidden opportunities: It can highlight trends and patterns that may be missed, like underused spaces or chances to improve customer engagement.
  • Simplifies data sharing: Detailed visual outputs make it easy to share insights across teams, ensuring everyone is on the same page for better coordination.

Puntos clave

Ultralytics YOLO11 offers cutting-edge technology in a user-friendly way, simplifying image and video analysis tasks so they can be easily used by anyone, regardless of technical expertise. With its flexibility, YOLO11 supports applications in various industries, including retail, urban planning, sports, and workplace safety. 

Businesses can use it to tackle challenges, uncover valuable insights, and streamline daily operations. Its straightforward setup, flexible options, and clear outputs make it an effective tool for turning visual data into actionable insights.

Join our community and check out our GitHub repository to learn more about AI. See how computer vision in manufacturing and AI in healthcare are pushing the boundaries of innovation. Also, take a look at our licensing options to get started today!

Logotipo de FacebookLogotipo de TwitterLogotipo de LinkedInSímbolo de enlace de copia

Leer más en esta categoría

¡Construyamos juntos el futuro
de la IA!

Comienza tu viaje con el futuro del aprendizaje automático