44 #ifndef OPENCV_OBJDETECT_DBT_HPP
45 #define OPENCV_OBJDETECT_DBT_HPP
47 #include <opencv2/core.hpp>
73 maxObjSize(INT_MAX, INT_MAX),
106 return minNeighbours;
110 minNeighbours =
value;
151 :id(_id), location(_location), status(_status)
161 class SeparateDetectionWork;
Definition: detection_based_tracker.hpp:69
void setMinObjectSize(const cv::Size &min)
Definition: detection_based_tracker.hpp:80
float scaleFactor
Definition: detection_based_tracker.hpp:118
cv::Size getMinObjectSize() const
Definition: detection_based_tracker.hpp:88
cv::Size maxObjSize
Definition: detection_based_tracker.hpp:116
IDetector()
Definition: detection_based_tracker.hpp:71
int minNeighbours
Definition: detection_based_tracker.hpp:117
void setScaleFactor(float value)
Definition: detection_based_tracker.hpp:100
int getMinNeighbours()
Definition: detection_based_tracker.hpp:104
virtual ~IDetector()
Definition: detection_based_tracker.hpp:112
void setMinNeighbours(int value)
Definition: detection_based_tracker.hpp:108
cv::Size getMaxObjectSize() const
Definition: detection_based_tracker.hpp:92
void setMaxObjectSize(const cv::Size &max)
Definition: detection_based_tracker.hpp:84
virtual void detect(const cv::Mat &image, std::vector< cv::Rect > &objects)=0
float getScaleFactor()
Definition: detection_based_tracker.hpp:96
cv::Size minObjSize
Definition: detection_based_tracker.hpp:115
Definition: detection_based_tracker.hpp:58
virtual void process(const cv::Mat &imageGray)
virtual void getObjects(std::vector< cv::Rect > &result) const
cv::Ptr< IDetector > cascadeForTracking
Definition: detection_based_tracker.hpp:210
cv::Rect calcTrackedObjectPositionToShow(int i) const
cv::Rect calcTrackedObjectPositionToShow(int i, ObjectStatus &status) const
const Parameters & getParameters() const
virtual ~DetectionBasedTracker()
void detectInRegion(const cv::Mat &img, const cv::Rect &r, std::vector< cv::Rect > &detectedObjectsInRegions)
void updateTrackedObjects(const std::vector< cv::Rect > &detectedObjects)
virtual int addObject(const cv::Rect &location)
bool setParameters(const Parameters ¶ms)
DetectionBasedTracker(cv::Ptr< IDetector > mainDetector, cv::Ptr< IDetector > trackingDetector, const Parameters ¶ms)
cv::Ptr< SeparateDetectionWork > separateDetectionWork
Definition: detection_based_tracker.hpp:161
virtual void getObjects(std::vector< Object > &result) const
virtual void resetTracking()
friend void * workcycleObjectDetectorFunction(void *p)
std::vector< float > weightsPositionsSmoothing
Definition: detection_based_tracker.hpp:207
std::pair< cv::Rect, int > Object
Definition: detection_based_tracker.hpp:134
std::vector< float > weightsSizesSmoothing
Definition: detection_based_tracker.hpp:208
ObjectStatus
Definition: detection_based_tracker.hpp:139
@ DETECTED_TEMPORARY_LOST
Definition: detection_based_tracker.hpp:142
@ DETECTED
Definition: detection_based_tracker.hpp:141
@ DETECTED_NOT_SHOWN_YET
Definition: detection_based_tracker.hpp:140
InnerParameters innerParameters
Definition: detection_based_tracker.hpp:179
int numTrackedSteps
Definition: detection_based_tracker.hpp:204
std::vector< TrackedObject > trackedObjects
Definition: detection_based_tracker.hpp:205
virtual void getObjects(std::vector< ExtObject > &result) const
Parameters parameters
Definition: detection_based_tracker.hpp:178
n-dimensional dense array class
Definition: mat.hpp:812
Template class for 2D rectangles.
Definition: types.hpp:444
Template class for specifying the size of an image or rectangle.
Definition: types.hpp:335
int CvScalar value
Definition: core_c.h:720
CvRect rect
Definition: core_c.h:193
const CvArr const CvArr CvArr * result
Definition: core_c.h:1423
softfloat max(const softfloat &a, const softfloat &b)
Definition: softfloat.hpp:440
softfloat min(const softfloat &a, const softfloat &b)
Min and Max functions.
Definition: softfloat.hpp:437
#define CV_EXPORTS
Definition: cvdef.h:435
CvRect r
Definition: imgproc_c.h:984
"black box" representation of the file storage associated with a file on disk.
Definition: calib3d.hpp:441
Definition: detection_based_tracker.hpp:146
ObjectStatus status
Definition: detection_based_tracker.hpp:149
cv::Rect location
Definition: detection_based_tracker.hpp:148
int id
Definition: detection_based_tracker.hpp:147
ExtObject(int _id, cv::Rect _location, ObjectStatus _status)
Definition: detection_based_tracker.hpp:150
Definition: detection_based_tracker.hpp:166
int numStepsToShowWithoutDetecting
Definition: detection_based_tracker.hpp:170
int numLastPositionsToTrack
Definition: detection_based_tracker.hpp:167
float coeffObjectSpeedUsingInPrediction
Definition: detection_based_tracker.hpp:174
int numStepsToWaitBeforeFirstShow
Definition: detection_based_tracker.hpp:168
float coeffObjectSizeToTrack
Definition: detection_based_tracker.hpp:173
float coeffTrackingWindowSize
Definition: detection_based_tracker.hpp:172
int numStepsToTrackWithoutDetectingIfObjectHasNotBeenShown
Definition: detection_based_tracker.hpp:169
Definition: detection_based_tracker.hpp:61
int maxTrackLifetime
Definition: detection_based_tracker.hpp:62
int minDetectionPeriod
Definition: detection_based_tracker.hpp:63
Definition: detection_based_tracker.hpp:182
static int getNextId()
Definition: detection_based_tracker.hpp:197
int numFramesNotDetected
Definition: detection_based_tracker.hpp:188
PositionsVector lastPositions
Definition: detection_based_tracker.hpp:185
TrackedObject(const cv::Rect &rect)
Definition: detection_based_tracker.hpp:191
int numDetectedFrames
Definition: detection_based_tracker.hpp:187
std::vector< cv::Rect > PositionsVector
Definition: detection_based_tracker.hpp:183
int id
Definition: detection_based_tracker.hpp:189
Definition: cvstd_wrapper.hpp:74