DeadLeaves
An open-source Python package for creating dead leaves images in a systematic, yet flexible way.
Core functionalities
- generating dead leaves images with properties (e.g. sizes, orientations, colors) drawn from a wide range of distributions (e.g. uniform, normal, Poisson, power-law, constant) or directly from an image.
- picking from various leaf shapes (circles, ellipsoids, rectangles, regular polygons).
- sampling in different color spaces (RGB, HSV, Gray-scale).
- applying different noise or image textures, either to the entire image or per-leaf.
- varying the image area covered by leaves, i.e. choosing between sparser or denser sampling and position mask.
- creating arbitrarily complex leaf configurations by adding dependencies between leaf features (e.g. space-dependent color gradients).
Installation
You may install deadleaves from PyPI using pip:
pip install deadleaves
OR (for developers), install from source:
- Clone the repository from GitHub:
git clone git@github.com:ag-perception-wallis-lab/deadleaves.git
- Install
deadleavesto your local python library using pip, by running from the top-level directory:
pip install .
To install in developer/editable mode run pip install -e . at the root directory.
This makes changes to files immediately usable, rather than having to reinstall the package after every change.
Dependencies
The package requires using a Python version 3.12 or newer.
The dependencies should be automatically installed (at least using pip). deadleavess required dependencies are:
Metadata
Release files for deadleaves 1.1.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 | |
|---|---|---|---|
| deadleaves-1.1.0.tar.gz | 36.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| deadleaves-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 65.6 kB
Release files / deadleaves-1.1.0.tar.gz
| Download URL | deadleaves-1.1.0.tar.gz |
|---|---|
| Size | 36.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
184d4312662835a55018aa464938bae543376e7a2dfce84570c2b4e6d3f40ae4
|
|
BLAKE2b-256 checksum How to use checksums |
39486e68d2c61f365f36f4a6e806c0fa2f3599eb0d4b3edc42f6b2bb6c17d187
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 27, 2026.
Transparency logRelease files / deadleaves-1.1.0-py3-none-any.whl
| Download URL | deadleaves-1.1.0-py3-none-any.whl |
|---|---|
| Size | 29.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fdb116b5a1d462fb808056bf41625f4876ef40ec77a2f8f061ec0205acdfd6ed
|
|
BLAKE2b-256 checksum How to use checksums |
a1c4f6b75934c93b0cafa09e62c9fd378611ba6974424260fc18645e5eb50ec9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 27, 2026.
Transparency log