Author Topic: Save data from electonic level (gyroscope) to exif info  (Read 2966 times)


  • Just arrived
  • *
  • Posts: 1
Save data from electonic level (gyroscope) to exif info
« on: June 27, 2015, 04:16:43 PM »
Can camera with electonic level and gyroscope (like 7D/ 7D mk2/ 5 mk3 ) save this info to photos exif or in another place?
If not, maybe can magic lantern?


  • Administrator
  • Hero Member
  • *****
  • Posts: 12564
Re: Save data from electonic level (gyroscope) to exif info
« Reply #1 on: June 27, 2015, 06:14:24 PM »
I've experimented with it a while ago, for automatic rotation of pictures. It kinda worked, with some limitations:

- level info was saved in an external file (IMG_nnnn.LEV)
- angles were in 0.5 degree increments
- the roll angle was influenced by horizontal camera translations (the sensors are most likely accelerometers), so the end result, for handheld pictures, was not much better than without any correction...
- camera crashed often :(

I wasn't able to figure out why it was crashing (which is why I didn't publish the code yet), but if anyone wants to play with this code, here it is: level.patch

It won't apply cleanly on the current source tree, but it shouldn't be very hard to convert it to a module.