Sindhi OCR in C# and .NET
Curtis Chau
已更新: 2026年8月2日
本文檔的其他版本:
IronOCR 是一個 C# 軟體元件,它允許 .NET 開發人員從圖像和 PDF 文件中讀取 126 種語言(包括信德語)的文字。 它是 Tesseract 的一個高級分支,專為 .NET 開發人員構建,在速度和準確性方面通常優於其他 Tesseract 引擎。
IronOcr.Languages.Sindhi 的內容
此軟體包包含 43 種適用於 .NET 的 OCR 語言:
- 信德語
- 信德語Best
- 信德語Fast
下載
信德語語言包[सिनधी]
安裝
首先要做的是在您的 .NET 專案中安裝Sindhi OCR 套件。
程式碼範例
此 C# 程式碼範例從圖像或 PDF 文件中讀取信德語文字。
// Ensure the IronOCR package and Sindhi language pack are installed
using IronOcr;
var Ocr = new IronTesseract
{
Language = OcrLanguage.Sindhi // Set the OCR language to Sindhi
};
// Open an image or PDF document for OCR processing
using (var Input = new OcrInput(@"images\Sindhi.png"))
{
// Perform OCR and get the results
var Result = Ocr.Read(Input);
// Extract the recognized text
var AllText = Result.Text;
// Optionally, you can do something with the extracted text,
// such as displaying or saving it to a file.
}' Ensure the IronOCR package and Sindhi language pack are installed
Imports IronOcr
Dim Ocr As New IronTesseract With {
.Language = OcrLanguage.Sindhi ' Set the OCR language to Sindhi
}
' Open an image or PDF document for OCR processing
Using Input As New OcrInput("images\Sindhi.png")
' Perform OCR and get the results
Dim Result = Ocr.Read(Input)
' Extract the recognized text
Dim AllText = Result.Text
' Optionally, you can do something with the extracted text,
' such as displaying or saving it to a file.
End Using' Ensure the IronOCR package and Sindhi language pack are installed
Imports IronOcr
Dim Ocr As New IronTesseract With {
.Language = OcrLanguage.Sindhi ' Set the OCR language to Sindhi
}
' Open an image or PDF document for OCR processing
Using Input As New OcrInput("images\Sindhi.png")
' Perform OCR and get the results
Dim Result = Ocr.Read(Input)
' Extract the recognized text
Dim AllText = Result.Text
' Optionally, you can do something with the extracted text,
' such as displaying or saving it to a file.
End Using在此程式碼範例中:
- 我們設置了
IronTesseract的實例。 - 將OCR語言設置為信德語。
- 打開一個包含信德語文本的圖片檔案。
- 對圖片進行OCR,並使用
Read方法提取文本。 - 提取的文本存儲在
AllText變數中以供進一步使用。
Curtis Chau 擁有卡爾頓大學計算機科學學士學位,專注於前端開發,擅長於 Node.js、TypeScript、JavaScript 和 React。Curtis 熱衷於創建直觀且美觀的用戶界面,喜歡使用現代框架並打造結構良好、視覺吸引人的手冊。