mirror of
https://github.com/opencv/opencv.git
synced 2024-11-29 22:00:25 +08:00
restored Parameters() constructor to maintain ABI compatibility. Added CV_EXPORTS to nested class
This commit is contained in:
parent
d0474a9b81
commit
41c47a84fc
@ -59,16 +59,12 @@ namespace cv
|
||||
class CV_EXPORTS DetectionBasedTracker
|
||||
{
|
||||
public:
|
||||
struct Parameters
|
||||
struct CV_EXPORTS Parameters
|
||||
{
|
||||
int maxTrackLifetime;
|
||||
int minDetectionPeriod; //the minimal time between run of the big object detector (on the whole frame) in ms (1000 mean 1 sec), default=0
|
||||
|
||||
Parameters()
|
||||
{
|
||||
maxTrackLifetime=5;
|
||||
minDetectionPeriod=0;
|
||||
}
|
||||
Parameters();
|
||||
};
|
||||
|
||||
class IDetector
|
||||
|
@ -578,6 +578,12 @@ bool cv::DetectionBasedTracker::SeparateDetectionWork::communicateWithDetectingT
|
||||
return shouldHandleResult;
|
||||
}
|
||||
|
||||
cv::DetectionBasedTracker::Parameters::Parameters()
|
||||
{
|
||||
maxTrackLifetime = 5;
|
||||
minDetectionPeriod = 0;
|
||||
}
|
||||
|
||||
cv::DetectionBasedTracker::InnerParameters::InnerParameters()
|
||||
{
|
||||
numLastPositionsToTrack=4;
|
||||
|
Loading…
Reference in New Issue
Block a user