Ultralytics YOLO27: Join the waitlist.
License YOLO
Guides

Build AI-powered drone applications with Ultralytics YOLO11

Learn how to build AI-powered drone applications with Ultralytics YOLO11, enabling real-time object detection and drone-based computer vision tasks.

Abirami VinaAbirami Vina8 min read

Listen to this article

Building AI-powered drone applications with Ultralytics YOLO11

In-store shopping and online shopping may seem alike, but they rely on different logistics. Stores need shelves restocked, while online orders depend on doorstep deliveries. Thanks to technological advancements, both shopping experiences are being reshaped in parallel.

For example, a major shift is happening in deliveries. AI-powered drones are changing how products arrive at our homes. These smart drones are expected to handle around 808 million deliveries in the next decade, turning the skies into the newest delivery route for everyday commerce.

Delivery drones use artificial intelligence (AI) and computer vision, a subfield of AI that is used to analyze visual data, to navigate and maneuver around obstacles. Computer vision models like Ultralytics YOLO11 can help drones detect and track objects in real time, allowing them to better understand and interact with their environment.

A delivery drone taking a package to its destination

Fig 1. A delivery drone taking a package to its destination.

Companies like Meituan and DJI are already integrating computer vision into their drones. In fact, the rapid adoption of drones in various industries has set up the AI drone market to reach $206.9 billion by 2031.

In this article, we’ll take a closer look at how computer vision models like Ultralytics YOLO11 can be used in drone-based applications like drone deliveries. We’ll walk through an example that will showcase how these technologies can be developed and tested before being used in real-world scenarios.

Using Ultralytics YOLO11 on drones to detect houses#

A key part of delivery drones is their ability to detect houses as they navigate. To recreate this capability and understand how it works, we’ll train a computer vision model that can identify houses in footage captured by an aerial drone. We’ll custom-train Ultralytics YOLO11 for this, which involves fine-tuning a pre-trained YOLO11 model to recognize and detect houses by using labeled examples.

To do so, we’ll need high-quality video data from a drone. Interestingly, even without access to a real drone, we can still generate realistic aerial footage. Let’s take a look at how.

Creating an artificial drone shot using Google Earth Studio#

Google Earth Studio is a web-based animation tool that lets users create still and animated content using Google Earth's satellite and 3D imagery. We can use it to create realistic aerial footage.

The first step is to open Google Earth Studio and create a project, as shown below.

You’ll need a Google account to sign in.

Creating a project on Google Earth Studio

Fig 2. Creating a project on Google Earth Studio.

Once you have signed in, you can pick a location for your artificial drone video. Using the search bar in the top left corner of the page, you can search for locations. For this tutorial, we’ll choose Canada. Also, since we are going to train a model to detect houses, our drone video should have an aerial view of houses.

Picking a location using Google Earth Studio

Fig 3. Picking a location using Google Earth Studio.

Next, we can set the first and last time frames to capture the motion of the artificial drone shot. Once you’ve chosen the starting location for the drone shot, set the first frame using the blue diamonds, as shown below.

Setting the first frame using the blue diamonds

Fig 4. Setting the first frame using the blue diamonds.

Next, we can choose the last frame to determine the drone’s destination. This will help us create a moving effect for the drone footage. To do this, slide the bar (highlighted below) to the right to a specific time in order to create the moving effect for the drone shot. Once again, use the blue diamonds to set the last point.

Setting the last frame by moving the bar

Fig 5. Setting the last frame by moving the bar.

Finally, you can save this project and render it by clicking the red “Render” button in the top right corner of the page. This will give you the final video output of the drone shot, successfully creating artificial drone video footage.

Rendering the final output video

Fig 6. Rendering the final output video.

How to label the drone data?#

Now that we’ve created artificial drone video footage, the next step is to label or annotate the houses in it. We’ll also need to separate the individual frames of the video.

To get started with this, we’ll install LabelImg. LabelImg is an open-source image labeling tool. You can install it directly from the terminal using the pip package installer by running the following command: “pip install labelImg”.

After installation, you can run the tool using the command ‘labelImg’ on your terminal or command prompt. This will bring you to the page shown below.

The LabelImg tool interface

Fig 7. The LabelImg tool interface.

Meanwhile, we can either use an online video-to-image converter or a tool called FFmpeg to split the video into frames. FFmpeg is a collection of libraries and tools to process multimedia content such as audio, video, subtitles, and related metadata.

You can use the following terminal command to separate each frame of the drone footage video:

ffmpeg -i input_video.mp4 frame_%04d.png

Once we’ve separated the frames of the drone footage, we can start labeling the objects (houses) in them. By navigating to the image folder through the LabelImg tool, we can label the objects in each image. Make sure LabelImg is set to save labels in YOLO format, and save and verify every labeled image. After annotating the images, we can now move on to training Ultralytics YOLO11 using this data.

LabelImg with the Verify Image and Save buttons highlighted, after drawing YOLO-format boxes around two vehicles on a highway

Fig 8. An example of saving annotated images.

Ultralytics YOLO11 model training workflow#

Before we start training Ultralytics YOLO11, we’ll organize our images and labels. Start by creating two folders: one named "train" and the other "valid". Split your images between these folders. Inside each, create separate subfolders for the images and their corresponding label files (text format), as shown below.

An example of creating image and label folders

Fig 9. An example of creating image and label folders.

Then, we can start training the Ultralytics YOLO11 model as follows:

  • Step 1: Install the Ultralytics Python package. You can do this by running the command “pip install ultralytics” in your terminal. If you encounter any installation issues, check out our troubleshooting guide for tips and tricks to help you solve them.
  • Step 2: After successfully installing the package, create a file with the name ‘data.yaml’. This is a dataset configuration file that is crucial for training the model. In the data.yaml file, include the following information: the path to your training dataset, the path to your validation dataset, the number of classes (nc), and a list of class names (names), as shown below.

data.yaml file in a code editor setting train and val image paths, nc: 1, and the single class name house

Fig 10. An example of a data.yaml file.

  • Step 3: Once the ‘data.yaml’ file is configured, you can start training your model using the following Python code. This code loads the pre-trained Ultralytics YOLO11n model and trains it as per your configurations.
from ultralytics import YOLO

# Load a YOLO11 model
model = YOLO("yolo11n.pt")  # choose your model, e.g., YOLO11 nano

# Train the model with your data and settings
model.train(data="data.yaml", epochs=100, imgsz=640)
  • Step 4: Once the training is complete, you should see an output similar to the one shown below. This means you've successfully trained your Ultralytics YOLO11 model for drone-based applications.

The output shown after model training

Fig 11. The output shown after model training.

Running predictions using Ultralytics YOLO11 on drones#

The trained Ultralytics YOLO11 model can now be used to make predictions through a process called inference. Inference involves using a model to analyze new, unseen data based on what it learned during training. In this case, the model can be used to find and label specific objects, like houses, in images or videos by drawing bounding boxes around them.

To run a prediction, you can use the trained Ultralytics YOLO11 model on an input video using the following Python code. In this example, we’ll use the same artificial drone video that was used for training, but you can use any other video file if you prefer.

# Import library
from ultralytics import YOLO

# Load the YOLO model
model = YOLO("best.pt")  # Choose your custom-trained model

# Predict the results from the model
results = model.predict(source="path/to/original/video.mp4", show=True, save=True)

After running this code, the output video file with the predictions and bounding boxes will be saved.

A frame from the output video file

Fig 12. A frame from the output video file.

Integrating Ultralytics YOLO11 on drones for various applications#

Detecting houses for drone delivery packages is just one example of how computer vision and Ultralytics YOLO11 can be applied. Here are some other real-world uses of computer vision, YOLO11, and aerial drones:

  • Surveillance and security: AI drones can be used to monitor large areas in real time. They can detect intrusions, track suspicious activities, and enhance security at national borders as well as large public events.
  • Disaster response and search and rescue: Equipped with thermal cameras and object detection, drones can help locate survivors in disaster zones. They can also assess damage and deliver emergency supplies.
  • Agriculture and precision farming: Drones integrated with computer vision can be used to analyze crop health and detect diseases, helping farmers increase yields while reducing costs.
  • Mapping and geospatial analysis: By collecting high-resolution 3D maps, AI drones can assist with urban planning and land surveys. They provide faster and more accurate terrain assessments than traditional methods.

Key takeaways#

AI drones powered by computer vision are changing many industries, from delivering packages to helping in emergencies and farming. In this guide, we walked through creating an artificial drone video, labeling objects in it, training Ultralytics YOLO11, and using it to detect houses.

Applying object detection to drone footage makes these drones smarter, allowing them to recognize and track objects automatically in real time. As technology improves, AI-driven drones will likely play an even bigger role in making deliveries faster, improving security, and helping with disaster response.

Join our community and explore our GitHub repository to learn more about vision AI, and check out our licensing options to kickstart your computer vision projects. Interested in innovations like AI in manufacturing or computer vision in the automotive industry? Visit our solutions pages to discover more.

Written by

Abirami Vina
Abirami Vina

Content Creator · Ultralytics

Starting her career as a computer vision engineer, Abirami Vina built a strong foundation in vision AI and machine learning. She is a Content Creator for Ultralytics and the Founder and Chief Writer at Scribe of AI, where she crafts high-quality technical content for AI-focused companies. Driven by a passion for making AI both understandable and engaging, her work bridges the gap between cutting-edge technology and real-world impact.

Comments

Ask a question, share your results, or help someone else.

Explore solutions

Computer vision in sports

Computer vision in sports

Discover how Ultralytics YOLO powers sports vision with player and ball tracking, performance analytics, coaching insights, and athlete rehabilitation.
Learn more
Computer vision for aerial imagery

Computer vision for aerial imagery

Turn drone and aerial imagery into real-time insights for agriculture, aquaculture, conservation, and geospatial analysis with Ultralytics YOLO.
Learn more
Computer vision in aerospace

Computer vision in aerospace

Apply computer vision in aerospace with Ultralytics YOLO for aircraft inspection, runway FOD detection, airport ground operations, and composite defect detection.
Learn more
Computer vision in security

Computer vision in security

Protect every site with Ultralytics YOLO models. Vision AI powers perimeter monitoring, threat detection, license-plate recognition, and workplace safety.
Learn more
Computer vision in robotics

Computer vision in robotics

Power smarter machines with Ultralytics YOLO models. Vision AI in robotics drives autonomous navigation, perception, object tracking, and real-time control.
Learn more
Computer vision in logistics

Computer vision in logistics

Streamline logistics with Ultralytics YOLO models. Vision AI enables package inspection, sorting, vehicle tracking, and real-time warehouse safety monitoring.
Learn more
Computer vision in retail

Computer vision in retail

Reimagine retail with Ultralytics YOLO models. Vision AI powers inventory tracking, shelf monitoring, queue management, and smarter customer insights.
Learn more
Computer vision in healthcare

Computer vision in healthcare

Build healthcare solutions with Ultralytics YOLO models. Vision AI in healthcare powers faster medical imaging, smarter diagnostics, and patient monitoring.
Learn more
Computer vision in manufacturing

Computer vision in manufacturing

Optimize manufacturing with Ultralytics YOLO models. Vision AI drives quality control, defect detection, PPE compliance, and assembly line automation.
Learn more
Computer vision in automotive

Computer vision in automotive

Apply computer vision in automotive with Ultralytics YOLO models. Vision AI elevates road safety, driver assistance, and vehicle automation for smarter roads.
Learn more
Computer vision in agriculture

Computer vision in agriculture

Bring vision AI to smart agriculture with Ultralytics YOLO models. Power crop monitoring, livestock tracking, and precision farming for higher, smarter yields.
Learn more

Let's build the future of AI together!

Begin your journey with the future of machine learning