NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

DroneVis: Versatile Computer Vision Library for Drones

Ahmed Heakl, Fatma Youssef, Victor Parque, Walid GomaaarXiv 2024

Abstract: This paper introduces DroneVis, a novel library designed to automate computer vision algorithms on Parrot drones. DroneVis offers a versatile set of features and provides a diverse range of computer vision tasks along with a variety of models to choose from. Implemented in Python, the library adheres to high-quality code standards, facilitating effortless customization and feature expansion according to user requirements. In addition, comprehensive documentation is provided, encompassing usage guidelines and illustrative use cases.

Introduction

While unmanned aerial vehicles (UAVs) are increasingly utilized in sectors like agriculture and surveillance, integrating advanced computer vision (CV) remains a fragmented process. Most existing research focuses on isolated tasks using bespoke scripts that lack reusability. Developers face significant hurdles, including the complexity of real-time communication, the need for diverse task support (detection, depth, counting), and hardware constraints that demand high-speed inference. Furthermore, standard CV models often fail when subjects are distant, a common scenario in aerial footage. DroneVis addresses these gaps by providing a unified, open-source Python library that bridges state-of-the-art CV with drone hardware.

Methods and Implementation

DroneVis is a modular library built on Python, adhering to PEP8 standards with 83% test coverage. To ensure responsive control, the library utilizes multi-threaded connectivity, employing separate threads for command, video, and navigation data via socket communication.

Diverse Interfaces and Model Repository

The library integrates a wide array of state-of-the-art architectures, including YOLOv8 for detection and segmentation, MediaPipe for pose and face analysis, and GLPDepth for monocular depth estimation. To accommodate different deployment environments, DroneVis offers both a resource-efficient CLI for headless systems and a comprehensive Tkinter-based GUI for real-time monitoring.

The DroneVis GUI provides real-time camera and gesture feeds, battery status, and flight controls.

Gesture-Based Flight Control

A novel feature of DroneVis is Human-Drone Interaction (HDI) via hand gestures. The system utilizes MediaPipe to extract 21 hand keypoints (forming a 63-dimensional input) which are then processed by a lightweight MLP classifier. This allows pilots to control the drone using intuitive hand poses, moving beyond traditional joystick interfaces.

Hand gesture mapping for drone control, including commands for Up, Right, Forward, Down, Left, and Stop.

Key Insights and Results

One of the library's practical breakthroughs is addressing the "distant face" problem. Standard detectors often fail at drone altitudes; the authors solved this by fine-tuning a YOLOv8-nano model on distant face data, achieving 55 FPS and significantly higher recall.

Across various tasks, YOLOv8 emerged as the optimal balance of speed and accuracy:

  • Object Detection: Achieved 80 FPS with 53.9 AP.
  • Segmentation: Reached 67 FPS, enabling high-speed obstacle avoidance.
  • Efficiency: The library maintains a minimum of 4.5 FPS even on modest CPU-only hardware during full simulations.

Limitations and Future Work

Currently, DroneVis is primarily optimized for Parrot AR2 drones. Future development aims to expand compatibility to DJI and MAVLink-based drones. Additionally, the authors plan to integrate a Simultaneous Localization and Mapping (SLAM) module, evolving DroneVis from a vision library into a comprehensive suite for autonomous navigation in GPS-denied environments.

Summary updated

BibTeX
@misc{heakl2024dronevis,
  author = {Ahmed Heakl and Fatma Youssef and Victor Parque and Walid Gomaa},
  title = {{DroneVis: Versatile Computer Vision Library for Drones}},
  year = {2024},
  eprint = {2406.00447},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.00447},
}
Figure