Skip to main content

A package to analyse a directory full of images

Project description

imdir

Actions Status PyPI version Python 3.6

a simple python package to analyse a directory full of images

Features

  • Easy Interface to remember
  • Analyse distribution of height, width, extensions etc.
  • Multithreaded for faster execution
  • high customizability for plots
  • Detects corupt files
  • well tested on diffrent platforms

Installation

stable version from pypi page

pip install imdir

or latest from master branch

pip install git+https://github.com/dhananjayraut/imdir

Dependencies

  • matplotlib
  • pillow

Usage / example

from imdir import image_dir
# give path to class
im_dir = image_dir(path="../input/train/",recursive=True, nthreads=4)

im_dir.sc_plot(alpha=0.5) # plot height and width as scatter plot

im_dir.width_plot() # plot width as histogram using matplotlib

im_dir.height_plot() # plot height as histogram using matplotlib

Documentation

Generated documentation

or see help for the image_dir class

help(imdir.image_dir)

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

imdir-0.2.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

imdir-0.2-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file imdir-0.2.tar.gz.

File metadata

  • Download URL: imdir-0.2.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.10

File hashes

Hashes for imdir-0.2.tar.gz
Algorithm Hash digest
SHA256 4ece40d407d73a64a541fff257af4b05bdb644028ed0f787aad93653dfbd2889
MD5 1451df23c422be1d39e7196e15dd6f8c
BLAKE2b-256 abad93e7ac3658a82e03fdeb4db3a131a0315f6a3fabb120d1539dac410fee30

See more details on using hashes here.

File details

Details for the file imdir-0.2-py3-none-any.whl.

File metadata

  • Download URL: imdir-0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.10

File hashes

Hashes for imdir-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 78b197ec18bc4a73edeb85c57bdd861d7998980c766529c3e72e7ddd7764dbec
MD5 51e9c09ee60a697783c1262e1646365f
BLAKE2b-256 fe758590ac02d26ae260769091822a043c14d6dfea4ed24ad7e132b01f8ce7b0

See more details on using hashes here.

Supported by

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