Your old webcam can replace an expensive document scanner—here's how.