ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

libuvc not setting image size correctly

asked 2014-02-25 03:45:49 -0500

AlphaOne gravatar image

I am trying use an HD web cam for tracking QR codes, but when I tell libuvc to output a 720X1280 image I get a 640X480 one. here is the launch file code for libuvc

<node pkg="libuvc_camera" type="camera_node" name="logitech_cam">
        <param name="vendor" type="string" value="0x046d"/>
        <param name="product" type="string" value="0x082d" />
        <param name="serial" type="string" value="D016F4DF" />
        <param name="image_width" type="int" value="1280"/>
        <param name="image_height" type="int" value="720"/>
        <param name="pixle_format" type="string" value="mjpeg"/>
        <param name="auto_focus" type="bool" value="True" />
</node>

does anyone why it is sending the wrong sized image?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-02-26 14:29:30 -0500

Ken gravatar image

The parameters you want are width and height (no image_ prefix). I think you'll also need to set video_mode=uncompressed, as mjpeg isn't implemented yet (and there's no pixel_format parameter).

Auto focus isn't configurable (needs to be implemented in libuvc_camera and in libuvc), but it should be turned on by default in most cameras.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2014-02-25 03:45:49 -0500

Seen: 361 times

Last updated: Feb 26 '14