Scan a page
A document scanner viewfinder: corner brackets hunt for the page and snap to its corners, capture straightens the trapezoid into a flat page with a real perspective transform, and the text is read line by line.
Capture and sensesNo. 3363 variationsFree with an account
Playing on its own
Variation
- The idea
- Point the camera at a page; edges are found and the text is read
- Autoplay
- Brackets search the sweeping camera view, then lock onto the tilted page one corner at a time; the cursor presses the shutter, the page straightens into a rectangle as the mat fades, each line is highlighted as it is read, and Copy text confirms.
- When you click
- Drag any corner bracket (or focus it and use the arrow keys) to adjust the crop, press the shutter to capture, Retake to go back to the camera, Copy text to copy what was read. Keyboard: Tab through the corners, shutter and buttons; Enter or Space presses.
- Look
- corner brackets, perspective flatten, industrial type
- Variations
- Viewfinder, Result sheet, Light
- Files
- index.html, style.css, script.js and prompt.md. No framework, no CDN, works offline.
The prompt and the files
Paste the prompt into Claude, ChatGPT, Lovable or any coding agent to rebuild it in your own product, or take the three files as they are.
Loading the files