Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New hand do not know how to use it #12

Open
541380000 opened this issue Apr 2, 2018 · 3 comments
Open

New hand do not know how to use it #12

541380000 opened this issue Apr 2, 2018 · 3 comments

Comments

@541380000
Copy link

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?

@orgicus
Copy link
Owner

orgicus commented Apr 2, 2018

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 ?)

@541380000
Copy link
Author

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.

@orgicus
Copy link
Owner

orgicus commented Apr 4, 2018

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants