Displaying 1 result from an estimated 1 matches for "channel_axis".
2010 Jan 21
0
python-theora: some comments
...- a/theora.pyx
+++ b/theora.pyx
@@ -678,7 +678,7 @@ cdef class Theora:
<Image.Image instance at 0x...>
"""
- from scipy.misc import toimage
+ from scipy.misc.pilutil import toimage
return toimage(self.YCbCr2RGB(self.get_frame_array()), channel_axis=2)
def read_headers(self):
and was then able to run
#!/usr/bin/python
import theora
import sys
t = theora.Theora(sys.argv[1])
t.seek(frame=1200)
img = t.get_frame_image()
img.save("c.png")...