MultiTracker
This class is used to track multiple objects using the specified tracker algorithm.
The %MultiTracker is naive implementation of multiple object tracking. It process the tracked objects independently without any optimization accross the tracked objects.
Member of Tracking
-
Constructor.
Declaration
Objective-C
- (nonnull instancetype)init;
Swift
init()
-
Returns a pointer to a new instance of MultiTracker
Declaration
Objective-C
+ (nonnull MultiTracker *)create;
Swift
class func create() -> MultiTracker
-
Update the current tracking status.
Declaration
Objective-C
- (BOOL)update:(nonnull Mat *)image boundingBox:(nonnull NSMutableArray<Rect2d *> *)boundingBox;
Swift
func update(image: Mat, boundingBox: NSMutableArray) -> Bool
Parameters
image
input image
boundingBox
the tracking result, represent a list of ROIs of the tracked objects.