As you know i'm no expert on programming, but i have tried to chuck myself into this one, books and all.
It appears that Processing and arduino are sister projects which use a similar (almost identical) programming environment which is open source (free to download) and available on mac, win, linux - which is great.
I've been mucking around with this on my mac which has meant a learning curve which only involves the programming and not battling with a s0dding pc.
I tried a couple of different installations of OpenCV, but THIS was the one which worked and is pretty well documented. The above code is based on the examples included with the download, plus a bit of code from Noodle and stuff i've picked up.
In addition and as a separate project for the pan/tilt bit, I've been able to open a serial port from Processing and talk to my Arduino - using a simple programme where dragging the mouse over a window created by processing generates a value which is sent to the arduino, the arduino then moves a servo which is connected to it.
Just wondering whether it would/should be possible to replace the arduino with the p.Brain (via bluetooth) and send PIP commands instead…
