123456789101112131415161718192021222324252627282930313233343536 |
- #ifndef ETCAMERATEST_H
- #define ETCAMERATEST_H
- #include <QWidget>
- #include <opencv2/opencv.hpp>
- #include <QTimer>
- namespace Ui {
- class etCameraTest;
- }
- class etCameraTest : public QWidget
- {
- Q_OBJECT
- public:
- explicit etCameraTest(QWidget *parent = nullptr);
- ~etCameraTest();
- int setUI(const int nLeft, const int nTop, const int nWidth);
- int widgetHeight();
- int getCheckStatus();//0:false 1:true 2:未检测
- private slots:
- void on_btn_IsSelf_clicked();
- void on_btn_IsNotSelf_clicked();
- private:
- Ui::etCameraTest *ui;
- std::shared_ptr<QTimer> m_pVideoTimer;
- std::shared_ptr<QTimer> m_pinitTimer;
- cv::VideoCapture m_cam;
- int m_nCameraOpenStatus;
- };
- #endif // ETCAMERATEST_H
|