# Set focal length to infinity

I don't know where to ask this question but as I'm working with OpenCV I'll do it here.

I'm working with this camera: Blackfly 0.9 MP Color GigE PoE (Sony ICX692) with focal length 2.8-8 mm.

My question is how to set the focal to infinity so as I can see objects near the camera as well as far ones simultaneously without blurring. I don't know if that is possible! When I want to detect a chessboard for example, it works well when the board is on the focal plan but otherwise it appears little bit blurred so it's not detectable!

If it is not possible how you deal with that issue?

edit retag close merge delete

Sort by » oldest newest most voted

1st of all the focal is related to the lens and not to the camera.

2nd your issue is related to "Depth of Field" which is related to aperture of the lens. This is the f-number of your lens and is aperture and not focal !

"Depth of field" is depth range where your objects are on focus (without blurring)

Larger aperture = small Depth of field

So you can close the aperture of the lens to its minimum to get deepest field for your system (cam+lens)

As side effect you will have a darker image because less light comes to the camera trough the small aperture of lens. Remember this simple rules:

• large aperture, like f/2.8 = lighter image = small depth
• small aperture,like f/16 = darker image = large depth

You should remember also that large aperture means small f-number

more

Okay I confused DOF and Focal length! thanks However, when you say large depth, it means we can see farthest objects better? how about nearest objects? That was my question. I want to see both of them like there is no depth!

( 2017-06-01 07:25:59 -0500 )edit

Changing aperture spreads depth of field in both direction but not symmetrically. far can go to infinite near can go up to min focus distance of the lens.

( 2017-06-01 09:12:20 -0500 )edit

Official site

GitHub

Wiki

Documentation