Add Image Manager Code
This commit is contained in:
@@ -2,15 +2,26 @@
|
||||
#define IMAGE_MANAGER_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QUdpSocket>
|
||||
#include <opencv2/core.hpp>
|
||||
|
||||
#define THROTTLE_AMOUNT 1
|
||||
|
||||
class ImageManager: public QObject
|
||||
{
|
||||
Q_OBJECT;
|
||||
|
||||
public:
|
||||
|
||||
ImageManager(QObject *parent);
|
||||
virtual ~ImageManager();
|
||||
|
||||
void ProcessImage(uint32_t width, uint32_t height, uint8_t *imgPointer);
|
||||
void SendImage(cv::Mat image);
|
||||
|
||||
QUdpSocket *socket;
|
||||
|
||||
private:
|
||||
int throttle_count = 1;
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user