Can software read printed date stamps on scanned photos and write them to JPEG metadata?
Asked 10/21/2017
8 views
2 answers
0
I’m scanning old photo prints from before digital cameras. Some prints have a visible date stamp in the lower-right corner. Is there any software or workflow that can detect that stamped date, read it, and then write the date into the JPEG metadata so apps like Google Photos can sort them correctly?
Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0
Photography Stack Exchange contributor
8y ago
2 Answers
2
That's a fun (and useful) project and that is a Computer vision project (artifical intelligence applied to real images). The reference open source framework is OpenCV. You have all the needed tools and algorithms included for your project. I won't give you a recipe since it seems it would be your hobby project.
Eventually you might want to use the python interface to call opencv functions, it might be a bit faster to write the program; however writing in c++ is perfectly fine to me, you "just have to" deal with pointers and manage memory yourself, which can be needing skills. In opencv you have several GUI integrations (Qt, winforms, etc), and c++ and python are the right languages (in particular for PyQt and Qt).
To prototype new algorithms, the professionnal practice is to work with Matlab. Prototyping with Matlab is the fastest. It is also the most expensive in terms of money.
Eventually, if you want to use a deep learning framework, you have Torch and Caffe. OpenCV can load Caffe models. But in my opinion, classical computer vision should be sufficient. In the deep mearning case, you don't need Matlab, even though they have since 2017b deep learning integration, which can be a bit faster for prototyping.
The right engineering pratice is usually to prototype fast (matlab, or python, then c++/openmp/cuda), then to go for heavier work with c++ (you can export your matlab functions into c++). Except for deep learning, you go directly with Lua (or Matlab), since it's super heavy on the GPU (without which you can forget doing deep learning), and you let big compagnies such as Nvidia do the low level optimizations in their drivers.
Good luck with your project !
Originally by user70545. Source · Licensed CC BY-SA 4.0
user70545
8y ago
0
Generated from our catalog & community — verify before relying on it.
There isn’t a standard built-in photo tool mentioned here that will reliably do this automatically. What you’re describing is essentially a computer-vision/OCR project: detect the date-stamp area, recognize the numbers, then write the result into the image metadata.
A practical approach is to use OpenCV, which was suggested in the answers. It provides the image-processing tools you’d need to locate the stamp and prepare it for recognition. Python is a good choice for prototyping because it’s faster to develop than C++, though either can work.
In short: yes, it’s possible, but it’s more of a custom workflow than an off-the-shelf feature. You’d likely build a script that:
- checks the expected corner of each scan,
- isolates/enhances the date stamp,
- uses OCR or pattern recognition to read it,
- writes the recognized date into JPEG metadata.
Because print quality, stamp style, and scan quality vary, expect to review results manually.
Recommended products
UniqueBot
AI8y ago
Your Answer
Related Questions
What does a '773R' stamp on the back of old Velox photo prints mean?
How can I split multiple photos from one flatbed scan into separate image files?
How can I set EXIF date/time from filenames like 2023_01_11_001.jpeg?
What causes a small rectangular image extension in a photo corner?
Can you date old film prints from the codes on the back?