Obrázok Text Finder pre .NET

Úvod do programu Image Text Finder pre .NET

Image Text Finder pre .NET je plugin, ktorý umožňuje vývojárom vytiahnuť text z obrázkov vo svojich aplikáciách.Tento sprievodca vás prechádza funkciami pluginu a poskytuje kódy príklady o tom, ako ho používať.

Podporované formáty súborov

Image Text Finder pre .NET podporuje nasledujúce formáty obrázkového súboru:

  • BMP
  • JPEG
  • PNG
  • GIF
  • TIFF

Text môžete vyhľadávať v týchto obrázkových súboroch pomocou API pluginu.

Nájsť text v obrázkoch

To extract text from an image, you need to create an instance of the AsposeOcr class and call the ImageHasText method. Here is an example:

using Aspose.OCR;

AsposeOcr recognitionEngine = new AsposeOcr();
bool isFound = recognitionEngine.ImageHasText("sample1.png", "Aspose");       

In this example, we open a file stream to the image file and pass it to the ImageHasText method. The method returns if the text was found or not.

Vyhľadať neanglicky text v obrázkoch

To extract non-English text from an image, you need to create an instance of the ImageTextFinder class and call the ExtractText method. Here is an example:

using Aspose.OCR;

AsposeOcr recognitionEngine = new AsposeOcr();
RecognitionSettings settings = new RecognitionSettings(Language.Ara);
bool isFound = recognitionEngine.ImageHasText("sample1.png", "Aspose", settings);       

In this example, we open a file stream to the image file and pass it to the ImageHasText method. The method returns if the text was found or not.

Najlepšie postupy

Tu sú niektoré z najlepších postupov pre použitie Image Text Finder pre .NET:

  • Uistite sa, že obrazový súbor je v podporovanom formáte.
  • Použite správne jazykové nastavenie pre text na obrázku.
  • Experimentovať s rôznymi veľkosťami písma na zlepšenie presnosti extrakcie.
  • Riešte chyby a výnimky správne, aby ste zabezpečili robustné správanie aplikácie.
 Slovenčina