<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    <title>unicap-imaging.org blog - Guides</title>
    <link>http://unicap-imaging.org/blog/</link>
    <description></description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.3 - http://www.s9y.org/</generator>
    <pubDate>Fri, 23 May 2008 17:01:12 GMT</pubDate>

    <image>
        <url>http://unicap-imaging.org/blog/templates/bulletproof/img/s9y_banner_small.png</url>
        <title>RSS: unicap-imaging.org blog - Guides - </title>
        <link>http://unicap-imaging.org/blog/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>Basic Image Manipulation with UCIL  Part 2</title>
    <link>http://unicap-imaging.org/blog/index.php?/archives/13-Basic-Image-Manipulation-with-UCIL-Part-2.html</link>
            <category>Guides</category>
    
    <comments>http://unicap-imaging.org/blog/index.php?/archives/13-Basic-Image-Manipulation-with-UCIL-Part-2.html#comments</comments>
    <wfw:comment>http://unicap-imaging.org/blog/wfwcomment.php?cid=13</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://unicap-imaging.org/blog/rss.php?version=2.0&amp;type=comments&amp;cid=13</wfw:commentRss>
    

    <author>nospam@example.com (Arne Caspari)</author>
    <content:encoded>
    In the first post in this series, I created an example that draws a&lt;br /&gt;
crosshair on the video image and a frame counter. &lt;br /&gt;
&lt;br /&gt;
In this post, I will extend the example to write the video stream to&lt;br /&gt;
an OGG/THEORA video file.&lt;br /&gt;
 &lt;br /&gt;&lt;a href=&quot;http://unicap-imaging.org/blog/index.php?/archives/13-Basic-Image-Manipulation-with-UCIL-Part-2.html#extended&quot;&gt;Continue reading &quot;Basic Image Manipulation with UCIL  Part 2&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Fri, 23 May 2008 19:01:12 +0200</pubDate>
    <guid isPermaLink="false">http://unicap-imaging.org/blog/index.php?/archives/13-guid.html</guid>
    
</item>
<item>
    <title>Updating UCView and Unicap on the ASUS EeePC</title>
    <link>http://unicap-imaging.org/blog/index.php?/archives/12-Updating-UCView-and-Unicap-on-the-ASUS-EeePC.html</link>
            <category>Guides</category>
    
    <comments>http://unicap-imaging.org/blog/index.php?/archives/12-Updating-UCView-and-Unicap-on-the-ASUS-EeePC.html#comments</comments>
    <wfw:comment>http://unicap-imaging.org/blog/wfwcomment.php?cid=12</wfw:comment>

    <slash:comments>5</slash:comments>
    <wfw:commentRss>http://unicap-imaging.org/blog/rss.php?version=2.0&amp;type=comments&amp;cid=12</wfw:commentRss>
    

    <author>nospam@example.com (Arne Caspari)</author>
    <content:encoded>
    I already &lt;a href=&quot;http://www.unicap-imaging.org/unicap_eeepc.htm&quot;&gt;wrote earlier&lt;/a&gt; that the ASUS EeePC comes with unicap and UCView pre-installed. Unfortunately it comes with rather old versions of the software and updates are not yet available via the software update of the EeePC. Also there are no development packages available from the Xandros repositories, so I decided to add EeePC packages for unicap and ucview to the unicap-imaging.org repositories. &lt;br /&gt;
&lt;br /&gt;
Here are the steps necessary to use the unicap-imaging.org repositories on your EeePC and to update to the latest unicap and ucview versions. To follow these instructions, you need to open a terminal window and enter the commands there. Press {Ctrl}+{Alt}+t to open a terminal window. &lt;br /&gt;
&lt;br /&gt;
At first, download the unicap-imaging.org public key from &lt;a href=&quot;http://www.unicap-imaging.org/downloads/public.key&quot;&gt;here&lt;/a&gt; and import it to the key ring used for package signing: &lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
wget http://www.unicap-imaging.org/downloads/public.key&lt;br /&gt;
sudo apt-key add public.key&lt;br /&gt;
rm public.key&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Next, you need to add the unicap repository to the /etc/apt/sources.list file. To do this, open the file with a text editor:&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;sudo kate /etc/apt/sources.list&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Add the following line to the file: &lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;deb http://unicap-imaging.org/packages/ eeepc main&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Then you may save the file and close the editor. Back on the command line, you can update the package info on the eeepc: &lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;sudo apt-get update&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Finally, update to the latest versions of unicap and ucview: &lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;sudo apt-get install libunicap-2 libunicapgtk-2 libucil-2 ucview ucview-asus-icons&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Now you can enjoy features like uncompressed AVIs and time-lapse recording &lt;img src=&quot;http://unicap-imaging.org/blog/templates/default/img/emoticons/wink.png&quot; alt=&quot;;-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt; 
    </content:encoded>

    <pubDate>Wed, 21 May 2008 21:30:08 +0200</pubDate>
    <guid isPermaLink="false">http://unicap-imaging.org/blog/index.php?/archives/12-guid.html</guid>
    
</item>
<item>
    <title>Basic Image Manipulation with UCIL  Part 1</title>
    <link>http://unicap-imaging.org/blog/index.php?/archives/10-Basic-Image-Manipulation-with-UCIL-Part-1.html</link>
            <category>Guides</category>
    
    <comments>http://unicap-imaging.org/blog/index.php?/archives/10-Basic-Image-Manipulation-with-UCIL-Part-1.html#comments</comments>
    <wfw:comment>http://unicap-imaging.org/blog/wfwcomment.php?cid=10</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://unicap-imaging.org/blog/rss.php?version=2.0&amp;type=comments&amp;cid=10</wfw:commentRss>
    

    <author>nospam@example.com (Arne Caspari)</author>
    <content:encoded>
    One part of the unicap toolkit is the UCIL library which contains basic image manipulation functions. Currently it provides drawing functions to draw overlay grahics and text onto the video images, convert between color formats of an image buffer and to write the video stream to a file.&lt;br /&gt;
&lt;br /&gt;
The use of UCIL is quite simple but there might be some caveats. I will try to give a short introduction on UCIL in this series of blog posts. &lt;br /&gt;
&lt;br /&gt;
For this post I modified the &lt;i&gt;callback&lt;/i&gt; example which uses GTK+ to display the video image. You can download the whole example &lt;a href=&quot;http://unicap-imaging.org/download/ucil_demo.c&quot;&gt;here&lt;/a&gt;. This example will draw a crosshair and a frame number counter on the video images. In the following posts, I will extend the example to also put a PNG icon on the video image and to store the video to a file. &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;&lt;a href=&quot;http://unicap-imaging.org/blog/index.php?/archives/10-Basic-Image-Manipulation-with-UCIL-Part-1.html#extended&quot;&gt;Continue reading &quot;Basic Image Manipulation with UCIL  Part 1&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Thu, 08 May 2008 15:03:48 +0200</pubDate>
    <guid isPermaLink="false">http://unicap-imaging.org/blog/index.php?/archives/10-guid.html</guid>
    
</item>
<item>
    <title>Installing USB Cameras</title>
    <link>http://unicap-imaging.org/blog/index.php?/archives/7-Installing-USB-Cameras.html</link>
            <category>Guides</category>
    
    <comments>http://unicap-imaging.org/blog/index.php?/archives/7-Installing-USB-Cameras.html#comments</comments>
    <wfw:comment>http://unicap-imaging.org/blog/wfwcomment.php?cid=7</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://unicap-imaging.org/blog/rss.php?version=2.0&amp;type=comments&amp;cid=7</wfw:commentRss>
    

    <author>nospam@example.com (Arne Caspari)</author>
    <content:encoded>
    &lt;a href=&quot;http://www.theimagingsource.com/en/products/cameras/usb_color/0-99-99.htm&quot;&gt;The Imaging Source AU/BU cameras&lt;/a&gt; are a popular series of USB Video Class compliant cameras for industrial and ( more and more ) astronomy vision. If you are wondering about my preference for The Imaging Source cameras, the reason is simply that I am the lead developer of the camera firmware of these cameras. &lt;br /&gt;
&lt;br /&gt;
Before you can use all the features of the USB cameras on Linux, you have to master some hurdles but the installation should be quite easy with the following instructions: &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;1. Step: Firmware Update&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
The first hurdle is caused by an issue with the firmware version loaded in most of the USB cameras currently present &#039;in the field&#039;. This issue prevents the driver from discovering the &lt;i&gt;Shutter&lt;/i&gt; control of the camera so that the camera will only work in automatic exposure mode. There is a newer version of the firmware which fixes this issue. You may find the new version and an installer for Linux &lt;a href=&quot;http://www.unicap-imaging.org/fwupdate.htm&quot;&gt;here&lt;/a&gt;. &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;2.Step: Driver Update&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
The cameras conform to the &lt;i&gt;USB Video Class ( UVC )&lt;/i&gt; specification which is very well supported by Laurent Pincharts excellent &lt;a href=&quot;http://linux-uvc.berlios.de/&quot;&gt;uvcvideo&lt;/a&gt; driver. &lt;br /&gt;
&lt;br /&gt;
Most distributions already come with binary packages for the uvcvideo driver for easy installation. But since there have been some fixes to the uvcvideo driver just recently, I recommend to install a never driver from source. The following instructions are made for Ubuntu Linux but the steps are very similar for other distributions. If you do the installation on a different Linux distribution, please post the steps in the comment section if they are different to the ones explained here. &lt;br /&gt;
&lt;br /&gt;
We start with installing a build environment for the driver. On Ubuntu, this can be done with the following command: &lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;sudo apt-get install build-essential linux-headers-generic subversion&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Then create some directory where you build the source and get the driver from the linux-uvc website: &lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
mkdir build&lt;br /&gt;
cd build&lt;br /&gt;
svn checkout svn://svn.berlios.de/linux-uvc/linux-uvc/trunk&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
The next step is specific to Ubuntu: Since Ubuntu comes with its own (old) uvcvideo driver, you need to make sure that the installation of the driver overwrites the Ubuntu driver. To achieve this, edit the file &lt;code&gt;trunk/Makefile&lt;/code&gt; and change the line: &lt;br /&gt;
&lt;code&gt;INSTALL_MOD_DIR := usb/media&lt;/code&gt;&lt;br /&gt;
to:&lt;br /&gt;
&lt;code&gt;INSTALL_MOD_DIR := kernel/ubuntu/media/usbvideo&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Now you can build and install the driver: &lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
cd trunk&lt;br /&gt;
make&lt;br /&gt;
sudo make install&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Please note that you need to perform the &lt;code&gt;sudo make install&lt;/code&gt; step again after each kernel update since the Ubuntu updates will overwrite the freshly installed driver.&lt;br /&gt;
&lt;br /&gt;
Now unload the old driver and load the new one: &lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
sudo rmmod uvcvideo&lt;br /&gt;
sudo modprobe uvcvideo&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Step 3: Configuring the driver&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
With the very recent revisions of the driver, root privileges are required to configure the driver to use proprietary extensions to the UVC protocol. The Imaging Source cameras use protocol extensions for a better control of the &lt;i&gt;auto exposure&lt;/i&gt; and for functionality like &lt;i&gt;Trigger&lt;/i&gt; and &lt;i&gt;Strobe&lt;/i&gt; which is not covered by the UVC specification. &lt;br /&gt;
&lt;br /&gt;
The preferred way of the uvcvideo driver to configure the driver is to use a tool called &lt;a href=&quot;http://www.quickcamteam.net/software/libwebcam&quot;&gt;uvcdynctrl&lt;/a&gt; which is provided by &lt;a href=&quot;http://www.quickcamteam.net/&quot;&gt;Logitech&lt;/a&gt;. &lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;uvcdynctrl&lt;/i&gt; reads a .xml file with a description of the protocol extensions and configures the driver. Since uvcdynctrl is not quite easy to compile and install, I wrote a small python script which you can use alternatively to just set up the driver. You can find the script &lt;a href=&quot;http://www.unicap-imaging.org/uvcctls.htm&quot;&gt;HERE&lt;/a&gt;. You might still want to look at uvcdynctrl since it also contains instructions for a set up with udev, so that the driver is configured automatically when a camera gets connected. I plan to add udev support to uvcctl later.  &lt;br /&gt;
&lt;br /&gt;
To configure the driver with the &lt;a href=&quot;http://www.unicap-imaging.org/uvcctls.htm&quot;&gt;uvcctls&lt;/a&gt; script under an Ubuntu system, just download the &lt;a href=&quot;http://www.unicap-imaging.org/downloads/uvcctls.py&quot;&gt;script&lt;/a&gt; and the &lt;a href=&quot;http://www.unicap-imaging.org/downloads/tisUVC.xml&quot;&gt;xml&lt;/a&gt; file and enter the following command before you start your application: &lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;sudo uvcctls tisUVC.xml&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Finally: Run your application&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
If you run a unicap application now, all extended features of the The Imaging Source cameras should work. If you use the camera with &lt;a href=&quot;http://www.unicap-imaging.org/ucview.htm&quot;&gt;UCView&lt;/a&gt; now, you should see ( depending on your model ), the following features: &lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;br /&gt;
&lt;li&gt;A Shutter property allowing you to set an absolute time in &#039;seconds&#039;&lt;/li&gt;&lt;br /&gt;
&lt;li&gt;Separate controls for Auto Gain and Auto Shutter&lt;/li&gt;&lt;br /&gt;
&lt;li&gt;The colour camera should provide three video formats: &lt;i&gt;YUV 4:2:2&lt;/i&gt;, &lt;i&gt;Greyscale&lt;/i&gt; and &lt;i&gt;RGB Bayer&lt;/i&gt; ( the monochrome camera should only provide &lt;i&gt;Greyscale&lt;/i&gt; ).&lt;/li&gt;&lt;br /&gt;
&lt;li&gt;If you have a &lt;i&gt;BU&lt;/i&gt; camera, you should now have &lt;i&gt;Trigger&lt;/i&gt; functionality&lt;/li&gt;&lt;br /&gt;
&lt;/ul&gt;&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Wed, 30 Apr 2008 14:47:00 +0200</pubDate>
    <guid isPermaLink="false">http://unicap-imaging.org/blog/index.php?/archives/7-guid.html</guid>
    
</item>

</channel>
</rss>