Fast and Accurate Document Detection for Scanning