lensdb is a maintenance tools for Hugins camera and lens database.
lensdb [--recursive] --populate BASEPATH
Fills the database with information from all pto files in BASEPATH. With the switch --recursive the search goes also into all subfolders.
Compresses the database by replacing all single entries with the average values.