ExifTool Forum

ExifTool => The Image::ExifTool API => Topic started by: SK on January 07, 2017, 09:23:32 PM

Title: Camera MakerNotes - structure
Post by: SK on January 07, 2017, 09:23:32 PM
Hi, I need some advice and help!
Background:
I am trying to parse a folder (and sub folders) which contain photo's RAW & JPG files from different camera's and build a database using the exiftool/perl interface. I want to use a table (obviously FIXED strucuture). Here are my questions:
Title: Re: Camera MakerNotes - structure
Post by: Hayo Baan on January 08, 2017, 03:48:44 AM

So basically with the makernotes it's best to just try with the files you have from different cameras.
Title: Re: Camera MakerNotes - structure
Post by: SK on January 08, 2017, 09:49:47 AM
Hayo,
From your reply it is implied that one can parse and create a database of specific tags from EXIT, IPTC & XMP but cannot parse MakerNotes (since they are not standard). In other words any searches on MakerNotes is not possible from the database except for those tags in MakerNotes that are also available in EXIF!
Does lightroom for example, store makernotes tags in SQLite database?
Title: Re: Camera MakerNotes - structure
Post by: Hayo Baan on January 08, 2017, 10:12:33 AM
Quote from: SK on January 08, 2017, 09:49:47 AM
Hayo,
From your reply it is implied that one can parse and create a database of specific tags from EXIT, IPTC & XMP but cannot parse MakerNotes (since they are not standard). In other words any searches on MakerNotes is not possible from the database except for those tags in MakerNotes that are also available in EXIF!
Does lightroom for example, store makernotes tags in SQLite database?

Possibly; information (derived from) the makernotes might be essential for processing raw data and they may have chosen to keep this in their database for quick retrieval.

But I think you misunderstood what I wanted to say. It is definitely possible to store makernote fields in a database. Just not all will be there and not all fields will mean the exact same thing for each camera (brand). So when you retrieve data from your database you will need to apply some logic as to how the data should be interpreted based on brand and model.

Also important to note is that the same tag sometimes is present in multiple locations in a file (each may even have a different value!). So perhaps you want to store the "group" the data comes from as well (use -G0:1 to get precise location info). To get the tags from all locations, use -a.
Title: Re: Camera MakerNotes - structure
Post by: SK on January 08, 2017, 10:27:57 AM
QuoteBut I think you misunderstood what I wanted to say.
I hear you loud and clear :-)

If I chose to store makernotes...it looks like I need to apply business rules in interpreting and translating based on camera make and model  - Am I right?

If  so, this needs lots of research on my end!!!
Title: Re: Camera MakerNotes - structure
Post by: Hayo Baan on January 08, 2017, 02:41:20 PM
Quote from: SK on January 08, 2017, 10:27:57 AM
If I chose to store makernotes...it looks like I need to apply business rules in interpreting and translating based on camera make and model  - Am I right?

Yes! But depending what exactly you want to store and what cameras/brands we are talking about, this does not need to be very difficult.

What is your intention for this database anyway?
Title: Re: Camera MakerNotes - structure
Post by: SK on January 08, 2017, 03:56:40 PM
QuoteYes! But depending what exactly you want to store and what cameras/brands we are talking about, this does not need to be very difficult.

Right now I am looking to scan my personal photographs (huge collection of RAW and JPG) and create a database. I have used several camera's (CANON D70 MARK II, CANON XTI REBEL, CANON S95, FUJI FINEPIX S602 ZOOM etc to name a few). I want a structure but it looks like I have to figure out a common denominator (off course to your point understand the naming convention and their meaning) and structure of the table to house the data.

I would welcome all suggestions.
Title: Re: Camera MakerNotes - structure
Post by: Phil Harvey on January 08, 2017, 05:12:22 PM
Unfortunately, I don't think it is reasonable to define a fixed structure to store MakerNote information.  Perhaps just an unordered list of variable tag/value pairs?

- Phil
Title: Re: Camera MakerNotes - structure
Post by: SK on January 08, 2017, 06:11:07 PM
Phil, you are right about MakerNotes!!

This is were I am heading...either save as key/value pairs (easy to parse using perl and just display them) & link the key/value with table id OR store as XML and use the table id as XML id!

The idea is each photo Id has fixed structure data (table with table id) & free form data (either key/value pairs OR XML)