I am getting some frame data from a web cam in the form of rgb values.
import numpy as np frame = get_video() print np.shape(frame)
The output is (480, 640, 3). Now I want to construct image from these values. So, I want to use
im = Image.new("RGB", (480, 640),frame)
But, here the third argument takes a tuple. I get this error
SystemError: new style getargs format but argument is not a tuple
So, my question is what is the best way to convert this frame data to a tuple, so that I can construct my image.