How to adjust focus using Opencv and Python?

Asked

Viewed 245 times

0

Hello. I’m building a robot that moves through acquired images. However, when it is in motion, it gets lost due to the image being out of focus. I ask if there is any configuration within Opencv that calibrates this function. Thank you.

1 answer

0

I think the real-time focus adjustment takes place only on the capture device used to generate the images and not exactly with the use of Opencv.

If the device has no function related to the focus adjustment, then I believe that the only option is to perform a processing in the image to simulate the focus adjustment.

To do so, you can use some filter (low/high pass) depending on how noise affects your image.

  • The camera is that of Rasbperry Pi. I searched some templates and forums but did not find specifically for it. So I’m looking for something with Opencv. I thank my friend and I will look for these filters.

  • on my github have some practices I’ve done in the image processing course. See if they have anything useful for you. https://github.com/brunocamarggo/pdi

Browser other questions tagged

You are not signed in. Login or sign up in order to post.