<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to: manipulate webcam streams with OpenCV and OpenGL</title>
	<atom:link href="http://r3dux.org/2010/12/how-to-manipulate-webcam-streams-with-opencv-and-opengl/feed/" rel="self" type="application/rss+xml" />
	<link>http://r3dux.org/2010/12/how-to-manipulate-webcam-streams-with-opencv-and-opengl/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-manipulate-webcam-streams-with-opencv-and-opengl</link>
	<description>A number-pimping side project from the valleys in *NEW* upside-down flavour.</description>
	<lastBuildDate>Tue, 15 May 2012 23:01:55 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: r3dux</title>
		<link>http://r3dux.org/2010/12/how-to-manipulate-webcam-streams-with-opencv-and-opengl/#comment-7155</link>
		<dc:creator>r3dux</dc:creator>
		<pubDate>Sun, 13 Nov 2011 08:01:52 +0000</pubDate>
		<guid isPermaLink="false">http://r3dux.org/?p=3761#comment-7155</guid>
		<description>Okay, I&#039;ve rebuilt the project using OpenCV 3.2.1a and got it working again. The problem I was having was that I&#039;d built OpenCV but without the Video 4 Linux drivers to use the webcam, so cvCaptureCAM would return NULL and segfault instead of grabbing a frame from the webcam.

The dead giveaway for this when you&#039;re building OpenCV is if you see something like this during the cmake configuration (look at the V4L/V4L2 line):
&lt;pre lang=&quot;bash&quot;&gt;
Video I/O:
--     DC1394 1.x:                 NO
--     DC1394 2.x:                 YES
--     FFMPEG:                     YES
--       codec:                    YES
--       format:                   YES
--       util:                     YES
--       swscale:                  YES
--       gentoo-style:             YES
--     GStreamer:                  YES
--     UniCap:                     NO
--     PvAPI:                      NO
--     V4L/V4L2:                   /1
--     Xine:                       NO&lt;/pre&gt;

The way to fix this is to install &lt;strong&gt;libv4l-dev&lt;/strong&gt; which when you run cmake on OpenCV to configure it thereafter will show:
&lt;pre lang=&quot;bash&quot;&gt;
Video I/O:
--     DC1394 1.x:                 NO
--     DC1394 2.x:                 YES
--     FFMPEG:                     YES
--       codec:                    YES
--       format:                   YES
--       util:                     YES
--       swscale:                  YES
--       gentoo-style:             YES
--     GStreamer:                  YES
--     UniCap:                     NO
--     PvAPI:                      NO
--     V4L/V4L2:                   Using libv4l
--     Xine:                       NO&lt;/pre&gt;

With this done and OpenCV rebuilt capturing images from the webcam will work - which is a good start.

I&#039;ve modified the project to include &quot;opencv.hpp&quot; instead of the separate &quot;cv.h&quot;, &quot;highgui.h&quot; etc files (which are the OpenCV1 way of doing things) - and with that done I get this:

&lt;img src=&quot;http://r3dux.org/wp-content/uploads/2011/11/Low-Rez-Stream-Update.jpg&quot; alt=&quot;Low-Rez-Stream Update&quot; /&gt;

I&#039;ve also put together the updated Code::Blocks project in an archive here: &lt;a href=&quot;http://r3dux.org/files/code/Low-Rez-Stream-Update/Low-Rez-Stream-Update.zip&quot; rel=&quot;nofollow&quot;&gt;Low-Rez-Stream-Update.zip&lt;/a&gt; - be aware that my opencv libraries (&quot;opencv_core.so&quot; and &quot;opencv_highgui.so&quot;) are being pointed at in /usr/local/lib - if your libs are in a different location then you&#039;ll need to change the paths (in C::B you can do this from the menu with &lt;strong&gt;Project &#124; Build Options &#124; Linker Settings&lt;/strong&gt;).

Hope this helps you out - if it&#039;s still not working (because on second look at your comment [wang] - it looks more like a glfw issue than an opencv one) - then you&#039;re just going to have to try to build up to getting an OpenGL window open using GLFW - take a look at the docs and examples at &lt;a href=&quot;http://content.gpwiki.org/index.php/GLFW:Tutorials:Basics&quot; rel=&quot;nofollow&quot;&gt;gpwiki&lt;/a&gt; or smth..

Tuxy - maybe trying from my C::B project will help fix your issue, too.

Cheers guys - hope you get it all working.</description>
		<content:encoded><![CDATA[<p>Okay, I&#8217;ve rebuilt the project using OpenCV 3.2.1a and got it working again. The problem I was having was that I&#8217;d built OpenCV but without the Video 4 Linux drivers to use the webcam, so cvCaptureCAM would return NULL and segfault instead of grabbing a frame from the webcam.</p>
<p>The dead giveaway for this when you&#8217;re building OpenCV is if you see something like this during the cmake configuration (look at the V4L/V4L2 line):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Video I<span style="color: #000000; font-weight: bold;">/</span>O:
<span style="color: #660033;">--</span>     DC1394 <span style="color: #000000;">1</span>.x:                 NO
<span style="color: #660033;">--</span>     DC1394 <span style="color: #000000;">2</span>.x:                 YES
<span style="color: #660033;">--</span>     FFMPEG:                     YES
<span style="color: #660033;">--</span>       codec:                    YES
<span style="color: #660033;">--</span>       format:                   YES
<span style="color: #660033;">--</span>       util:                     YES
<span style="color: #660033;">--</span>       swscale:                  YES
<span style="color: #660033;">--</span>       gentoo-style:             YES
<span style="color: #660033;">--</span>     GStreamer:                  YES
<span style="color: #660033;">--</span>     UniCap:                     NO
<span style="color: #660033;">--</span>     PvAPI:                      NO
<span style="color: #660033;">--</span>     V4L<span style="color: #000000; font-weight: bold;">/</span>V4L2:                   <span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1</span>
<span style="color: #660033;">--</span>     Xine:                       NO</pre></div></div>

<p>The way to fix this is to install <strong>libv4l-dev</strong> which when you run cmake on OpenCV to configure it thereafter will show:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Video I<span style="color: #000000; font-weight: bold;">/</span>O:
<span style="color: #660033;">--</span>     DC1394 <span style="color: #000000;">1</span>.x:                 NO
<span style="color: #660033;">--</span>     DC1394 <span style="color: #000000;">2</span>.x:                 YES
<span style="color: #660033;">--</span>     FFMPEG:                     YES
<span style="color: #660033;">--</span>       codec:                    YES
<span style="color: #660033;">--</span>       format:                   YES
<span style="color: #660033;">--</span>       util:                     YES
<span style="color: #660033;">--</span>       swscale:                  YES
<span style="color: #660033;">--</span>       gentoo-style:             YES
<span style="color: #660033;">--</span>     GStreamer:                  YES
<span style="color: #660033;">--</span>     UniCap:                     NO
<span style="color: #660033;">--</span>     PvAPI:                      NO
<span style="color: #660033;">--</span>     V4L<span style="color: #000000; font-weight: bold;">/</span>V4L2:                   Using libv4l
<span style="color: #660033;">--</span>     Xine:                       NO</pre></div></div>

<p>With this done and OpenCV rebuilt capturing images from the webcam will work &#8211; which is a good start.</p>
<p>I&#8217;ve modified the project to include &#8220;opencv.hpp&#8221; instead of the separate &#8220;cv.h&#8221;, &#8220;highgui.h&#8221; etc files (which are the OpenCV1 way of doing things) &#8211; and with that done I get this:</p>
<p><img src="http://r3dux.org/wp-content/uploads/2011/11/Low-Rez-Stream-Update.jpg" alt="Low-Rez-Stream Update" /></p>
<p>I&#8217;ve also put together the updated Code::Blocks project in an archive here: <a href="http://r3dux.org/files/code/Low-Rez-Stream-Update/Low-Rez-Stream-Update.zip">Low-Rez-Stream-Update.zip</a> &#8211; be aware that my opencv libraries (&#8220;opencv_core.so&#8221; and &#8220;opencv_highgui.so&#8221;) are being pointed at in /usr/local/lib &#8211; if your libs are in a different location then you&#8217;ll need to change the paths (in C::B you can do this from the menu with <strong>Project | Build Options | Linker Settings</strong>).</p>
<p>Hope this helps you out &#8211; if it&#8217;s still not working (because on second look at your comment [wang] &#8211; it looks more like a glfw issue than an opencv one) &#8211; then you&#8217;re just going to have to try to build up to getting an OpenGL window open using GLFW &#8211; take a look at the docs and examples at <a href="http://content.gpwiki.org/index.php/GLFW:Tutorials:Basics">gpwiki</a> or smth..</p>
<p>Tuxy &#8211; maybe trying from my C::B project will help fix your issue, too.</p>
<p>Cheers guys &#8211; hope you get it all working.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: r3dux</title>
		<link>http://r3dux.org/2010/12/how-to-manipulate-webcam-streams-with-opencv-and-opengl/#comment-7146</link>
		<dc:creator>r3dux</dc:creator>
		<pubDate>Fri, 11 Nov 2011 23:31:52 +0000</pubDate>
		<guid isPermaLink="false">http://r3dux.org/?p=3761#comment-7146</guid>
		<description>Yeah - same for me - it needs to be re-written due to OpenCV API changes - will try and get a re-write done this afternoon..</description>
		<content:encoded><![CDATA[<p>Yeah &#8211; same for me &#8211; it needs to be re-written due to OpenCV API changes &#8211; will try and get a re-write done this afternoon..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: r3dux</title>
		<link>http://r3dux.org/2010/12/how-to-manipulate-webcam-streams-with-opencv-and-opengl/#comment-7143</link>
		<dc:creator>r3dux</dc:creator>
		<pubDate>Fri, 11 Nov 2011 23:30:17 +0000</pubDate>
		<guid isPermaLink="false">http://r3dux.org/?p=3761#comment-7143</guid>
		<description>Oops! Forgot about this with everything going on... will take a crack at it later today if I can get my AI homework finished.</description>
		<content:encoded><![CDATA[<p>Oops! Forgot about this with everything going on&#8230; will take a crack at it later today if I can get my AI homework finished.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wang</title>
		<link>http://r3dux.org/2010/12/how-to-manipulate-webcam-streams-with-opencv-and-opengl/#comment-7142</link>
		<dc:creator>wang</dc:creator>
		<pubDate>Fri, 11 Nov 2011 17:42:28 +0000</pubDate>
		<guid isPermaLink="false">http://r3dux.org/?p=3761#comment-7142</guid>
		<description>Hello 
 
Very interesting stuff. Thank you for your sharing

I have tried the code, the compilation and linking are OK

but it fails during InitGL() function, specifically the &quot;glfwOpenWindow&quot; failed!!

I can not figure out why

Thank you in advance for your help ! 

cheers</description>
		<content:encoded><![CDATA[<p>Hello </p>
<p>Very interesting stuff. Thank you for your sharing</p>
<p>I have tried the code, the compilation and linking are OK</p>
<p>but it fails during InitGL() function, specifically the &#8220;glfwOpenWindow&#8221; failed!!</p>
<p>I can not figure out why</p>
<p>Thank you in advance for your help ! </p>
<p>cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: r3dux</title>
		<link>http://r3dux.org/2010/12/how-to-manipulate-webcam-streams-with-opencv-and-opengl/#comment-7043</link>
		<dc:creator>r3dux</dc:creator>
		<pubDate>Wed, 19 Oct 2011 23:36:29 +0000</pubDate>
		<guid isPermaLink="false">http://r3dux.org/?p=3761#comment-7043</guid>
		<description>Okay, so it&#039;s failing in initGL... add a bunch of checkGLError(&quot;1&quot;) etcs through the initGL until you find where it&#039;s going wrong.

I just built OpenCV 2.3.1 to check it out for myself and IplImage is replace by cv::Mat, so the project segfaults on me. As I&#039;ve got a research poster to do before Monday I&#039;m not going to have time to fix it before then.

If you want to keep going at it feel free, but I&#039;ll come back and do a modern API re-write next week when I have the time.

Cheers,
r3dux</description>
		<content:encoded><![CDATA[<p>Okay, so it&#8217;s failing in initGL&#8230; add a bunch of checkGLError(&#8220;1&#8243;) etcs through the initGL until you find where it&#8217;s going wrong.</p>
<p>I just built OpenCV 2.3.1 to check it out for myself and IplImage is replace by cv::Mat, so the project segfaults on me. As I&#8217;ve got a research poster to do before Monday I&#8217;m not going to have time to fix it before then.</p>
<p>If you want to keep going at it feel free, but I&#8217;ll come back and do a modern API re-write next week when I have the time.</p>
<p>Cheers,<br />
r3dux</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tuxy</title>
		<link>http://r3dux.org/2010/12/how-to-manipulate-webcam-streams-with-opencv-and-opengl/#comment-7042</link>
		<dc:creator>tuxy</dc:creator>
		<pubDate>Wed, 19 Oct 2011 12:50:43 +0000</pubDate>
		<guid isPermaLink="false">http://r3dux.org/?p=3761#comment-7042</guid>
		<description>just at the beginning in main after 
   string windowTitle = &quot;Low Rez Stream Circles &#124; r3dux.org\tFPS: --&quot;;
    initGL(windowWidth, windowHeight, windowTitle);
the error &quot;Invalid enum.&quot; was thrown</description>
		<content:encoded><![CDATA[<p>just at the beginning in main after<br />
   string windowTitle = &#8220;Low Rez Stream Circles | r3dux.org\tFPS: &#8211;&#8221;;<br />
    initGL(windowWidth, windowHeight, windowTitle);<br />
the error &#8220;Invalid enum.&#8221; was thrown</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: r3dux</title>
		<link>http://r3dux.org/2010/12/how-to-manipulate-webcam-streams-with-opencv-and-opengl/#comment-7041</link>
		<dc:creator>r3dux</dc:creator>
		<pubDate>Wed, 19 Oct 2011 11:07:08 +0000</pubDate>
		<guid isPermaLink="false">http://r3dux.org/?p=3761#comment-7041</guid>
		<description>OpenGL black screen problems are the bane of graphics programming - you&#039;ll need to get something, anything displayed and then work up from that.

Try adding the following function and then calling it at multiple points in your code so you can track down if OpenGL is throwing any errors, (i.e. checkGLError(&quot;Just before doing this!&quot;); or checkGLError(&quot;Just after doing that!&quot;);)

&lt;pre lang=&quot;cpp&quot;&gt;
// Function to check if OpenGL is having issues - pass it a unique string of some kind to track down where in the code it&#039;s moaning
void checkGLError(const char * errorLocation)
{
	unsigned int gle = glGetError();

	if (gle != GL_NO_ERROR)
	{
		std::cout &lt;&lt; &quot;GL Error discovered from caller &quot; &lt;&lt; errorLocation &lt;&lt; &quot;: &quot;;

		switch (gle)
		{
		case GL_INVALID_ENUM:
			std::cout &lt;&lt; &quot;Invalid enum.&quot; &lt;&lt; std::endl;
			break;

		case GL_INVALID_VALUE:
			std::cout &lt;&lt; &quot;Invalid value.&quot; &lt;&lt; std::endl;
			break;

		case GL_INVALID_OPERATION:
			std::cout &lt;&lt; &quot;Invalid Operation.&quot; &lt;&lt; std::endl;
			break;

		case GL_STACK_OVERFLOW:
			std::cout &lt;&lt; &quot;Stack overflow.&quot; &lt;&lt; std::endl;
			displayStackDepths();
			break;

		case GL_STACK_UNDERFLOW:
			std::cout &lt;&lt; &quot;Stack underflow.&quot; &lt;&lt; std::endl;
			displayStackDepths();
			break;

		case GL_OUT_OF_MEMORY:
			std::cout &lt;&lt; &quot;Out of memory.&quot; &lt;&lt;  std::endl;
			break;

		default:
			std::cout &lt;&lt; &quot;Unknown error! Enum code is: &quot; &lt;&lt; gle &lt;&lt; std::endl;
			break;

		} // End of switch

	} // End of if error detected

} // End of checkGLError function&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>OpenGL black screen problems are the bane of graphics programming &#8211; you&#8217;ll need to get something, anything displayed and then work up from that.</p>
<p>Try adding the following function and then calling it at multiple points in your code so you can track down if OpenGL is throwing any errors, (i.e. checkGLError(&#8220;Just before doing this!&#8221;); or checkGLError(&#8220;Just after doing that!&#8221;);)</p>

<div class="wp_syntax"><div class="code"><pre class="cpp" style="font-family:monospace;"><span style="color: #666666;">// Function to check if OpenGL is having issues - pass it a unique string of some kind to track down where in the code it's moaning</span>
<span style="color: #0000ff;">void</span> checkGLError<span style="color: #008000;">&#40;</span><span style="color: #0000ff;">const</span> <span style="color: #0000ff;">char</span> <span style="color: #000040;">*</span> errorLocation<span style="color: #008000;">&#41;</span>
<span style="color: #008000;">&#123;</span>
	<span style="color: #0000ff;">unsigned</span> <span style="color: #0000ff;">int</span> gle <span style="color: #000080;">=</span> glGetError<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
&nbsp;
	<span style="color: #0000ff;">if</span> <span style="color: #008000;">&#40;</span>gle <span style="color: #000040;">!</span><span style="color: #000080;">=</span> GL_NO_ERROR<span style="color: #008000;">&#41;</span>
	<span style="color: #008000;">&#123;</span>
		std<span style="color: #008080;">::</span><span style="color: #0000dd;">cout</span> <span style="color: #000080;">&lt;&lt;</span> <span style="color: #FF0000;">&quot;GL Error discovered from caller &quot;</span> <span style="color: #000080;">&lt;&lt;</span> errorLocation <span style="color: #000080;">&lt;&lt;</span> <span style="color: #FF0000;">&quot;: &quot;</span><span style="color: #008080;">;</span>
&nbsp;
		<span style="color: #0000ff;">switch</span> <span style="color: #008000;">&#40;</span>gle<span style="color: #008000;">&#41;</span>
		<span style="color: #008000;">&#123;</span>
		<span style="color: #0000ff;">case</span> GL_INVALID_ENUM<span style="color: #008080;">:</span>
			std<span style="color: #008080;">::</span><span style="color: #0000dd;">cout</span> <span style="color: #000080;">&lt;&lt;</span> <span style="color: #FF0000;">&quot;Invalid enum.&quot;</span> <span style="color: #000080;">&lt;&lt;</span> std<span style="color: #008080;">::</span><span style="color: #007788;">endl</span><span style="color: #008080;">;</span>
			<span style="color: #0000ff;">break</span><span style="color: #008080;">;</span>
&nbsp;
		<span style="color: #0000ff;">case</span> GL_INVALID_VALUE<span style="color: #008080;">:</span>
			std<span style="color: #008080;">::</span><span style="color: #0000dd;">cout</span> <span style="color: #000080;">&lt;&lt;</span> <span style="color: #FF0000;">&quot;Invalid value.&quot;</span> <span style="color: #000080;">&lt;&lt;</span> std<span style="color: #008080;">::</span><span style="color: #007788;">endl</span><span style="color: #008080;">;</span>
			<span style="color: #0000ff;">break</span><span style="color: #008080;">;</span>
&nbsp;
		<span style="color: #0000ff;">case</span> GL_INVALID_OPERATION<span style="color: #008080;">:</span>
			std<span style="color: #008080;">::</span><span style="color: #0000dd;">cout</span> <span style="color: #000080;">&lt;&lt;</span> <span style="color: #FF0000;">&quot;Invalid Operation.&quot;</span> <span style="color: #000080;">&lt;&lt;</span> std<span style="color: #008080;">::</span><span style="color: #007788;">endl</span><span style="color: #008080;">;</span>
			<span style="color: #0000ff;">break</span><span style="color: #008080;">;</span>
&nbsp;
		<span style="color: #0000ff;">case</span> GL_STACK_OVERFLOW<span style="color: #008080;">:</span>
			std<span style="color: #008080;">::</span><span style="color: #0000dd;">cout</span> <span style="color: #000080;">&lt;&lt;</span> <span style="color: #FF0000;">&quot;Stack overflow.&quot;</span> <span style="color: #000080;">&lt;&lt;</span> std<span style="color: #008080;">::</span><span style="color: #007788;">endl</span><span style="color: #008080;">;</span>
			displayStackDepths<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
			<span style="color: #0000ff;">break</span><span style="color: #008080;">;</span>
&nbsp;
		<span style="color: #0000ff;">case</span> GL_STACK_UNDERFLOW<span style="color: #008080;">:</span>
			std<span style="color: #008080;">::</span><span style="color: #0000dd;">cout</span> <span style="color: #000080;">&lt;&lt;</span> <span style="color: #FF0000;">&quot;Stack underflow.&quot;</span> <span style="color: #000080;">&lt;&lt;</span> std<span style="color: #008080;">::</span><span style="color: #007788;">endl</span><span style="color: #008080;">;</span>
			displayStackDepths<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
			<span style="color: #0000ff;">break</span><span style="color: #008080;">;</span>
&nbsp;
		<span style="color: #0000ff;">case</span> GL_OUT_OF_MEMORY<span style="color: #008080;">:</span>
			std<span style="color: #008080;">::</span><span style="color: #0000dd;">cout</span> <span style="color: #000080;">&lt;&lt;</span> <span style="color: #FF0000;">&quot;Out of memory.&quot;</span> <span style="color: #000080;">&lt;&lt;</span>  std<span style="color: #008080;">::</span><span style="color: #007788;">endl</span><span style="color: #008080;">;</span>
			<span style="color: #0000ff;">break</span><span style="color: #008080;">;</span>
&nbsp;
		<span style="color: #0000ff;">default</span><span style="color: #008080;">:</span>
			std<span style="color: #008080;">::</span><span style="color: #0000dd;">cout</span> <span style="color: #000080;">&lt;&lt;</span> <span style="color: #FF0000;">&quot;Unknown error! Enum code is: &quot;</span> <span style="color: #000080;">&lt;&lt;</span> gle <span style="color: #000080;">&lt;&lt;</span> std<span style="color: #008080;">::</span><span style="color: #007788;">endl</span><span style="color: #008080;">;</span>
			<span style="color: #0000ff;">break</span><span style="color: #008080;">;</span>
&nbsp;
		<span style="color: #008000;">&#125;</span> <span style="color: #666666;">// End of switch</span>
&nbsp;
	<span style="color: #008000;">&#125;</span> <span style="color: #666666;">// End of if error detected</span>
&nbsp;
<span style="color: #008000;">&#125;</span> <span style="color: #666666;">// End of checkGLError function</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: tuxy</title>
		<link>http://r3dux.org/2010/12/how-to-manipulate-webcam-streams-with-opencv-and-opengl/#comment-7040</link>
		<dc:creator>tuxy</dc:creator>
		<pubDate>Wed, 19 Oct 2011 10:14:58 +0000</pubDate>
		<guid isPermaLink="false">http://r3dux.org/?p=3761#comment-7040</guid>
		<description>Hi ,
I get a webcam image, i can see it in two of the windows. But in the last one there where the matrix is i get only a blackscreen.</description>
		<content:encoded><![CDATA[<p>Hi ,<br />
I get a webcam image, i can see it in two of the windows. But in the last one there where the matrix is i get only a blackscreen.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: r3dux</title>
		<link>http://r3dux.org/2010/12/how-to-manipulate-webcam-streams-with-opencv-and-opengl/#comment-6857</link>
		<dc:creator>r3dux</dc:creator>
		<pubDate>Wed, 20 Jul 2011 07:38:49 +0000</pubDate>
		<guid isPermaLink="false">http://r3dux.org/?p=3761#comment-6857</guid>
		<description>1.) Get a copy of &lt;a href=&quot;http://glew.sourceforge.net/&quot; rel=&quot;nofollow&quot;&gt;GLEW&lt;/a&gt; for your platform,
2.) Link in the glew library for your platform into your project (this will vary by platform and IDE/Compiler, in Linux you&#039;d use libGLEW.so or libGLEW.a)
3.) Make sure that your project&#039;s &quot;include&quot; search path points to the directory that contains the GL directory that contains glew.h. Or modify the line to &lt;strong&gt;#include &quot;glew.h&quot;;&lt;/strong&gt;, and make sure your project&#039;s &quot;include&quot; search path points at the exact directory that contains glew.h. Or move glew.h into a folder which is already in your project&#039;s &quot;include&quot; search path!
4.) Compile =D</description>
		<content:encoded><![CDATA[<p>1.) Get a copy of <a href="http://glew.sourceforge.net/">GLEW</a> for your platform,<br />
2.) Link in the glew library for your platform into your project (this will vary by platform and IDE/Compiler, in Linux you&#8217;d use libGLEW.so or libGLEW.a)<br />
3.) Make sure that your project&#8217;s &#8220;include&#8221; search path points to the directory that contains the GL directory that contains glew.h. Or modify the line to <strong>#include &#8220;glew.h&#8221;;</strong>, and make sure your project&#8217;s &#8220;include&#8221; search path points at the exact directory that contains glew.h. Or move glew.h into a folder which is already in your project&#8217;s &#8220;include&#8221; search path!<br />
4.) Compile =D</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tank</title>
		<link>http://r3dux.org/2010/12/how-to-manipulate-webcam-streams-with-opencv-and-opengl/#comment-6856</link>
		<dc:creator>tank</dc:creator>
		<pubDate>Wed, 20 Jul 2011 04:58:20 +0000</pubDate>
		<guid isPermaLink="false">http://r3dux.org/?p=3761#comment-6856</guid>
		<description>#include 

 &#039;GL/glew.h&#039;: No such file or directory</description>
		<content:encoded><![CDATA[<p>#include </p>
<p> &#8216;GL/glew.h&#8217;: No such file or directory</p>
]]></content:encoded>
	</item>
</channel>
</rss>

