lensfun is a library that provide a open source database of photographic lenses and their characteristics, also provides a set of algorithms for correcting images based on detailed knowledge of lens properties and calibration data.