Ask Your Question

matt27110's profile - activity

2020-11-30 03:03:20 -0600 received badge  Student (source)
2017-06-15 08:20:47 -0600 commented answer Video Writer

I forgot one thing : you must know your frame size before :

"writer.open("test.avi", -1 ,20 ,frame.size())"

Otherwise you can't record your video.

VideoWriter writer;
cap >> frame;
writer.open("test.avi", -1 ,20 ,frame.size());
2017-06-15 08:07:15 -0600 answered a question Video Writer

You show nothing, you created a window but you don't display the image. Just add : imshow("MyVideo", frame);

2017-04-13 03:55:24 -0600 received badge  Enthusiast
2017-04-11 09:31:04 -0600 received badge  Editor (source)
2017-04-11 09:30:15 -0600 asked a question Track only 1 target among multiple targets

Hello everyone !

I'm using HOG and DPM to track multiple targets and among these targets I want to track just one. Multi-targets tracking is pretty easy but track only one person among them is ... harder.

For example : I would like to draw a red box for the person at the left on the below image without changing the other boxes.

image description

Have you any ideas ?

Thank you for your help !

2017-03-27 06:18:40 -0600 commented answer KeypointBasedMotionEstimator - C++

Thank you it works !!!

2017-03-27 06:16:29 -0600 received badge  Supporter (source)
2017-03-27 06:16:13 -0600 received badge  Scholar (source)
2017-03-27 06:05:55 -0600 asked a question KeypointBasedMotionEstimator - C++

Hello everyone !

I'm having problems with the KeypointBasedMotionEstimator class.

I don't understand how to instanciate that class. The constructor is :

KeypointBasedMotionEstimator(Ptr<MotionEstimatorBase> estimator)

And this is my main :

int main(int argc, char **argv)
{
  MotionModel mm = MM_AFFINE;
  Ptr<MotionEstimatorBase> estimator;
  estimator->setMotionModel(mm);
  KeypointBasedMotionEstimator kbme = KeypointBasedMotionEstimator(estimator);

  return 0; 
}

I get "segmentation fault (core dumped)"

I think the error comes from Ptr<MotionEstimatorBase> estimator , my initialization is probably bad and I'm not familiar with abstract class.

Any ideas is welcome.

Thank you in advance !!