Commit ad93daa6 authored by Vladimir's avatar Vladimir

Fix char*->String in create method

parent 2baae4fa
...@@ -1273,7 +1273,7 @@ public: ...@@ -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 @@ ...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment