Magic Lantern Forum

Developing Magic Lantern => Feature Requests => Topic started by: russellsnr on September 25, 2016, 12:47:01 PM

Title: Would eye auto focus be possible in ML?
Post by: russellsnr on September 25, 2016, 12:47:01 PM
Hi, Would it be possible to have eye auto focus like Sony within ML?
Thanks
Russ
Title: Re: Would eye auto focus be possible in ML?
Post by: a1ex on September 25, 2016, 12:59:11 PM
Look in Canon menu ;)
Title: Re: Would eye auto focus be possible in ML?
Post by: russellsnr on September 25, 2016, 05:16:45 PM
Hi, Plonker here!! Where abouts is this on the Canon menu 6D or ML menu I cannot find it. Many Thanks,
Russ
Title: Re: Would eye auto focus be possible in ML?
Post by: Greg on September 25, 2016, 05:42:20 PM
You should buy Sony.

5D4 - https://www.dpreview.com/reviews/canon-eos-5d-mark-iv/8

Quote from: dpreviewUnfortunately, as we've found with Canon's other iTR implementations, it simply isn't as accurate as we've found some of its competitors' systems, such as Sony's Eye AF, and Nikon's 3D Tracking, which will effectively track an eye if you initiate autofocus on it. Note, in the below video, the system isn't fooled by any other distracting elements (or other distant faces) in the scene, but the points float around Sam's face, sometimes focusing on his eye, and sometimes other parts of his face resulting in some slight mis-focus.
Title: Re: Would eye auto focus be possible in ML?
Post by: a1ex on September 25, 2016, 05:47:48 PM
Quote from: russellsnr on September 25, 2016, 05:16:45 PM
Where abouts is this on the Canon menu 6D

http://www.dpreview.com/forums/post/50675404
Title: Re: Would eye auto focus be possible in ML?
Post by: Greg on September 25, 2016, 06:22:30 PM
Focus will be on the nose?  :P
Title: Re: Would eye auto focus be possible in ML?
Post by: Walter Schulz on September 25, 2016, 06:30:45 PM
On the spot, Greg!
Title: Re: Would eye auto focus be possible in ML?
Post by: Greg on September 25, 2016, 06:36:17 PM
On the 500D it never worked.  :-\
Title: Re: Would eye auto focus be possible in ML?
Post by: russellsnr on September 25, 2016, 07:51:25 PM
Hi, Thank you for the info. Never looked at the video side of things shoot stills only.
Russ
Title: Re: Would eye auto focus be possible in ML?
Post by: Greg on September 25, 2016, 09:30:52 PM
Alex you remember this module?
It works like an eye tracking in Sony!  :o

google graphics:
(//)
;D
Title: Re: Would eye auto focus be possible in ML?
Post by: a1ex on September 25, 2016, 10:00:12 PM
Hehe, yeah, that works in some simple cases (such as overexposed eyes) and shows the tracking part is probably doable.

For more complex tracking, one could try computing local image differences with Eeko (http://www.magiclantern.fm/forum/index.php?topic=13408.0). There are histogram functions in Canon code as well - if one figures out how to call them, they are probably fast enough for meanshift / camshift (http://docs.opencv.org/trunk/db/df8/tutorial_py_meanshift.html).

To know the focus direction, you need some sort of phase info (such as dual pixel, or those pink dots on recent rebels).

All for reinventing a feature Canon already has, and is likely a lot better than what we can come up with.