Closed joshinils closed 1 year ago
Found a workaround to upload mapillary generated images:
(re)add Date/Time Original from original filenames (e.g. 2020_04_02_06_30_03_519.jpg)
exiftool -recurse "-datetimeoriginal<filename" -overwrite_original -progress -preserve -ext jpg -fast2 /path/to/images
Afterwards upload is possible without hassle
> /IMG_2583_000467.jpg
> ======== /home/erias/Documents/mapillary/test2/extractedImages/mapillary_sampled_video_frames/IMG_2583/IMG_2583_000468.jpg [463/467]
> Warning: Month '00' out of range 1..12 in ExifIFD:DateTimeOriginal (PrintConvInv) - /home/erias/Documents/mapillary/test2/extractedImages/mapillary_sampled_video_frames/IMG_2583/IMG_2583_000468.jpg
> Warning: No writable tags set from /home/erias/Documents/mapillary/test2/extractedImages/mapillary_sampled_video_frames/IMG_2583/IMG_2583_000468.jpg
> Nothing changed in /home/erias/Documents/mapillary/test2/extractedImages/mapillary_sampled_video_frames/IMG_2583/IMG_2583_000468.jpg
> ======== /home/erias/Documents/mapillary/test2/extractedImages/mapillary_sampled_video_frames/IMG_2583/IMG_2583_000469.jpg [464/467]
> Warning: Month '00' out of range 1..12 in ExifIFD:DateTimeOriginal (PrintConvInv) - /home/erias/Documents/mapillary/test2/extractedImages/mapillary_sampled_video_frames/IMG_2583/IMG_2583_000469.jpg
> Warning: No writable tags set from /home/erias/Documents/mapillary/test2/extractedImages/mapillary_sampled_video_frames/IMG_2583/IMG_2583_000469.jpg
> Nothing changed in /home/erias/Documents/mapillary/test2/extractedImages/mapillary_sampled_video_frames/IMG_2583/IMG_2583_000469.jpg
> ======== /home/erias/Documents/mapillary/test2/extractedImages/mapillary_sampled_video_frames/IMG_2583/IMG_2583_000470.jpg [465/467]
> Warning: Month '00' out of range 1..12 in ExifIFD:DateTimeOriginal (PrintConvInv) - /home/erias/Documents/mapillary/test2/extractedImages/mapillary_sampled_video_frames/IMG_2583/IMG_2583_000470.jpg
> Warning: No writable tags set from /home/erias/Documents/mapillary/test2/extractedImages/mapillary_sampled_video_frames/IMG_2583/IMG_2583_000470.jpg
> Nothing changed in /home/erias/Documents/mapillary/test2/extractedImages/mapillary_sampled_video_frames/IMG_2583/IMG_2583_000470.jpg
> ======== /home/erias/Documents/mapillary/test2/extractedImages/mapillary_sampled_video_frames/IMG_2583/IMG_2583_000471.jpg [466/467]
> Warning: Month '00' out of range 1..12 in ExifIFD:DateTimeOriginal (PrintConvInv) - /home/erias/Documents/mapillary/test2/extractedImages/mapillary_sampled_video_frames/IMG_2583/IMG_2583_000471.jpg
> Warning: No writable tags set from /home/erias/Documents/mapillary/test2/extractedImages/mapillary_sampled_video_frames/IMG_2583/IMG_2583_000471.jpg
> Nothing changed in /home/erias/Documents/mapillary/test2/extractedImages/mapillary_sampled_video_frames/IMG_2583/IMG_2583_000471.jpg
> ======== /home/erias/Documents/mapillary/test2/extractedImages/mapillary_sampled_video_frames/IMG_2583/IMG_2583_000472.jpg [467/467]
> Warning: Month '00' out of range 1..12 in ExifIFD:DateTimeOriginal (PrintConvInv) - /home/erias/Documents/mapillary/test2/extractedImages/mapillary_sampled_video_frames/IMG_2583/IMG_2583_000472.jpg
> Warning: No writable tags set from /home/erias/Documents/mapillary/test2/extractedImages/mapillary_sampled_video_frames/IMG_2583/IMG_2583_000472.jpg
> Nothing changed in /home/erias/Documents/mapillary/test2/extractedImages/mapillary_sampled_video_frames/IMG_2583/IMG_2583_000472.jpg
> 1 directories scanned
> 0 image files updated
> 467 image files unchanged
Not even directly upload the images with GPS-tags works with: python osc_tools.py upload -p /path/to/images
.
(I am using python3, Python 3.9.6)
I am looking forward for a reply.
This is one of the images: (Download it to view the metadata)
Sorry for being unclear my command works only for files with the original filename exported from iPhone e.g 2020_04_02_06_30_03_519.jpg because the date/time information is created from this name, date: 2020-04-02 at 6:30, 3 seconds and 519 microseconds so if you change the filename to something else it will not work
Sorry guys for the late replays. I will look into this in the next couple of days.
I just now had some time to read all the posts and understand the problem. This is nice! Let me make some changes to add support for this type of images. Basically read the image description and get the required information from there.
@salabogdan I'm curious what information is missing from this exif? Is it impossible to upload images taken with Mapillary App?
Long story short, Mapillary adds some custom headers to the exif, and we need to read them in order to have the info.
I investigated this back then but forgot to push the branch and now I no longer have it in the computer.
This is what I am taking about.
{"MAPCompassHeading":{"TrueHeading":256.78939640345874,"MagneticHeading":256.78939640345874,"AccuracyDegrees":0},"MAPGpsTime":"2021_01_18_11_49_30_143","MAPVersionString":"4.20.3 (380)","MAPLatitude":52.631939227776719,"MAPCaptureTime":"2021_01_18_11_49_30_410","MAPGPSSpeed":9.5185184478759766,"MAPDeviceModel":"iPhone 8","MAPDeviceUUID":"A661877E-2291-4EAB-BF41-381709F16FD3","MAPSettingsUserKey":"EnKnkPu35HGG6eUyAGkM7E","MAPAppNameString":"mapillary_ios","MAPSettingsTokenValid":1,"MAPAltitude":54.802884486654136,"MAPLocalTimeZone":"Europe\/Berlin (MEZ) offset 3600","MAPGPSAccuracyMeters":8.0012082736808772,"MAPAtanAngle":-3.1274178028106689,"MAPPhotoUUID":"948FF486-F691-44CB-9B2C-C585769BFF95","MAPLongitude":13.295124552877734,"MAPSettingsUploadHash":"e821976ae7dea1115e8c4065bcd35d83f20c6996550d2f3f2de4b0e8456b0727","MAPDeviceMake":"Apple","MAPSequenceUUID":"51A8F541-A695-4364-8842-0CC6FA744424","MAPAccelerometerVector":{"x":-0.99921602010726929,"y":-0.01416475884616375,"z":0.036962460726499557}}
Should be easy to re-do the patch since I made some improvements on the part, let me see later today.
I want to upload images which i have taken with the mapillary app. these images are now on my hard drive, they come off an iphone 8. this is the output i get when trying to upload the folder:
this is the exif:
the long description is what is generated by mapillary.
i want to upload these to kartaview aswell, since some sequences just dont show up on mapillary, or not in full (which is weird, and i dont like it). in future i may just upload to kartaview, not to mapillary anymore, i have not yet tried the kartaview app to take images.