Re: using libcheese with python



On Tue, 2011-06-21 at 21:43 -0500, James Middendorff wrote:
> Hello,
> I was wanting to write a python app, using a webcam to take a picture
> of you, and insert it into a company-id card..but cannot find any
> documentation on how to use libcheese with python? Is there a wrapper
> or how would I use it? 
> Thanks

Hi James,

Libcheese has GObject introspection annotation, so you can use it with
python, but I don't think anyone used it with python yet. There is some
documentation for libcheese-gtk, which has cheese-avatar-chooser and
cheese-widget that might help you:
http://developer.gnome.org/cheese/unstable/. I just saw the reference is
kind of broken, sorry about that! But doing basic stuff with libcheese
is very simple and mapping what you read from C documentation to what
you should use in python too. You can read this blog post I made about
libcheese, basically cheese-camera (in C) too:
http://blog.fujii.eti.br/?p=70.

There is one application that uses libcheese with another language,
using gobject introspection: The Board -
http://live.gnome.org/TheBoardProject. You can check The Board code that
uses libcheese as an example for your project.

There might be some bugs in the lib or the annotation, so if you find
any problems let us know.

Cheers,

Luciana Fujii



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]