Save data from electonic level (gyroscope) to exif info

Started by efnez, June 27, 2015, 04:16:43 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

efnez

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?

a1ex

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.