Skip to content

a simple python package to analyse a directory full of images

Notifications You must be signed in to change notification settings

dhananjayraut/imdir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

a simple python package to analyse a directory full of images

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages