OpenCoverage
Coverage path planning for UAV aerial surveying. OpenCoverage computes waypoint flight paths that fully cover a terrain polygon, with support for camera overlap, flight constraints, and multiple sweep patterns.
Python reimplementation of the original UAV Planning library, using Shapely instead of CGAL. CPU execution is the default; optional GPU acceleration via CuPy is available for the optimal sweep search.
Features
- Search patterns: back-and-forth, long-edge, optimal sweep, following-wind
- Planning targets: spatial resolution, cruise velocity, or fixed altitude
- Mission splitting by UAV flight-time limits
- Input formats: KML polygons, Mission Planner
.polyfiles, INI configuration - Output: QGroundControl WPL 120 waypoint files
- Optional GPU: CuPy acceleration for optimal sweep angle search
Installation
pip install -e ".[dev]"
Optional GPU support:
pip install -e ".[gpu]"
Quick start
from shapely.geometry import Polygon
import opencoverage as oc
polygon = Polygon([(0, 0), (100, 0), (100, 80), (0, 80)])
mission = oc.plan(
polygon=polygon,
uav=oc.UAV(min_height=70, max_height=500, survey_velocity=17),
camera=oc.PinholeCamera(
pixel_size_mm=0.0032,
focal_length_mm=8.43,
sensor_width_mm=6.55,
sensor_height_mm=4.92,
capture_rate_s=3,
),
pattern="optimal_sweep",
lateral_overlap=0.8,
forward_overlap=0.7,
target="velocity",
target_value=17.0,
)
print(len(mission.path), "waypoints at", mission.flight_height, "m")
Command line
opencoverage examples/sample_field.kml config/quad_tetracam.ini mission.txt
opencoverage examples/sample_field.poly config/quad_tetracam.ini mission.txt --split
opencoverage examples/sample_field.kml config/quad_tetracam.ini mission.txt --gpu
Patterns
| Pattern | Description |
|---|---|
back_forth |
Standard boustrophedon sweep |
long_edge |
Sweep lines perpendicular to the longest polygon edge |
optimal_sweep |
Minimize horizontal sweep width over rotation angles |
following_wind |
Align sweeps with meteorological wind direction |
Project layout
src/opencoverage/
├── models.py # UAV, camera, mission dataclasses
├── parameters.py # Survey parameter formulas
├── planner.py # High-level plan() API
├── mission_splitter.py # Flight-time mission splitting
├── geometry/ # Shapely map and transforms
├── patterns/ # Coverage search patterns
├── io/ # Config, KML, QGC, coordinate conversion
└── gpu/ # Optional CuPy kernels
License
MIT License. Copyright (c) J. Irving Vasquez-Gomez.
Metadata
Release files for opencoverage 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| opencoverage-0.2.0.tar.gz | 17.1 kB | Without provenance | Details for opencoverage-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| opencoverage-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for opencoverage-0.2.0-py3-none-any.whl |
Total release size: 41.8 kB
Release files / opencoverage-0.2.0.tar.gz
| Download URL | opencoverage-0.2.0.tar.gz |
|---|---|
| Size | 17.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e1fd881f2a1678134513332038aaed26200faf243cfd4c2064608e18090c753f
|
|
BLAKE2b-256 checksum How to use checksums |
56483db7716c3b6eac1231fece0060816a3f9cb787318eb20e4ffdbea62e0017
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.5
|
Release files / opencoverage-0.2.0-py3-none-any.whl
| Download URL | opencoverage-0.2.0-py3-none-any.whl |
|---|---|
| Size | 24.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
baa6ce5ca85f79f9ab9cab86e148ed7fdf33b41dd8f1319db63b70d3022ce07d
|
|
BLAKE2b-256 checksum How to use checksums |
37d8dec419eed9ebd11826031c9ce9a8d20ee2dc8309fc2c6a4bdacaf9555bfd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.5
|
Security for opencoverage 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.