Skip to main content
100%

OCRs image and adds its content to EXIF field called 'description'

✓ Published0🌍 Public
Aalbcunha
Last edited Nov 2, 2018
Created on Nov 1, 2018

This visualization batch-processes image files by running optical character recognition on each photo and storing the extracted text in the EXIF metadata field `ImageDescription`. It scans folders for JPG, JPEG, and PNG files, uses the `pyocr` library with Tesseract to recognize Portuguese text, and writes the result via `piexif`. The script employs `multiprocessing.Pool` for parallel execution and skips already-processed files by checking for existing descriptions or thumbnail files.

AI-generated description

Similar vizzes