Yes, for a fixed-lens camera that's been properly detected, the lens should
just be the one with the same mount specified as the camera, not sure why that
would fail. Anyway, I tried the attached profile using the TZ100 sample from
https://raw.pixls.us/ and it seems to work just fine... the only thing I can
think of is some odd thing in your actual xml file must be misformatted
somehow? Maybe from using something other than a simple text editor to create
it?
--
jys
On Sun, May 21, 2017, at 04:29, Romano Giannetti wrote:
> Thanks, I'll check. Unfortunately the problem is that I am trying to
> select the lens _manually_, so it shouldn't matter the RAW EXIF... ¿or not?
>
> Romano
>
>
> On 21/05/17 10:46, Richard Hobday wrote:
> > Probably a long shot, but ...
> >
> > Check the entry in the EXIF data of your photo file has the same case,
> > and syntax, as the entry in your <lensdatabase> file.
> >
> > Look for Lens type or Lens ID. (IIRC)
> >
> > This caused me grief in the past where the entry was lower case in the
> > photo EXIF data but did not match in Lensfun.
> >
> > HTH,
> >
> > R.
> >
> >
> >
> > On 21/05/17 08:55, Romano Giannetti wrote:
> >> Hi,
> >>
> >> I tried also without the variant line. Same thing, the camera appears
> >> in the lens correction module, but the lens dropdown is empty. I
> >> doble checked the spelling of the camera and compared the entry with
> >> others, but I really can't see why this is not working.
> >>
> >> Should I open a bug? Or is still an operator error?
> >>
> >> Romano
> >>
> >>
> >> On 21/05/17 07:11, [email protected] wrote:
> >>> The variants apparently don't work, see:
> >>>
> >>> https://github.com/lensfun/lensfun/commit/a48bc3afb87d72b48f176890e080a0b094d31b01#diff-50e22dbf0edf411c0bec00e9df83a7ae
> >>>
> >>>
> >>>
> >>> But they shouldn't be needed in this case anyway.
> >>>
> >>> Otherwise, not sure why that wouldn't work.
> >>>
> >>>
> >>> On Sat, May 20, 2017, at 12:24, Romano Giannetti wrote:
> >>>> Thanks... almost!
> >>>>
> >>>> On 20/05/17 18:18, [email protected] wrote:
> >>>>> For compact cameras, you also need to add the entry for the camera
> >>>>> itself along with the lens:
> >>>>>
> >>>>> <camera>
> >>>>> <maker>Panasonic</maker>
> >>>>> <model>DMC-TZ100</model>
> >>>>> <mount>panasonicTZ100</mount>
> >>>>> <cropfactor>2.75</cropfactor>
> >>>>> </camera>
> >>>>>
> >>>>> Also, you might have to remove that 'version="2"' parameter to get
> >>>>> darktable to load the file.
> >>>>>
> >>>> Ok, now I have the camera but not the lens (
> >>>> http://pix.toile-libre.org/?img=1495308076.png ) --- The second
> >>>> dropdown
> >>>> is empty.
> >>>> I tried to add a <variant> record to no avail.
> >>>>
> >>>> Any further hint? Thanks!
> >>>>
> >>>> Romano
> >>>>
> >>>> My file is now:
> >>>>
> >>>> <lensdatabase>
> >>>> <camera>
> >>>> <maker>Panasonic</maker>
> >>>> <model>DMC-TZ100</model>
> >>>> <mount>panasonicTZ100</mount>
> >>>> <variant>3:2</variant>
> >>>> <cropfactor>2.75</cropfactor>
> >>>> </camera>
> >>>> <lens>
> >>>> <maker>Leica</maker>
> >>>> <model>DMC-TZ100 & compatibles</model>
> >>>> <model lang="en">fixed lens</model>
> >>>> <model lang="de">festes Objektiv</model>
> >>>> <mount>panasonicTZ100</mount>
> >>>> <cropfactor>2.75</cropfactor>
> >>>> <aspect-ratio>3:2</aspect-ratio>
> >>>> <calibration>
> >>>> <distortion model="ptlens" focal="9.1" a="0.00708902"
> >>>> b="-0.040959" c="-0.0636536"/>
> >>>> <distortion model="ptlens" focal="11" a="0.0095907"
> >>>> b="-0.0535213" c="0.00920877"/>
> >>>> <distortion model="ptlens" focal="14.6" a="0"
> >>>> b="-0.0124246" c="0"/>
> >>>> <distortion model="ptlens" focal="18.2" a="0"
> >>>> b="-0.00155103" c="0"/>
> >>>> <distortion model="ptlens" focal="23.7" a="0"
> >>>> b="0.00368039" c="0"/>
> >>>> <distortion model="ptlens" focal="36.6" a="0"
> >>>> b="0.00140267" c="0"/>
> >>>> <distortion model="ptlens" focal="54.8" a="0"
> >>>> b="0.00153697" c="0"/>
> >>>> <distortion model="ptlens" focal="91" a="0"
> >>>> b="-0.000878659" c="0"/>
> >>>> <tca model="poly3" focal="9.1" vr="1.0003000"
> >>>> vb="1.0002000"/>
> >>>> <tca model="poly3" focal="11" vr="1.0005000"
> >>>> vb="1.0002000"/>
> >>>> <tca model="poly3" focal="14.6" vr="1.0005000"
> >>>> vb="1.0000000"/>
> >>>> <tca model="poly3" focal="18.2" vr="1.0005000"
> >>>> vb="0.9999000"/>
> >>>> <tca model="poly3" focal="23.7" vr="1.0004000"
> >>>> vb="0.9999000"/>
> >>>> <tca model="poly3" focal="36.6" vr="1.0000000"
> >>>> vb="1.0000000"/>
> >>>> <tca model="poly3" focal="54.8" vr="0.9997000"
> >>>> vb="1.0000000"/>
> >>>> <tca model="poly3" focal="91" vr="0.9996000"
> >>>> vb="0.9995000"/>
> >>>> </calibration>
> >>>> </lens>
> >>>> </lensdatabase>
> >>>>
> >>>>
> >>>> --
> >>>> Romano Giannetti
> >>>> http://www.rgtti.com/
> >>>> ____________________________________________________________________________
> >>>>
> >>>>
> >>>> darktable user mailing list
> >>>> to unsubscribe send a mail to
> >>>> [email protected]
> >>>>
> >>> ____________________________________________________________________________
> >>>
> >>>
> >>> darktable user mailing list
> >>> to unsubscribe send a mail to
> >>> [email protected]
> >>>
> >
> --
> Romano Giannetti
> http://rlog.rgtti.com/
>
> ____________________________________________________________________________
> darktable user mailing list
> to unsubscribe send a mail to [email protected]
>
____________________________________________________________________________
darktable user mailing list
to unsubscribe send a mail to [email protected]
<lensdatabase>
<camera>
<maker>Panasonic</maker>
<model>DMC-TZ100</model>
<mount>panasonicTZ100</mount>
<cropfactor>2.75</cropfactor>
</camera>
<lens>
<maker>Leica</maker>
<model>DMC-TZ100 & compatibles</model>
<model lang="en">fixed lens</model>
<model lang="de">festes Objektiv</model>
<mount>panasonicTZ100</mount>
<cropfactor>2.75</cropfactor>
<aspect-ratio>3:2</aspect-ratio>
<calibration>
<distortion model="ptlens" focal="9.1" a="0.00708902" b="-0.040959" c="-0.0636536"/>
<distortion model="ptlens" focal="11" a="0.0095907" b="-0.0535213" c="0.00920877"/>
<distortion model="ptlens" focal="14.6" a="0" b="-0.0124246" c="0"/>
<distortion model="ptlens" focal="18.2" a="0" b="-0.00155103" c="0"/>
<distortion model="ptlens" focal="23.7" a="0" b="0.00368039" c="0"/>
<distortion model="ptlens" focal="36.6" a="0" b="0.00140267" c="0"/>
<distortion model="ptlens" focal="54.8" a="0" b="0.00153697" c="0"/>
<distortion model="ptlens" focal="91" a="0" b="-0.000878659" c="0"/>
<tca model="poly3" focal="9.1" vr="1.0003000" vb="1.0002000"/>
<tca model="poly3" focal="11" vr="1.0005000" vb="1.0002000"/>
<tca model="poly3" focal="14.6" vr="1.0005000" vb="1.0000000"/>
<tca model="poly3" focal="18.2" vr="1.0005000" vb="0.9999000"/>
<tca model="poly3" focal="23.7" vr="1.0004000" vb="0.9999000"/>
<tca model="poly3" focal="36.6" vr="1.0000000" vb="1.0000000"/>
<tca model="poly3" focal="54.8" vr="0.9997000" vb="1.0000000"/>
<tca model="poly3" focal="91" vr="0.9996000" vb="0.9995000"/>
</calibration>
</lens>
</lensdatabase>