Skip to content

pzac/lens-stats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lens-stats

Ever been curious to know which focal lengths (or ISO, or lens) you're using the most often in your pictures? This script extracts these values (if available) from the JPEG EXIF data and shows the usage count, optionally grouping the records by camera model.

Setup

You need the PIL library:

pip install PIL

Usage

usage: python lens-stats.py [-h] [-g] [-i | -l] DIRECTORY

Extracts stats from a picture folder

positional arguments:
  DIRECTORY             the directory to scan

optional arguments:
  -h, --help            show this help message and exit
  -g, --group-by-camera
                        group by camera model
  -i, --iso             extract ISO value
  -l, --lens            extract lens model

The script will look recursively for all JPEG files within the folder. Example output:

 » python lens-stats.py .
N/A:  1
21mm: 1
33mm: 1
35mm: 1
84mm: 1
105mm:  1
Total files: 6

Links

About

Extract lens information from EXIF tags

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages