Canon 7D Mark II: "AF Configuration Tool?"

Started by Ppmax, December 29, 2014, 03:10:25 PM

Previous topic - Next topic

Ppmax

>> Also, I have to think about adding "Live View" to the other modes.

Ack, I was incorrect; originally I didn't see any metadata for Live View and didn't think there was a way to distinguish between "normal" AF modes and Live View modes...but I see this tag in my files now.

PP

Ppmax

I have one more question if you don't mind:

Is it possible to add an -if expression that is evaluated in the context of adding keywords?

Something like this? I want to add a keyword "Live View" only if LiveViewShooting is "On":

exiftool -overwrite_original_in_place -addtagsfromfile @ '-keywords<Canon:AFAreaMode' '-keywords<Canon:AFConfigTool' '-keywords<(-if $Canon:LiveViewShooting =~/on/):Live View' DIR



Thanks again,
PP

Phil Harvey

Sorry for the delay in responding.  I somehow missed your last post.

The string expression used when copying doesn't execute code, but the advanced formatting feature does, so you could do this (I think -- I have never tested this):

'-keywords<${Canon:LiveViewShooting;$_=(/on/?"Live View":undef)}'

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Ppmax

Thank you for the reply Phil--I appreciate all your replies and help, no matter when!

I think I am close; here's the command I ran:
paul$ exiftool -overwrite_original_in_place -addtagsfromfile @ '-keywords<Canon:AFAreaMode' '-keywords<Canon:AFConfigTool' '-keywords<${Canon:LiveViewShooting;$_=(/on/?"Live View":undef)}' /Users/paul/Pictures/Photos/NewPictures/2015-02-15_19-10-39_00.cr2

This is what the command returned:
Warning: [minor] Tag 'Canon:LiveViewShooting' not defined - /Users/paul/Pictures/Photos/NewPictures/2015-02-15_19-10-39_00.cr2

It seems as if it's treating the Canon:LiveViewShooting as a string, rather than evaluating the output as a string to be modified by the conditional statement.

When using advanced formatting, do I need to pass in a -p option?

thx
PP

Phil Harvey

That is the message you will get if Canon:LiveViewShooting doesn't value doesn't match /on/ because in that case the value is set to "undef".  (Which it will never do, because "On" is capitalized -- you should use either /on/i or /On/ instead.)

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Ppmax

QuoteThat is the message you will get if Canon:LiveViewShooting doesn't value doesn't match /on/ because in that case the value is set to "undef".  (Which it will never do, because "On" is capitalized -- you should use either /on/i or /On/ instead.)

Holy cow--apologies are in order.

My first mistake: I was processing an image not taken with Live View...so undef all the time  ::)
My 2nd mistake: for some reason I thought I had a case insensitive switch in the regex...but upon closer inspection that was obviously not the case.

All good now, sir! Thanks for your patience and help--it is highly appreciated.

Since I can only twiddle with this stuff at night when I'm burnt from a long day at work, with the associated decline in mental faculty, I don't imagine I can contribute anything meaningful in terms of code...but if there is anything you need regarding pictures with specific metadata please let me know. In the spirit of contributing something meaningful I've attached my ExifTool_config file which contains the AF Area mappings I suggested earlier in this thread. I've tested it and it's working as expected.

I will be modifying this config file to remove the "Live View" related tag value overrides...since I can get what I want using the advanced formatting commands you suggested.

Thanks again,
PP

Phil Harvey

Thanks,

There are some inconsistencies in the decoding of the Canon AFAreaMode.  A value of 1 is currently "AF Point Expansion (surround)", which what I would actually call your number 10.  Does your 7DmkII produce this value?

Also, looking at the 1DmkIII manual, there is an "Auto" mode that doesn't appear.  Could this perhaps be number 4?  If so, should number 4 be named "Auto" instead of "All Points AF"?  Is this the value you get when you select what the 7DmkII manual calls "65-point automatic selection AF"?

- Phil

...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Ppmax

Hello Phil--

Sorry for my late reply. Here are some comments/answers to your questions:

>>A value of 1 is currently "AF Point Expansion (surround)", which what I would actually call your number 10.  Does your 7DmkII produce this value?

I believe "AF Point Expansion (surround)" may be from an earlier Canon model...perhaps the original 7D (which I used to own but no longer have).

I took 1 picture in each mode with my 7D2...and did not use my .ExifTool_config alterations for the output. Here is the output from exiftool -q -s2 -Canon:AFAreaMode; I have added my shorthand description for each AFAreaMode after the semicolon. The first set of output is from "single shot" AF mode...the second set is from AI Servo mode...the third set is Live View:

AFAreaMode: Spot AF; spot
AFAreaMode: Single-point AF; single point
AFAreaMode: AF Point Expansion (top/bottom/left/right); (4 point)
AFAreaMode: Unknown (10); (8 point)
AFAreaMode: Zone AF;
AFAreaMode: Manual select Large Zone; Large Zone AF
AFAreaMode: Multi-point AF or AI AF; Auto



AFAreaMode: Spot AF; spot
AFAreaMode: Single-point AF; single point
AFAreaMode: AF Point Expansion (top/bottom/left/right); (4 point)
AFAreaMode: Unknown (10); (8 point)
AFAreaMode: Zone AF;
AFAreaMode: Manual select Large Zone; Large Zone AF
AFAreaMode: Multi-point AF or AI AF; Auto



AFAreaMode: Face + Tracking; Live View Face + Tracking
AFAreaMode: Flexizone Multi; Live View Multi
AFAreaMode: Flexizone Single; Live View Single


Here is a similar set of lists from the 5D3:

AFAreaMode: Spot AF; spot
AFAreaMode: Single-point AF; single point
AFAreaMode: AF Point Expansion (top/bottom/left/right); (4 point)
AFAreaMode: Unknown (10); (8 point)
AFAreaMode: Zone AF;
AFAreaMode: Multi-point AF or AI AF; Auto



AFAreaMode: Spot AF; spot
AFAreaMode: Single-point AF; Single point
AFAreaMode: AF Point Expansion (top/bottom/left/right); (4 point)
AFAreaMode: Unknown (10); (8 point)
AFAreaMode: Zone AF;
AFAreaMode: Multi-point AF or AI AF; Auto



AFAreaMode: Single-point AF; Live View single: Live View single


I hope this helps. Let me know if you have any questions about these.

thx
PP


Phil Harvey

Yes, it does appear that different models use different values for what I would call the same mode.  Oh well.  I will differentiate these AF Point Expansion modes by calling one "(surround)" and the other "(8 point)".

Also, I think I will change "Multi-point AF or AI AF" to simply "Auto", since it seems to apply well.

Thanks for your help with this.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).