Skip to main content

A package to generate dead leaves images.

Project description

DeadLeaves

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

Tests Py versions 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

We recommend using a Python version 3.12 or newer. The dependencies should be automatically installed (at least using pip). deadleavess required dependencies are:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

deadleaves-0.2.0.tar.gz (27.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

deadleaves-0.2.0-py3-none-any.whl (24.0 kB view details)

Uploaded Python 3

File details

Details for the file deadleaves-0.2.0.tar.gz.

File metadata

  • Download URL: deadleaves-0.2.0.tar.gz
  • Upload date:
  • Size: 27.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for deadleaves-0.2.0.tar.gz
Algorithm Hash digest
SHA256 392d326f7973a7e70c1dcb33e5dc1039d79095a959788aa927255e026efd4309
MD5 4efde4a7d5a4edbb10bd4c6da29e6f0b
BLAKE2b-256 9eb4698288ae715a554045ab3c2ee0cee639dbc547605fb9f6f248dd93f9aa54

See more details on using hashes here.

Provenance

The following attestation bundles were made for deadleaves-0.2.0.tar.gz:

Publisher: release.yml on ag-perception-wallis-lab/deadleaves

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file deadleaves-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: deadleaves-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 24.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for deadleaves-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 05c7bde50052b179500177c081580cbbb2d2757bc3d5fd7eab7063dd9ec85e97
MD5 1ecc48356daf20eaf8d7efd12439fa6c
BLAKE2b-256 c95e4ccc8f094e04e3cad130eff46ac6c14eb8f32b28d88c3a00e798071d9f2e

See more details on using hashes here.

Provenance

The following attestation bundles were made for deadleaves-0.2.0-py3-none-any.whl:

Publisher: release.yml on ag-perception-wallis-lab/deadleaves

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page