On Oct 25, 2007, at 4:33 AM, AlgoMantra wrote:
> Hi All,
>
> So I'm accessing and modifying pixels of a video capture image
> stream using
> image.load() which type() tells me is a "PixelAccess" object.
>
> I have a 160X120 image in RGB.
>
> Is there a simple way to convert this into an array for applying
> functions
> using Numpy? If the (x,y) coordinates for pixel access remain the
> same,
> that is...
See:
http://www.pygame.org/docs/ref/surfarray.html
http://www.pygame.org/docs/tut/surfarray/SurfarrayIntro.html
hth,
-Casey