ExifTool Forum

General => Metadata => Topic started by: surfer on May 19, 2011, 07:57:49 AM

Title: Detect camera type
Post by: surfer on May 19, 2011, 07:57:49 AM
Hi,

I was wondering if there is any way to detect a camera/lens type. E.g. if a camera is a SLR or point and shoot camera. I am trying to extract lens information and I am only interested in lenses from SLR cameras. For point and shoot cameras I a getting data like "Unknown 4-17mm" which is not very nice to display.

Any suggestions?

Thanks!
Title: Re: Detect camera type
Post by: Phil Harvey on May 19, 2011, 10:41:34 AM
I considered changing "Unknown 4-17mm" to "Built-in 4-17mm" but would have to determine if the camera had a built-in lens or not.  For Canon cameras, I suppose the CameraType tag could be consulted.

- Phil
Title: Re: Detect camera type
Post by: surfer on May 19, 2011, 10:49:40 AM
Thanks for your reply!

Would it be correct to say that when the word "Unknown" is present it's always a built in lens or an unknown SLR lens?
If this is consistent then I could simple detect if the word exists and dismiss that lens.

What do you think?

Thanks!
Title: Re: Detect camera type
Post by: Phil Harvey on May 20, 2011, 08:51:03 AM
Yes, that is correct.  (I can't think of any other possibilities.)

- Phil