Skip to content

A command line utility (and library) which will determine whether a 16mm frame has been digitized at an angle

License

Notifications You must be signed in to change notification settings

IUMDPI/Detect-Angled-Frames

Repository files navigation

Detect-Angled-Frames

A command line utility (and library) which will determine whether a 16mm film frame has been digitized at an angle by detecting the edges of the film perforations.

usage: detect_angled_frames.py [-h] [--threads THREADS] [--min MIN]
                               [--outdir OUTDIR]
                               [--color_tolerance COLOR_TOLERANCE]
                               [--perf_line_pct PERF_LINE_PCT]
                               images [images ...]

positional arguments:
  images                images to process

optional arguments:
  -h, --help            show this help message and exit
  --threads THREADS     Number of threads
  --min MIN             minimum angle to report
  --outdir OUTDIR       Output directory for diagnostic images
  --color_tolerance COLOR_TOLERANCE
                        Color channel tolerance for baselight
  --perf_line_pct PERF_LINE_PCT
                        Percentage from top and bottom for perf location

The tool can generate images with alignment marks on them, as well as angle and filename information:

alt text

About

A command line utility (and library) which will determine whether a 16mm frame has been digitized at an angle

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages