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.3.0.tar.gz (34.1 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.3.0-py3-none-any.whl (28.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for deadleaves-0.3.0.tar.gz
Algorithm Hash digest
SHA256 f4e150f7cf7bf549179388eebda5bb1dffa2b2c4f51cafb4304d3bcbe186d428
MD5 a6b62d462184cffd198e3ff2783fbe98
BLAKE2b-256 5300b5dccde6d15eda91012dfe503a2ba731caee3f8d86ae4256e10f07f2a25d

See more details on using hashes here.

Provenance

The following attestation bundles were made for deadleaves-0.3.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.3.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for deadleaves-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a6aaf16bd1eb31cc8605414946f97792b43d02a1aafa7fef3e5c9041f3fd83f7
MD5 e1a52c2bc96752e43fba9a8fa2599786
BLAKE2b-256 95d99b02a50822bdd085a5a92264868a31e143895175e096e9596ee3020cdba0

See more details on using hashes here.

Provenance

The following attestation bundles were made for deadleaves-0.3.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