#ifndef ImageManager_H #define ImageManager_H #include #include #include "FaultManager.hpp" #define THROTTLE_AMOUNT 1 class ImageManager { public: bool ProcessImage(uint32_t width, uint32_t height, uint8_t *imgPointer, FaultManager fault_mgr, bool test); void SendImage(cv::Mat image); QUdpSocket *socket; ImageManager() { socket = new QUdpSocket(); socket->connectToHost(QHostAddress::LocalHost, 40000, QIODevice::ReadWrite); } private: int throttle_count = 1; }; #endif