# Add the line below if you need it (Ubuntu 8.04+)
im = cv.GetMat(im)
#convert Ipl image to PIL image
return Image.fromstring("RGB", cv.GetSize(im), im.tostring())
# Add the line below if you need it (Ubuntu 8.04+)
im = cv.GetMat(im)
#convert Ipl image to PIL image
return Image.fromstring("RGB", cv.GetSize(im), im.tostring())