Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

Instructions for building custom Isadora actors in xcode

Face Tracking

Install OpenCV2.2

Depending on where OpenCV installs we have to edit some parts of the IsadoraPlugin.cp file.

Locate the "cv.h" and "haarcascade_frontalface_default.xml" files on your system and modify lines 21 and 102 of IsadoraPlugin.cp accordingly.

This is how it looks on my system:
Line 21: #include "/opt/local/include/opencv/cv.h"
Line 102: const char* cascade_name = "/opt/local/var/macports/software/opencv/1.0.0_0/opt/local/share/opencv/haarcascades/haarcascade_frontalface_default.xml";

Drag the following libraries into the Xcode project
libopencv_core.2.2.0.dylib
libopencv_video.2.2.0.dylib
libopencv_imgproc.2.2.0.dylib
libopencv_objdetect.2.2.0.dylib

Build for Mac OSX 10.6 with i386 architecture
Note*: May need to modify the .pbxproj file to force Xcode to use 32-bit intel architecture
Delete all the occurrences of "ppc"

Python Interpreter

Add the python framework to the Xcode project (right click under "Groups & Files" and select add existing framework)

I used the /System/Library/Frameworks/Python.frameworks which I believe came standard on these machines and is python 2.6.1

Build for Mac OSX 10.6 with i386 architecture