1

私のエラーは次のとおりです。

エラー: C2228: '.open' の左側には class/struct/union が必要ですが、それを修正する方法がわかりません。

#include "dialog.h"
#include "ui_dialog.h"
#include <QTimer>
#include <stdio.h>
#include <iostream>
#include <opencv2\video\video.hpp>
#include <opencv2\opencv.hpp>
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/flann/miniflann.hpp"

using namespace cv; <i> all the new API is put into "cv" namespace. Export its content</i>
using namespace std;

Dialog::Dialog(QWidget *parent) : QDialog(parent),ui(new Ui::Dialog){
    ui->setupUi(this);
    capture.open("E:\\Six Degree of Separation.avi");
    tmrTimer = new QTimer(this);
    connect(tmrTimer,SIGNAL(timeout()),this,SLOT(ProcessFrameAndUpdateGUI()));
    tmrTimer ->start(20);
}
4

1 に答える 1