Rimuovere il rumore dall'immagine usando C#

This quick tutorial explains how to remove noise from image using C#. You will get details on how to set up the development environment, a list of steps, and sample code for image denoising using C#. The provided sample code performs preprocessing using the classic median filter for image denoising.

Steps to remove noise from the photo using C#.

  1. Set the environment to use Aspose.OCR for .NET for noise reduction.
  2. Importa le classi OCR e gli enumeratori necessari
  3. Apply the license for a watermark‑free output.
  4. Crea un’istanza del motore AsposeOcr
  5. Crea un filtro di pre‑elaborazione per rimuovere il rumore sale e pepe usando il filtro mediano
  6. Create an instance of OcrInput for a single image and the filter defined above.
  7. Load the source input image into the OcrInput object.
  8. Run the OCR recognition process using the filtered input.
  9. Stampa il testo riconosciuto in output sulla console

Questi passaggi riassumono il processo per la riduzione del rumore fotografico usando C#. Create the PreprocessingFilter using the Median filter, connect it to OcrInput, and load the noisy input image into it. Invoke the Recognize() method passing OcrInput, and print the cleaned text to the console.

Codice per rimuovere il rumore dall’immagine usando C#

This code is a guide for image noise reduction using C#. It is possible to use multiple denoising filters in the PreprocessingFilter, such as AutoDenoising, GaussianBlur, and Sharpen. AutoDenoising uses a neural network and often performs Median to remove complex backgrounds.

Questo articolo ha trattato la riduzione del rumore dell’immagine. To convert handwriting to text, refer to the article Convert handwriting to text in C#.

 Italiano