Ask Your Question

babahooja's profile - activity

2018-10-28 04:56:52 -0600 commented answer cv::Tracker linker error in Xcode?

Use pkg-config --cflags --libs opencv to generate all the linker flags.

2018-10-28 04:56:41 -0600 commented answer cv::Tracker linker error in Xcode?

pkg-config --cflags --libs opencv to generate all the linker flags.

2017-08-20 15:50:53 -0600 received badge  Student (source)
2017-08-20 09:26:57 -0600 commented question Creating my own tracker using tracker module in opencv-contrib

Thank you sir, I recompiled and rebuild my opencv and contrib libraries and now it's working. @sturkmen I have just one question, would I have to make and make install everytime I make changes to my code in MIL2?

2017-08-20 05:41:04 -0600 commented question Creating my own tracker using tracker module in opencv-contrib

OpenCV Error: Backtrace (The model is not initialized) in init, file /usr/local/opencv-contrib/modules/tracking/src/tracker.cpp, line 75 libc++abi.dylib: terminating with uncaught exception of type cv::Exception: /usr/local/opencv-contrib/modules/tracking/src/tracker.cpp:75: error: (-1) The model is not initialized in function init

I still get this error! Also, thank you so very much for helping me out! I cloned MIL, then build the opencv again but still getting the same error. Is this because of my opencv version?

2017-08-19 17:17:34 -0600 commented question Creating my own tracker using tracker module in opencv-contrib

Basically, I want to make a new tracker with the exact same code as that of TrackerMIL and then build upon it.

2017-08-19 17:13:38 -0600 commented question Creating my own tracker using tracker module in opencv-contrib

I tried duplicating all the files in tracking/src/ with my own model name (and with changes in the code wrt to model name MIL --> newMIL ). I also added my tracker class in tracker.hpp. Then I built the files using cmake, followed by make and make install, but still my code shows error as mentioned in the question.

2017-08-19 17:10:44 -0600 commented question Creating my own tracker using tracker module in opencv-contrib

I am trying to make some changes in MIL's original implementation. I am unable to understand where to put these changes. I don't want to hamper the original implementation of MIL. I had a look at the link above on customizing tracker, but I can't understand how can I add more methods to the original MIL model.

2017-08-19 15:27:46 -0600 commented question Creating my own tracker using tracker module in opencv-contrib

@sturkmen yes I did! I believe the documentation is a bit old wrt the code in the contrib, because it mentions the macro 'BOILERPLATE_CODE' which is absent in the code.

2017-08-19 14:53:21 -0600 commented question Creating my own tracker using tracker module in opencv-contrib

Do I need to build the specific model files before using it?

2017-08-19 13:47:28 -0600 received badge  Editor (source)
2017-08-19 12:23:46 -0600 asked a question Creating my own tracker using tracker module in opencv-contrib

I am trying to create my own tracker using opencv-contrib tracker module. For that I am first trying to replicate the MIL Tracker provided in the contrib. I added my tracker class to the tracking/opencv2/tracker.hpp file. Then, I build the files. I copied the files trackerMIL.cpp, trackerMILModel.hpp, trackerMILModel.cpp and edited the files to suit my own tracker name. I am using the same target estimation method used in MIL. I get the error:

error: (-1) The model is not initialized in function init. How should I resolve this error? The error originates from here (tracker.cpp)

  sampler = Ptr<TrackerSampler>( new TrackerSampler() );
  featureSet = Ptr<TrackerFeatureSet>( new TrackerFeatureSet() );
  model = Ptr<TrackerModel>();

  bool initTracker = initImpl( image.getMat(), boundingBox );

  //check if the model component is initialized
  if( model == 0 )
  {
    CV_Error( -1, "The model is not initialized" );
    return false;
  }