<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
<link rel="self" type="application/atom+xml" href="http://forum.robosavvy.com/feed.php?f=17&amp;t=7020" />

<title>RoboSavvy Forum</title>
<subtitle>Robosavvy Forum: The largest online community of Humanoid Robot Builders</subtitle>
<link href="http://forum.robosavvy.com/index.php" />
<updated>2011-02-28T01:40:58+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=17&amp;t=7020</id>
<entry>
<author><name><![CDATA[veltrop]]></name></author>
<updated>2011-02-28T01:40:58+01:00</updated>
<published>2011-02-28T01:40:58+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7020&amp;p=30365#p30365</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7020&amp;p=30365#p30365"/>
<title type="html"><![CDATA[Webcam working in Ubuntu]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7020&amp;p=30365#p30365"><![CDATA[
I used v4l2 code in small C/C++ programs to achieve the high frame rate.  Also, the Roboard was not running a GUI, the video capture was happening on a command line program.  Note that I said I could <span style="font-weight: bold">capture</span> at 30fps.  Processing that is another matter all together.  That is where roboard's advice is important. I do the capture in YUYV, and have to convert the data to RGB.  The way that memory is copied during this conversion can greatly impact performance too, avoid copying the data extra times and use memcpy wherever possible.<br /><br /><span style="text-decoration: underline">Resources for programming the webcam:</span><br /><br /><ul>Use v4l2 directly.  Theres sample code for this all over the web.  Also, in the veltrobot_sensors package of my veltrop-ros-pkg ROS repository there is a bunch of code you could look at, but it has been customized for my needs.  <br /><br />Gstreamer makes for easy use... but avoid gstreamer.  It has poor performance.  I believe it is what Cheese is based on btw.<br /><br />OpenCV wraps the v4l2 interface well and makes it very easy to use.  It didn't suit my needs, but you should check it out.</ul><br /><br /><span style="text-decoration: underline">Here's what you should do:</span><br /><br />First, use the dmesg command and verify that your USB cam is connected with USB 2.0 (hispeed) and not 1.0 (fullspeed).<br /><br />Next, write a small C program that will do the capture and measure the frames vs time it achieves.  Leave any data conversion and data copying out for now.  (Well, OpenCV will be doing that conversion automatically but that's ok)<br /><br />Next, stop running the GUI on your Roboard.  Doing any sort of performance measure thru the GUI on the Roboard is chasing your tail <img src="http://forum.robosavvy.com/images/smilies/icon_wink.gif" alt=";)" title="Wink" /><br />I recommend to hook the Roboard up to the network and use a remote computer to edit your files.  Then use SSH and the command line to compile and launch programs.  If you need a GUI sometimes, you could run a VNC server when needed.  But bottom line is you should stop running XWindows on the Roboard, it consumes too many resources.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1573">veltrop</a> — Mon Feb 28, 2011 1:40 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[keukpa]]></name></author>
<updated>2011-02-27T14:29:14+01:00</updated>
<published>2011-02-27T14:29:14+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7020&amp;p=30360#p30360</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7020&amp;p=30360#p30360"/>
<title type="html"><![CDATA[Re: Webcam working in Ubuntu]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7020&amp;p=30360#p30360"><![CDATA[
<blockquote><div><cite>veltrop wrote:</cite><br />Maybe it's related to the shutter speed?  Try turning off auto shutter or turning more lights on in the room.<br /><br />I can capture 640x480 at 30fps on two USB cameras simultaneously using uvc, so something is wrong with your setup.<br /></div></blockquote><br /><br />Woah! 30fps!<br /><br />Could you give me some more info on the type of setup and configuration you are using?<br /><br />Do you get a similar FPS using Cheese also? Even with lots of lights on and a tourch pointing at the webcam <img src="http://forum.robosavvy.com/images/smilies/icon_wink.gif" alt=";)" title="Wink" /> I still get a really bad FPS.<br /><br />Any ideas what I could try??<br /><br />Many thanks,<br /><br />Keukpa<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2600">keukpa</a> — Sun Feb 27, 2011 2:29 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[veltrop]]></name></author>
<updated>2011-02-26T12:04:25+01:00</updated>
<published>2011-02-26T12:04:25+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7020&amp;p=30344#p30344</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7020&amp;p=30344#p30344"/>
<title type="html"><![CDATA[Webcam working in Ubuntu]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7020&amp;p=30344#p30344"><![CDATA[
Maybe it's related to the shutter speed?  Try turning off auto shutter or turning more lights on in the room.<br /><br />I can capture 640x480 at 30fps on two USB cameras simultaneously using uvc, so something is wrong with your setup.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1573">veltrop</a> — Sat Feb 26, 2011 12:04 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[roboard]]></name></author>
<updated>2011-02-25T05:54:55+01:00</updated>
<published>2011-02-25T05:54:55+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7020&amp;p=30316#p30316</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7020&amp;p=30316#p30316"/>
<title type="html"><![CDATA[Re: Webcam working in Ubuntu]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7020&amp;p=30316#p30316"><![CDATA[
Hi,<br /><br />you may try to capture images in different resolutions or different color settings (e.g., RGB24, YUV, ...) to find an acceptable frame rate.<br /><br /><img src="http://forum.robosavvy.com/images/smilies/icon_smile.gif" alt=":)" title="Smile" /><p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1542">roboard</a> — Fri Feb 25, 2011 5:54 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[keukpa]]></name></author>
<updated>2011-02-23T23:31:22+01:00</updated>
<published>2011-02-23T23:31:22+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7020&amp;p=30307#p30307</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7020&amp;p=30307#p30307"/>
<title type="html"><![CDATA[Webcam working in Ubuntu]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7020&amp;p=30307#p30307"><![CDATA[
Hi,<br /><br />I hope someone can help here, I've got Ubuntu 9.04 running on my RoBoard and have got my USB webcam working with the uvcvideo driver, however, I get a REALLY slooooooow frame rate of just 0.3FPS<br /><br />Surely this should run faster? I've got it in 640x480 resolution.<br /><br />Any ideas how to speed this up?<br /><br />Many thanks,<br /><br />Keukpa<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2600">keukpa</a> — Wed Feb 23, 2011 11:31 pm</p><hr />
]]></content>
</entry>
</feed>