Exemplo n.º 1
0
int main(int argc, char **argv)
{
   initializeCameraStream();
   for (int i = 0; i < 100; ++i)
   {
      runCamera();
   }
   cleanupCamera();
}
Exemplo n.º 2
0
void MainWindow::on_Webcam_source_radioButton_clicked()
{
    capWebcam.release();
    capWebcam.open(0);
    if(capWebcam.isOpened() == false)
    {
        ui->Total_time_spent->appendPlainText("error: Webcam not accessed succesfully");
        return;
    }
    tmrTimer = new QTimer(this);
    connect(tmrTimer, SIGNAL(timeout()),this,SLOT(runCamera()));
    tmrTimer->start(100);
    qDebug() << "opened webcam source";
}