greenhouse/imagesTcpServer/ImagesTcpServer.h
matlabbe 81c3bcb71c added Camera_queueSize for TCP images buffering
ImagesTcpServer can read from a path of images


git-svn-id: http://find-object.googlecode.com/svn/trunk/find_object@354 620bd6b2-0a58-f614-fd9a-1bd335dccda9
2014-07-25 19:31:34 +00:00

34 lines
530 B
C++

/*
* ImagesTcpServer.h
*
* Created on: 2014-05-21
* Author: mathieu
*/
#ifndef TCPCLIENT_H_
#define TCPCLIENT_H_
#include "Camera.h"
#include <QtNetwork/QTcpServer>
class ImagesTcpServer : public QTcpServer
{
Q_OBJECT
public:
ImagesTcpServer(float hz = 10.0f, const QString & path = "", QObject * parent = 0);
QHostAddress getHostAddress() const;
quint16 getPort() const;
private Q_SLOTS:
void addClient();
void publishImage(const cv::Mat & image);
private:
Camera camera_;
};
#endif /* TCPCLIENT_H_ */