Hacker News new | past | comments | ask | show | jobs | submit login

How could they then tell to what distance they're focused?

I used to have two Ultrasonic lenses, the 17-40/4L and the 17-55/2.8. They both had distance scales which would move around as the lens focused.

My current Olympus lenses have a focus-by-wire manual mode, with a distance scale on the barrel. The camera also reports the focus distance in the EXIF. Are these just vague ballparks?




Some - not all - of the EF lenses have a distance encoder as well. It's fairly approximate; I think it exists mostly for the benefit of the flash system, which needs a rough starting point for the distance in some of the open-loop modes.

For the current Olympus ones, I think there's a broadly similar encoder on the ones with proper manual focus scales, and the pure fly-by-wire ones reset focus at connection so the camera can work it out.

There's a list of the EF lenses and which forms of distance information they provide here: https://web.archive.org/web/20130425064359/http://www.lenspl...


Sorry for the late reply. What we’ve found is that they’re all close but not identical. Our system has a point LIDAR pointed at the ground and then uses that to drive the focal distance for the lens (as well as input for some other sensor fusion stuff). We generally run the lenses wide open (f/2.0 or f/2.8). Mapping step counts to distance would get us close, but unless we did calibration for each individual lens it wasn’t close enough to get the focus tack sharp. When you’re looking at the focal distance in your EXIF metadata you’re probably not validating whether that 2.4m distance to the subject was actually 2.3m and for the vast majority of cases the absolute accuracy of it doesn’t matter. Same with the distance markers on the focus ring… you’re not setting the focus within a few cm based on those marks, just getting it close enough that you can do closed-loop focusing with an eyeball in the loop.

Once we did the per-lens calibration curve we didn’t have to do it again. I’m assuming the small differences are just manufacturing tolerance and they’re relying on the focus/phase sensors to get it the rest of the way.




Consider applying for YC's Summer 2025 batch! Applications are open till May 13

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: