Skip to content

Commit

Permalink
v0.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
sujitmandal authored Jan 12, 2022
1 parent e9fbee6 commit 286ff24
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 70 deletions.
96 changes: 32 additions & 64 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,98 +1,66 @@
## Convert-Images-Into-Array:
[![Build Status](https://travis-ci.org/sujitmandal/images-into-array.svg?branch=master)](https://travis-ci.org/sujitmandal/images-into-array) [![GitHub license](https://img.shields.io/github/license/sujitmandal/images-into-array)](https://github.com/sujitmandal/images-into-array/blob/master/LICENSE) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/images-into-array) ![PyPI - Wheel](https://img.shields.io/pypi/wheel/images-into-array) ![PyPI](https://img.shields.io/pypi/v/images-into-array)
[![Build Status](https://travis-ci.org/sujitmandal/url-into-images.svg?branch=master)](https://travis-ci.org/sujitmandal/url-into-images) [![GitHub license](https://img.shields.io/github/license/sujitmandal/url-into-images)](https://github.com/sujitmandal/url-into-images/blob/master/LICENSE) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/url-into-images) ![PyPI - Wheel](https://img.shields.io/pypi/wheel/url-into-images) ![PyPI](https://img.shields.io/pypi/v/url-into-images)

[![Downloads](https://pepy.tech/badge/images-into-array)](https://pepy.tech/project/images-into-array)
[![Downloads](https://pepy.tech/badge/url-into-images)](https://pepy.tech/project/url-into-images)

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

## Package Installation :
## Package Installation :
```
pip install images-into-array
pip install url-into-images
```
## Url Into Images :
provide image download link through csv file and it will download all the images. also you can chose different extension.
```
• jpg
[Package Link](https://pypi.org/project/images-into-array/)
• jpeg
## 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.
• png
OpenCV Document :
-----------------
[OpenCV Document](https://docs.opencv.org/3.4/de/d25/imgproc_color_conversions.html)
• bmp
• gif
```
## How to import the module:
```python
images_path = ('')

image_height = Enter The Image Size [32, 64, 128]
URL_PATH = ('') # csv file where image URL contain

image_width = Enter The Image Size [32, 64, 128]
IMAGE_PATH = ('') # Download image path
```
## NORMAL :
## Download JPG
```python
from images_into_array.images_into_array import images
from url_into_images.url_into_images import url_jpg

array = images(images_path, image_height, image_width)

print(array.shape)
url_jpg(URL_PATH, IMAGE_PATH)
```
## RGB ↔ GRAY :
## Download JPEG
```python
from images_into_array.images_into_array import rgb_gray

gray = rgb_gray(images_path, image_height, image_width)
from url_into_images.url_into_images import url_jpeg

print(array.shape)
url_jpeg(URL_PATH, IMAGE_PATH)
```
## RGB ↔ CIE L*a*b* :
## Download PNG
```python
from images_into_array.images_into_array import rgb_lab
from url_into_images.url_into_images import url_png

lav = rgb_lab(images_path, image_height, image_width)

print(array.shape)
url_png(URL_PATH, IMAGE_PATH)
```
## RGB ↔ HLS :
## Download BMP
```python
from images_into_array.images_into_array import rgb_hls

hls = rgb_hls(images_path, image_height, image_width)
from url_into_images.url_into_images import url_bmp

print(array.shape)
url_bmp(URL_PATH, IMAGE_PATH)
```
## RGB ↔ CIE L*u*v* :
## Download GIF
```python
from images_into_array.images_into_array import rgb_luv

luv = rgb_luv(images_path, image_height, image_width)
from url_into_images.url_into_images import url_gif

print(array.shape)
```
## RGB ↔ HSV :
```python
from images_into_array.images_into_array import rgb_hsv

hsv = rgb_hsv(images_path, image_height, image_width)

print(array.shape)
```
## RGB ↔ YCrCb JPEG (or YCC) :
```python
from images_into_array.images_into_array import rgb_ycrcb

ycrcb = rgb_ycrcb(images_path, image_height, image_width)

print(array.shape)
url_gif(URL_PATH, IMAGE_PATH)
```

## Required package’s:
```
• conda install -c conda-forge opencv=4.2.0
• pip install shuffle
• pip install numpy
• pip install tqdm
• pip install pandas
```
## License:
MIT Licensed
Expand Down
13 changes: 7 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
__author__ = 'Sujit Mandal'
#Date : 30-08-2020
from setuptools import setup

def readme():
Expand All @@ -7,12 +9,12 @@ def readme():
return(README)

setup(
name = 'images-into-array',
version = '2.0.6',
description = 'Convert Multiple Images into a Array and Different Color Spaces into a Array',
name = 'url-into-images',
version = '0.1.2',
description = "provide image download link through csv file and it will download all the images. also you can chose different extension.",
long_description = readme(),
long_description_content_type = 'text/markdown',
url = 'https://github.com/sujitmandal/images-into-array',
url = 'https://github.com/sujitmandal/url-into-images',
author = 'Sujit Mandal',
author_email = 'mandals974@gmail.com',
license = 'MIT',
Expand All @@ -25,9 +27,8 @@ def readme():
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
],

packages = ['images_into_array'],
packages = ['url_into_images'],
include_package_data = True,
)

0 comments on commit 286ff24

Please sign in to comment.