focus setting in usb_cam

asked 2018-08-24 14:36:18 -0500

Crisliu7 gravatar image

When I try to use usb_cam to control uvc camera, setting the "focus" parameter in the launch file, it seems to have no effect on my image result. But it does have effects when I change the "image_height" or "image_width" parameters. why did it happen? Here is my lanuch file code:

<include file="$(find usb_cam)/launch/usb_cam-test.launch">
    <arg name="video_device"     value="/dev/video1"/>
    <arg name="image_width"      value="1600"/>
    <arg name="image_height"     value="1200"/>
    <arg name="autofocus"        value="false" />
    <arg name="focus"            value="100" />

Also, if I use guvcview to change its focus, it does have effects and can keep the focus parameter in mind.

edit retag flag offensive close merge delete


Consider making an issue on their tracker if this is still something you're running into.

achille gravatar image achille  ( 2020-01-03 10:51:41 -0500 )edit