<div style="margin-left: 40px;">Yes, try:<br></div><pre style="margin-left: 40px;">self.bmp = wx.BitmapFromBuffer(frame.width, frame.height, <b>frame.tostring()</b>)</pre>This method is documented here:<br><br><a href="http://opencv.willowgarage.com/documentation/python/basic_structures.html#iplimage">http://opencv.willowgarage.com/documentation/python/basic_structures.html#iplimage</a><br>
<br>Hope this helps...<br>J.<br><br><div class="gmail_quote">On Wed, Jun 23, 2010 at 11:38 AM, Floris van Breugel <span dir="ltr"><<a href="mailto:florisvb@gmail.com">florisvb@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi all,<br><br>I hope it's ok to ask this question here - seems like some of you would likely know the answer. I have a little gui application that currently runs perfectly in opencv, but I would like to move it to wxpython to take advantage of the richer callback functionality (specifically, keyboard inputs). I just can't figure out how to display my opencv (ipl) images (image stream from a pt grey firefly camera) in wxpython. <br>

<br>I tried following the example here: <a href="http://opencv.willowgarage.com/wiki/wxpython" target="_blank">http://opencv.willowgarage.com/wiki/wxpython</a>, but it seems like more than just the syntax has changed with opencv2? Specifically, this line doesn't work: <br>

<pre>self.bmp = wx.BitmapFromBuffer(frame.width, frame.height, frame.imageData)</pre>Since my opencv image doesn't appear to have a field 'imageData'. I'm hoping there's just a simple thing I'm missing... thanks for any help!<br>

<br>- Floris<br><br><br><br><br><br>-- <br>Floris van Breugel<br>Caltech Graduate Student<br>Control and Dynamical Systems<br>(925) 963 8280<br><br>Wildlife and Landscape Photographer<br>Galleries: <a href="http://www.ArtInNaturePhotography.com/" target="_blank">http://www.ArtInNaturePhotography.com/</a><br>

Blog: <a href="http://www.ArtInNaturePhotography.com/wordpress/" target="_blank">http://www.ArtInNaturePhotography.com/wordpress/</a><br>2010 CALENDARS! Now available on my website!<br><br>
<br>_______________________________________________<br>
ros-users mailing list<br>
<a href="mailto:ros-users@code.ros.org">ros-users@code.ros.org</a><br>
<a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>J.<br><br>