antima55 | adventures in reality

CAT | openframeworks

Code:blocks is a free IDE (integrated development environment) for developing code in for example C++ which is the way you program openframeworks. (openmframeworks is really just a set of tools that simplify the way you program c++)

first go to openframeworks.cc
there look up their setup guides,
from their they tell you to download code:blocks if you wish to use that particular IDE. when you head over to code:blocks you get the option of downloading with or without MinGW.
ALWAYS choose with MinGW as it is needed for openframeworks to work.

when you have downloaded the code:blocks install and installed it do as following:

By default codeblocks thinks its (here meant MinGW)installed in c:\minGW.
So a step should be added for new codeblocks installs (without mingw or devcpp already installed).
Go to settings > compiler & debugger settings > global compiler settings > toolchain executables
Then click auto-detect. It should set this to:
“c:\Program Files\CodeBlocks\MingW”
-thanks goes to chrisoshea in this forumthread

following the guide on setup you learn that you need to install the
additions for codeblocks to work with OF
which is done by downloading the zip file and extracting it. then take the insides of the “blablabla include” folder and copy it to the corresponding folder inside your MinGW folder inside your code:blocks folder
do the same with the folder “blablabla lib” from the additions folder to the corresponding lib folder in your MinGW folder.

now download the newest release for code:blocks in the download section and with code:blocks open one of the example files in the apps folder of you latest download. press the compile and run

and you should get a working example, for escape press esc :-)

No tags

diedaga made a nice post on the openframeworks forums about an installation he made that shifts faces out with eachother based on a camera input.
here is a video:

and a description:

During interactivos? workshop in MedialabMadrid we made a system that track the faces and interchange them.
It uses an extension of OpenCV for face tracking. So you have to install the normal OpenCV addons and copy our libs because they have some modifications. The normal (OpenCV addons that you can download in this web can’t track faces)
I put the source code in this link
http://www.lalalab.org/of/src.rar –for the project (compiled with Visual C++ 2005)
http://www.lalalab.org/of/computervision.rar –for the OpenCV addons
and here is a picture of the system working
http://www.lalalab.org/of/image.jpg
as you will see the code is a bit dirty sorry for that but I didn’t have the time to clean it.
I hope you can enjoy it
Diego diaz
www.lalalab.org

No tags