Beware the Ides of March :: Fixing the Photos
Posted by alexkemp on 20 March 2019 in English. Last updated on 4 April 2019.- Intro
- OSMTracker v0.7
- Fixing the Photos
- OSMTracker v0.6.11 loses 42% of Photos
After installing OSMTracker v0.7 on my Android SmartPhone on the Ides of March, then using it the next day for the first time, I discovered that not only did it not track (a touch of an existential issue for a GPS Tracker - how come no-one noticed that before?) but photos taken with the App also were lacking almost all GPS info within the metadata, making them useless for Mapillary.
~/DCIM/Camera$ identify -verbose IMG_20190316_092818.jpg | fgrep GPS
exif:GPSAltitudeRef: 240/100
exif:GPSInfo: 686
It was a short session and only 43 photos, but I did not want to waste them if it could be helped. Somewhere in my searching I came across two really old plugins for JOSM which worked to fix that absence:
- Plugin:
photo_geotagging
- Plugin:
photoadjust
- Wiki: photomapping techniques
- Wiki: photomapping within JOSM
- Wiki: Geotagging Source Photos (old)
How to Add Geo-tags into Photos within JOSM
My phone is a cheap model from Vodaphone (SmartPrime-7, model VFD 600, Andoid 6.0.1) and has been able to add a full set of GPS tags to the photos that it takes with the built-in utility from the get-go, let alone when using OSMTracker. Even so, after taking photos under OSMTracker-0.7 and exporting a GPX (track-file), even though the gpx contained lat/long/compass for each photo, the photos themselves did not.
April update: Location
needs to be switched on for BOTH the smartphone and the camera. They are independent actions within my model.
Step-by-step
Inside JOSM:–
- Press
f12
to bring upPreferences
- Select
Configure available plug-ins
(LHS) - (When the selections come up)
Scroll down/search for ‘photo’ - Select
photo_geotagging
(currently 34867)
This is what allows you to select & write (via the right-click menu) the GPS position into the exif of that selected file - Select
photoadjust
(currently 34867)
This plugin allows imported photos to be positioned & moved upon the JOSM map. - Select
Download
- Press
OK
We now have the ability to load photos on to JOSM as an Image layer and then to place the photos at the place where the photographer was standing, and to register the direction that the camera was facing. Those GPS details can then be placed into the file metadata. This is easy to do but, since it has to be done one-file-at-a-time and cannot be scripted, it is incredibly tedious to do (I only had 43 photos to process and it took me a couple of hours; imagine if there were 43,000 photos!).
This is the step-by-step:–
- Inside JOSM press
menu: File | Open…
(Ctrl+o) - In the
Files of Type:
select-box chooseImage Files (*.jpg)
- Now use the
Look in:
select box and navigate to the directory containing the photo file(s) to import.
(It is likely that you will want all photos in a particular directory, so select one with the mouse then pressCtrl+a
(select all such files) and pressOK
(it may offer toCorrelate images with GPS track
- pressCancel
)) - If necessary, switch ON the
Layers
window (access viamenu: Windows | Layers…
(Alt+Shift+l)) which will now show aGeotagged Images
layer - In the LHS click on
Adjust Photos
so the background is blue - There is now a
Geotagged Images
dialog-box which will show the active photo
(this should show the first image in the list when you first start; right-click theGeotagged Images
layer within theLayers
window and chooseJump to next marker
(Ctrl+Alt+J) if it does not) - With the photo to process showing in the dialog-box, hold down the
Shift
key and click at the correct location and a little camera rectangle will appear. Move it to the exact place where that photo was shot. - Hold down the
Ctrl
key and click in the direction that the camera was facing, and a little arrow will appear to show that. - When satisfied with both camera location for that photo and direction, right-click the
Geotagged Images
layer within theLayers
window and chooseWrite coordinates to image layer
- The first photo is now geo-tagged; 42,999 photos to go.
You will have spotted an option to mass-tag photos using a GPX track but that was NOT available to me since the track had failed as well. Sigh. Well, at least I got these 43 geo-tagged and later uplifted into Mapillary. Then Mapillary vandalised them with unnecessary blurs, again. So I used the blur editor, again, to remove all unnecessary blurs (most of them). And Mapillary completely ignored the fact that I had done this, so none of that work will be enacted, either. Again.
Well, that’s it for me with Mapillary. Does anyone have any other suggestions to replace Mapillary? What is OpenStreetCam like?
Discussion
Comment from mds08011 on 11 April 2019 at 17:23
I enjoy using OpenStreetCam but you might be frustrated as it struggles with similar blurring issues: https://github.com/openstreetcam/openstreetcam.org/issues/162