#ifndef ETCAMERATEST_H #define ETCAMERATEST_H #include #include #include 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 m_pVideoTimer; std::shared_ptr m_pinitTimer; cv::VideoCapture m_cam; int m_nCameraOpenStatus; }; #endif // ETCAMERATEST_H