Added "--tcp_threads" argument for multi-threaded detections (on multiple ports)

This commit is contained in:
matlabbe
2015-11-30 00:27:57 -05:00
parent 164da72169
commit cff1d4eac7
12 changed files with 304 additions and 90 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ public:
void removeObject(int id);
void removeAllObjects();
bool detect(const cv::Mat & image, find_object::DetectionInfo & info);
bool detect(const cv::Mat & image, find_object::DetectionInfo & info) const;
void updateDetectorExtractor();
void updateObjects(const QList<int> & ids = QList<int>());
+4 -2
View File
@@ -45,8 +45,9 @@ class FINDOBJECT_EXP TcpServer : public QTcpServer
public:
enum Service {
kAddObject, // id fileName imageSize image
kRemoveObject // id
kAddObject, // id fileName imageSize image
kRemoveObject, // id
kDetectObject // image
};
public:
@@ -67,6 +68,7 @@ private Q_SLOTS:
Q_SIGNALS:
void addObject(const cv::Mat &, int, const QString &);
void removeObject(int);
void detectObject(const cv::Mat &);
private:
QMap<int, quint64> blockSizes_;