alicevision / AliceVision

Photogrammetric Computer Vision Framework
http://alicevision.org
Other
2.9k stars 807 forks source link

[sfmData] imageInfo: Retrieve focal length when it's available in non-standard metadata keys #1583

Closed cbentejac closed 8 months ago

cbentejac commented 8 months ago

Description

For some live action cameras such as Sony, ARRI or RED, the focal length information might not be stored in the usual Exif:FocalLength metadata key. However, if it is available, we still want to retrieve it to be able to get an accurate sensor width.

This PR aims to cover corner cases and retrieve the focal length or, at least, the sensor width, if any of these information are available in the metadata.

The model of the camera as well as the lens serial number may also be stored in metadata keys that were not checked up until this PR.

Features list

Implementation remarks

In some cases, no focal length information is available but the effective sensor size can be found. When this happens, the effective sensor size information is used instead of using the default 36x24mm size.