Read Image Directory or Image List simultaneously with multi-processing
Project description
Concurrent-Image-Read
Concurrent-Image-Read is a python module to read Image Files or Image List Concurrently with multi-threading
Installation
Dependencies
- Python (>= 3.7)
- cv2 (>= 4.5)
- NumPy (>= 1.17)
- glob (>= 0.7)
- future (>= 0.18.2)
User installation
pip install ConcurrentImageRead
Source code
You can check the latest sources with the command:git clone https://github.com/adityamangal1998/Concurrent-Image-Read.git
Usage
Default Parameters
- read function
- image_list = List or Numpy array or Single Path of image
- num_threads = Number of threads (default 3) (optional)
- channel_type = BGR or RBG (default BGR) (optional)
- root_path = String, Parent path for all files (optional)
- grayscale = True or False (optional)
- resize = List or Tuple resize scale in (width,height) (optional)
- normalisation = True or False, Image array divide by 255 (optional)
- read_dir function
- dir_path = String, Path of Image Directory
- file_type = 'all' or 'PNG','JPG',...etc or ['JPG','PNG',...] (case sensitive) (default png) (optional)
- num_threads = Number of threads (default 3) (optional)
- channel_type = BGR or RBG (default BGR) (optional)
- sub_dir = Bool, Find all Images in all child directory also (default False) (optional)
- grayscale = True or False (optional)
- normalisation = True or False, Image array divide by 255 (optional)
With Image List
You can check the latest sources with the command:import ConcurrentImageRead as CIR
image_list = ['1.png','2.png','3.png']
images = CIR.read(image_list,num_threads=3, channel_type='BGR')
With Image Path
import ConcurrentImageRead as CIR
image_list = '1.png'
images = CIR.read(image_list,num_threads=3, channel_type='BGR')
With Directory Path
import ConcurrentImageRead as CIR
dir_path = 'data/images'
images = CIR.read_dir(dir_path,file_type='png', num_threads=3, channel_type='BGR', sub_dir=False)
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
Built Distributions
Close
Hashes for ConcurrentImageRead-0.0.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7dfd300576a0bc8a00ad29b0f6ee35144fa493b45fea1c5a0392d10d954c8c0a |
|
MD5 | 40c1d185346112a8b7d66d582955bff3 |
|
BLAKE2b-256 | e5eb172230aa5d2dcb6ba5ddd109723b4366971966e597bab190f551853a5699 |
Close
Hashes for ConcurrentImageRead-0.0.7-py3.8.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a0c750bc8da57b14a2821582d586d165bead763221f03c178a52e1ee1732309 |
|
MD5 | 1b33dc6c3739cd3f848356de47727275 |
|
BLAKE2b-256 | 4af93d8955ce9461c2b777c7f40b22308553f92d0261c997c18667a80f960f49 |
Close
Hashes for ConcurrentImageRead-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8c179eb34aa5738d893af80a8d28a196d543317ce6e5a32cbd510400506bf80 |
|
MD5 | adf39c15d70f10cf69475527e8023422 |
|
BLAKE2b-256 | 726705660e482a27c0cc0f4248f94f630335db287c6657deb5394e12f33fe949 |