Skip to main content

DeadLeaves

An open-source Python package for creating dead leaves images in a systematic, yet flexible way.

Tests Py versions PyPI version Documentation Status

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:

  1. Clone the repository from GitHub:
git clone git@github.com:ag-perception-wallis-lab/deadleaves.git
  1. Install deadleaves to 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)

Source distribution for deadleaves 1.1.0
File Size Uploaded
deadleaves-1.1.0.tar.gz 36.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for deadleaves 1.1.0
File Interpreter ABI Platform
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 log

Release 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

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page