Hallöchen!

Jacob Nederend writes:

> [...]
>
> python calibrate.py generates a lensfun.xml but there are only
> 'ptlens' parameters in it.

You mean that vignetting and/or TCA correction data is missing?

> I have tried RAW (.NEF), TIFF (generated using calibrate.py by
> placing all test images in /distortion) and JPEG images and none
> seem to work.

RAW is the way to go anyway.

> If I try to calibrate using JPEGs in the vignetting and distortion folders
> (tca is empty because it is not my main concern), I get the error:
>
> Traceback (most recent call last):
>   File "calibrate.py", line 429, in <module>
>     vignetting_db_entries[exif_data] = result.get()
>   File "/usr/lib/python2.7/multiprocessing/pool.py", line 558, in get
>     raise self._value
> NameError: global name 'FileNotFoundError' is not defined.

This script needs Python 3.

> If I do the same but run 'python3.4 calibrate.py' I get even more errors:
> Traceback (most recent call last):
>   File "/usr/lib/python3.4/multiprocessing/pool.py", line 119, in worker
>     result = (True, func(*args, **kwds))
>   File "/usr/lib/python3.4/subprocess.py", line 620, in check_output
>     raise CalledProcessError(retcode, process.args, output=output)
> subprocess.CalledProcessError: Command '['convert', 'tiff:-', '-set'.
> 'colorspace', 'RGB', '-resize', '250', 'pgm:-']' returned non-zero exit
> status 1
>
> The above exception was the direct cause of the following exception:
>   File "calibrate.py", line 429, in <module>
>     vignetting_db_entries[exif_data] = result.get()
>   File "/usr/lib/python2.7/multiprocessing/pool.py", line 558, in get
>     raise self._value
> subprocess.CalledProcessError: Command '['convert', 'tiff:-', '-set'.
> 'colorspace', 'RGB', '-resize', '250', 'pgm:-']' returned non-zero exit
> status 1

Hard to tell what is going wrong here.  You max remove the
stderr=open(os.devnull, "w") and see what's printed on the console.

> Furthermore, I wanted to correct the vignetting test images in
> DigiKam using the generated .xml but the program refuses to load
> the .xml when I place it in either /usr/share/lensfun or
> /usr/local.share/lensfun/update_1.

What is the error message?  Does DigiKam complain or Lensfun on the
console?

> If I edit the mil-nikon.xml (in either directory) with my lens, I
> actually lose the ability to detect my camera in DigiKam.

Can you post a diff with what you changed?

> Instead of Nikon 1 J3, it gives me Nikon D1. The exiv2 forum told
> me this is likely due to a Nikon MakerTag issue based on its
> output, but I hope to get it working even if I don't have
> auto-detection.

But a failing autodetection should also fail before your changes.

Tschö,
Torsten.

-- 
Torsten Bronger    Jabber ID: torsten.bron...@jabber.rwth-aachen.de


------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports. http://pubads.g.doubleclick.net/gampad/clk?id=1444514421&iu=/41014381
_______________________________________________
Lensfun-users mailing list
Lensfun-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lensfun-users

Reply via email to