Am Sat, 20 Feb 2021 23:05:22 +0100
schrieb KueWW <[email protected]>:

> Hi,
> 
> I've compiled dt 3.4.1 on debian buster.
> Everything's fine so far.
> 
> But dt does not detect a lens automatically.
> The lens is a /HD PENTAX-D FA 24-70mm F2.8 ED SDM WR/ on a /Pentax
> K1/. I compiled lensfun 0.3.95 and updated the database.
> The lens is present in the lensfun database.
> I'm able to select it manually for the usage in the lens correction
> module.
> 
> There are other lenses that get detected automatically.
> E.g. a /Tamron SP AF 70-200mm F2.8 Di LD [IF]/ on the /K1/ or a /smc 
> PENTAX-D FA Macro 100mm F2.8 WR/.
> 
> Are there any ideas how to get the lens detection automatically?
> 
> Regards
> Dietmar

I have a K-1 and the 24-70 and 70-200 too, had to create a local file to
get it work with Ubuntu 19.10, don't know if the 24-70 works with Ubuntu
20.04 I had to create a sigma_17-70mm_f2.8-4_dc_macro_hsm.c.xml with
20.04 and probably this is the solution for you.

create
~/.local/share/lensfun/

in your home directory and put your files here.

With 19.10 I used:

<lensdatabase>

    <lens>
        <maker>Pentax</maker>
        <model>HD PENTAX-D FA 24-70mm F2.8 ED SDM WR</model>
        <mount>Pentax KAF3</mount>
        <cropfactor>1</cropfactor>
        <calibration>
            <!-- Taken with Tamron SP 24-70mm f/2.8 Di VC USD -->
            <distortion model="ptlens" focal="24" a="0.03519"
    b="-0.10395" c="0.06092"/> <distortion model="ptlens" focal="35"
    a="0.01436" b="-0.0404" c="0.03983"/> <distortion model="ptlens"
    focal="50" a="0.01112" b="-0.02223" c="0.02177"/> <distortion
    model="ptlens" focal="70" a="0.00625" b="-0.00862" c="0.00987"/>
    <tca model="poly3" focal="24" br="-0.0000913" vr="1.0008446"
    bb="0.0000181" vb="0.9998653"/> <tca model="poly3" focal="35"
    br="0.0000457" vr="1.0004519" bb="-0.0000735" vb="0.9998598"/> <tca
    model="poly3" focal="50" br="0.0000118" vr="1.0000938"
    bb="-0.0000862" vb="0.9998401"/> <tca model="poly3" focal="70"
    br="-0.0000161" vr="0.9997567" bb="-0.0000354" vb="0.9997991"/>
    </calibration> </lens>

</lensdatabase>


Looks like /usr/share/lensfun/version_1/slr-pentax.xml does not contain
the 24-70 in 20.04. I am adding lenses to the local directory, when I
I edit a photo with an unknown lens.

Note also I have been told very often, that some signs to do not count
in the lensname, for me it was important.

Note there have alos been problem with the recognition of the K-1, but
I think this is solved now.


Al
____________________________________________________________________________
darktable user mailing list
to unsubscribe send a mail to [email protected]

Reply via email to