Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

uvc_camera gets a terrible image and usb_camera doesn't set framerate

I have a Logitech c920 webcam that I want to use with ROS. I originally installed uvc_camera, but it gets a terrible quality image from the camera. Then I tried usb_cam, which gets a fantastic quality image, but only at 10fps (which just isn't good enough).

uvc_cam image

usb_camera image

So my question is: How do I get a good image out of uvc OR How do I set frame rate with usb_camera

It should be noted that guvcview gets a fantastic image using the uvc driver, though ros does not.

launch file contents:

FOR usb_cam:
<launch>
    <node name="camera" pkg="usb_cam" type="usb_cam_node" output="screen" >
        <param name="video_device" value="/dev/video1" />
        <param name="image_width" value="1280" />
        <param name="image_height" value="720" />
        <param name="pixel_format" value="yuyv" />
        <param name="camera_frame_id" value="webcam" />
    </node>
</launch>

FOR uvc_camera:
<launch>
  <node ns="camera" pkg="uvc_camera" type="camera_node" name="uvc_camera" output="screen">
    <param name="width" type="int" value="1280" />
    <param name="height" type="int" value="720" />
    <param name="fps" type="int" value="30" />
    <param name="frame" type="string" value="webcam" />
    <param name="device" type="string" value="/dev/video1" />
  </node>
</launch>