O'Reilly logo

Mastering openFrameworks: Creative Coding Demystified by Denis Perevalov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using ofxOpenCv

The most straightforward way to use the ofxOpenCv addon in your project is to start a new project based on the example of the ofxOpenCv usage. To do so, copy the examples/addons/opencvExample folder to the folder with your projects (for example, apps/myApps) and rename it (for example, to myCompVision).

The second way is to generate a new project using the Project Generator wizard included in openFrameworks. It lets you select which addons to link to the project and then creates a new empty project that includes the required addons. In our case, you need to include ofxOpenCv. See Appendix A, Working with Addons, for more details.

When the project has been copied or generated, you need to include the addon's header into your testApp.h ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required