Scanner de Documents : Contraste, Netteté et Optimisation de Texte
Scanner de Documents : Contraste, Netteté et Optimisation de Texte
Cet outil fonctionne à 100% côté client dans votre navigateur. Vos photos, vidéos, enregistrements audio et documents PDF ne sont jamais envoyés sur un serveur, garantissant une confidentialité totale.
Formule & Méthode de Calcul
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.
Bonnes Pratiques & Conseils
- 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.