Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some tracked objects flying? #445

Open
xinsuinizhuan opened this issue Feb 7, 2024 · 3 comments
Open

some tracked objects flying? #445

xinsuinizhuan opened this issue Feb 7, 2024 · 3 comments
Assignees

Comments

@xinsuinizhuan
Copy link

when i set the settings.m_maxTraceLength long, the object disable will fly

TrackerSettings settings;
settings.SetDistance(tracking::DistRects);
settings.m_kalmanType = tracking::KalmanLinear;
settings.m_filterGoal = tracking::FilterCenter;
settings.m_lostTrackType = tracking::TrackNone; // Use visual objects tracker for collisions resolving. Used if m_filterGoal == tracking::FilterRect
settings.m_matchType = tracking::MatchHungrian;
settings.m_useAcceleration = false; // Use constant acceleration motion model
settings.m_dt = settings.m_useAcceleration ? 0.05f : 0.5f; // Delta time for Kalman filter
settings.m_accelNoiseMag = 0.1f; // Accel noise magnitude for Kalman filter
settings.m_distThres = 0.95f; // Distance threshold between region and object on two frames
settings.m_minAreaRadiusPix = -1.f;
settings.m_minAreaRadiusK = 0.8f;
settings.m_useAbandonedDetection = false;
settings.m_maximumAllowedSkippedFrames = cvRound(2 * m_videofps); // Maximum allowed skipped frames
settings.m_maxTraceLength = cvRound(40 * m_videofps); // Maximum trace length

图片

@xinsuinizhuan xinsuinizhuan changed the title some track objects fly? some tracked objects fly? Feb 7, 2024
@xinsuinizhuan xinsuinizhuan changed the title some tracked objects fly? some tracked objects flying? Feb 7, 2024
@Nuzhny007 Nuzhny007 self-assigned this Feb 12, 2024
@Nuzhny007
Copy link
Collaborator

Hi!
It looks like a false positive detection. Or not?
Another way to filter tracking errors:

track.IsRobust(4,                                    // Minimal trajectory size
			0.85f,                              // Minimal ratio raw_trajectory_points / trajectory_lenght
			cv::Size2f(0.1f, 10.0f),      // Min and max ratio: width / height
			1) <---------------------- set here a small value

@xinsuinizhuan
Copy link
Author

ok,now its work. But where is the tracked object status,Confirmed,mis and remove? If the object is Confirmed need to do some other operate

@Nuzhny007
Copy link
Collaborator

For missed objects used not very good named variable - TrajectoryPoint::m_hasRaw. And it drawn circle on trajectory:
https://github.com/Smorodov/Multitarget-tracker/blob/master/example/VideoExample.cpp#L575C22-L575C30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants