OpenStreetMap 로고 OpenStreetMap

Re-timing images without GPS data

mycae-gmx님이 English로 2014년 1월 6일에 게시함.

I had the problem whereby images from my camera did not write the time in the EXIF data. This means I can’t geo-correlate my tracks with my camera data.

Thanks to exiv2, and some crappy bash scripting, something like this works for setting the time from the timestamp (which is fine, as long as the camera time is OK). This is very budget, but it works well enough.

 #!/bin/bash
 
 #Set the exif timestamp using the file creation date
 for i in *jpg
 do
 	THISDATE=`ls -l --time-style="+%Y:%m:%d %H:%M:%S" $i | awk '{print $6 " "$7}'`
 	exiv2 -M"set Exif.Photo.DateTimeOriginal ${THISDATE}" $i
 done
이메일 아이콘 Bluesky 아이콘 Facebook 아이콘 LinkedIn 아이콘 마스토돈 아이콘 텔레그램 아이콘 X 아이콘

토론

댓글을 남기려면 로그인하세요