1 | initial version |
Hi, I'm not sure but may be you want to something like this:
Mat frame[5];
double x[5];
for(;true;)
{
for (int nb=0;nb<5;)
{
if (captureVideo->retrieve(frame[nb])) // get a new frame from camera
{
x[nb]= MyFunction(frame[nb]);
nb++;
//
}
}
MyFunction5Results(x);
}
2 | No.2 Revision |
Hi, I'm not sure but may be you want to something like this:
VideoCapture *captureVideo=new VideoCapture(0);
Mat frame[5]; double x[5]; for(;true;) { for (int nb=0;nb<5;) { if (captureVideo->retrieve(frame[nb])) // get a new frame from camera { x[nb]= MyFunction(frame[nb]); nb++; // } } MyFunction5Results(x);3 | No.3 Revision |
Hi, I'm not sure but may be you want to something like this:
VideoCapture *captureVideo=new VideoCapture(0);
Mat frame[5];
double x[5];
for(;true;)
{
for (int nb=0;nb<5;)
{
if (captureVideo->retrieve(frame[nb])) // get a new frame from camera
{
x[nb]= MyFunction(frame[nb]);
nb++;
//
}
}
MyFunction5Results(x);