Ask Your Question

Revision history [back]

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);
    }

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); }

}

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);
}

}