letmaik / lensfunpy

📷 Lens distortion correction for Python, a wrapper for lensfun
https://pypi.python.org/pypi/lensfunpy
MIT License
144 stars 18 forks source link

Lens not found, may be a lensfun issue #2

Closed letmaik closed 8 years ago

letmaik commented 10 years ago
>>> list(filter(lambda l: l.model == 'Nikon AF-S Zoom-Nikkor 17-35mm f/2.8D IF-ED', db.lenses))
[Lens(Maker: Nikon; Model: Nikon AF-S Zoom-Nikkor 17-35mm f/2.8D IF-ED; Type: RECTILINEAR; Focal: 17.0-35.0; Aperture: 2.79999995232-2.79999995232; Crop factor: 1.52799999714; Score: 0)]
>>>  db.find_lenses(db.find_cameras('Nikon Corporation', 'Nikon D3S')[0], None, 'Nikon AF-S Zoom-Nikkor 17-35mm f/2.8D IF-ED', True)
[Lens(Maker: Tamron; Model: Tamron 17-35mm f/2.8-4 Di LD; Type: RECTILINEAR; Focal: 17.0-35.0; Aperture: 2.79999995232-4.0; Crop factor: 1.0; Score: 65)]
letmaik commented 8 years ago

Not a bug. See https://sourceforge.net/p/lensfun/bugs/39/. The lens is not calibrated with a full format (crop factor 1) camera and hence is not found when the camera used for searching is a full format camera.