The interview problem
Design depth estimates from a single photograph for background effects, without promising reliable distances in meters.
Original practice, not a reported company interview. Scenarios and numbers are illustrative. Interview date: not applicable. Sources retrieved October 1, 2026.
1. Scope and worked approach
Start with relative depth and an uncertainty-aware foreground boundary. Train or adapt on permitted datasets; test by camera and scene. If an application needs metric scale, require calibration or an additional trusted measurement and evaluate that separate configuration.
2. Trace the design or derivation
Image → relative depth → confidence and boundaries → calibrated or relative output
For a portrait blur application, a boundary mistake can matter more than global depth error. Keep the UI tied to the supported effect instead of displaying invented precision in meters. Store camera and preprocessing metadata alongside the model version.
3. Calculate the example
Predicted depths [1,2,4] and [2,4,8] preserve the same ratios but imply different meters if interpreted literally. A known 3 m anchor corresponding to prediction 2 suggests scale 1.5 only under the assumed multiplicative model.
4. Failure cases and trade-offs
Reflective surfaces, transparent objects and unusual lenses can invert local ordering. A single scale anchor does not generally fix nonlinear or shift ambiguity.
5. Validation, follow-ups and self-review
Evaluate relative ordering and boundary artifacts; evaluate metric error only in a calibrated contract. Follow-up: when is stereo required? Self-review: identify what the output can and cannot establish.
Sources and related practice
Technical reference: arxiv.org — Monocular depth estimation; scale example is an explicit simplified model.
Source publication/update: 2024-01-19; revised 2024-04-07. Retrieved October 1, 2026. The workflow, calculations and review exercises are original; this reference is not evidence that a company asked this question.
Continue with Remove video-call backgrounds without erasing fine detail; Gate low-quality uploads before downstream inference.
Continue your preparation
Choose a connected learning path or browse more ML system design questions. Read our editorial method and attribution policy.