← Projects

Aerial imagery batch correction

A Python command-line tool that batch-corrected ~32,000 underexposed drone images (~380 GB) while preserving their EXIF metadata.

TODO: confirm whether this was a personal or professional project. Until then it is kept high-level.

Problem

About 32,000 drone images — roughly 380 GB — came out underexposed. Correcting them one at a time wasn't practical, and any fix had to keep each file's EXIF metadata intact.

TODO: add where the images came from, what they were used for, and why the underexposure mattered.

Approach

A Python command-line tool processes the whole set in one batch run. Each image goes through the same pipeline:

  • Measure. The image’s exposure is measured from its histogram.
  • Correct. The exposure adjustment is applied as a lookup table (LUT), so the per-pixel work is a single table lookup.
  • Denoise. Brightening dark images also brightens their noise, so a bilateral filter smooths noise while keeping edges sharp.
  • Keep the metadata. EXIF data from each original is written to its corrected copy.

To get through the full set, the work runs in a Windows process pool tuned for a dual-socket workstation with 72 logical cores.

TODO: describe the tuning — for example the pool size, how work was split into chunks, or how disk I/O was handled.

Pipeline diagram. A folder of drone images feeds a process pool running on 72 logical cores. Each worker reads an image and its EXIF data, measures exposure from the histogram, applies a LUT exposure correction, applies a bilateral denoise, then writes the corrected image with its original EXIF data to the output folder.
Diagram description

Pipeline diagram. A folder of drone images feeds a process pool running on 72 logical cores. Each worker reads an image and its EXIF data, measures exposure from the histogram, applies a LUT exposure correction, applies a bilateral denoise, then writes the corrected image with its original EXIF data to the output folder.

Demo

DemoTODO: record a short before/after comparison of one sample image (16:9, e.g. 1600×900 MP4, 10–20 seconds). Only use an image you are allowed to share.

Results

  • Batch-corrected about 32,000 images (~380 GB) with EXIF metadata preserved.
  • TODO: add the total processing time, or images per minute, on the 72-core workstation.
  • TODO: add how much time this saved compared with correcting the images by hand, if you measured it.

Stack

  • Python
  • CLI
  • Image processing
  • LUT
  • Bilateral filter
  • Multiprocessing
  • EXIF

Code available on request for interviews.