The bug is known upstream (at http://sourceforge.net/support/tracker.php?aid=1618474) and is fixed in upstream CVS (at http://opencvlibrary.cvs.sourceforge.net/opencvlibrary/opencv/interfaces/swig/python/imagedata.i?r1=1.3&r2=1.4).
The patch from CVS is attached below. It applies without problems, but apparently the _cv.cpp file which is generated by Swig is not regenerated automatically. Adding --with-swig to the "configure" flags (for example in debian/rules, at the end of "confflags = " line) is a workaround for this. ** Attachment added: "Patch for interfaces/swig/python/imagedata.i from OpenCV CVS, from rev 1.3 to 1.4" http://launchpadlibrarian.net/35952187/fix-sf-1618474-from-cvs.diff -- conversion from PIL image to OpenCV image fails https://bugs.launchpad.net/bugs/398925 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs