pygame is
Simple DirectMedia Layer is
Site Swing

pycam - 0.0.1

Brian Thorne (thorney)



A project exploring using the new Camera module for basic computer vision. Currently has example with eye and face detection, based on opencv's Haar classifiers. There is a edge detection example that uses either scipy's signals module, numpy convolution or pygame's transform. There is an opencv camera wrapping class that allows an opencv camera to be used with pygame. Adapts the numpy cvmat returned by opencv into a surface. Implements a VideoCapturePlayer class which can be used as a base for doing simple image processing on live video. A process can be given (as a function) that is run on every frame between capture and display. Alternatively it can simply display live video. It will try use the pygame camera module, if this is unavailable it will try to use opencv for image capture using the wrapper mentioned above.


Home Page:


click to view original size


pycam - 0.0.2 - Aug 13, 2009
pycam - 0.0.1 - Apr 28, 2009 account Comments

If you wish to leave a comment with your account, please sign in first.

September 5, 2009 1:14am - Brian Thorne - nickname: (thorney)
Hi Rene,
I didn't realize there was OpenCV already, I'll have to take a look!
The VideoCapture backend that you mention, where is that found?
August 17, 2009 7:22am - Rene Dudfield - nickname: (illume)

just a note: there's already an opencv backend for pygame... and a VideoCapture backend. It should load if it's available. ... of course people would need the latest pygame for that to work.

Those two backends are written in python, so should be easy to modify.

Any patches or additions to pygame very welcome :)

July 6, 2009 11:48am - krist cohen - nickname: (gsuskrist007) - 5/5
hi im trying to capture video from my webcam, i just hope this module can help me to make it :)
April 29, 2009 4:06pm - Joe Johnston - nickname: (jjohn)
This seems like a really interesting and promising project. Looking forward to seeing this develop further.

our projects welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
recent releases
Oct 1, 2015

Sep 11, 2015

Sep 6, 2015

Aug 26, 2015

Aug 25, 2015

Aug 21, 2015

Aug 16, 2015

Jul 30, 2015

Jun 24, 2015

... more!
for pygame related questions, comments, and suggestions, please see help (lists, irc)