Realtime object tracking for openFrameworks using the opencv_contrib tracking module, with a webcam example; built for macOS arm64 and OF 0.11.2.
Forks
Forks pushed to more recently than TetsuakiBaba/ofxOpenCvTracker itself, plus any admin-confirmed fork with commits of its own — worth checking if you're hitting issues with the original.
README
ofxOpenCvTracker
<img src="sample_images/sample.gif" width="100%">
Description
ofxOpenCvTracker is a realtime object tracking addon for openframeworks.Tracker sample is included opencv_contrib. I built opencv with contrib library and made it easier to use on Openframeworks. Here is a link to learn opencv tracking module. https://www.learnopencv.com/object-tracking-using-opencv-cpp-python/
Usage
See Examples for more detailscamera example
Realtime tracking example on webcam video image by mouse operation.Install
1. Clone ofxOpenCvTracker to your of/addon directory
$ git clone https://github.com/TetsuakiBaba/ofxOpenCvTracker.git2. Download OpenCV.framework to ofxOpenCvTracker/libs directory.
$ curl -O https://tetsuakibaba.jp/tmp/opencv2.framework.arm64.zip $ unzip opencv2.framework.arm64.zip Or you may build your own opencv2.framework from opencv source. ( https://tetsuakibaba.jp/ws/doku.php?id=opencv_dnn:opencv2.framework )Getting Started with Examples/camera
1. Update camera with the projectGenerator.
2. Run, nothing special.
Compatibility
- macOS(arm64)
- of version: 0.11.2
Licence
- Source Code: MIT
- Video by Coverr from Pexels (https://www.pexels.com/video/black-and-white-video-of-people-853889/)
ofxAddons