MCPcopy Create free account
hub / github.com/Smorodov/Multitarget-tracker / DrawData

Method DrawData

example/examples.h:159–171  ·  view source on GitHub ↗

\brief DrawData \param frame \param tracks \param framesCounter \param currTime

Source from the content-addressed store, hash-verified

157 /// \param currTime
158 ///
159 void DrawData(cv::Mat frame, const std::vector<TrackingObject>& tracks, int framesCounter, int currTime) override
160 {
161 m_logger->info("Frame {0} ({1}): tracks = {2}, time = {3}", framesCounter, m_framesCount, tracks.size(), currTime);
162
163 for (const auto& track : tracks)
164 {
165 if (track.IsRobust(cvRound(m_fps / 2), // Minimal trajectory size
166 0.4f, // Minimal ratio raw_trajectory_points / trajectory_lenght
167 cv::Size2f(0.1f, 8.0f))) // Min and max ratio: width / height
168 DrawTrack(frame, track, true, framesCounter);
169 }
170 m_detector->CalcMotionMap(frame);
171 }
172};
173
174// ----------------------------------------------------------------------

Callers

nothing calls this directly

Calls 3

IsRobustMethod · 0.80
sizeMethod · 0.45
CalcMotionMapMethod · 0.45

Tested by

no test coverage detected