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 Concurrent-Image-Read
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 Distribution
Close
Hashes for ConcurrentImageRead-0.0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0351c03f53c7178de360fadea1aeb6f9ca113f932e47f817b79ec26f0e113f1 |
|
MD5 | 5f9b34a36593765cf683d6c41fc0a864 |
|
BLAKE2b-256 | 497b8a5ff9e83fea3049192974b85f54c9a50adebcb3265ff33dd69a634e83b8 |
Close
Hashes for ConcurrentImageRead-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82c0b077511379e416076190f0c7148a4fee8b5c139e875d607746c98d55a433 |
|
MD5 | cfd6098bcdeb2a20e703c91cbf6a147a |
|
BLAKE2b-256 | fddf3953898076bc185ad53f3a5dfd9ce3aa825b97385a60baa6e3f29fcf9067 |