[Bug 398925] [NEW] conversion from PIL image to OpenCV image fails

Zak Stone zstone at fas.harvard.edu
Mon Jul 13 17:50:46 UTC 2009


Public bug reported:

Binary package hint: python-opencv

The following method of setting the data of an OpenCV image fails with
version 1.0.0-6.1ubuntu1 of libcv1 and python-opencv:

image = cv.cvCreateImage(size, cv.IPL_DEPTH_8U, 3)
image.imageData = data # set some data

In particular, this breaks the conversion from PIL images to OpenCV
images in adaptors.py. I believe this issue has been corrected in more
recent versions of OpenCV -- many helpful details about the problem are
available here:

http://www.depthfirstsearch.net/blog/2008/09/22/opencv-and-python/

Thanks,
Zak

** Affects: opencv (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: cvcreateimage opencv pil python python-opencv

-- 
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 at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list