[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] Camera module roadmap
- To: pygame-users@xxxxxxxx
- Subject: [pygame] Camera module roadmap
- From: Alexandre Quessy <alexandre@xxxxxxxxxx>
- Date: Sun, 26 Apr 2009 15:53:59 -0400
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Sun, 26 Apr 2009 15:54:02 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=45QDuTTPmoX1847gAJjUx6ImMtZLrxc27VDiYF2D7s8=; b=c9ePBE1oMssAIKewmNogxqYvaJkzNLkOZ9cHJVWO8yjHss2UsdKl9y0Vlp9CvkSMxr pawDpxf7B+O3CfOnGBZ+NDLWz1dE76NSqNMswer28osRWa6pqHSci/WN7AbZ7ixJK/mB XWdAo7+wVmJEt59Wmd6ReJMmab8QBYUVrhs1w=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type:content-transfer-encoding; b=p9SR6HDlX4iMzsgfAa/45EbzgdS7Jg8F9KarbEHJhLtjmU/kA9YZZ6F8h3L98yyuwk hphjm6zvINkGZtbgbU1QjznedvUyNDXAIPQkvmga7bVMnXfEtM2egLkB8nVMDj/HqRGi Ud+0mguBNiT9PmeB11cquNtZyNvbkVJivtCk8=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
Hi all,
(esp. Nirav, René and Chelsea)
I am interested in getting involved in the pygame camera module, since
I use it for my stop motion software ToonLoop I am developing with
Tristan Matthews. See http://toonloop.com : and yes, I think ToonLoop
is a great free software to test the pygame.camera module with, if you
don't installing Twisted. Creating a cross-platform application is my
main concern, and I feel like there is a lack of cross-platform C
libraries for having a live camera input. Anyways, Python is the way
to go for such a high-level software like mine. I am not so much of an
expert in C, but I can help with the software architecture.
Mac : So, the Mac version uses the OpenCV wrapper for now ? I have
read on Nirav's blog that py-objective-C wasn't well maintained enough
? Does that mean we will stick with the OpenCV camera wrapper this
summer, Chelsea ? Are there build/install instructions for Mac ? It
seems like the camera API is slightly different between Mac and
GNU/Linux. At the end of this email, I provide two code snippets which
illustrates those differences. It's when we initiate the camera, and
when copying a surface from it to a list of surfaces.
Linux : On GNU/Linux, I am having success with v4l2 inputs. What is
the state of the v4l ones ? Has it been reported to work for some
users ? Any plan to support raw1394 cameras ? (libdc1394) When is it
planned to release a .deb with pygame containing the camera module ?
What is the state of your computer vision tools for Pygame, Nirav ?
Windows : What is the state of the camera module on Windows ? The
vidcap module was reported to be working, (Feb 2009) but will it be
officially part of pygame, or should it be using an other tool/driver
?
Any chances I can make py2app and py2exe applications with
pygame.camera support before the end of the summer ?
Thank you !!
----------------------------------------------------------------------
Differences between the pygame.camera in Mac v/s GNU/Linux
----------------------------------------------------------------------
############### Initiating the camera ##################
video_device_num = 0
size = (320, 240)
if self.IS_MAC:
print "Using camera %s" % (video_device_num)
self.camera = pygame.camera.Camera(video_device_num, size)
else:
print "Using camera /dev/video%d" % (video_device_num)
self.camera = pygame.camera.Camera("/dev/video%d" %
(video_device_num), size)
############### Grabbing an image ###################
if self.IS_MAC:
self.shot.images.append(self.most_recent_image.copy())
else:
self.shot.images.append(self.most_recent_image)
--
Alexandre Quessy
http://alexandre.quessy.net/