Save an image in pgm format + Python
Hi everyone, I've got a function that return an image. I would like to save this image but changing the format to pgm. How could I do that? Thanks in advance.
Hi berak, thanks for your answer. I read about "imwrite" in the doc but it doesn't work on my code.
I'm using the same function that in this link (Aligining_faces_immages ---> CropFace): http://docs.opencv.org/modules/contrib/doc/facerec/facerec_tutorial.html?highlight=crop%20images#aligning-face-images
In the end of the example the image is saved with "save" but I would like to change the extension to .pgm ¿Is it possible?
Asked: 2013-09-01 14:02:18 -0600
Seen: 7,304 times
Last updated: Sep 01 '13