Skip to content

Performance Notes

The default scanner throttles document detection to around 10 FPS for stability and battery efficiency.

Live detection uses a resized frame path (PROCESSING_WIDTH = 480) to balance quality and latency.

  • Contour smoothing reduces jitter between frames.
  • Missed detections are tolerated briefly before clearing overlays.
  • Candidate scoring favors large, centered, rectangular document quads.
  • Increase processing width for higher precision on high-end devices.
  • Decrease processing width for low-end device responsiveness.
  • Validate thresholds across varied lighting and paper backgrounds.
  • Benchmark OCR latency separately from scan capture latency.