Skip to content

sujitmandal/images-into-array

Repository files navigation

Convert-Images-Into-Array:

Build Status GitHub license PyPI - Python Version PyPI - Wheel PyPI Conda Version Anaconda-Server Badge Anaconda-Server Badge Conda Platforms Conda Recipe

Downloads

Convert Multiple Images into a Array and Different Color Spaces into a Array.

Package Installation :

pip install images-into-array 

Package Link

conda install -c conda-forge images-into-array 

Conda Package Link

images-into-array-feedstock

Convert-Images-Into-Array:

Convert Multiple Images into a Array and Different Color Spaces into a Array.This package fuction requres three argument one is path of the images folder and other is image_height and image_width.

OpenCV Document :

OpenCV Document

How to import the module:

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

NORMAL :

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

RGB ↔ GRAY :

from images_into_array.images_into_array import rgb_gray gray = rgb_gray(images_path, image_height, image_width) print(gray.shape)

RGB ↔ CIE Lab* :

from images_into_array.images_into_array import rgb_lab lav = rgb_lab(images_path, image_height, image_width) print(lav.shape)

RGB ↔ HLS :

from images_into_array.images_into_array import rgb_hls hls = rgb_hls(images_path, image_height, image_width) print(hls.shape)

RGB ↔ CIE Luv* :

from images_into_array.images_into_array import rgb_luv luv = rgb_luv(images_path, image_height, image_width) print(luv.shape)

RGB ↔ HSV :

from images_into_array.images_into_array import rgb_hsv hsv = rgb_hsv(images_path, image_height, image_width) print(hsv.shape)

RGB ↔ YCrCb JPEG (or YCC) :

from images_into_array.images_into_array import rgb_ycrcb ycrcb = rgb_ycrcb(images_path, image_height, image_width) print(ycrcb.shape)

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

PyPi

LinkedIn

Packages

No packages published

Languages