-
Notifications
You must be signed in to change notification settings - Fork 10
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
C::Mat link back to Video Grabber #10
Comments
If :
Then the answer is yes :) Have a look at example-ofxCvPiCamSimple //in update
cv::Mat frame = cam.grab();
if(!frame.empty()){
//pass the frame to ArUco here
} |
Hi, by the same logic, would it be possible to pass an ofxAruco object using ofxCvPiCam. How does one get the pixels from ofxCvPiCam? |
It would be possible, but bare in my mind my basic addon fetches PiCamera data in Hope this helps, |
Thank you, I will give this a try |
Is this the right implementation?
|
@owenplanchart That looks good ! // in your ofApp.h for example
cv::Mat frame;
ofPixels arPixels;
// in your ofApp.cpp:
void ofApp::update(){
frame = cam.grab();
if(!frame.empty()){
toOf(frame, arPixels);
aruco.detectBoards(arPixels);
}
} |
It's really strange because now I'm getting this error when I try to compile:
|
@orgicus Not sure what happened there, so I re-downloaded the addon and wrote the sketch from scratch and managed to get the aruco markers working (yay!). This was on the RP3b (buster) with the Pi cam v2.1. Does this addon work with the pI4? Thanks so much for your work and help on this. |
Im trying to use the C::mat for as a source for a video grabber as I want to detect objects such as ArCuo. Can this be done on the pi using the native camera??
The text was updated successfully, but these errors were encountered: