I've been struggling to get lensfun and Digikam working for a few days now.
Running Ubuntu 14.04 LTS in a Windows VM. I created my distortion model in
Hugin Panorama Editor rather than the GUI, though after testing in Image
Magick I am going with the GUI instead. I then set up the calibration
directory exactly as described in the tutorial.
python calibrate.py generates a lensfun.xml but there are only 'ptlens'
parameters in it.
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.
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.
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
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.
If I edit the mil-nikon.xml (in either directory) with my lens, I actually
lose the ability to detect my camera in DigiKam. 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.
I know it's a bad idea to edit JPEGs, but I have a several flights of UAV
imagery that needs to be pre-processed before stitching and processing into
an NDVI map. This year it will all be in RAW so I would still love to get
lensfun to work.
I'm very new to using the terminal and Ubuntu in general (this Unity thing
is new since my last experience). Any help would be GREATLY appreciated!
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Lensfun-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lensfun-users