<?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: OpenCV and Python</title>
	<atom:link href="http://www.depthfirstsearch.net/blog/2008/09/22/opencv-and-python/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.depthfirstsearch.net/blog/2008/09/22/opencv-and-python/</link>
	<description>“We can only see a short distance ahead, but we can see plenty there that needs to be done.&#34;</description>
	<lastBuildDate>Wed, 25 Jan 2012 01:59:37 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: prze</title>
		<link>http://www.depthfirstsearch.net/blog/2008/09/22/opencv-and-python/#comment-65</link>
		<dc:creator>prze</dc:creator>
		<pubDate>Tue, 13 Apr 2010 07:37:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.depthfirstsearch.net/blog/?p=595#comment-65</guid>
		<description>Hi, I have problem:

[przemo@null temp]$ swig -python iplimage.i
iplimage.i:5: Error: Syntax error in input(1).</description>
		<content:encoded><![CDATA[<p>Hi, I have problem:</p>
<p>[przemo@null temp]$ swig -python iplimage.i<br />
iplimage.i:5: Error: Syntax error in input(1).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zak Stone</title>
		<link>http://www.depthfirstsearch.net/blog/2008/09/22/opencv-and-python/#comment-64</link>
		<dc:creator>Zak Stone</dc:creator>
		<pubDate>Mon, 13 Jul 2009 02:20:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.depthfirstsearch.net/blog/?p=595#comment-64</guid>
		<description>Tremendous thanks for explaining this issue in detail -- the problem still seems to exist in Ubuntu&#039;s most current version of OpenCV. With the addition of -fPIC after the python include statement in the makefile, I was able to get your code to compile on a 64-bit machine.</description>
		<content:encoded><![CDATA[<p>Tremendous thanks for explaining this issue in detail &#8212; the problem still seems to exist in Ubuntu&#8217;s most current version of OpenCV. With the addition of -fPIC after the python include statement in the makefile, I was able to get your code to compile on a 64-bit machine.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JS</title>
		<link>http://www.depthfirstsearch.net/blog/2008/09/22/opencv-and-python/#comment-63</link>
		<dc:creator>JS</dc:creator>
		<pubDate>Mon, 16 Feb 2009 20:11:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.depthfirstsearch.net/blog/?p=595#comment-63</guid>
		<description>Probably not. This method goes from pil to ipl. You seem to want to do the opposite.</description>
		<content:encoded><![CDATA[<p>Probably not. This method goes from pil to ipl. You seem to want to do the opposite.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: diego diaz</title>
		<link>http://www.depthfirstsearch.net/blog/2008/09/22/opencv-and-python/#comment-62</link>
		<dc:creator>diego diaz</dc:creator>
		<pubDate>Mon, 16 Feb 2009 18:55:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.depthfirstsearch.net/blog/?p=595#comment-62</guid>
		<description>hi
I have a similar problem. I think
I&#039;m trying to use a opencv python script to run my fireware webcam but I got this problem

File &quot;/var/lib/python-support/python2.5/opencv/adaptors.py&quot;, line 79, in Ipl2PIL
    raise TypeError, &#039;must be called with a cv.CvMat!&#039;
TypeError: must be called with a cv.CvMat!

when I call opencv.adaptors.Ipl2PIL(im)
do you think you method could work?</description>
		<content:encoded><![CDATA[<p>hi<br />
I have a similar problem. I think<br />
I&#8217;m trying to use a opencv python script to run my fireware webcam but I got this problem</p>
<p>File &#8220;/var/lib/python-support/python2.5/opencv/adaptors.py&#8221;, line 79, in Ipl2PIL<br />
    raise TypeError, &#8216;must be called with a cv.CvMat!&#8217;<br />
TypeError: must be called with a cv.CvMat!</p>
<p>when I call opencv.adaptors.Ipl2PIL(im)<br />
do you think you method could work?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carl</title>
		<link>http://www.depthfirstsearch.net/blog/2008/09/22/opencv-and-python/#comment-61</link>
		<dc:creator>Carl</dc:creator>
		<pubDate>Thu, 05 Feb 2009 16:21:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.depthfirstsearch.net/blog/?p=595#comment-61</guid>
		<description>You&#039;re my hero... been struggling with this all day and your solution worked first time around. Thanks!</description>
		<content:encoded><![CDATA[<p>You&#8217;re my hero&#8230; been struggling with this all day and your solution worked first time around. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JS</title>
		<link>http://www.depthfirstsearch.net/blog/2008/09/22/opencv-and-python/#comment-60</link>
		<dc:creator>JS</dc:creator>
		<pubDate>Tue, 27 Jan 2009 16:54:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.depthfirstsearch.net/blog/?p=595#comment-60</guid>
		<description>I assume you mean to convert pil to opencv. This is a weird error, considering that argument 1 is supposed to be of type CvMat *. I can&#039;t really offer a solution, since I&#039;m not sure what&#039;s wrong. I&#039;d follow the debugger into the iplimage.set code generated by SWIG and check to make sure that all the argument types are as expected. If you can&#039;t find an error there, then you may have to fire up gdb (or whatever the Windows alternative debugger is). Attach to the running Python process and set a breakpoint in the SWIG generated _iplimage.so, then run your test case. You should be able to see what&#039;s wrong from within the debugger.</description>
		<content:encoded><![CDATA[<p>I assume you mean to convert pil to opencv. This is a weird error, considering that argument 1 is supposed to be of type CvMat *. I can&#8217;t really offer a solution, since I&#8217;m not sure what&#8217;s wrong. I&#8217;d follow the debugger into the iplimage.set code generated by SWIG and check to make sure that all the argument types are as expected. If you can&#8217;t find an error there, then you may have to fire up gdb (or whatever the Windows alternative debugger is). Attach to the running Python process and set a breakpoint in the SWIG generated _iplimage.so, then run your test case. You should be able to see what&#8217;s wrong from within the debugger.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JS</title>
		<link>http://www.depthfirstsearch.net/blog/2008/09/22/opencv-and-python/#comment-59</link>
		<dc:creator>JS</dc:creator>
		<pubDate>Tue, 27 Jan 2009 16:47:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.depthfirstsearch.net/blog/?p=595#comment-59</guid>
		<description>My skills with makefiles are primitive, and this code is not packaged in any way. You can copy it anywhere you would like, and as long as your Python path is setup to find it, the module should load.</description>
		<content:encoded><![CDATA[<p>My skills with makefiles are primitive, and this code is not packaged in any way. You can copy it anywhere you would like, and as long as your Python path is setup to find it, the module should load.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew</title>
		<link>http://www.depthfirstsearch.net/blog/2008/09/22/opencv-and-python/#comment-58</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Mon, 26 Jan 2009 14:45:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.depthfirstsearch.net/blog/?p=595#comment-58</guid>
		<description>Hello,
  I&#039;ve been able to build the files on Vista32 but when I try to convert from opencv to pil [iplimage.set(cvimg,pilimg.tostring())]  I get a type error:

TypeError: in method &#039;set&#039;, argument 1 of type &#039;CvMat *&#039;.  I check the type of  cvimg and it is  .  Any clues on how to fix this?
  Thanks
  Andrew</description>
		<content:encoded><![CDATA[<p>Hello,<br />
  I&#8217;ve been able to build the files on Vista32 but when I try to convert from opencv to pil [iplimage.set(cvimg,pilimg.tostring())]  I get a type error:</p>
<p>TypeError: in method &#8216;set&#8217;, argument 1 of type &#8216;CvMat *&#8217;.  I check the type of  cvimg and it is  .  Any clues on how to fix this?<br />
  Thanks<br />
  Andrew</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Max M</title>
		<link>http://www.depthfirstsearch.net/blog/2008/09/22/opencv-and-python/#comment-57</link>
		<dc:creator>Max M</dc:creator>
		<pubDate>Wed, 21 Jan 2009 17:01:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.depthfirstsearch.net/blog/?p=595#comment-57</guid>
		<description>Hello,
I managed to &#039;make&#039; the code. It seems to have generated multiple files. Whe I run install it fails. Should I manually move these files to a specific locale in my ubuntu?
Thanks...</description>
		<content:encoded><![CDATA[<p>Hello,<br />
I managed to &#8216;make&#8217; the code. It seems to have generated multiple files. Whe I run install it fails. Should I manually move these files to a specific locale in my ubuntu?<br />
Thanks&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SinJax</title>
		<link>http://www.depthfirstsearch.net/blog/2008/09/22/opencv-and-python/#comment-56</link>
		<dc:creator>SinJax</dc:creator>
		<pubDate>Thu, 08 Jan 2009 18:12:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.depthfirstsearch.net/blog/?p=595#comment-56</guid>
		<description>This was most helpful! Here the makefile had to be altered slightly, with the addition of the -fPIC to the compilation of _iplimage.o as follows:

$(CXX) $(CFLAGS) -I/usr/include/python2.4 -fPIC -c iplimage.c iplimage_wrap.c

Not sure why, google says this is due to some 64bit AMD architectures... but yes this is a good quick fix

thanks :)</description>
		<content:encoded><![CDATA[<p>This was most helpful! Here the makefile had to be altered slightly, with the addition of the -fPIC to the compilation of _iplimage.o as follows:</p>
<p>$(CXX) $(CFLAGS) -I/usr/include/python2.4 -fPIC -c iplimage.c iplimage_wrap.c</p>
<p>Not sure why, google says this is due to some 64bit AMD architectures&#8230; but yes this is a good quick fix</p>
<p>thanks <img src='http://www.depthfirstsearch.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching using disk: basic
Object Caching 394/395 objects using disk: basic

Served from: www.depthfirstsearch.net @ 2012-02-09 03:53:24 -->
