mainwindow.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #ifndef MAINWINDOW_H
  2. #define MAINWINDOW_H
  3. #include <QMainWindow>
  4. namespace Ui {
  5. class MainWindow;
  6. }
  7. class QCameraInfo;
  8. class QThread;
  9. class GrabFrameThread;
  10. class MainWindow : public QMainWindow
  11. {
  12. Q_OBJECT
  13. public:
  14. explicit MainWindow(QWidget *parent = 0);
  15. ~MainWindow();
  16. protected:
  17. void closeEvent(QCloseEvent *event) override;
  18. private slots:
  19. void on_action_FindCamera_triggered();
  20. void on_action_OpenCamera_triggered();
  21. void refreshFrame(const QImage &image);
  22. void on_pushButton_SetResolution_clicked();
  23. void on_pushButton_SetParam_clicked();
  24. void on_pushButton_StartDetec_clicked();
  25. void on_pushButton_EndDetec_clicked();
  26. void on_checkBox_fp16_clicked();
  27. void on_checkBox_int8_clicked();
  28. private:
  29. void initParm();
  30. private:
  31. Ui::MainWindow *ui;
  32. QList<QCameraInfo> m_cameraList;
  33. QThread *m_thread;
  34. GrabFrameThread *m_grabFrameThread;
  35. QTimer *m_timerShowFrame;
  36. };
  37. #endif // MAINWINDOW_H