42
#ifndef OPENCV_TRACKING_LEGACY_HPP
43
#define OPENCV_TRACKING_LEGACY_HPP
55
#include "tracking_internals.hpp"
60
inline
namespace
tracking {
62
using namespace
cv::detail::tracking;
84
CV_WRAP
bool
init( InputArray image,
const
Rect2d& boundingBox );
95
CV_WRAP
bool
update( InputArray image, CV_OUT
Rect2d& boundingBox );
102
virtual
bool
initImpl(
const
Mat& image,
const
Rect2d& boundingBox ) = 0;
103
virtual
bool
updateImpl(
const
Mat& image,
Rect2d& boundingBox ) = 0;
277
virtual
void
setFeatureExtractor(
void(*)(
const
Mat,
const
Rect,
Mat&),
bool
pca_func =
false) = 0;
305
class CV_EXPORTS_W TrackerGOTURN : public cv::legacy::Tracker
308
struct
CV_EXPORTS Params
380
bool
add(std::vector<
Ptr<legacy::
Tracker> > newTrackers, InputArray image, std::vector<
Rect2d> boundingBox);
387
bool
update(InputArray image);
394
CV_WRAP
bool
update(InputArray image, CV_OUT std::vector<
Rect2d> & boundingBox);
399
CV_WRAP const std::vector<
Rect2d>& getObjects() const;
411
std::vector<
Rect2d> objects;
523
CV_WRAP
virtual
void
setInitialMask(InputArray mask) = 0;
This is a base class for all more or less complex algorithms in OpenCV
Definition:
core.hpp:3091
File Storage Node class.
Definition:
persistence.hpp:482
XML/YAML/JSON file storage class that encapsulates all the information necessary for writing or readi...
Definition:
persistence.hpp:304
n-dimensional dense array class
Definition:
mat.hpp:802
Template class for 2D rectangles
Definition:
core/types.hpp:421
Template class for specifying the size of an image or rectangle.
Definition:
core/types.hpp:316
The class defining termination criteria for iterative algorithms.
Definition:
core/types.hpp:853
the GOTURN (Generic Object Tracking Using Regression Networks) tracker
Definition:
video/tracking.hpp:798
Base abstract class for the long-term Multi Object Trackers:
Definition:
tracking_legacy.hpp:421
std::vector< Scalar > colors
List of randomly generated colors for bounding boxes display
Definition:
tracking_legacy.hpp:461
int targetNum
Current number of targets in tracking-list
Definition:
tracking_legacy.hpp:450
MultiTracker_Alt()
Constructor for Multitracker
Definition:
tracking_legacy.hpp:425
bool addTarget(InputArray image, const Rect2d &boundingBox, Ptr< legacy::Tracker > tracker_algorithm)
Add a new target to a tracking-list and initialize the tracker with a known bounding box that surroun...
std::vector< Ptr< Tracker > > trackers
Trackers list for Multi-Object-Tracker
Definition:
tracking_legacy.hpp:454
std::vector< Rect2d > boundingBoxes
Bounding Boxes list for Multi-Object-Tracker
Definition:
tracking_legacy.hpp:458
bool update(InputArray image)
Update all trackers from the tracking-list, find a new most likely bounding boxes for the targets
This class is used to track multiple objects using the specified tracker algorithm.
Definition:
tracking_legacy.hpp:352
~MultiTracker() CV_OVERRIDE
Destructor
Multi Object Tracker for TLD.
Definition:
tracking_legacy.hpp:480
bool update_opt(InputArray image)
Update all trackers from the tracking-list, find a new most likely bounding boxes for the targets by ...
the Boosting tracker
Definition:
tracking_legacy.hpp:149
static Ptr< legacy::TrackerBoosting > create(const TrackerBoosting::Params ¶meters)
Constructor
the CSRT tracker
Definition:
tracking_legacy.hpp:501
static Ptr< legacy::TrackerCSRT > create(const TrackerCSRT::Params ¶meters)
Constructor
Base abstract class for the long-term tracker:
Definition:
tracking_legacy.hpp:73
virtual void read(const FileNode &fn) CV_OVERRIDE=0
Reads algorithm parameters from a file storage
virtual void write(FileStorage &fs) const CV_OVERRIDE=0
Stores algorithm parameters in a file storage
the KCF (Kernelized Correlation Filter) tracker
Definition:
tracking_legacy.hpp:261
enum cv::tracking::TrackerKCF::MODE MODE
Feature type to be used in the tracking grayscale, colornames, compressed color-names The modes avail...
Definition:
tracking_legacy.hpp:269
static Ptr< legacy::TrackerKCF > create(const TrackerKCF::Params ¶meters)
Constructor
The MIL algorithm trains a classifier in an online manner to separate the object from the background.
Definition:
tracking_legacy.hpp:124
static Ptr< legacy::TrackerMIL > create(const TrackerMIL::Params ¶meters)
Constructor
the MOSSE (Minimum Output Sum of Squared Error) tracker
Definition:
tracking_legacy.hpp:335
the TLD (Tracking, learning and detection) tracker
Definition:
tracking_legacy.hpp:233
static Ptr< legacy::TrackerTLD > create(const TrackerTLD::Params ¶meters)
Constructor
MODE
Feature type to be used in the tracking grayscale, colornames, compressed color-names The modes avail...
Definition:
tracking.hpp:111
CV_EXPORTS_W void add(InputArray src1, InputArray src2, OutputArray dst, InputArray mask=noArray(), int dtype=-1)
Calculates the per-element sum of two arrays or an array and a scalar.
"black box" representation of the file storage associated with a file on disk.
Definition:
aruco.hpp:75
Definition:
cvstd_wrapper.hpp:74
Definition:
video/tracking.hpp:805
Definition:
video/tracking.hpp:758
Definition:
tracking_legacy.hpp:152
int featureSetNumFeatures
Definition:
tracking_legacy.hpp:158
void write(FileStorage &fs) const
Write parameters to a file
int iterationInit
the initial iterations
Definition:
tracking_legacy.hpp:157
float samplerOverlap
search region parameters to use in a OnlineBoosting algorithm
Definition:
tracking_legacy.hpp:155
float samplerSearchFactor
search region parameters to use in a OnlineBoosting algorithm
Definition:
tracking_legacy.hpp:156
int numClassifiers
the number of classifiers to use in a OnlineBoosting algorithm
Definition:
tracking_legacy.hpp:154
void read(const FileNode &fn)
Read parameters from a file
Definition:
tracking_legacy.hpp:504
void write(cv::FileStorage &fs) const
Write parameters to a file
void read(const FileNode &)
Read parameters from a file
Definition:
tracking_legacy.hpp:272
Definition:
tracking_legacy.hpp:127
Definition:
tracking_legacy.hpp:236
Definition:
tracking.hpp:42
Definition:
tracking.hpp:118