Open 541380000 opened 6 years ago
Have you downloaded and setup OpenFrameworks first ? Have you cloned this repository into the addons folder of your OpenFrameworks install on the Raspberry Pi ? (Additionally, what version of Raspberry PI / OS / OpenFrameworks and Pi Camera module are you using ?)
I am using RaspberryPi 2B and the official camera. I have downloaded the repository and something containing mmal. I know I should compile my own code with cmake and CMakeLists.txt should contains opencv lib and mmal lib, but I do not know how to do it.
If sounds like you haven't setup OpenFrameworks yet, which is what this addon is for. Please check out the Official OpenFrameworks Raspberry Pi Setup Guide for more details.
If you don't require OpenFrameworks for your project and are comfortable with cmake and raw c++ perhaps PiCapture if more useful (as it doesn't rely on OpenFrameworks, just OpenCV)
Bare in mind I haven't tested this code in about 4 years now, so I'm not 100% sure how it will behave on newer versions of Raspbian. Be sure to check out the readme for building details.
If you're familiar with Python it might be worth having a look at the picamera[array] package which might be a bit faster to prototype than in c++. (Not all c++ OpenCV functions are supported in Python, but most of the commonly used ones are)
I have successfully download the code from github.com. However I do not know how to build the code, not to mention how to use it. Can anyone tell me specifically how I can build the code and use it in my OpenCV code?