<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.elphel.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Maurosc3ner</id>
	<title>ElphelWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.elphel.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Maurosc3ner"/>
	<link rel="alternate" type="text/html" href="https://wiki.elphel.com/wiki/Special:Contributions/Maurosc3ner"/>
	<updated>2026-08-01T17:19:57Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://wiki.elphel.com/index.php?title=OpenCV&amp;diff=7826</id>
		<title>OpenCV</title>
		<link rel="alternate" type="text/html" href="https://wiki.elphel.com/index.php?title=OpenCV&amp;diff=7826"/>
		<updated>2010-07-30T02:55:02Z</updated>

		<summary type="html">&lt;p&gt;Maurosc3ner: /* Using AVLD */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Single image= &lt;br /&gt;
You can use [[imgsrv]] to download a single image from the [[circbuf]]. MJPEG live stream is also available from [[imgsrv]].&lt;br /&gt;
&lt;br /&gt;
You can use [http://www.gnu.org/software/wget/ wget] to download the image to your computer or implement a small HTTP client in your software.&lt;br /&gt;
&lt;br /&gt;
=Live video=&lt;br /&gt;
==Using AVLD==&lt;br /&gt;
AVLD stand for [[AVLD - Another Video Loopback Device]]. It&#039;s a very CPU and RAM consuming way to present an Elphel network camera as V4l device.&lt;br /&gt;
&lt;br /&gt;
While it is the only solution with proprietary v4l compatible software products (such as skype), it&#039;s a total waste of resources for a free software app what can be adapted to receive an RTP stream.&lt;br /&gt;
&lt;br /&gt;
Moreover, you can proceed to download the source code from:&lt;br /&gt;
  http://allonlinux.free.fr/Projets/AVLD/src/avld_0.1.4.tar.bz2&lt;br /&gt;
&lt;br /&gt;
Then:&lt;br /&gt;
  $ tar -jxvf avld_0.1.4.tar.bz2&lt;br /&gt;
  $ cd avld_0.1.4&lt;br /&gt;
  $ make &amp;amp;&amp;amp; sudo make install&lt;br /&gt;
&lt;br /&gt;
Right now you can mount your dummy device typing:&lt;br /&gt;
  $sudo modprobe avld width=&amp;lt;camera width resolution&amp;gt; height=&amp;lt;camera height resolution&amp;gt; fps=&amp;lt;camera fps&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, you need to use mencoder in order to redirect the rtsp source to the dummy device:&lt;br /&gt;
  $ sudo mencoder rtsp://192.168.1.180 -nosound -ovc raw -vf format=bgr24 -of rawvideo -o /dev/video0&lt;br /&gt;
&lt;br /&gt;
With this, you just need a simple code in order to preview the scene:&lt;br /&gt;
    &lt;br /&gt;
  #include &amp;quot;highgui.h&amp;quot;&lt;br /&gt;
  #include &amp;quot;cv.h&amp;quot;&lt;br /&gt;
  #include &amp;quot;cvaux.h&amp;quot;&lt;br /&gt;
  #include &amp;lt;ml.h&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  int main(int argc,char *argv[])&lt;br /&gt;
  {&lt;br /&gt;
    cvNamedWindow( &amp;quot;Current Frame&amp;quot;);&lt;br /&gt;
    IplImage* pCurrentFrame = NULL;&lt;br /&gt;
    CvSize frame_size;&lt;br /&gt;
    CvCapture* capture = cvCaptureFromCAM ( 0 ); //the dummy device make the job :)&lt;br /&gt;
    char c;&lt;br /&gt;
    while ( 1 )&lt;br /&gt;
      {&lt;br /&gt;
        //Request frame from Camera&lt;br /&gt;
        pCurrentFrame = cvQueryFrame ( capture );&lt;br /&gt;
        //video input file finished		&lt;br /&gt;
        if( !pCurrentFrame ) break;&lt;br /&gt;
        cvShowImage( &amp;quot;Current Frame&amp;quot;, pCurrentFrame );&lt;br /&gt;
        c = cvWaitKey(10);&lt;br /&gt;
        if ( c == 27 ) break;&lt;br /&gt;
      }&lt;br /&gt;
    cvReleaseImage ( &amp;amp;pCurrentFrame );&lt;br /&gt;
    cvDestroyAllWindows ();&lt;br /&gt;
    return 0;&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
--[[User:maurosc3ner|Esteban Correa]] 21:54, 29 July 2010 (CDT)&lt;br /&gt;
&lt;br /&gt;
==Using v4lsink GStreamer plugin and v4l2loopback==&lt;br /&gt;
This is basically an AVLD fork that now evolved into v4l2loopback and a special gstreamer sink to the loopback device.&lt;br /&gt;
&lt;br /&gt;
http://code.google.com/p/v4lsink/ &amp;amp; http://code.google.com/p/v4l2loopback/&lt;br /&gt;
&lt;br /&gt;
==Using OpenCV with FFMPEG==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Using OpenCV with GStreamer==&lt;br /&gt;
&lt;br /&gt;
==Design your OpenCV code as GStreamer plugin==&lt;br /&gt;
http://github.com/Elleo/gst-opencv&lt;br /&gt;
&lt;br /&gt;
=Portability=&lt;br /&gt;
&lt;br /&gt;
=Tutorials=&lt;br /&gt;
==Tennis balls recognizing==&lt;br /&gt;
[[OpenCV Tennis balls recognizing tutorial]]&lt;br /&gt;
&lt;br /&gt;
==Go game record (kifu) generator==&lt;br /&gt;
[[Kifu:_Go_game_record_(kifu)_generator]]&lt;/div&gt;</summary>
		<author><name>Maurosc3ner</name></author>
	</entry>
	<entry>
		<id>https://wiki.elphel.com/index.php?title=OpenCV&amp;diff=7825</id>
		<title>OpenCV</title>
		<link rel="alternate" type="text/html" href="https://wiki.elphel.com/index.php?title=OpenCV&amp;diff=7825"/>
		<updated>2010-07-29T22:08:12Z</updated>

		<summary type="html">&lt;p&gt;Maurosc3ner: /* Using AVLD */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Single image= &lt;br /&gt;
You can use [[imgsrv]] to download a single image from the [[circbuf]]. MJPEG live stream is also available from [[imgsrv]].&lt;br /&gt;
&lt;br /&gt;
You can use [http://www.gnu.org/software/wget/ wget] to download the image to your computer or implement a small HTTP client in your software.&lt;br /&gt;
&lt;br /&gt;
=Live video=&lt;br /&gt;
==Using AVLD==&lt;br /&gt;
AVLD stand for [[AVLD - Another Video Loopback Device]]. It&#039;s a very CPU and RAM consuming way to present an Elphel network camera as V4l device.&lt;br /&gt;
&lt;br /&gt;
While it is the only solution with proprietary v4l compatible software products (such as skype), it&#039;s a total waste of resources for a free software app what can be adapted to receive an RTP stream.&lt;br /&gt;
&lt;br /&gt;
Moreover, you can downloa from:&lt;br /&gt;
  http://allonlinux.free.fr/Projets/AVLD/src/avld_0.1.4.tar.bz2&lt;br /&gt;
&lt;br /&gt;
Then:&lt;br /&gt;
  $ tar -jxvf avld_0.1.4.tar.bz2&lt;br /&gt;
  $ cd avld_0.1.4&lt;br /&gt;
  $ make &amp;amp;&amp;amp; sudo make install&lt;br /&gt;
&lt;br /&gt;
Right now you can mount your dummy device typing:&lt;br /&gt;
  $sudo modprobe avld width=&amp;lt;camera width resolution&amp;gt; height=&amp;lt;camera height resolution&amp;gt; fps=&amp;lt;camera fps&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, you need to use mencoder in order to redirect the rtsp source to the dummy device:&lt;br /&gt;
  $ sudo mencoder rtsp://192.168.1.180 -nosound -ovc raw -vf format=bgr24 -of rawvideo -o /dev/video0&lt;br /&gt;
&lt;br /&gt;
With this, you just need a simple code in order to preview the scene:&lt;br /&gt;
    &lt;br /&gt;
  #include &amp;quot;highgui.h&amp;quot;&lt;br /&gt;
  #include &amp;quot;cv.h&amp;quot;&lt;br /&gt;
  #include &amp;quot;cvaux.h&amp;quot;&lt;br /&gt;
  #include &amp;lt;ml.h&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  int main(int argc,char *argv[])&lt;br /&gt;
  {&lt;br /&gt;
    cvNamedWindow( &amp;quot;Current Frame&amp;quot;);&lt;br /&gt;
    IplImage* pCurrentFrame = NULL;&lt;br /&gt;
    CvSize frame_size;&lt;br /&gt;
    CvCapture* capture = cvCaptureFromCAM ( 0 ); //the dummy device make the job :)&lt;br /&gt;
    char c;&lt;br /&gt;
    while ( 1 )&lt;br /&gt;
      {&lt;br /&gt;
        //Request frame from Camera&lt;br /&gt;
        pCurrentFrame = cvQueryFrame ( capture );&lt;br /&gt;
        //video input file finished		&lt;br /&gt;
        if( !pCurrentFrame ) break;&lt;br /&gt;
        cvShowImage( &amp;quot;Current Frame&amp;quot;, pCurrentFrame );&lt;br /&gt;
        c = cvWaitKey(10);&lt;br /&gt;
        if ( c == 27 ) break;&lt;br /&gt;
      }&lt;br /&gt;
    cvReleaseImage ( &amp;amp;pCurrentFrame );&lt;br /&gt;
    cvDestroyAllWindows ();&lt;br /&gt;
    return 0;&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
==Using v4lsink GStreamer plugin and v4l2loopback==&lt;br /&gt;
This is basically an AVLD fork that now evolved into v4l2loopback and a special gstreamer sink to the loopback device.&lt;br /&gt;
&lt;br /&gt;
http://code.google.com/p/v4lsink/ &amp;amp; http://code.google.com/p/v4l2loopback/&lt;br /&gt;
&lt;br /&gt;
==Using OpenCV with FFMPEG==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Using OpenCV with GStreamer==&lt;br /&gt;
&lt;br /&gt;
==Design your OpenCV code as GStreamer plugin==&lt;br /&gt;
http://github.com/Elleo/gst-opencv&lt;br /&gt;
&lt;br /&gt;
=Portability=&lt;br /&gt;
&lt;br /&gt;
=Tutorials=&lt;br /&gt;
==Tennis balls recognizing==&lt;br /&gt;
[[OpenCV Tennis balls recognizing tutorial]]&lt;br /&gt;
&lt;br /&gt;
==Go game record (kifu) generator==&lt;br /&gt;
[[Kifu:_Go_game_record_(kifu)_generator]]&lt;/div&gt;</summary>
		<author><name>Maurosc3ner</name></author>
	</entry>
	<entry>
		<id>https://wiki.elphel.com/index.php?title=OpenCV&amp;diff=7824</id>
		<title>OpenCV</title>
		<link rel="alternate" type="text/html" href="https://wiki.elphel.com/index.php?title=OpenCV&amp;diff=7824"/>
		<updated>2010-07-29T21:59:36Z</updated>

		<summary type="html">&lt;p&gt;Maurosc3ner: /* Using AVLD */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Single image= &lt;br /&gt;
You can use [[imgsrv]] to download a single image from the [[circbuf]]. MJPEG live stream is also available from [[imgsrv]].&lt;br /&gt;
&lt;br /&gt;
You can use [http://www.gnu.org/software/wget/ wget] to download the image to your computer or implement a small HTTP client in your software.&lt;br /&gt;
&lt;br /&gt;
=Live video=&lt;br /&gt;
==Using AVLD==&lt;br /&gt;
AVLD stand for [[AVLD - Another Video Loopback Device]]. It&#039;s a very CPU and RAM consuming way to present an Elphel network camera as V4l device.&lt;br /&gt;
&lt;br /&gt;
While it is the only solution with proprietary v4l compatible software products (such as skype), it&#039;s a total waste of resources for a free software app what can be adapted to receive an RTP stream.&lt;br /&gt;
&lt;br /&gt;
Moreover, you can downloa from:&lt;br /&gt;
  http://allonlinux.free.fr/Projets/AVLD/src/avld_0.1.4.tar.bz2&lt;br /&gt;
&lt;br /&gt;
Then:&lt;br /&gt;
  $ tar -jxvf avld_0.1.4.tar.bz2&lt;br /&gt;
  $ cd avld_0.1.4&lt;br /&gt;
  $ make &amp;amp;&amp;amp; sudo make install&lt;br /&gt;
&lt;br /&gt;
Right now you can mount your dummy device typing:&lt;br /&gt;
  $sudo modprobe avld width=&amp;lt;camera width resolution&amp;gt; height=&amp;lt;camera height resolution&amp;gt; fps=&amp;lt;camera fps&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, you need to use mencoder in order to redirect the rtsp source to the dummy device:&lt;br /&gt;
  $ sudo mencoder rtsp://192.168.1.180 -nosound -ovc raw -vf format=bgr24 -of rawvideo -o /dev/video0&lt;br /&gt;
&lt;br /&gt;
With this, you just need a simple code in order to preview the scene:&lt;br /&gt;
    &lt;br /&gt;
  #include &amp;quot;highgui.h&amp;quot;&lt;br /&gt;
  #include &amp;quot;cv.h&amp;quot;&lt;br /&gt;
  #include &amp;quot;cvaux.h&amp;quot;&lt;br /&gt;
  #include &amp;lt;ml.h&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  int main(int argc,char *argv[])&lt;br /&gt;
  {&lt;br /&gt;
    IplImage* pCurrentFrame = NULL;&lt;br /&gt;
    CvSize frame_size;&lt;br /&gt;
    CvCapture* capture = cvCaptureFromCAM ( 0 ); //the dummy device make the job :)&lt;br /&gt;
    char c;&lt;br /&gt;
    while ( 1 )&lt;br /&gt;
      {&lt;br /&gt;
        //Request frame from Camera&lt;br /&gt;
        pCurrentFrame = cvQueryFrame ( capture );&lt;br /&gt;
        //video input file finished		&lt;br /&gt;
        if( !pCurrentFrame ) break;&lt;br /&gt;
        cvShowImage( &amp;quot;Current Frame&amp;quot;, pCurrentFrame );&lt;br /&gt;
        c = cvWaitKey(10);&lt;br /&gt;
        if ( c == 27 ) break;&lt;br /&gt;
      }&lt;br /&gt;
    cvReleaseImage ( &amp;amp;pCurrentFrame );&lt;br /&gt;
    cvDestroyAllWindows ();&lt;br /&gt;
    return 0;&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
==Using v4lsink GStreamer plugin and v4l2loopback==&lt;br /&gt;
This is basically an AVLD fork that now evolved into v4l2loopback and a special gstreamer sink to the loopback device.&lt;br /&gt;
&lt;br /&gt;
http://code.google.com/p/v4lsink/ &amp;amp; http://code.google.com/p/v4l2loopback/&lt;br /&gt;
&lt;br /&gt;
==Using OpenCV with FFMPEG==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Using OpenCV with GStreamer==&lt;br /&gt;
&lt;br /&gt;
==Design your OpenCV code as GStreamer plugin==&lt;br /&gt;
http://github.com/Elleo/gst-opencv&lt;br /&gt;
&lt;br /&gt;
=Portability=&lt;br /&gt;
&lt;br /&gt;
=Tutorials=&lt;br /&gt;
==Tennis balls recognizing==&lt;br /&gt;
[[OpenCV Tennis balls recognizing tutorial]]&lt;br /&gt;
&lt;br /&gt;
==Go game record (kifu) generator==&lt;br /&gt;
[[Kifu:_Go_game_record_(kifu)_generator]]&lt;/div&gt;</summary>
		<author><name>Maurosc3ner</name></author>
	</entry>
	<entry>
		<id>https://wiki.elphel.com/index.php?title=OpenCV&amp;diff=7823</id>
		<title>OpenCV</title>
		<link rel="alternate" type="text/html" href="https://wiki.elphel.com/index.php?title=OpenCV&amp;diff=7823"/>
		<updated>2010-07-29T21:59:10Z</updated>

		<summary type="html">&lt;p&gt;Maurosc3ner: /* Using AVLD */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Single image= &lt;br /&gt;
You can use [[imgsrv]] to download a single image from the [[circbuf]]. MJPEG live stream is also available from [[imgsrv]].&lt;br /&gt;
&lt;br /&gt;
You can use [http://www.gnu.org/software/wget/ wget] to download the image to your computer or implement a small HTTP client in your software.&lt;br /&gt;
&lt;br /&gt;
=Live video=&lt;br /&gt;
==Using AVLD==&lt;br /&gt;
AVLD stand for [[AVLD - Another Video Loopback Device]]. It&#039;s a very CPU and RAM consuming way to present an Elphel network camera as V4l device.&lt;br /&gt;
&lt;br /&gt;
While it is the only solution with proprietary v4l compatible software products (such as skype), it&#039;s a total waste of resources for a free software app what can be adapted to receive an RTP stream.&lt;br /&gt;
&lt;br /&gt;
Moreover, you can downloa from:&lt;br /&gt;
  http://allonlinux.free.fr/Projets/AVLD/src/avld_0.1.4.tar.bz2&lt;br /&gt;
&lt;br /&gt;
Then:&lt;br /&gt;
  $ tar -jxvf avld_0.1.4.tar.bz2&lt;br /&gt;
  $ cd avld_0.1.4&lt;br /&gt;
  $ make &amp;amp;&amp;amp; sudo make install&lt;br /&gt;
&lt;br /&gt;
Right now you can mount your dummy device typing:&lt;br /&gt;
  $sudo modprobe avld width=&amp;lt;camera width resolution&amp;gt; height=&amp;lt;camera height resolution&amp;gt; fps=&amp;lt;camera fps&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, you need to use mencoder in order to redirect the rtsp source to the dummy device:&lt;br /&gt;
  $ sudo mencoder rtsp://192.168.1.180 -nosound -ovc raw -vf format=bgr24 -of rawvideo -o /dev/video0&lt;br /&gt;
&lt;br /&gt;
With this, you just need a simple code in order to preview the scene:&lt;br /&gt;
    &lt;br /&gt;
  #include &amp;quot;highgui.h&amp;quot;&lt;br /&gt;
  #include &amp;quot;cv.h&amp;quot;&lt;br /&gt;
  #include &amp;quot;cvaux.h&amp;quot;&lt;br /&gt;
  #include &amp;lt;ml.h&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  int main(int argc,char *argv[])&lt;br /&gt;
  {&lt;br /&gt;
    IplImage* pCurrentFrame = NULL;&lt;br /&gt;
    CvSize frame_size;&lt;br /&gt;
    CvCapture* capture = cvCaptureFromCAM ( 0 ); //the dummy device make the job :)&lt;br /&gt;
    char c;&lt;br /&gt;
    while ( 1 )&lt;br /&gt;
      {&lt;br /&gt;
        //Request frame from Camera&lt;br /&gt;
        pCurrentFrame = cvQueryFrame ( capture );&lt;br /&gt;
        //video input file finished		&lt;br /&gt;
	if( !pCurrentFrame ) break;&lt;br /&gt;
        cvShowImage( &amp;quot;Current Frame&amp;quot;, pCurrentFrame );&lt;br /&gt;
        c = cvWaitKey(10);&lt;br /&gt;
        if ( c == 27 ) break;&lt;br /&gt;
      }&lt;br /&gt;
    cvReleaseImage ( &amp;amp;pCurrentFrame );&lt;br /&gt;
    cvDestroyAllWindows ();&lt;br /&gt;
    return 0;&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
==Using v4lsink GStreamer plugin and v4l2loopback==&lt;br /&gt;
This is basically an AVLD fork that now evolved into v4l2loopback and a special gstreamer sink to the loopback device.&lt;br /&gt;
&lt;br /&gt;
http://code.google.com/p/v4lsink/ &amp;amp; http://code.google.com/p/v4l2loopback/&lt;br /&gt;
&lt;br /&gt;
==Using OpenCV with FFMPEG==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Using OpenCV with GStreamer==&lt;br /&gt;
&lt;br /&gt;
==Design your OpenCV code as GStreamer plugin==&lt;br /&gt;
http://github.com/Elleo/gst-opencv&lt;br /&gt;
&lt;br /&gt;
=Portability=&lt;br /&gt;
&lt;br /&gt;
=Tutorials=&lt;br /&gt;
==Tennis balls recognizing==&lt;br /&gt;
[[OpenCV Tennis balls recognizing tutorial]]&lt;br /&gt;
&lt;br /&gt;
==Go game record (kifu) generator==&lt;br /&gt;
[[Kifu:_Go_game_record_(kifu)_generator]]&lt;/div&gt;</summary>
		<author><name>Maurosc3ner</name></author>
	</entry>
	<entry>
		<id>https://wiki.elphel.com/index.php?title=OpenCV&amp;diff=7822</id>
		<title>OpenCV</title>
		<link rel="alternate" type="text/html" href="https://wiki.elphel.com/index.php?title=OpenCV&amp;diff=7822"/>
		<updated>2010-07-29T21:58:41Z</updated>

		<summary type="html">&lt;p&gt;Maurosc3ner: /* Using AVLD */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Single image= &lt;br /&gt;
You can use [[imgsrv]] to download a single image from the [[circbuf]]. MJPEG live stream is also available from [[imgsrv]].&lt;br /&gt;
&lt;br /&gt;
You can use [http://www.gnu.org/software/wget/ wget] to download the image to your computer or implement a small HTTP client in your software.&lt;br /&gt;
&lt;br /&gt;
=Live video=&lt;br /&gt;
==Using AVLD==&lt;br /&gt;
AVLD stand for [[AVLD - Another Video Loopback Device]]. It&#039;s a very CPU and RAM consuming way to present an Elphel network camera as V4l device.&lt;br /&gt;
&lt;br /&gt;
While it is the only solution with proprietary v4l compatible software products (such as skype), it&#039;s a total waste of resources for a free software app what can be adapted to receive an RTP stream.&lt;br /&gt;
&lt;br /&gt;
Moreover, you can downloa from:&lt;br /&gt;
  http://allonlinux.free.fr/Projets/AVLD/src/avld_0.1.4.tar.bz2&lt;br /&gt;
&lt;br /&gt;
Then:&lt;br /&gt;
  $ tar -jxvf avld_0.1.4.tar.bz2&lt;br /&gt;
  $ cd avld_0.1.4&lt;br /&gt;
  $ make &amp;amp;&amp;amp; sudo make install&lt;br /&gt;
&lt;br /&gt;
Right now you can mount your dummy device typing:&lt;br /&gt;
  $sudo modprobe avld width=&amp;lt;camera width resolution&amp;gt; height=&amp;lt;camera height resolution&amp;gt; fps=&amp;lt;camera fps&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, you need to use mencoder in order to redirect the rtsp source to the dummy device:&lt;br /&gt;
  $ sudo mencoder rtsp://192.168.1.180 -nosound -ovc raw -vf format=bgr24 -of rawvideo -o /dev/video0&lt;br /&gt;
&lt;br /&gt;
With this, you just need a simple code in order to preview the scene:&lt;br /&gt;
    &lt;br /&gt;
  #include &amp;quot;highgui.h&amp;quot;&lt;br /&gt;
  #include &amp;quot;cv.h&amp;quot;&lt;br /&gt;
  #include &amp;quot;cvaux.h&amp;quot;&lt;br /&gt;
  #include &amp;lt;ml.h&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  int main(int argc,char *argv[])&lt;br /&gt;
  {&lt;br /&gt;
    IplImage* pCurrentFrame = NULL;&lt;br /&gt;
    CvSize frame_size;&lt;br /&gt;
    CvCapture* capture = cvCaptureFromCAM ( 0 ); //the dummy device make the job :)&lt;br /&gt;
    char c;&lt;br /&gt;
    while ( 1 )&lt;br /&gt;
      {&lt;br /&gt;
        //Request frame from Camera&lt;br /&gt;
        pCurrentFrame = cvQueryFrame ( capture );&lt;br /&gt;
	//video input file finished		&lt;br /&gt;
	if( !pCurrentFrame ) break;&lt;br /&gt;
        cvShowImage( &amp;quot;Current Frame&amp;quot;, pCurrentFrame );&lt;br /&gt;
        c = cvWaitKey(10);&lt;br /&gt;
        if ( c == 27 ) break;&lt;br /&gt;
      }&lt;br /&gt;
    cvReleaseImage ( &amp;amp;pCurrentFrame );&lt;br /&gt;
    cvDestroyAllWindows ();&lt;br /&gt;
    return 0;&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
==Using v4lsink GStreamer plugin and v4l2loopback==&lt;br /&gt;
This is basically an AVLD fork that now evolved into v4l2loopback and a special gstreamer sink to the loopback device.&lt;br /&gt;
&lt;br /&gt;
http://code.google.com/p/v4lsink/ &amp;amp; http://code.google.com/p/v4l2loopback/&lt;br /&gt;
&lt;br /&gt;
==Using OpenCV with FFMPEG==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Using OpenCV with GStreamer==&lt;br /&gt;
&lt;br /&gt;
==Design your OpenCV code as GStreamer plugin==&lt;br /&gt;
http://github.com/Elleo/gst-opencv&lt;br /&gt;
&lt;br /&gt;
=Portability=&lt;br /&gt;
&lt;br /&gt;
=Tutorials=&lt;br /&gt;
==Tennis balls recognizing==&lt;br /&gt;
[[OpenCV Tennis balls recognizing tutorial]]&lt;br /&gt;
&lt;br /&gt;
==Go game record (kifu) generator==&lt;br /&gt;
[[Kifu:_Go_game_record_(kifu)_generator]]&lt;/div&gt;</summary>
		<author><name>Maurosc3ner</name></author>
	</entry>
	<entry>
		<id>https://wiki.elphel.com/index.php?title=OpenCV&amp;diff=7821</id>
		<title>OpenCV</title>
		<link rel="alternate" type="text/html" href="https://wiki.elphel.com/index.php?title=OpenCV&amp;diff=7821"/>
		<updated>2010-07-29T21:58:15Z</updated>

		<summary type="html">&lt;p&gt;Maurosc3ner: /* Using AVLD */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Single image= &lt;br /&gt;
You can use [[imgsrv]] to download a single image from the [[circbuf]]. MJPEG live stream is also available from [[imgsrv]].&lt;br /&gt;
&lt;br /&gt;
You can use [http://www.gnu.org/software/wget/ wget] to download the image to your computer or implement a small HTTP client in your software.&lt;br /&gt;
&lt;br /&gt;
=Live video=&lt;br /&gt;
==Using AVLD==&lt;br /&gt;
AVLD stand for [[AVLD - Another Video Loopback Device]]. It&#039;s a very CPU and RAM consuming way to present an Elphel network camera as V4l device.&lt;br /&gt;
&lt;br /&gt;
While it is the only solution with proprietary v4l compatible software products (such as skype), it&#039;s a total waste of resources for a free software app what can be adapted to receive an RTP stream.&lt;br /&gt;
&lt;br /&gt;
Moreover, you can downloa from:&lt;br /&gt;
  http://allonlinux.free.fr/Projets/AVLD/src/avld_0.1.4.tar.bz2&lt;br /&gt;
&lt;br /&gt;
Then:&lt;br /&gt;
  $ tar -jxvf avld_0.1.4.tar.bz2&lt;br /&gt;
  $ cd avld_0.1.4&lt;br /&gt;
  $ make &amp;amp;&amp;amp; sudo make install&lt;br /&gt;
&lt;br /&gt;
Right now you can mount your dummy device typing:&lt;br /&gt;
  $sudo modprobe avld width=&amp;lt;camera width resolution&amp;gt; height=&amp;lt;camera height resolution&amp;gt; fps=&amp;lt;camera fps&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, you need to use mencoder in order to redirect the rtsp source to the dummy device:&lt;br /&gt;
  $ sudo mencoder rtsp://192.168.1.180 -nosound -ovc raw -vf format=bgr24 -of rawvideo -o /dev/video0&lt;br /&gt;
&lt;br /&gt;
With this, you just need a simple code in order to preview the scene:&lt;br /&gt;
    &lt;br /&gt;
  #include &amp;quot;highgui.h&amp;quot;&lt;br /&gt;
  #include &amp;quot;cv.h&amp;quot;&lt;br /&gt;
  #include &amp;quot;cvaux.h&amp;quot;&lt;br /&gt;
  #include &amp;lt;ml.h&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  int main(int argc,char *argv[])&lt;br /&gt;
  {&lt;br /&gt;
    IplImage* pCurrentFrame = NULL;&lt;br /&gt;
    CvSize frame_size;&lt;br /&gt;
    CvCapture* capture = cvCaptureFromCAM ( 0 ); //the dummy device make the job :)&lt;br /&gt;
    char c;&lt;br /&gt;
    while ( 1 )&lt;br /&gt;
      {&lt;br /&gt;
        //Request frame from Camera&lt;br /&gt;
	pCurrentFrame = cvQueryFrame ( capture );&lt;br /&gt;
	//video input file finished		&lt;br /&gt;
	if( !pCurrentFrame ) break;&lt;br /&gt;
        cvShowImage( &amp;quot;Current Frame&amp;quot;, pCurrentFrame );&lt;br /&gt;
        c = cvWaitKey(10);&lt;br /&gt;
        if ( c == 27 ) break;&lt;br /&gt;
      }&lt;br /&gt;
    cvReleaseImage ( &amp;amp;pCurrentFrame );&lt;br /&gt;
    cvDestroyAllWindows ();&lt;br /&gt;
    return 0;&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
==Using v4lsink GStreamer plugin and v4l2loopback==&lt;br /&gt;
This is basically an AVLD fork that now evolved into v4l2loopback and a special gstreamer sink to the loopback device.&lt;br /&gt;
&lt;br /&gt;
http://code.google.com/p/v4lsink/ &amp;amp; http://code.google.com/p/v4l2loopback/&lt;br /&gt;
&lt;br /&gt;
==Using OpenCV with FFMPEG==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Using OpenCV with GStreamer==&lt;br /&gt;
&lt;br /&gt;
==Design your OpenCV code as GStreamer plugin==&lt;br /&gt;
http://github.com/Elleo/gst-opencv&lt;br /&gt;
&lt;br /&gt;
=Portability=&lt;br /&gt;
&lt;br /&gt;
=Tutorials=&lt;br /&gt;
==Tennis balls recognizing==&lt;br /&gt;
[[OpenCV Tennis balls recognizing tutorial]]&lt;br /&gt;
&lt;br /&gt;
==Go game record (kifu) generator==&lt;br /&gt;
[[Kifu:_Go_game_record_(kifu)_generator]]&lt;/div&gt;</summary>
		<author><name>Maurosc3ner</name></author>
	</entry>
	<entry>
		<id>https://wiki.elphel.com/index.php?title=OpenCV&amp;diff=7820</id>
		<title>OpenCV</title>
		<link rel="alternate" type="text/html" href="https://wiki.elphel.com/index.php?title=OpenCV&amp;diff=7820"/>
		<updated>2010-07-29T21:57:43Z</updated>

		<summary type="html">&lt;p&gt;Maurosc3ner: /* Using AVLD */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Single image= &lt;br /&gt;
You can use [[imgsrv]] to download a single image from the [[circbuf]]. MJPEG live stream is also available from [[imgsrv]].&lt;br /&gt;
&lt;br /&gt;
You can use [http://www.gnu.org/software/wget/ wget] to download the image to your computer or implement a small HTTP client in your software.&lt;br /&gt;
&lt;br /&gt;
=Live video=&lt;br /&gt;
==Using AVLD==&lt;br /&gt;
AVLD stand for [[AVLD - Another Video Loopback Device]]. It&#039;s a very CPU and RAM consuming way to present an Elphel network camera as V4l device.&lt;br /&gt;
&lt;br /&gt;
While it is the only solution with proprietary v4l compatible software products (such as skype), it&#039;s a total waste of resources for a free software app what can be adapted to receive an RTP stream.&lt;br /&gt;
&lt;br /&gt;
Moreover, you can downloa from:&lt;br /&gt;
  http://allonlinux.free.fr/Projets/AVLD/src/avld_0.1.4.tar.bz2&lt;br /&gt;
&lt;br /&gt;
Then:&lt;br /&gt;
  $ tar -jxvf avld_0.1.4.tar.bz2&lt;br /&gt;
  $ cd avld_0.1.4&lt;br /&gt;
  $ make &amp;amp;&amp;amp; sudo make install&lt;br /&gt;
&lt;br /&gt;
Right now you can mount your dummy device typing:&lt;br /&gt;
  $sudo modprobe avld width=&amp;lt;camera width resolution&amp;gt; height=&amp;lt;camera height resolution&amp;gt; fps=&amp;lt;camera fps&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, you need to use mencoder in order to redirect the rtsp source to the dummy device:&lt;br /&gt;
  $ sudo mencoder rtsp://192.168.1.180 -nosound -ovc raw -vf format=bgr24 -of rawvideo -o /dev/video0&lt;br /&gt;
&lt;br /&gt;
With this, you just need a simple code in order to preview the scene:&lt;br /&gt;
    &lt;br /&gt;
  #include &amp;quot;highgui.h&amp;quot;&lt;br /&gt;
  #include &amp;quot;cv.h&amp;quot;&lt;br /&gt;
  #include &amp;quot;cvaux.h&amp;quot;&lt;br /&gt;
  #include &amp;lt;ml.h&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  int main(int argc,char *argv[])&lt;br /&gt;
  {&lt;br /&gt;
    IplImage* pCurrentFrame = NULL;&lt;br /&gt;
    CvSize frame_size;&lt;br /&gt;
    CvCapture* capture = cvCaptureFromCAM ( 0 ); //the dummy device make the job :)&lt;br /&gt;
    char c;&lt;br /&gt;
    while ( 1 )&lt;br /&gt;
      {&lt;br /&gt;
        //Request frame from Camera&lt;br /&gt;
	pCurrentFrame = cvQueryFrame ( capture );&lt;br /&gt;
	//video input file finished		&lt;br /&gt;
	if( !pCurrentFrame ) break;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
        cvShowImage( &amp;quot;Current Frame&amp;quot;, pCurrentFrame );&lt;br /&gt;
        c = cvWaitKey(10);&lt;br /&gt;
        if ( c == 27 ) break;&lt;br /&gt;
      }&lt;br /&gt;
    cvReleaseImage ( &amp;amp;pCurrentFrame );&lt;br /&gt;
    cvDestroyAllWindows ();&lt;br /&gt;
    return 0;&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
==Using v4lsink GStreamer plugin and v4l2loopback==&lt;br /&gt;
This is basically an AVLD fork that now evolved into v4l2loopback and a special gstreamer sink to the loopback device.&lt;br /&gt;
&lt;br /&gt;
http://code.google.com/p/v4lsink/ &amp;amp; http://code.google.com/p/v4l2loopback/&lt;br /&gt;
&lt;br /&gt;
==Using OpenCV with FFMPEG==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Using OpenCV with GStreamer==&lt;br /&gt;
&lt;br /&gt;
==Design your OpenCV code as GStreamer plugin==&lt;br /&gt;
http://github.com/Elleo/gst-opencv&lt;br /&gt;
&lt;br /&gt;
=Portability=&lt;br /&gt;
&lt;br /&gt;
=Tutorials=&lt;br /&gt;
==Tennis balls recognizing==&lt;br /&gt;
[[OpenCV Tennis balls recognizing tutorial]]&lt;br /&gt;
&lt;br /&gt;
==Go game record (kifu) generator==&lt;br /&gt;
[[Kifu:_Go_game_record_(kifu)_generator]]&lt;/div&gt;</summary>
		<author><name>Maurosc3ner</name></author>
	</entry>
</feed>