Files
fault-finder/ImageManager.hpp
2019-11-20 21:50:40 -08:00

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