Notice: MediaWiki has been updated. Report any rough edges to marcan@marcan.st

GLib Wrapper: Difference between revisions

From OpenKinect
Jump to navigationJump to search
No edit summary
No edit summary
Line 30: Line 30:
It should start a small GTK+ application that shows the basic usage of GFreenect from Python. You can find a screenshot of this application below:
It should start a small GTK+ application that shows the basic usage of GFreenect from Python. You can find a screenshot of this application below:


[[File:GFreenect_testview_example.jpg]]
[[File:GFreenect_testview_example.png]]


[[Category:Wrappers]]
[[Category:Wrappers]]

Revision as of 11:36, 7 March 2012

About

GFreenect is a wrapper for the Freenect library written using Glib in order to control a Kinect device and make it easy to use with [htttp://www.gnome.org GNOME] technologies such as Clutter and GTK+. This essentially means that GFreenect integrates nicely with a GLib main loop, and provides a fully asynchronous API to prevent blocking operations from affecting the applications' main flow (it intends to provide also a synchronous API but it is still work in progress).

Having GObject Introspection, it means it can generate automatic bindings for languages like Python, Javascrip, Vala, etc.

Who is involved

This wrapper was sponsored by Igalia and written by Eduardo Lima Mitev and Joaquim Rocha (User:Jrocha).

Building and Installing

$ git clone git://github.com/elima/GFreenect.git
$ cd GFreenect
$ ./autogen.sh
$ make
# make install

Documentation

Check out the documentation to get started with GFreenect.

Demo

A Python demo application is shipped with GFreenect. To run it, do the following inside the GFreenect folder:

$ cd examples
$ python ./testview.py

It should start a small GTK+ application that shows the basic usage of GFreenect from Python. You can find a screenshot of this application below:

Error creating thumbnail: Unable to save thumbnail to destination