You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
1.3 KiB
C++
66 lines
1.3 KiB
C++
#ifndef MAINWINDOW_H
|
|
#define MAINWINDOW_H
|
|
|
|
#include <QMainWindow>
|
|
#include "univideo.h"
|
|
#include <QTimer>
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
namespace Ui { class MainWindow; }
|
|
QT_END_NAMESPACE
|
|
|
|
class MainWindow : public QMainWindow
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
MainWindow(QWidget *parent = nullptr);
|
|
~MainWindow();
|
|
void SetImageCaptureSignal(QString ImageInfo, int PicNo);
|
|
void SetImageData(int ImageFormat, int Width, int Height, uchar *pImageData);
|
|
private slots:
|
|
|
|
void on_btnInit_clicked();
|
|
|
|
void on_btnStart_clicked();
|
|
|
|
void on_btnCapture_clicked();
|
|
|
|
void on_btnGetCapture_clicked();
|
|
|
|
void on_btnGetLibImage_clicked();
|
|
|
|
void on_btnSetBright_clicked();
|
|
|
|
void on_btnSetContrast_clicked();
|
|
|
|
void on_btnAddChar_clicked();
|
|
|
|
void on_btnClearChar_clicked();
|
|
|
|
void on_btnSetTime_clicked();
|
|
|
|
void on_btnStop_clicked();
|
|
|
|
void on_btnUnInit_clicked();
|
|
|
|
void on_btnOpen_clicked();
|
|
|
|
void on_btnIsPressent_clicked();
|
|
|
|
void on_btnClose_clicked();
|
|
|
|
void ImageCaptured(QString ImageInfo, int PicNo);
|
|
void on_pushButton_clicked();
|
|
void timerUpdate();
|
|
signals:
|
|
void ImageCapturSignal(QString ImageInfo, int PicNo);
|
|
private:
|
|
Ui::MainWindow *ui;
|
|
QTimer *timer;
|
|
|
|
HANDLE hVideo;
|
|
void ShowInfo(QString info);
|
|
};
|
|
#endif // MAINWINDOW_H
|