28 lines
451 B
C++
28 lines
451 B
C++
#ifndef IMAGE_MANAGER_H
|
|
#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(int width, int height, uint8_t *imgPointer);
|
|
void SendImage(cv::Mat image);
|
|
|
|
QUdpSocket *socket;
|
|
|
|
private:
|
|
int throttle_count = 1;
|
|
|
|
};
|
|
|
|
#endif |