Bug #1026

Lens not recognized

Added by Anonymous over 2 years ago. Updated almost 2 years ago.

Status:ClosedStart date:18 Jan 2015
Priority:NormalDue date:25 Jan 2015
Assignee:Niels Kristian Bech Jensen% Done:

100%

Category:metadata
Target version:0.25

Description

Hello,
My
AF-S DX VR Zoom-Nikkor 18-200mm f/3.5-5.6G IF-ED [II]
is not recognized by exiv2.
exiv2 think it is a:
Nikon AF-S DX VR Zoom-Nikkor 18-200mm f/3.5-5.6G IF-ED

Therefore it is not well recognized by darktable.
I have to manually select the lens from the database (is listed).
I do not know whether lens correction data works.

I guess I should play with the below code lines, but I not so good and would like to avoid doing mistake...

{0x8B,0x40,0x2D,0x80,0x2C,0x3C,0x8D,0x0E,0x01,0x00,0x00, "Nikon", "JAA794DA", "AF-S DX VR Zoom-Nikkor 18-200mm f/3.5-5.6G IF-ED"}, {0x8B,0x40,0x2D,0x80,0x2C,0x3C,0xFD,0x0E,0x01,0x01,0x00, "Nikon", "JAA794DA", "AF-S DX VR Zoom-Nikkor 18-200mm f/3.5-5.6G IF-ED"}, {0x8B,0x40,0x2D,0x80,0x2C,0x3C,0xFD,0x0E,0x01,0x02,0x00, "Nikon", "JAA813DA", "AF-S DX VR Zoom-Nikkor 18-200mm f/3.5-5.6G IF-ED II"},

It could be that the code should be like this:

{0x8B,0x40,0x2D,0x80,0x2C,0x3C,0x8D,0x0E,0x01,0x00,0x00, "Nikon", "JAA794DA", "AF-S DX VR Zoom-Nikkor 18-200mm f/3.5-5.6G IF-ED"}, {0x8B,0x40,0x2D,0x80,0x2C,0x3C,0xFD,0x0E,0x01,0x01,0x00, "Nikon", "JAA813DA", "AF-S DX VR Zoom-Nikkor 18-200mm f/3.5-5.6G IF-ED II"},

But I am not sure! Do you need me to do some tests?

Please find enclosed the output from exiv2 and also Exiftool.

Regards,
Bastien

Test.jpg (39.9 KB) Anonymous, 18 Jan 2015 09:53

EXIF output.txt Magnifier (1.05 KB) Anonymous, 18 Jan 2015 09:53

IMGP1900.JPG (1.11 MB) Anonymous, 24 Jan 2015 09:17

IMGP1901.JPG (1.16 MB) Anonymous, 24 Jan 2015 09:17

IMGP1902.JPG (1.16 MB) Anonymous, 24 Jan 2015 09:17

IMGP1905 Serial number of lens.JPG (2.05 MB) Anonymous, 25 Jan 2015 08:40

Associated revisions

Revision 3581
Added by Niels Kristian Bech Jensen about 2 years ago

Add comment to fix for bug #1026 (wrongly tagged in r3578).

Revision 3582
Added by Niels Kristian Bech Jensen about 2 years ago

Add test case for bug #1026. Thanks goes to Bastien O for the image file.

History

#1 Updated by Anonymous over 2 years ago

Hi,

With the following modification it seems to be better:


[bastien@zoulou ~]$ cd /opt/exiv2/trunk/
[bastien@zoulou trunk]$ bin/exiv2 -pa /home/bastien/Darktable\ -\ problème\ objectif/aTest.jpg | grep Lens
Exif.Nikon3.LensType Byte 1 D G VR
Exif.Nikon3.Lens Rational 4 18-200mm F3.5-5.6
Exif.Nikon3.LensFStops Undefined 4 5.33333
Exif.NikonLd3.LensIDNumber Byte 1 Nikon AF-S DX VR Zoom-Nikkor 18-200mm f/3.5-5.6G IF-ED II
Exif.NikonLd3.LensFStops Byte 1 F5.3
/home/bastien/Darktable - problème objectif/aTest.jpg: (No XMP data found in the file)

@
[bastien@zoulou trunk]$ cat src/nikonmn.cpp | grep 18-200 | grep VR
// 8B 40 2D 80 2C 3C FD 0E.1: Nikon AF-S DX VR Zoom-Nikkor 18-200mm f/3.5-5.6G IF-ED
// 8B 40 2D 80 2C 3C FD 0E.2: Nikon AF-S DX VR Zoom-Nikkor 18-200mm f/3.5-5.6G IF-ED II

{0x8B,0x40,0x2D,0x80,0x2C,0x3C,0x8D,0x0E,0x01,0x00,0x00, "Nikon", "JAA794DA", "AF-S DX VR Zoom-Nikkor 18-200mm f/3.5-5.6G IF-ED"},

{0x8B,0x40,0x2D,0x80,0x2C,0x3C,0xFD,0x0E,0x01,0x01,0x00, "Nikon", "JAA813DA", "AF-S DX VR Zoom-Nikkor 18-200mm f/3.5-5.6G IF-ED II"},
[bastien@zoulou trunk]$
@

#2 Updated by Niels Kristian Bech Jensen over 2 years ago

  • Category changed from exif to metadata
  • Status changed from New to Assigned
  • Assignee set to Niels Kristian Bech Jensen

I will take a look at this.

Best regards,
Niels Kristian Bech Jensen

#3 Updated by Niels Kristian Bech Jensen over 2 years ago

I have forwarded your report to Robert Rottmerhusen (www.rottmerhusen.com) to get his comments on this.

Best regards,
Niels Kristian Bech Jensen

#4 Updated by Anonymous over 2 years ago

Hi,
If it can help, and if one of you is not so far away from me, I can bring the hardware so that we are sure to do no mistake.
I live in the North of France, I can go to Brussel, Paris.
Or I can make a photo of my lens also send you JPEG photos shooted with my camera again.
Feel free to ask.

#5 Updated by Niels Kristian Bech Jensen over 2 years ago

Hi Bastien.

Thanks for your offer, but I live in Denmark, so it is too far away I think. A photo of your lens showing the text on it will be fine. You can attach it to this bug report.

Best regards,
Niels Kristian Bech Jensen

#6 Updated by Anonymous over 2 years ago

Ok I just made three photos of the lens.
Enclosed are those photos.

I shuld buy an new bleeding edge camera to my parents.
The PENTAX I just used to made those photos is so old and generates so ugly photos. :-/

#7 Updated by Niels Kristian Bech Jensen about 2 years ago

Hi Bastien.

Thank you for the photos. Robert Rottmerhusen would like to know the serial number of your lens to check against lists of known 'mk I' and 'mk II' lenses. Could you add that number?

Best regards,
Niels Kristian Bech Jensen

#8 Updated by Anonymous about 2 years ago

Hello,
Here it is!
Thanks.

#9 Updated by Niels Kristian Bech Jensen about 2 years ago

  • Due date set to 25 Jan 2015
  • Status changed from Assigned to Resolved
  • % Done changed from 0 to 100

Hi Bastien.

Thank you for the extra information. I have commited a fix for the problem to the svn trunk.

Will it be OK to add your image Test.jpg to our test suite to make sure the problem stay fixed in future revisions?

Best regards,
Niels Kristian Bech Jensen

#10 Updated by Anonymous about 2 years ago

Hi,
Thanks for asking. I appreciate that you are sensitive about "privacy" and such matters regarding the photos.
You can use as you want, without any restriction.

I am really happy because I have help to fix a problem.
Thanks a lot also to you two for your fast and effective support!

Bastien

#11 Updated by Andreas Huggel almost 2 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF

Redmine Appliance - Powered by TurnKey Linux