OpenFrameworks

From OLPC
Revision as of 17:09, 17 September 2010 by Tomdiesel (talk | contribs)
Jump to: navigation, search

OpenFrameworks

Accessing the camera via Processing and OpenCV

OpenFrameworks is the C++ equivalent to Processing. Unlike Processing it does not provide its own simplified IDE, but requires an installation of either XCode on Mac OS, Visual Studio or Code::Blocks on Windows, or Code::Blocks on Linux. XCode and Visual Studio have a rather steep learning curve for beginners. Code::Blocks is just a little more light weight, but still far away from being an IDE especially designed for teaching purposes. Definitely, none of them is suitable to teach children. The XO-HS might be a target for OpenFrameworks though. Installing OpenFrameworks is more complex than installing Processing. It does not interact with all of the XO’s hardware features out of the box. Figure 10 shows OpenFrameworks and Code::Blocks on the XO-1.5: After the successful installation Code::Blocks can be found in the Applications > Programming menu (7-➊). The animations in the AdvancedGraphicsExample are running slowly(7-➋). OpenCVExample and MoviePlayerExample produce errors while trying to display a movie (7-➌). This seems to be related to the videos’ codec: Message: don’t know how to handle video x-h264. A solution to this problem has not been found yet, the MovieGrabberExample (7-➎) works though. Connecting to the XO’s camera obviously is not the problem. The AudioOutputExample worked (7-➍) but produced ugly clicks and pops. 7-➏ shows one of the event handling examples. Mouse, trackpad and keyboard events are recognized. So are the game keys. The keys to switch the screen’s direction, as well as the additional arrow keys next to it, are not.

Installation

XO-1

Installing OpenFrameworks on the XO-1 has not been successful.<ref group="nb">The complete story can be found here: www.flatlandfarm.de</ref>

XO-1.5

Performance

Notes

<references group="nb" />

References

<references />