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).
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>
I have exactly the same problem with the weird color settings for the uvc_cam. To the slow frame rate of the usb_cam: do you use an usb2.0 port? $lsusb will show you...
I have exactly the same problem with a BW analog cam (with USB dongle on video0): vlc shows the video correctly, cheese shows the video correctly, both usb_cam and uvc_camera show purple video with different shades of green/red. No matter what pixfmt parameter I set, they always fall back to YUYV.
After a couple of hours spent fighting with this problem, I solved the issue. I discovered that the correct pixel format for my camera was "uyvy". For future reference, I used this launch file: https://siddhantahuja.wordpress.com/2...