greenhouse/tools/tcpImagesServer/ImagesTcpServer.h
matlabbe 6a0136cc16 Added JSON optional output when in console mode (see --json option)
Added --scene option to process a single scene file
Moved some apps in tools subfolder


git-svn-id: http://find-object.googlecode.com/svn/trunk/find_object@362 620bd6b2-0a58-f614-fd9a-1bd335dccda9
2014-08-01 21:11:26 +00:00

34 lines
542 B
C++

/*
* ImagesTcpServer.h
*
* Created on: 2014-05-21
* Author: mathieu
*/
#ifndef TCPCLIENT_H_
#define TCPCLIENT_H_
#include "find_object/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_ */