Skip to main content

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

ConcurrentImageRead-0.0.6.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distributions

ConcurrentImageRead-0.0.6-py3.8.egg (6.1 kB view hashes)

Uploaded Source

ConcurrentImageRead-0.0.6-py3-none-any.whl (4.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page