ofxCV or ofxOpenCV and CAMSHIFT?

Hello all,

I’m looking for an example of the CamShift algorithm implemented in ofx, using the ofxCV and/or ofxOpenCv addons. I saw this very old post but the linked zip file is missing.

Can anyone point me to a CamShift implementation somewhere?


I discovered this very old camshift ofx implementation by Martin Babbels.

I spent some time and made it mostly compatible with ofx 0.9.8. It seems to be mostly working, but i get a crash deep inside ofx’s ofPixels.cpp that has something to do with the “cropTo” method; it’s changed a lot in the last 5 years :slight_smile:

You need this updated ofxAddOn camshift:
ofxCamShiftTest02.zip (54.9 KB)

And you need this ofx app in your …/apps/myApps folder:
ofxCamshift.zip (11.5 KB)

If anyone is interested, give it a go and let me know if you see a fix.



1 Like