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.1.1.tar.gz (27.3 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.1.1-py3-none-any.whl (23.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for deadleaves-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7bc2873389647c724c44654a382deb89fe0be5a3f4cc9a148ad7da297c64ac85
MD5 f4ecffa6ab287a6c19de741d9379a462
BLAKE2b-256 5fc2ad9baec5bbbc988a63115365f4c540a2d066dfe639dbd0c16667afbdf76f

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: deadleaves-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 23.5 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.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 207e9dc6af4b5fd64a2a11079ac3d09da982d9d38f5d71b49ec2fe92c3104c2f
MD5 f50f456c65ebcf32ad185d2f4e596cc6
BLAKE2b-256 b75851a632d395367ccfccd3a492ee65633ed3673f1f1aafdf6fc42b11200b3e

See more details on using hashes here.

Provenance

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