Have a look at this photo:
http://hadar.cira.colostate.edu/ramsdis/online/data/rmtcrso/457.jpg
I'm grabbing these with LWP::Simple using get() or getstore(), no problem.
Examine the strip at the bottom of the photo. See the text data at the bottom? I nead to read some of this. In particular, I need to read the part which says "10 SEP 06" and the part which says "1645". This so I can timestamp the image at "2006-09-10 16:45". I need to do this as a part of the process that fetches the image, so it can be stuck in the database
with the correct timestamp.
Anyone have any ideas on how I might post-process the image after
retrieval, to recover the timestamp info I need?
Anyone have any ideas on how I might post-process the image after
retrieval, to recover the timestamp info I need?
Anyone have any ideas on how I might post-process the image after retrieval, to recover the timestamp info I need?
Using imagemagick to grab the bottom bit and save as a pbm then running it through ocrad (http://www.gnu.org/software/ocrad/ocrad.html) should do the trick I would think.
telnet hadar.cira.colostate.edu httpTrying 129.82.108.81...
Only way I know of to recover text data from a photograph (being a
binary medium) would be if the photo had EXIF (sp?) data encoded -
typically placed by digital cameras and contains Camera Make/Model;
Fstop; Shutter Speed; Date/time, etc.
Other than that, I'm not sure how you would obtain text data from a
binary object such as a photograph through automatic means...
Using imagemagick to grab the bottom bit and save as a pbm then running it through ocrad (http://www.gnu.org/software/ocrad/ocrad.html) should do the trick I would think.
Read( $file );setink( $p, 150, 470 );
Posterize( levels => 2, dither => 0 );
Actually, in looking at it, it appears that the timestamp info is already pretty darn close to correct. depending on the timezone it's in.
A HEAD request should give you this info in the Last-Modified header.
Hrm... I just talked about a head request with a straight face.
Have a look at this photo:
http://hadar.cira.colostate.edu/ramsdis/online/data/rmtcrso/457.jpg
I'm grabbing these with LWP::Simple using get() or getstore(), no problem.
Examine the strip at the bottom of the photo. See the text data at the bottom? I nead to read some of this. In particular, I need to read the part which says "10 SEP 06" and the part which says "1645". This so I can timestamp the image at "2006-09-10 16:45". I need to do this as a part of the process that fetches the image, so it can be stuck in the database
with the correct timestamp.
Anyone have any ideas on how I might post-process the image after
retrieval, to recover the timestamp info I need?
I'm grabbing these with LWP::Simple using get() or getstore(), no problem.
Examine the strip at the bottom of the photo. See the text data at the bottom? I nead to read some of this. In particular, I need to read the part which says "10 SEP 06" and the part which says "1645". This so I can timestamp the image at "2006-09-10 16:45". I need to do this as a part of the process that fetches the image, so it can be stuck in the database
with the correct timestamp.
Anyone have any ideas on how I might post-process the image after retrieval, to recover the timestamp info I need?
Hrm... I just talked about a head request with a straight face.
Sysop: | MCMLXXIX |
---|---|
Location: | Prospect, CT |
Users: | 325 |
Nodes: | 10 (0 / 10) |
Uptime: | 38:40:29 |
Calls: | 508 |
Messages: | 220023 |