How Autofocus Works - Computerphile

  Рет қаралды 212,763

Computerphile

Computerphile

Күн бұрын

Why are some cameras faster to focus than others? Dr Andy French explains the different approaches the computers inside cameras use to focus.
/ computerphile
/ computer_phile
This video was filmed and edited by Sean Riley.
Computer Science at the University of Nottingham: bit.ly/nottscomputer
Computerphile is a sister project to Brady Haran's Numberphile. More at www.bradyharan.com

Пікірлер: 265
@ukar69
@ukar69 4 жыл бұрын
It never ceases to amaze me how autofocus can focus on a tiny scratch on an aircraft window rather than the scene outside.
@Django45
@Django45 4 жыл бұрын
That is simple, it is looking for sharp contrast differences, since things in the distance are generally softer, because the light scatters and diffracts through atmosphere and the crack is nice and close, so it will be the best to focus on. Also sometimes it works to prefocus in manual focus beyond the window (not on phone, heh), so it will much easily find decent contrast outside, rather than the scratch right in your face. Also helps to put that scratch mark closer than the minimal focusing distance of the system/lens.
@thesidj
@thesidj 4 жыл бұрын
@@Django45 You just ruined his amazement.
@Django45
@Django45 4 жыл бұрын
@@thesidj understanding is even more amazing!
@MidnightSt
@MidnightSt 4 жыл бұрын
from the video, it seems that if that's a presisting issue, it's probably because your camera uses active/sonar focus method.
@DaveOyooSnr
@DaveOyooSnr 3 жыл бұрын
My theory is just in case the crack gets bigger then you'll never miss that caught in camera moment even if it happens to be your last.
@thePronto
@thePronto 4 жыл бұрын
About 30 years ago, I met a guy who was doing post-grad research in the mathematics of blurred images. I remember (after a few beers) commenting some thing like "Oh, great, we are trying to get our pictures in focus and you are trying to get them blurry." All I can say is, sorry mate: great work...
@akkual
@akkual 4 жыл бұрын
Couple additional pointers: On sensor phase detection is also provided by other manufacturers than Canon, but with different approach. Canon uses those dual pixels, which are two separated diodes. Others use a mask that blocks different half of two adjecent pixels, providing either the "upper beam" or the "lower beam" that went through the lens. These masked pixels are then compensated computationally on the final image, so you cannot see them. Also, the phase detection is fast, but not really that precise due to the error sources involved such as imperfections on the lenses like chromatic aberration and lens's autofocus motor calibration vs. the phase detection array position. Contrast detection is less error prone, and does not need the lens autofocus motor to be calibrated, as the focus is done on the final imaging device (the sensor). The best on sensor autofocus uses both methods - it first figures out the distance and direction where to focus with phase detection, but leaves focus a tiny bit out of focus in that known direction. Then the contrast detection is used to find the strongest contrast from that point forward. The end result is fast and accurate (not as fast as phase detection only, but with modern calculation speeds, the difference is not big).
@svenolschewski2200
@svenolschewski2200 4 жыл бұрын
Thank you for your comment. Quite interesting and much appreciated.
@Ck87JF
@Ck87JF 4 жыл бұрын
Thanks! The video was heavily biased toward SLR cameras and didn't really appreciate the performance of smartphone focus. I wondered about mirrorless since I have a Sony a6400. This helps see the benefits of contrast instead of only using phase.
@sjhstone
@sjhstone 4 жыл бұрын
@@Ck87JF Sony implements focal-plane phase detectors, which are built into the sensors (not clear in which way it works, though), and it works with contrast AF in something marketed as "hybrid AF". Phase detection is not very robust when the lens is not perfect and in most cases has limited resolution, while contrast based AF methods are more accurate but work slower.
@LuLeBe
@LuLeBe Жыл бұрын
I would assume for mirrorless cameras that use their image sensor as the phase deteciton sensor, there's no calibration needed. At least they don't have that classical adjustment option like DSLRs did.
@pvc988
@pvc988 4 жыл бұрын
Video is quite wobbly so I assume, next video will be about stabilization.
@recklessroges
@recklessroges 4 жыл бұрын
The wobble is adding in post for audience engagement purposes. Thank you for participating.
@mantasb3536
@mantasb3536 4 жыл бұрын
You know when in Michael Bay movies scientists talk about something interesting, but not too groundbreaking, and the camera man is having a stroke and the editing is faster than the shutter speed of the camera? It is too feel intense! Well, here minus the editing, but plus the lighting - suspiciously unflattering.
@YourTVUnplugged
@YourTVUnplugged 4 жыл бұрын
I was thinking it was just me... What a perfect video to talk about this subject... While the video is 'in focus', still compared to nearly every other video it is jittery as heck, in both the video of him explaining this and the video of the paper he's drawing on... Could've done to adjust the white balance too on the paper portions of the video it kind of whites out what he's drawing a bit... LOL Either he's had a bit too much coffee this day, or something's wrong with the auto stabilizer LOL
4 жыл бұрын
I started watching this while I was brushing my teeth. It felt weird when the video didn't stop shaking when I finished.
@iforgotmyusername0
@iforgotmyusername0 4 жыл бұрын
lol
@ahhashim
@ahhashim 4 жыл бұрын
FYI: He is saying "phase detection", not face detection.
@U014B
@U014B 4 жыл бұрын
Isn't that how those Casio CZ synths make their sound?
@frabert
@frabert 4 жыл бұрын
@@U014B That's phase distortion aka phase synthesis
@balthazarfitzpatrick7770
@balthazarfitzpatrick7770 4 жыл бұрын
I was waiting for the feature recognition of faces, then it dawned on me. Scrolled down, pleased to find your comment on 1st phase, ah, place.
@Furiends
@Furiends 4 жыл бұрын
vaze detection. #BritshPeople
@Roberto-dd1te
@Roberto-dd1te 4 жыл бұрын
I was wondering what kind of face would be detected by just two pixels
@bakedutah8411
@bakedutah8411 4 жыл бұрын
1:26 I once built my own active system by fitting a bazooka to my camera. It worked quite well because after it had, _”fired something out from the camera”,_ whatever was left of the original subject was far enough away I could just set focus to infinity.
@Shadow81989
@Shadow81989 4 жыл бұрын
works every time :-)
@Decco6306
@Decco6306 4 жыл бұрын
A photographer that doesn't use a Mac, I appreciate that
@blackhatguy6955
@blackhatguy6955 4 жыл бұрын
Super-hyper-ultra-duper-action-inyourface-wobblecam-turbozoom Riley makes a video on Autofocus. Oh, the ironing.
@recklessroges
@recklessroges 4 жыл бұрын
This was covered in the video.
@jackh7138
@jackh7138 4 жыл бұрын
@@recklessroges Uhh, no it wasn't. o.o
@MrVipulLal
@MrVipulLal 4 жыл бұрын
Brilliant! Something I always wondered. Detailed and clear
@StevenOBrien
@StevenOBrien 4 жыл бұрын
Man, PhotonicInduction has really changed a lot over the years.
@thesmallestatom
@thesmallestatom 4 жыл бұрын
sad react
@subliminalvibes
@subliminalvibes 4 жыл бұрын
Haha! Small World. Do you remember when he had a competition to win a 60Watt HID torch? I'm the guy that won it! Poor Andy had to send it all the way to Australia! 😅 I miss him and hope he's doing alright.
@christopherbuckenhamphotog368
@christopherbuckenhamphotog368 4 жыл бұрын
Love photonicinduction
@chrislambe400
@chrislambe400 4 жыл бұрын
@@subliminalvibes me too. His last video with the home office blocking him bringing his new missus into the UK and the free energy device got a lot people worried.
@TommiHimberg
@TommiHimberg 4 жыл бұрын
Very clear explanation, interesting and informative, thank you!
@cowboyfrankspersonalvideos8869
@cowboyfrankspersonalvideos8869 4 жыл бұрын
In the older pre-SLR days, there was also split field range finders which I always found easier to use than focus field ranging.
@razafiarisonmichael4421
@razafiarisonmichael4421 Жыл бұрын
You made a very good video. Thank you for sharing your knowledge
@cheaterman49
@cheaterman49 4 жыл бұрын
That's pretty interesting! I remember an older film camera having a circular focus assist in the middle, IIRC it could use it to autofocus, but you could also use it for manual focus - it was seemingly showing different focus levels on each half of the circle, and you'd know you're in focus when you can't distinguish one half from the other. I guess that was phase detection! It also reminds me a bit of how gamma adjustment is done on computer screens nowadays :-)
@Toad_Hugger
@Toad_Hugger 4 жыл бұрын
Yep, I've got two older film cameras that have that. It's called split-image focusing. Mine also have the split-image circles surrounded by a ring of microprisms, which also help to focus. It's nice how intuitive the split-image focusing is. Very easy when you've got something like a tree branch or straight edge to line up!
@cheaterman49
@cheaterman49 4 жыл бұрын
Totally, I literally was a kid back then and it was easy to use even without explanations!
@JensUhlmannOfficial
@JensUhlmannOfficial 4 жыл бұрын
3:57 You might want to turn down the exposure 1 or 2 Stops next time you film a sheet of paper with direct lighting on it
@guyhasd
@guyhasd 3 жыл бұрын
Great video and explanation. Thanks.
@georgetran1766
@georgetran1766 3 ай бұрын
Excellent tutorial. Thank you so much.
@aspuzling
@aspuzling 4 жыл бұрын
Thank you for this video! As a photography amateur, I've been really interested it understanding the difference between phase detection and other focus mechanisms so I am really glad you chose this topic for a video. However I have to say I really didn't get how it works based on the diagrams you showed. Why does it need a separate sensor? Why is the sensor only one dimensional? How do the two images appear on the two sensors separately...?
@ArumesYT
@ArumesYT 4 жыл бұрын
It needs a separate focus sensor because when you look through the viewfinder, the image sensor doesn't get any light to work with. And the sensor is not one dimensional, but phase detect pixels are. Most autofocus sensors have both horizontal and vertical sets of pixels.
@natan9065
@natan9065 4 жыл бұрын
So it's one dimensional because there's no reason for it to be 2D, you'd just get similar patterns swept round in a circle. All you need is one distance, so 1D suffices. And the diagram of the two 'images' is a bit of an abstraction, really those red and green lines are just two separate rays of light, and behaving as a wave, many rays average out to make the curves seen. You can then use chromatic aberration to determine which waves (top or bottom) have ended up in which places
@ArumesYT
@ArumesYT 4 жыл бұрын
@@natan9065 Yes, there is a reason for them to be 2D, and they are. They're called cross-type focus points.
@jammin023
@jammin023 4 жыл бұрын
A prism or semi-silvered mirror is used to split the incoming light between the phase detect sensor and the viewfinder. There's a problem with this method. Because the PDAF sensor is separate, and isn't directly on the plane of the main image sensor, it must be precisely calibrated. The ideal is for light to travel exactly the same distance whether it is going to the PDAF sensor or the main image sensor, so that they both see exactly the same focus. Any tiny discrepancy between the two, will cause inaccurate focusing. In practice there will be a difference, but small enough to be compensated for by calibration. Expensive DSLRs allow this calibration to be updated by the user. Cheap ones don't, and as a consequence can often suffer from an inability to achieve tack-sharp focus. Having the PDAF sensor separate is therefore not ideal. It's only necessary for traditional SLR-style cameras with an optical viewfinder, because no light is hitting the main image sensor when the viewfinder is in use. Mirrorless cameras (or SLRs when using live view) have no need to do this, because there is no optical viewfinder - light is always coming through to the main sensor. So, for those that use PDAF, they put the PDAF sensors on the main image sensor, either using the Dual Pixel system that he talked about here (which Canon has been using for many years now), or by simply replacing some of the regular pixels on the sensor with phase detect points. But there's a downside here too, in the latter case: the pixels being used for PDAF can't be used for capturing the image, so they have to be interpolated when the final image is constructed so as not to leave holes. In some cases the PDAF array even has wiring going across the sensor which can cause banding. But the advantages of PDAF are considered so worthwhile that every mirrorless camera manufacturer uses it (or a hybrid system of both PDAF and CDAF). Except one. Panasonic use only CDAF, but their "DFD" system attempts to address some of its shortcomings by using a knowledge of the out-of-focus optical behaviour of their lenses to compute the distance and direction that the lens needs to move to acquire focus. This makes acquiring focus in Single AF very fast. However, it still suffers from a problem that can never be completely solved for CDAF, and that is Continuous AF. With CDAF, if your subject moves, you have no choice but to hunt around for that peak again. PDAF always knows where the peak is, so (in theory) it doesn't have to hunt.
@shawniscoolerthanyou
@shawniscoolerthanyou 4 жыл бұрын
Nice! I was always kind of curious how passive autofocus worked. The system I imagined is most similar to the phase detection setup he described. Everything is a universe unto itself; something taken quite for granted is such a marvel of math and physics and art.
@alannorthdevonuk763
@alannorthdevonuk763 3 жыл бұрын
Brilliant. Answered my questions.
@aaxxcdd
@aaxxcdd 4 жыл бұрын
Excellent stuff.
@theinfamous3662
@theinfamous3662 4 жыл бұрын
I was waiting for this for a long time.
@christopherbuckenhamphotog368
@christopherbuckenhamphotog368 4 жыл бұрын
Wow very interesting video helpful to know how auto focus works and why it doesn't work aswell.
@dfs-comedy
@dfs-comedy 4 жыл бұрын
Quite a long time ago, I had to write an autofocus program for a microscope stage. I believe the way I did it was to apply a Gaussian blur to the image, subtract the blurred image from the original image and then try to maximize that difference. Similar to this algorithm I guess, but didn't need to decide a direction for subtracting neighboring pixels.
@quikee9195
@quikee9195 4 жыл бұрын
Subtracting a gaussian blur is how "unsharp mask" sharpening method works. :)
@cmdlp4178
@cmdlp4178 4 жыл бұрын
The green pen was barely visible.
@morrisoc1
@morrisoc1 4 жыл бұрын
Thanks for the video. Really well explained and provided an answer to something I never thought about. Quick question. Is focus peaking using contrast to determine the in focus edges? Seems that would be the case.
@s3cr3tpassword
@s3cr3tpassword 4 жыл бұрын
ImageJ is a free software that is getting me through grad school right now
@theepicguy6575
@theepicguy6575 4 жыл бұрын
Neat... This is one of those questions, i needed answers so badly
@ArumesYT
@ArumesYT 4 жыл бұрын
But not badly enough to look it up yourself? It's not like Computerphile is the first one to offer an explanation.
@xuser48
@xuser48 4 жыл бұрын
And that's the nice thing about SLT's. Phase Detection AF during video.
@luppano
@luppano 4 жыл бұрын
FYI : Dual Pixel is EXTRA USEFUL in video cameras, since you always are in "liveview".
@ArsenijeRadenovic
@ArsenijeRadenovic 4 жыл бұрын
Very interesting video. I always wondered how does autofocus work and I completely understand now. Your cameraman should get a tripod or improvise for better stability of the video. It is kinda distracting..
@bobcunningham6953
@bobcunningham6953 4 жыл бұрын
Quite often you want to discover the structure in your image, not just in X and Y, but also in Z (depth), then apply rules to choose where and how to focus. Here is where the hunting of contrast detection stops being a liability and becomes a benefit, and where the whole-scene processing of contrast detection gains power of the (generally) linear strips of phase detection. Simple or naive contrast detection algorithms use differences within neighborhoods surrounding a central pixel, which is equivalent to passing an oriented bandpass filter across the image. Why not capture **all** the frequencies in the image? This can be done using a Fourier Transform, one common formulation of which is the FFT. Taking three quick FFTs at slightly different focus settings can reveal an immense amount of information that can then be processed to extract 3-dimensional geometry. You not also get the static structure of the view, but you can also do things like object tracking without knowing what the object "is", relying on the operator to simply indicate a region of interest to track and keep in focus. While FFTs are great for auto-focus, they can be a bit heavy for object detection and tracking. This is where MPEG4 algorithms such has H.265 help out. Even if you are capturing your image or video as "Raw" data, the autofocus/autotracking feature is often using the video compression subsystem in the background to do its job. Which is why many cameras offer "Raw+Compressed" options, since it's doing the work anyway, letting the user decide how best to use the available storage space.
@Skund79
@Skund79 4 жыл бұрын
This explains why a camera with low dynamic range struggled to focus in darker areas.
@mdnpascual
@mdnpascual 4 жыл бұрын
so if AF is going to better if there are edges, should I aim on edge to be inside the bounding box when using single point focus?
@rohscx
@rohscx 4 жыл бұрын
Thank you
@robmckennie4203
@robmckennie4203 4 жыл бұрын
Interesting, this explains why the cannon 40d I used to shoot with would snap out of live view mode for a split second while auto-focusing
@Django45
@Django45 4 жыл бұрын
in a quick mode it does that, yes. It switches to the phase detect on a specified focus location, focuses and then goes to live view again. *thumbs up*
@sriniwas764
@sriniwas764 4 жыл бұрын
Amazing video, can you do one on line drawing algorithms
@Nick_G7IZR
@Nick_G7IZR 4 жыл бұрын
Interesting, thanks. BTW, what's the watch?
@aDifferentJT
@aDifferentJT 4 жыл бұрын
The phase detection sensor looks like a mini light field sensor
@rasmysamy2145
@rasmysamy2145 4 жыл бұрын
That's essentially what is, yes. A 230 pixel sparse light field sensor.
@barrelroller8650
@barrelroller8650 4 жыл бұрын
Uh, he was able to visualize the contrast measure algorithm so easily by creating an image where I*[x,y]=I[x,y]-I[x-1,y]. So the generated I* image would represent the contrast between pixels and would be as brighter, as sharper the origin image is.
@onomatopoeial
@onomatopoeial 4 жыл бұрын
this video is lit AF
@brianalsum7706
@brianalsum7706 4 жыл бұрын
Can you share the python code for the autofocus test? more over what is the IJ script you're calling? Im working with some young, super smart kids, part of what we are learning (togeather) is optics and remote sensors. Your program would provide a great learning tool for them/us
@isaactfa
@isaactfa 4 жыл бұрын
How incredible are this guy's free-hand diagrams?
@InnerBushman
@InnerBushman 4 жыл бұрын
Why aren't the end screen boxes clickable? Wanted to follow up with one of the videos but can't. There's no link in the description either.
@igamse
@igamse 4 жыл бұрын
Hasn't been months since youtube removed this feature?
@ten_tego_teges
@ten_tego_teges 4 жыл бұрын
Could you not run 2 dimensional FFT on the image and try to max out the energy in high frequency bands? Could that would be a simple measure of contrast?
@MidnightSt
@MidnightSt 4 жыл бұрын
FEW methods of doing autofocus? I can only think of one - do edge detect on the image and move the lens until the edge detect returns highest values (on the part of the image we want to focus). I'm curious to learn what the other methods are.
@jjkjkjka
@jjkjkjka 4 жыл бұрын
I'm really interested how dual pixel phase autofocus works.
@ArumesYT
@ArumesYT 4 жыл бұрын
The same. It's an image sensor modified to be able to do phase detection.
@MarceloLangame
@MarceloLangame 4 жыл бұрын
Panasonic is interested too.
@arunashamal
@arunashamal 4 жыл бұрын
@@MarceloLangame lol...
@arunashamal
@arunashamal 4 жыл бұрын
it is the same as normal phase detect....but instead of redirecting the light with a mirror, it works on the image sensor. instead of splitting the beam somewhere else, it uses 2 pixels to measure 2 points of beam and phase detect.... that is the simpleset I can explain it
@GilbertTV
@GilbertTV 4 жыл бұрын
cool video
@GFmanaic
@GFmanaic 4 жыл бұрын
13:28 It's not totally accurate, very often it's even hard to know IF you're out of focus with CDAF. Then there is the issue of local maximums, since the example given shows a perfect curve, but a real scene will have multiple peaks. PDAF has another advantage in that it can continuously adjust the focus, but Contrast detection needs to evaluate the change in the overall image to decide when to trigger a new hunting phase (or rely on an external trigger, like the user. Also, phase detection pixels is available on a lot of sensors now. Sony has them on on all their higher end sensors, pretty much. Haven't managed to use it however.
@randomgeocacher
@randomgeocacher 4 жыл бұрын
Canons dual pixel implementation doesn’t waste image area; all phase detect sensors are image sensors and vise versa. So for pixel peepers and very specific lighting scenarios, Canons approach should yield better results (in most real world scenarios you never see any visual flaws from Sony’s approach, but you could be really unlucky and get the most interesting detail on the spots where you have no image sensor and pixels are just a blur of the neighbor pixels). I think that’s what they meant by Canon DPAF not needing separate optics, there’s optical drawback to their solution.
@lindhe
@lindhe 4 жыл бұрын
I guess modern cameras have both phase detection and face detection then. Neat.
@Kar08Mie
@Kar08Mie 4 жыл бұрын
This is fascinating to me! Which branch of science/CS is this studied in?
@JackFlashTech
@JackFlashTech 4 жыл бұрын
I’d look for “image processing,” but it won’t be just cameras. The field also does a lot in visual effects, robotic sensors, and all kinds of different things. All of those fields use the same algorithms, but for different things.
@omfgmouse
@omfgmouse 4 жыл бұрын
8:25 Python 2? It's 2020...
@harogaston
@harogaston 4 жыл бұрын
He runs WIndows you shouldn't be wowed about python 2
@NicolasDeFrancesco
@NicolasDeFrancesco 4 жыл бұрын
He's using Fiji's built in Jython (2.5) interpreter
@abm_prottoy
@abm_prottoy 4 жыл бұрын
As if Windows is deprecated like Python 2. He's using Surface. Far better than many other Windows machines out there.
@AngusMcIntyre
@AngusMcIntyre 2 жыл бұрын
With a single sample, does contrast detection know if it is out of focus?
@Lion_McLionhead
@Lion_McLionhead 4 жыл бұрын
This wouldn't be a computerphile video this year unless neural networks were being used for autofocus. Knowing Japan, it'll be 100 years before it ever makes it to DSLR's while phones will have it next year.
@kamikaze9822
@kamikaze9822 4 жыл бұрын
great
@Envergure
@Envergure 4 жыл бұрын
What is the normal use of that paper with six-line staves on it?
@salvatoremascolo
@salvatoremascolo 4 жыл бұрын
So basically Marques gets a car and reviews it trying to make as many Doug DeMuro puns as possible.
@MidnightSt
@MidnightSt 4 жыл бұрын
Active autofocus: "So you can use sound..." oh, please please please, someone make a camera which uses sound which is a recorded shout of "THIS IS MY AUTOFOCUS PING!"
@JimLeonard
@JimLeonard 4 жыл бұрын
Why are the over-the-shoulder shots, in which the camera is clearly mounted to something, shaking constantly?
@davidnotonstinnett
@davidnotonstinnett 4 жыл бұрын
The mount is moving. People constantly move even if trying to stand perfectly still because they breath and stuff.
@JimLeonard
@JimLeonard 4 жыл бұрын
@@davidnotonstinnett No, the over-the-shoulder view is fixed to something. It's just... vibrating. The truly hand-held shot is the main interview shot (why a channel with over a million subscribers doesn't use a tripod is utterly beyond me).
@djp_video
@djp_video 4 жыл бұрын
There are a number of cameras out there that support a form of phase detect on-sensor. Canon calls this Dual Pixel Auto Focus, for example.
@keemjhongeel803
@keemjhongeel803 4 жыл бұрын
Could you attempt to explain how the new Samsung ultra phone has "108MP" from a 12MP(*9) Sensor? And how it "fits 9 pixels in 1" (really not sure if I phrased that right, but it makes me curious)
@itsevilbert
@itsevilbert 4 жыл бұрын
Another thing about the phase detection, is that there will be less mechanical wear on the actual auto focus motor and gears, so the camera will have a longer lifetime (The less a moving part moves, the longer that part takes to eventually wear out and fail). But these days probably not as important, since most people appear to bin tech every 3-5 years.
@noisycarlos
@noisycarlos 4 жыл бұрын
FYI he's saying PHASE detection, not FACE. It took me a while to figure it out and confused me at first.
@simontay4851
@simontay4851 4 жыл бұрын
What really annoys me is when my camera tries to autofocus and it goes past the point where the image is in focus or it focuses on the background and i have to keep trying again. Autofocus doesn't always work. My camera doesn't have a manual focus option and i can't afford an expensive DSLR with manual focus.
@CaioPetrelliCominato
@CaioPetrelliCominato 4 жыл бұрын
what kind of text editor/ide is this?
@Tmaxar
@Tmaxar 3 жыл бұрын
Very well explained for a layman like me...
@Tmaxar
@Tmaxar 3 жыл бұрын
I have been meaning to ask this from an informed person but couldn't figure out who to ask. I think I have come to the right place. Is camera autofocus a hardware thing or software? I mean, can a company improve the autofocus performance through firmware updates?
@Computerphile
@Computerphile 3 жыл бұрын
Sadly it depends on the camera - some cameras have hardware solutions and some software, many a hybrid of the two. So it's possible to improve autofocus via a firmware upgrade but your mileage may vary! -Sean
@evertchin
@evertchin 4 жыл бұрын
I've always had some ideas on how the logic work - specially on the blurriness comparison. After watching the video, i am glad i was right. it was kind of obvious on most phone/camera where the images always go in and out of focus then in focus again.
@seppsowas
@seppsowas 4 жыл бұрын
Next Video: "how exposure measuring works"
@strayling1
@strayling1 4 жыл бұрын
@5:40 Any pointers to an explanation of cross correlation please?
@sharpfang
@sharpfang 4 жыл бұрын
integral( abs( F1(x)*F2(x+t) ) ), find such t that integral is minimal.
@ThomasPlaysTheGames
@ThomasPlaysTheGames 4 жыл бұрын
My pre-video guess - checking the deviance of an image processed by someting like CV2's Canny function. My logic with this is that the more blurry an image is - the less the 'borders' would be detected.
@JohnLadan
@JohnLadan 4 жыл бұрын
That's basically right for the second method, except that the Canny algorithm has a few extra steps to remove "weak" edges. As he mentioned you would use something like the Sobel filter in practice. This is the first step in the Canny algorithm.
@ThomasPlaysTheGames
@ThomasPlaysTheGames 4 жыл бұрын
@@JohnLadan Yup, just finished viewing the video.
@charstringetje
@charstringetje 4 жыл бұрын
So if an image is out of focus, there's an uncanny valley between the two peaks in the two sensors?
@sherwinparvizian2414
@sherwinparvizian2414 4 жыл бұрын
It's Mac Lethal
@horacegrimsby2870
@horacegrimsby2870 4 жыл бұрын
Hi you need contrast for phase detect to work as well otherwise no 'peaks' to measure :-D
@kendokaaa
@kendokaaa 4 жыл бұрын
Canon did come up with dual pixel autofocus but now it's available on Sony sensors like Samsung phones use as well as others
@ArumesYT
@ArumesYT 4 жыл бұрын
Are those Sony sensors or Samsung sensors?
@kendokaaa
@kendokaaa 4 жыл бұрын
@@ArumesYT Last I heard Samsung were using Sony sensors but it's possible they've since stopped
@ArumesYT
@ArumesYT 4 жыл бұрын
@@kendokaaa They also use their own sensors since 2003. So again, are the sensors you're talking about Sony or Samsung?
@ArumesYT
@ArumesYT 4 жыл бұрын
Another thing to remember is that other manufacturers only use DPAF on small (smartphone) sensors. The most probable explanation is that they have a licence from Canon (who patented it ofcourse) to use DPAF , but that the use is restricted to small sensors so Sony and Samsung can't use Canon's invention to compete with Canon directly.
@sebastian_trzaska
@sebastian_trzaska 4 жыл бұрын
Nikon had phase detection on image sensor before Canon in the Nikon 1 series. The sensor was made by Aptina.
@SwordQuake2
@SwordQuake2 4 жыл бұрын
And how does it know that the red peak is before the green one? You could have explain it properly.
@MrGracham
@MrGracham 4 жыл бұрын
Aka the red peak is above the green one
@djmips
@djmips 4 жыл бұрын
Maybe if he had a green pen that actually worked on camera you'd be able to see what he was talking about!
@bjornolson6527
@bjornolson6527 4 жыл бұрын
Category: Autos & Vehicles ?!?!?
@jacktheninja
@jacktheninja 4 жыл бұрын
Isn't that the same as PID?
@WinterMadness05
@WinterMadness05 4 жыл бұрын
Dioptic manifold clear
@misaalanshori
@misaalanshori 4 жыл бұрын
WHY IS THE CAMERA THEME WHITE?
@ion_X
@ion_X 9 ай бұрын
Kinda ironic talking about camera and the cameraman overexposed the paper shots
@greyballoon5598
@greyballoon5598 4 жыл бұрын
12:57: "We've gone through every pixel in the image here." You've kinda missed the whole first row.
@TheNovaq
@TheNovaq 4 жыл бұрын
First and last rows an columns. It's to avoid "out of range" error.
@greyballoon5598
@greyballoon5598 4 жыл бұрын
@@TheNovaq He starts checking from the second column because he uses "x - 1" in his calculation, but he should check the first row, there's no "y - 1" there.
@shounakhinge8
@shounakhinge8 4 жыл бұрын
Try warp stabilizer next time.
@FusionDeveloper
@FusionDeveloper 4 жыл бұрын
For me, Autofocus has an anti-bias towards taking close-up photos. I hate it when i get it in focus, press the camera button, then it decides to throw it out of focus, then snaps the picture for me. Thanks technology.
@christopherbuckenhamphotog368
@christopherbuckenhamphotog368 4 жыл бұрын
Have you tried back button focus out of interest instead of half push of the shutter button.
@FusionDeveloper
@FusionDeveloper 4 жыл бұрын
@@christopherbuckenhamphotog368 yes. I just use manual focus whenever i have the time.
@Van-yo2xr
@Van-yo2xr 4 жыл бұрын
Fusion Developer the reason that many cameras have this issue is that the focus throw for non macro lenses is not very large up close. If you have a marked lens, you’ll notice that the distance from close focus to 1 m is very small. This means that you have to be much more precise to bail focus. Cameras are also smart, and they commonly look for something far away even if they can focus up close in case you are shooting through a window. This is why many cameras will hunt, focus up close, and then hunt all the way to infinity.
@FusionDeveloper
@FusionDeveloper 4 жыл бұрын
@@Van-yo2xr oh okay. It's just annoying that i tap to focus, then when i go to take a picture, it changes focus so the entire picture is out of focus, but now i understand why. Thank you.
@christopherbuckenhamphotog368
@christopherbuckenhamphotog368 4 жыл бұрын
@@FusionDeveloper that's why I suggested back button focus set your focus with a different button then when you press the shutter it doesn't re focus.
@bncprado
@bncprado Жыл бұрын
Did someone send this to Panasonic?
@dataeater1319
@dataeater1319 3 жыл бұрын
Cool 🔥 now I can explain how auto focus works Lol
@damirskrjanec
@damirskrjanec 4 жыл бұрын
The ilustration at 1:06, rangefinder focus, is fundamentally wrong. To make it right, at least front and back plane should move with different speed. Aligned plane is the one where the focus is.
@kelvinluk9121
@kelvinluk9121 4 жыл бұрын
is it face detection or phase detection?
@subliminalvibes
@subliminalvibes 4 жыл бұрын
Phase
@kelvinluk9121
@kelvinluk9121 4 жыл бұрын
thx a lot! when I first heard that in the video, I thought that they were talking about face detection. but I was thinking that what they were talking about was not limited to "face" only. when I saw the graph of the continuous line with peak on it, I thought of phases I learnt in electromagnetism and it looked similar anyway luckily I have asked and u confirmed my thought gratefully
@subliminalvibes
@subliminalvibes 4 жыл бұрын
@@kelvinluk9121 You are most welcome, friend.
@randomgeocacher
@randomgeocacher 4 жыл бұрын
Face detection = detecting faces using image recognition algorithms. Phase detection = detection out of focus phase. Both words sound the same and are used commonly in photography. I’m sure a lot of people confuse the two :)
@jgard1990
@jgard1990 4 жыл бұрын
Elves do exist in real life! Cool!
@thedagenhart6150
@thedagenhart6150 4 жыл бұрын
This was an interesting sequel to Blair Witch project.
@matthiasS7169
@matthiasS7169 4 жыл бұрын
Blur Witch project
@KX36
@KX36 4 жыл бұрын
Has anybody else noticed Andy looks a lot like Jonny Sweet?
@macrossactual
@macrossactual 4 жыл бұрын
is this just sort of his hobby on the side?
@lostangel2192
@lostangel2192 4 жыл бұрын
is it possible to use AI to Autofocus I think its better , nice video btw
@geniej2378
@geniej2378 4 жыл бұрын
Lost angel I'm no expert, but I think AI is starting to get used to autofocus in high end phone cameras. DSLR cameras like the one they show traditionally don't have as much compute power as current high end smart phones and instead have highly specialised hardware and software built only for capturing images.
@killedbyLife
@killedbyLife 4 жыл бұрын
What's with the overexposure?!
@marc_frank
@marc_frank 4 жыл бұрын
next video
@killedbyLife
@killedbyLife 4 жыл бұрын
@@marc_frank How autoexposure works?
@marc_frank
@marc_frank 4 жыл бұрын
@@killedbyLife 😂
@nnslife
@nnslife 4 жыл бұрын
10:09 - No, it takes a little while because it is Python
@pnjunction5689
@pnjunction5689 4 жыл бұрын
Anyone else looking at the thumbnail thinking this is a Photonicinduction video? Where's me 'ammer? I ain't 'aving it!
@BooBaddyBig
@BooBaddyBig 4 жыл бұрын
Not quite sure why you need your focusing to work in complete darkness, since there's a lack of image ;p
@SimonBuchanNz
@SimonBuchanNz 4 жыл бұрын
More of a video problem, where you don't want the focus to slowly dial in when the lights turn on.
@kenhaas3208
@kenhaas3208 4 жыл бұрын
Get a better green marker!
@migueldoliveiracomposer
@migueldoliveiracomposer 4 жыл бұрын
apropos of Valentine's day...
@superaluis
@superaluis 4 жыл бұрын
When my phone's camera autofocus doesn't work I just hit it around the lens area and it gets it back on working. Works everytime
@NamFlow
@NamFlow 4 жыл бұрын
Dear *Panasonic,* please watch this video. Thank you!
@quikee9195
@quikee9195 4 жыл бұрын
LOL Olympus too? I think.
@NoahHornberger
@NoahHornberger 4 жыл бұрын
best comment
@franztrischberger8023
@franztrischberger8023 4 жыл бұрын
Panasonic CDAF (called DFD) is both faster and more accurate than PDAF. When you are happy with S-AF, which probably most amateur photographers are. C-AF is unfortunately flawed, especially in video where you can see the constant wobbling. Olympus has PDAF in the high end models (all E-M1 models, E-M5 starting with E-M5 Mark III), and the CDAF in their other cameras is way better than what most DSLRs provide (canons with DPAF and the most recent Nikon DSLRs which come with PDAF on-sensor in addition to the seperate PDAF sensor excluded).
Smartphone Cameras Explained - Technically
18:32
MOBHouse
Рет қаралды 44 М.
Contrast vs Phase Detection & Hybrid Autofocus (Simplified)
7:13
John Peltier
Рет қаралды 10 М.
Homemade Professional Spy Trick To Unlock A Phone 🔍
00:55
Crafty Champions
Рет қаралды 32 МЛН
Каха ограбил банк
01:00
К-Media
Рет қаралды 2,8 МЛН
When Jax'S Love For Pomni Is Prevented By Pomni'S Door 😂️
00:26
Nikon Zf full review, the camera for everyone (except Sony)... sorry Sony.
26:56
Laziness in Python - Computerphile
14:21
Computerphile
Рет қаралды 362 М.
Rangefinder Camera Explained: How It Works and Why It Changed My Life
12:10
Florian Froschmayer // STAY CURIOUS
Рет қаралды 29 М.
How Does a DSLR Camera Work
8:32
Animations Xplaned
Рет қаралды 128 М.
How Optics Work - the basics of cameras, lenses and telescopes
12:05
Improbable Matter
Рет қаралды 62 М.
AI Safety Gym - Computerphile
16:00
Computerphile
Рет қаралды 119 М.
Autofocus for GEEKS: Phase vs Contrast (WARNING: Intense detail)
14:06
Tony & Chelsea Northrup
Рет қаралды 88 М.
#755 Why is a Camera Lens so Complicated?
17:21
IMSAI Guy
Рет қаралды 43 М.
How Machine Language Works
19:48
The 8-Bit Guy
Рет қаралды 940 М.
The Feigenbaum Constant (4.669)  - Numberphile
18:55
Numberphile
Рет қаралды 1,5 МЛН
ТАМАЕВ vs ВЕНГАЛБИ. Самая Быстрая BMW M5 vs CLS 63
1:15:39
Асхаб Тамаев
Рет қаралды 4,1 МЛН
Британский гонщик быстрее Гугл мапс 💨
0:48
Выбираем тачку? #шортс #топ #марьяна
0:17