image2numpy
A program for bidirectional conversion between grayscale image sequences and numpy ndarrays.
Installation
pip install image2numpy
Usage
import image2numpy
np_arr = image2numpy.load_png_to_3d_array("<folder_path>") # Load all images in the folder into a 3D numpy array in lexicographical order
sub_arr = image2numpy.extract_valid_cube(np_arr) # Randomly extract a valid cubic subarray
image2numpy.save_3d_array_as_gray_images(sub_arr, "<target_folder>") # Save the 3D numpy array back to a sequence of grayscale images
Metadata
Release files for image2numpy 0.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| image2numpy-0.0.0.tar.gz | 5.2 kB | Without provenance | Details for image2numpy-0.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| image2numpy-0.0.0-py3-none-any.whl | Python 3 | none | any | Details for image2numpy-0.0.0-py3-none-any.whl |
Total release size: 12.1 kB
Release files / image2numpy-0.0.0.tar.gz
| Download URL | image2numpy-0.0.0.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
063df431e5a6334415e3af2a7ccaefa9569176ed25ddbce62e1611b43de83dd6
|
|
BLAKE2b-256 checksum How to use checksums |
7b150bfabccee47e5ac13fa37d4e85c64b98760d9b0f522569d4041ab36d6356
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.7
|
Release files / image2numpy-0.0.0-py3-none-any.whl
| Download URL | image2numpy-0.0.0-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
24437ddde0fee4cc783fd0ee632ca6964578ded456c9e7c7ce1c9bcce34d0f7a
|
|
BLAKE2b-256 checksum How to use checksums |
8a7e986ec2551fa4bdb849b1bd02b8fe88c1e0854515e078625016f86c6d298c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.7
|
Security for image2numpy 0.0.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.