The interview problem
Combine overlapping travel photographs into a panorama and reject inconsistent geometry gracefully.
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
Detect and match features, estimate robust pairwise transformations, build a connected overlap graph, optimize alignment and blend exposures. Start with scenes suitable for a rotation-based panorama model. Preserve individual photographs and report which were excluded.
2. Trace the design or derivation
Features → robust matches → overlap graph → alignment → seam and blend
Reject weak graph edges before global optimization, but avoid dropping the only connection without explaining the result. An interactive preview can let the user remove one problematic photo. Bound decoded image memory, since compressed upload size is a poor predictor of working-set size.
3. Calculate the example
Six images each 1200 pixels wide with an illustrative 300-pixel overlap between neighbors span 6×1200−5×300 = 5700 pixels before projection and cropping. This is a capacity estimate, not a guaranteed final width.
4. Failure cases and trade-offs
Moving subjects create ghosts; nearby objects violate simple rotational geometry through parallax. Blending hides exposure seams but cannot repair a wrong transformation.
5. Validation, follow-ups and self-review
Test low texture, disconnected images and moving foreground objects. Follow-up: when is a scan model more appropriate? Self-review: distinguish matching, geometric alignment and blending failures.
Sources and related practice
Technical reference: docs.opencv.org — Image-stitching pipeline and geometry modes.
Source publication/update: Not established. 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 Find reused image crops across a collection; 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.