musselwhizzle / Focus-Points

Plugin for Lightroom to show which focus point was active in the camera when a photo was taken
Apache License 2.0
344 stars 42 forks source link

Support for Sony NEX-6 and a6000 #120

Open fabriziogiudici opened 7 years ago

fabriziogiudici commented 7 years ago

Hello.

Nice job, and as per subject, I'd like to see support for those cameras. If nobody has objections, I'd fork and try the patch myself.

Notes: I'm a very experienced programmer and in the past I've also done a lot of reverse engineering work with EXIF and RAW metadata manipulation. Unfortunately I don't have experience in LUA. So, while I'm willing to try it, I can't be sure I'll be good on that. My message is: if somebody else wants to start working on the Sony support, please don't be blocked supposing I'm already near to provide a solution.

baburh commented 7 years ago

Is it working with Sony A6000 now? Or with any other from the Sony mirrorless line? A6x00 series? A7 series?

musselwhizzle commented 7 years ago

No support for Sony. You're welcome to add it though. It would be appreciated

baburh commented 7 years ago

Your work is great. I very much appreciate it. I wish I could provide support but I m afraid I cannot. My programming skills are nowhere sufficient.

On 24 Apr 2017, at 00:49, Joshua Musselwhite notifications@github.com wrote:

No support for Sony. You're welcome to add it though. It would be appreciated

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

musselwhizzle commented 7 years ago

if you put 4 raw files from whatever sony camera you have into a google drive zip link I'll take a look. Put 1 focus point in the center and for the others move the focus point somewhere else. No promises. I've never seen sony add the metadata to an image yet, but I've only seen center shot raws.

baburh commented 7 years ago

You are great. Will get that done right away.

On 24 Apr 2017, at 19:29, Joshua Musselwhite notifications@github.com wrote:

if you put 4 raw files from whatever sony camera you have into a google drive zip link I'll take a look. Put 1 focus point in the center and move the focus point somewhere else for the other. No promises. I've never seen sony add the metadata to an image yet, but I've only seen center shot raws.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

baburh commented 7 years ago

hello again,here is the link:focus-points – Google Drive

focus-points – Google Drive | |

|

I uploaded 15 raw files. All taken with Sony A7Rm2. There also are 15 txt files with the exif data. 1 xls file explaining my settings as I took the photos, 2 mov files showing how AF-C looked on certain cases. You mentioned that Sony does not provided enough info on exif. Below are the tag names I found relavant to your work. I plotted some focus related data on Excel, looked very meaningful. Focus Mode                      : AF-SAF Area Mode Setting            : Flexible SpotFlexible Spot Position          : 65 419AF Zone Selected                : n/aAF Points Used                  : (none)Focal Plane AF Points Used      : (none) Focus Location                  : 3984 2656 404 2318AF Area Mode                    : Flexible Spot Focus Position 2                : 155Exif Image Width                : 7952Exif Image Height               : 5304Sony Image Height               : 2656Sony Image Width                : 3984 "Focal Plane AF Points Used" has values when AF-C is used. I wish I had the programming skills to help but this is all I could. All the very best. Babur Hakarar

On Monday, April 24, 2017 7:29 PM, Joshua Musselwhite <notifications@github.com> wrote:

if you put 4 raw files from whatever sony camera you have into a google drive zip link I'll take a look. Put 1 focus point in the center and move the focus point somewhere else for the other. No promises. I've never seen sony add the metadata to an image yet, but I've only seen center shot raws.— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

baburh commented 7 years ago

I extracted the exif data on txt files using a software I found on the internet: ExifToolGUI

On Tuesday, April 25, 2017 2:23 AM, "baburh@yahoo.com" <baburh@yahoo.com> wrote:

hello again,here is the link:focus-points – Google Drive

focus-points – Google Drive | |

|

I uploaded 15 raw files. All taken with Sony A7Rm2. There also are 15 txt files with the exif data. 1 xls file explaining my settings as I took the photos, 2 mov files showing how AF-C looked on certain cases. You mentioned that Sony does not provided enough info on exif. Below are the tag names I found relavant to your work. I plotted some focus related data on Excel, looked very meaningful. Focus Mode                      : AF-SAF Area Mode Setting            : Flexible SpotFlexible Spot Position          : 65 419AF Zone Selected                : n/aAF Points Used                  : (none)Focal Plane AF Points Used      : (none) Focus Location                  : 3984 2656 404 2318AF Area Mode                    : Flexible Spot Focus Position 2                : 155Exif Image Width                : 7952Exif Image Height               : 5304Sony Image Height               : 2656Sony Image Width                : 3984 "Focal Plane AF Points Used" has values when AF-C is used. I wish I had the programming skills to help but this is all I could. All the very best. Babur Hakarar

On Monday, April 24, 2017 7:29 PM, Joshua Musselwhite <notifications@github.com> wrote:

if you put 4 raw files from whatever sony camera you have into a google drive zip link I'll take a look. Put 1 focus point in the center and move the focus point somewhere else for the other. No promises. I've never seen sony add the metadata to an image yet, but I've only seen center shot raws.— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

musselwhizzle commented 7 years ago

Hi, Can you try opening the ticket on the web and not replying from the email? The links aren't coming through.

baburh commented 7 years ago

hello. i m trying to post the link once again: https://drive.google.com/drive/folders/0BzJJz2wN4bPzYTNMOTRwdEl6eFU?usp=sharing thanks for bearing with me..

musselwhizzle commented 7 years ago

For 9856.txt

Focus Mode                           : AF-S
AF Area Mode Setting            : Flexible Spot
Flexible Spot Position            : 545 397
AF Points Used                      : (none)
Focal Plane AF Points Used    : (none)
Focus Location                      : 3984 2656 3392 2196
Focus Position 2                    : 160

The above are most likely the values that are needed. From what I'm seeing, the only thing that would make sense for where the camera focused is the Focus Location property but I'm not really sure what these values mean. Is it x y x y with 2 focus points active? Without a sony camera in my hand it's really hard to figure it out. If you can figure out how the metadata relates to the focus point, I might be able to program it. My guess right now is there was 2 focus points one at point {3984,2656} and one at {3392,2196}. If you were to map those points in photoshop does that look accurate? If not, I'm really not sure what Sony does for it's metadata. If you can figure that out and let me know how the metadata relates to the focus point, I might be able to add support for the camera.

baburh commented 7 years ago

I believe this is for 9865.txt

For Focus Location, what I understand is we have a 3x2 area of (0,0) and (3984,-2656) and that the camera's AF can scan from (404,-332) to (3579,-2318) on top left and bottom right respectively.

Sony a7rii has 399 PDAF focus points. That would mean I should be able to move my 'small' flexible spot in an area of 21x19 but the fact is I can only do it 19x17. That means the smallest spot the camera allows the user is larger than a focus point. I covered the x axis with 19 test shots and looked at the x axis increment value in between each shot: 2x93 and the rest either 186 or 187..

In my opinion Flexible Spot Position looks meaningful much like Focus Location but maybe in a 4x3 area..

I guess not I'm not much help ...

PS. I uploaded the xls file I worked on to plot exif data and jpg showing sony a7rii pdaf focus points. Corrected a minor mistake on prev. xls file.

musselwhizzle commented 7 years ago

I think this is going to be too complicated for me to do with having access to a Sony. Unfortunately we're at the mercy of someone else adding support for the camera.

fabriziogiudici commented 7 years ago

I could find some time in the next days, if I don't run into unforeseen troubles, to run more tests. I have the NEX-6 and the a6000 (the a6300 is on its way).

vtashev commented 5 years ago

Hi guys, are there any further plans to support Sony? I can provide raw files from A7 mk3

maisun commented 5 years ago

Support for Sony cameras would be nice!