Skip to content

Technical test David Campoy#50

Open
kmpoy wants to merge 3 commits into
fluendo:masterfrom
kmpoy:master
Open

Technical test David Campoy#50
kmpoy wants to merge 3 commits into
fluendo:masterfrom
kmpoy:master

Conversation

@kmpoy

@kmpoy kmpoy commented Feb 10, 2026

Copy link
Copy Markdown

Answers are written in separate files named "answers_DC.md", one for each Q1 and Q2.

1. How can we improve face detection by adding **reidentification** to anonymize only specific individuals while keeping computational cost low?
In general, to reduce the computational cost of any ML model one can reduce the model size (e.g. a model with less parameters/layers, use quantization, etc.). However, this could reduce the model accuracy if not done properly.

To maintain precision while reducing computational cost, we can run our face detection model at the very first frame, extract the detected face embeddings, compare them againts a "face gallery", and if the similarity is above a threshold, then anonymize. In the following frames, we can implement a face tracker to follow the faces in the video (e.g. by using a Kalman filter) and re-run the face detection + reidentification model every 5-10-15 frames (depending on how fast people move, or triggered by a tracker confidence drop). This way we can recenter (if needed) the centroid of the already detected faces and detect new ones. This strategy creates a tradeoff between computational cost and face detection speed, but it can be resolved at an optimal point where computational cost is reduced by a factor 10x with equivalent performance.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kalman Filter review

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

Successfully merging this pull request may close these issues.

2 participants