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
- num_threads = Number of threads (default 3)
- channel_type = BGR or RBG (default BGR)
- read_dir function
- file_type = Extension of image file (default png)
- num_threads = Number of threads (default 3)
- channel_type = BGR or RBG (default BGR)
- sub_dir = Search in sub folders also (default False)
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.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d085b0a881b5a981ce63569a01e77a124a051876cc593d6013cdc41cf0f59ad |
|
MD5 | a4caee4da653433f9f7519fbd3d12d7a |
|
BLAKE2b-256 | ec7bc6e70e9b46043bab5d5e567941574c57aed94dff91d948627366e241003b |
Close
Hashes for ConcurrentImageRead-0.0.6-py3.8.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | b76c26dd866837942fcdd2cdf9ab8d76bb9974ab76e419f4beb9eb07e8c8e814 |
|
MD5 | 24515e2f9a199a1d8823e7e364f2a9cc |
|
BLAKE2b-256 | 10d35bc1101fa05284fd128b2d90aa2bcd68f66e199253d529dd7447c691a531 |
Close
Hashes for ConcurrentImageRead-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bddf494e38d627bf51a7fd81d63d9697064a5701f59671ac044fd7ced984b218 |
|
MD5 | 4010375aa66bc38ade79a6c35cd8b666 |
|
BLAKE2b-256 | bb2b4f8e12bd214236eb8d1c1d5f6a1106e00899e43e7229067387f47752108a |