Added "--tcp_threads" argument for multi-threaded detections (on multiple ports)
This commit is contained in:
@@ -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>());
|
||||
|
||||
@@ -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_;
|
||||
|
||||
Reference in New Issue
Block a user