init
This commit is contained in:
38
device/camera/readcameraimagethread.h
Normal file
38
device/camera/readcameraimagethread.h
Normal file
@@ -0,0 +1,38 @@
|
||||
#ifndef READCAMERAIMAGETHREAD_H
|
||||
#define READCAMERAIMAGETHREAD_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QThread>
|
||||
#include <QImage>
|
||||
#include <QDebug>
|
||||
#include "cmvcamera.h"
|
||||
|
||||
class ReadCameraImageThread:public QThread
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit ReadCameraImageThread(QObject *parent = nullptr);
|
||||
~ReadCameraImageThread();
|
||||
|
||||
void run();
|
||||
void getCameraPtr(CMvCamera *camera);
|
||||
void getImagePtr(cv::Mat *image);
|
||||
void setEnableCrossHairLine(bool value = true);
|
||||
|
||||
|
||||
signals:
|
||||
void messageSGL();
|
||||
void messageImageSGL(QImage myImage);
|
||||
private:
|
||||
void drawCrossHairLine(Scalar lineColor = Scalar(255,0,0),int lineWidth = 2);
|
||||
|
||||
private:
|
||||
CMvCamera *cameraPtr = nullptr;
|
||||
cv::Mat *imagePtr = nullptr;
|
||||
QImage *myImage = nullptr;
|
||||
bool isEnableCrossHairLine{true};
|
||||
|
||||
};
|
||||
|
||||
#endif // RAADCAMRAIMAGETHREAD_H
|
||||
Reference in New Issue
Block a user