Magic Lantern Forum

Developing Magic Lantern => Feature Requests => Topic started by: efnez on June 27, 2015, 04:16:43 PM

Title: Save data from electonic level (gyroscope) to exif info
Post by: efnez on June 27, 2015, 04:16:43 PM
Hello,
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?
Title: Re: Save data from electonic level (gyroscope) to exif info
Post by: a1ex 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 (http://a1ex.magiclantern.fm/bleeding-edge/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.