Scanner de Documentos: Contraste, Nitidez e Otimização de Texto
Scanner de Documentos: Contraste, Nitidez e Otimização de Texto
Esta ferramenta opera 100% do lado do cliente. Suas fotos, vídeos, arquivos de áudio e documentos PDF nunca são enviados a servidores externos, garantindo privacidade completa.
Fórmula e Método de Cálculo
Clean Scan = Edge Detection ➔ Perspective Warp ➔ Grayscale Conversion ➔ Adaptive Thresholding
The scanner first uses the Canny Edge Detection algorithm to find the 4 corners of the paper. It then applies a perspective warp to flatten the image, and finally uses adaptive thresholding to turn gray shadows into pure white.
Melhores Práticas e Dicas
- Ensure High Contrast Backgrounds: A white piece of paper on a white table is a mathematical nightmare for edge detection. Always place the document on a dark table so the algorithm can instantly find the 4 corners.
- Avoid Harsh Glare: If you scan glossy paper under a bright light, the glare will blow out the pixels to pure white, completely destroying the underlying text. Use diffused, indirect lighting.
- Use B&W Binarization for Text: If the document is purely text (like a contract), always use the 'Black & White' filter. It mathematically removes all colored noise and shadows, drastically reducing the final PDF file size.