Skip to main content

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)

Source distribution for image2numpy 0.0.0
File Size Uploaded
image2numpy-0.0.0.tar.gz 5.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for image2numpy 0.0.0
File Interpreter ABI Platform
image2numpy-0.0.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page