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

A question about the code #22

Open
Cspicp opened this issue Jan 29, 2022 · 0 comments
Open

A question about the code #22

Cspicp opened this issue Jan 29, 2022 · 0 comments

Comments

@Cspicp
Copy link

Cspicp commented Jan 29, 2022

In FaceDetectorAndTracker.cpp
void FaceDetectorAndTracker::track()

	if (m_faceTemplates[i].cols <= 1 || m_faceTemplates[i].rows <= 1)  
	{
		m_facesRects.clear();
		m_tracking = false;
		return;
	}

I want to know why the figure is 1, and is it based on experience?
When I delete this statement and tried to remove one of the detected face from the frame, there will be some delay.
When I change the figure into 2 or 3, there also will be some delay, and soemtimes the two face even couldn't swap (although they are of proper size).

Hope for answer sincerely!!!!

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

1 participant