Skip to main content

Convert Multiple images into a array and saved it into .npy file and letter user it for various task

Project description

Convert-Images-Into-Array:


Convert Multiple images into a array and saved it into .npy file and letter user it for various task :

This package fuction requres two argument one is path of the images folder and another is image size.

How to import the module:


from images_into_array.images_into_array import images from images_into_array.images_into_array import rgb_hls from images_into_array.images_into_array import rgb_luv from images_into_array.images_into_array import rgb_lab from images_into_array.images_into_array import rgb_hsv from images_into_array.images_into_array import rgb_gray from images_into_array.images_into_array import rgb_ycrcb

images_path = ('') image_height = Enter The Image Size [32, 64, 128] image_width = Enter The Image Size [32, 64, 128]

#NORMAL :

array = images(images_path, image_height, image_width) print(array.shape)

#RGB ↔ GRAY :

gray = rgb_gray(images_path, image_height, image_width) print(array.shape)

#RGB ↔ CIE Lab* :

lav = rgb_lab(images_path, image_height, image_width) print(array.shape)

#RGB ↔ HLS :

hls = rgb_hls(images_path, image_height, image_width) print(array.shape)

#RGB ↔ CIE Luv* :

luv = rgb_luv(images_path, image_height, image_width) print(array.shape)

#RGB ↔ HSV :

hsv = rgb_hsv(images_path, image_height, image_width) print(array.shape)

#RGB ↔ YCrCb JPEG (or YCC) :

ycrcb = rgb_ycrcb(images_path, image_height, image_width) print(array.shape)

OpenCV Document :

https://docs.opencv.org/3.4/de/d25/imgproc_color_conversions.html

 Required package’s:

• conda install -c conda-forge opencv=4.2.0

• pip install shuffle

• pip install numpy

• pip install tqdm

License:

MIT Licensed

Author:

Sujit Mandal

Github : https://github.com/sujitmandal

LinkedIn : https://www.linkedin.com/in/sujit-mandal-91215013a/

Facebook : https://www.facebook.com/sujit.mandal.33671748

Twitter : https://twitter.com/mandalsujit37

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

images-into-array-1.0.9.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

images_into_array-1.0.9-py3-none-any.whl (4.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page