Inne
Odkryj wiele innych funkcji IronOCR – idealnej biblioteki dla wszystkich Twoich potrzeb OCR!
Obsługa typów plików
Wielostronicowe/ramkowe TIFFy i GIFy
Bezproblemowo przetwarzaj wielostronicowe dokumenty przechowywane w formatach TIFF i GIF. IronOcr czyta wszystkie strony lub ramki w jednej operacji, oszczędzając Ci złożoności ręcznego dzielenia plików.
Ucz się, jak:Czytać GIFy i TIFFy wieloklatkowe/stronoweusing IronOcr;
// Instantiate IronTesseract
IronTesseract ocrTesseract = new IronTesseract();
// Import TIFF/TIF
using var imageInput = new OcrImageInput("sample.tiff");
// Perform OCR
OcrResult ocrResult = ocrTesseract.Read(imageInput);Imports IronOcr
' Instantiate IronTesseract
Dim ocrTesseract As New IronTesseract()
' Import TIFF/TIF
Using imageInput = New OcrImageInput("sample.tiff")
' Perform OCR
Dim ocrResult As OcrResult = ocrTesseract.Read(imageInput)
End UsingPDF / Strumień PDF
Dokładnie wyodrębniaj tekst bezpośrednio z plików PDF lub strumieni pamięci, obsługując zarówno PDFy natywne, jak i zeskanowane (oparte na obrazach).
Ucz się, jak:Czytać PDF w .NET C#using IronOcr;
// Instantiate IronTesseract
IronTesseract ocrTesseract = new IronTesseract();
// Add PDF
using var pdfInput = new OcrPdfInput("sample.pdf");
// Perform OCR
OcrResult ocrResult = ocrTesseract.Read(pdfInput);Imports IronOcr
' Instantiate IronTesseract
Dim ocrTesseract As New IronTesseract()
' Add PDF
Using pdfInput As New OcrPdfInput("sample.pdf")
' Perform OCR
Dim ocrResult As OcrResult = ocrTesseract.Read(pdfInput)
End UsingObrazy (jpg, png, bmp)
IronOCR obsługuje wszystkie standardowe formaty obrazów, takie jak JPG, PNG i BMP. Po prostu podaj ścieżkę do pliku, a IronOCR zajmie się resztą.
Ucz się, jak:Czytać obrazy w .NET C#using IronOcr;
// Instantiate IronTesseract
IronTesseract ocrTesseract = new IronTesseract();
// Add image
using var imageInput = new OcrImageInput("Potter.png");
// Perform OCR
OcrResult ocrResult = ocrTesseract.Read(imageInput);Imports IronOcr
' Instantiate IronTesseract
Dim ocrTesseract As New IronTesseract()
' Add image
Using imageInput = New OcrImageInput("Potter.png")
' Perform OCR
Dim ocrResult As OcrResult = ocrTesseract.Read(imageInput)
End Using
Wzmacniacz wydajności
Wielowątkowy Tesseract OCR
Buduj wysoce skalowalne, responsywne aplikacje z pełnym wsparciem dla przetwarzania równoległego. Bezpiecznie przetwarzaj wiele dokumentów jednocześnie w różnych wątkach dla wysokowydajnych wdrożeń po stronie serwera.
Ucz się, jak:Wielowątkowy Tesseract OCR w C#using IronOcr;
var ocrTesseract = new IronTesseract();
using var ocrInput = new OcrInput();
ocrInput.LoadPdf("sample.pdf");
// Image processing is automatically multi-threaded
ocrInput.Deskew();
// OCR reading is automatically multi-threaded too
var ocrResult = ocrTesseract.Read(ocrInput);Imports IronOcr
Dim ocrTesseract = New IronTesseract()
Using ocrInput = New OcrInput()
ocrInput.LoadPdf("sample.pdf")
' Image processing is automatically multi-threaded
ocrInput.Deskew()
' OCR reading is automatically multi-threaded too
Dim ocrResult = ocrTesseract.Read(ocrInput)
End UsingToken przerwań
Utrzymuj kontrolę nad długotrwałymi zadaniami OCR. Użyj tokenu przerwania, aby łagodnie wstrzymać lub anulować proces, co jest przydatne do zarządzania zasobami lub wdrażania operacji anulowalnych przez użytkownika.
Ucz się, jak:C# Tesseract Token Przerwaniausing IronOcr;
using System.Threading;
// Opens a Large PDF which may need to be cancelled early
IronTesseract ocrTesseract = new IronTesseract() { Language = OcrLanguage.English };
using var ocrInput = new OcrInput();
ocrInput.LoadPdf("sample.pdf");
// Starts a read on the PDF using IronOCR
OcrReadTask ocrRead = ocrTesseract.ReadAsync(ocrInput);
Thread.Sleep(1000); // Time passes...
// Cancellation Example:
ocrRead.Cancel();
ocrRead.Wait();Imports IronOcr
Imports System.Threading
' Opens a Large PDF which may need to be cancelled early
Dim ocrTesseract As New IronTesseract() With {.Language = OcrLanguage.English}
Using ocrInput As New OcrInput()
ocrInput.LoadPdf("sample.pdf")
' Starts a read on the PDF using IronOCR
Dim ocrRead As OcrReadTask = ocrTesseract.ReadAsync(ocrInput)
Thread.Sleep(1000) ' Time passes...
' Cancellation Example:
ocrRead.Cancel()
ocrRead.Wait()
End UsingLimity czasu
Zapobiegaj zawieszaniu się aplikacji na trudnych lub uszkodzonych plikach. Ustaw określoną długość czasu oczekiwania dla dowolnego procesu OCR, aby zapewnić lepsze zarządzanie zasobami i stabilność systemu.
Ucz się, jak:C# Tesseract Limity czasoweusing IronOcr;
int cancel_time = 1000;
// Opens a Large PDF which may need to be cancelled early
IronTesseract ocrTesseract = new IronTesseract() { Language = OcrLanguage.English };
var ocrInput = new OcrInput();
ocrInput.LoadPdf("large-report.pdf");
// Starts a read on the PDF using IronOCR with specified cancel time
OcrReadTask ocrRead = ocrTesseract.ReadAsync(ocrInput, cancel_time);Imports IronOcr
Dim cancel_time As Integer = 1000
' Opens a Large PDF which may need to be cancelled early
Dim ocrTesseract As New IronTesseract() With {.Language = OcrLanguage.English}
Dim ocrInput = New OcrInput()
ocrInput.LoadPdf("large-report.pdf")
' Starts a read on the PDF using IronOCR with specified cancel time
Dim ocrRead As OcrReadTask = ocrTesseract.ReadAsync(ocrInput, cancel_time)Śledzenie procesu OCR
Monitoruj postęp operacji OCR w czasie rzeczywistym od 0% do 100%. To pozwala dostarczać informacje zwrotne użytkownikom za pomocą paska postępu lub lepiej oszacować czas zakończenia dla dużych zadań.
Ucz się, jak:Używać śledzenia postępu w .NET C#using IronOcr;
var ocrTesseract = new IronTesseract();
// Subscribe to OcrProgress event
ocrTesseract.OcrProgress += (_, ocrProgressEventsArgs) =>
{
Console.WriteLine("Progress(%) | Duration");
Console.WriteLine(" " + ocrProgressEventsArgs.ProgressPercent + "% | " + ocrProgressEventsArgs.Duration.TotalSeconds + "s");
};
using var input = new OcrInput();
input.LoadPdf("Experiences-in-Biodiversity-Research-A-Field-Course.pdf");
// Progress events will fire during the read operation
var result = ocrTesseract.Read(input);Imports IronOcr
Dim ocrTesseract = New IronTesseract()
' Subscribe to OcrProgress event
AddHandler ocrTesseract.OcrProgress, Sub(_, ocrProgressEventsArgs)
Console.WriteLine("Progress(%) | Duration")
Console.WriteLine(" " & ocrProgressEventsArgs.ProgressPercent & "% | " & ocrProgressEventsArgs.Duration.TotalSeconds & "s")
End Sub
Using input = New OcrInput()
input.LoadPdf("Experiences-in-Biodiversity-Research-A-Field-Course.pdf")
' Progress events will fire during the read operation
Dim result = ocrTesseract.Read(input)
End UsingGotowy, aby rozpocząć?
Nuget Downloads 6,236,385|Wersja:2026.9właśnie wydany