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.
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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file deadleaves-0.1.2.tar.gz.
File metadata
- Download URL: deadleaves-0.1.2.tar.gz
- Upload date:
- Size: 27.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58c6fa10545bcac019283ec2fdfc03ae40a83e8a1964c777ecf99c0a3cb2f2b5
|
|
| MD5 |
fa58179b38cbf85eec1f3795868ec3f7
|
|
| BLAKE2b-256 |
838222714e85d0f98c455eca18a2f9cc000207363ea4fe5563ca53759942f8f2
|
Provenance
The following attestation bundles were made for deadleaves-0.1.2.tar.gz:
Publisher:
release.yml on ag-perception-wallis-lab/deadleaves
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
deadleaves-0.1.2.tar.gz -
Subject digest:
58c6fa10545bcac019283ec2fdfc03ae40a83e8a1964c777ecf99c0a3cb2f2b5 - Sigstore transparency entry: 1199568656
- Sigstore integration time:
-
Permalink:
ag-perception-wallis-lab/deadleaves@7521959f3ed9bac62902b1266222e14494881bb7 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/ag-perception-wallis-lab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@7521959f3ed9bac62902b1266222e14494881bb7 -
Trigger Event:
release
-
Statement type:
File details
Details for the file deadleaves-0.1.2-py3-none-any.whl.
File metadata
- Download URL: deadleaves-0.1.2-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
803a4df5a14938746f0b02c109795516ddd93b27fb7ed5ec7b7f8b31b1d85a05
|
|
| MD5 |
a8423f80456fdc4bc61850be4803fd40
|
|
| BLAKE2b-256 |
562fc2b93aef3f5aa327ce2c8008ec63a88691d7234cd55399870f35f609ea9f
|
Provenance
The following attestation bundles were made for deadleaves-0.1.2-py3-none-any.whl:
Publisher:
release.yml on ag-perception-wallis-lab/deadleaves
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
deadleaves-0.1.2-py3-none-any.whl -
Subject digest:
803a4df5a14938746f0b02c109795516ddd93b27fb7ed5ec7b7f8b31b1d85a05 - Sigstore transparency entry: 1199568727
- Sigstore integration time:
-
Permalink:
ag-perception-wallis-lab/deadleaves@7521959f3ed9bac62902b1266222e14494881bb7 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/ag-perception-wallis-lab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@7521959f3ed9bac62902b1266222e14494881bb7 -
Trigger Event:
release
-
Statement type: