Fix char*->String in create method

pull/341/head
Vladimir 10 years ago
parent 90ed661306
commit 18799fe33e
  1. 2
      modules/tracking/include/opencv2/tracking/tracker.hpp
  2. 2
      modules/tracking/src/multiTracker.cpp

@ -1273,7 +1273,7 @@ public:
@return True if new target initialization went succesfully, false otherwise @return True if new target initialization went succesfully, false otherwise
*/ */
bool addTarget(const Mat& image, const Rect2d& boundingBox, char* tracker_algorithm_name); bool addTarget(const Mat& image, const Rect2d& boundingBox, String tracker_algorithm_name);
/** @brief Update all trackers from the tracking-list, find a new most likely bounding boxes for the targets /** @brief Update all trackers from the tracking-list, find a new most likely bounding boxes for the targets
@param image The current frame @param image The current frame

@ -44,7 +44,7 @@
namespace cv namespace cv
{ {
//Multitracker //Multitracker
bool MultiTracker::addTarget(const Mat& image, const Rect2d& boundingBox, char* tracker_algorithm_name) bool MultiTracker::addTarget(const Mat& image, const Rect2d& boundingBox, String tracker_algorithm_name)
{ {
Ptr<Tracker> tracker = Tracker::create(tracker_algorithm_name); Ptr<Tracker> tracker = Tracker::create(tracker_algorithm_name);
if (tracker == NULL) if (tracker == NULL)

Loading…
Cancel
Save