Computer Vision Engineer Interview Question

How would you track objects across frames in a video?

What the interviewer is probing, how to structure your answer, and a spoken example you can adapt.

Quick answer

Most production systems track by detection: detect objects in each frame, predict where existing tracks should be with a motion model, then match detections to tracks using box overlap and, for occlusions, appearance embeddings, solved as an optimal assignment problem. Manage track lifecycles with confirmation and timeouts. Evaluate with identity aware metrics, such as identity switches, not just detection accuracy, because most tracking errors are identity errors.

Why interviewers ask this

Tracking appears in almost every video product, from retail analytics to traffic monitoring, and interviewers want to know you understand the full pipeline. They listen for the motion model, the association step and its cost function, track lifecycle management and the handling of occlusion. Choosing identity aware metrics shows you know where trackers actually fail, which is keeping identities stable rather than finding objects in the first place.

How to structure your answer

  • Describe tracking by detection and the motion model.
  • Explain association with overlap, appearance and assignment.
  • Cover track birth, confirmation and deletion.
  • Choose metrics that measure identity consistency.

Example answer

Spoken example, first person

For most products I use tracking by detection. A detector runs on each frame, and each existing track has a motion model, usually a simple constant velocity filter, that predicts where the object should be in the next frame. Then association: I build a cost matrix between predicted track positions and new detections using box overlap, and for anything with occlusion, the distance between appearance embeddings from a small re-identification network. An optimal assignment step matches them. Unmatched detections start tentative tracks, which are confirmed only after a few consecutive matches, so a single false detection does not create a new identity, and tracks are deleted after missing for a set number of frames. Occlusion is the hard part. If two people cross, overlap alone swaps their identities, which is exactly what appearance features fix. For evaluation I look at identity switches and identity based scores, because a tracker can detect everything perfectly and still be useless if identities keep changing. On a people counting project, adding appearance features cut identity switches by more than half, which made our counts usable.

Walking into this interview soon? GhostPilot listens to your live call, spots the question the moment it is asked, and puts a structured answer on your screen in real time. Try it on your next mock, or grab a $29 Session Pass, no subscription, for the real thing.

See how it works

Follow-up questions to expect

  • How would you handle a camera that moves?
  • How do you re-identify an object that leaves the frame and returns?
  • How would you track across multiple cameras?

Related computer vision engineer questions

Your interviewer will ask their own version of this. Paste your actual job description into the free Question Predictor and get the 20 questions that role is most likely to ask, with what each one is really probing.

Predict my questions

Rehearse the hard questions before they are asked

Practise with a live copilot, then walk in ready. A $29 Session Pass gets you through the interview with no subscription and no lock-in.

Get GhostPilot