ArrayPil
The library that translates the Pillow image into a Numpy array and on the contrary. It also allows you to save images from the Numpy array. The library is designed to facilitate and understand the code. I also apologize for my crooked English translation. Author's website: https://tatem.pythonanywhere.com/
Example of using the library:
importing ArrayPil
from ArrayPil import *
importing numpy and pillow
from PIL import Image
import numpy as np
we will get a array numpy the image that we took from our folder (your folder)
# the first parameter is the location of the image
# the second parameter is the default RGB color model
num_array = ConvImgArray('image1.jpg')
print(num_array)
convert the a array numpy into a picture
# the first parameter is a array numpy
# the second parameter is the location where the image is saved
# the third parameter is the default RGB color model
ImgSave(num_array, 'res.jpg')
convert the numpy array to a pillow image
# the first parameter is a array numpy
# the second parameter is the default RGB color model
pil_img = ConvImgPil(num_array)
print(pil_img)
convert pillow images to numpy array
# the first parameter is the pillow image
# the second parameter is the default RGB color model
num_array2 = ConvPilArray(pil_img)
print(num_array2)
Metadata
Release files for ArrayPil 1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ArrayPil-1.2.tar.gz | 2.7 kB | Details |
Release files / ArrayPil-1.2.tar.gz
| Download URL | ArrayPil-1.2.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dd66ecbb378ffd5ef96c8c81b45814390748769a276f8d5f57f2dfbb7ab28caa
|
|
BLAKE2b-256 checksum How to use checksums |
2001de49df7b3ab509bb72a240c097429d14d6c7e0defce9cb89e9027b032b0b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|