IRONSOFTWAREHOME
閱讀車牌
using IronOcr;
using IronSoftware.Drawing;

// Instantiate OCR engine
var ocr = new IronTesseract();

using var inputLicensePlate = new OcrInput();

inputLicensePlate.LoadImage("LicensePlate.jpeg");

// Perform OCR
OcrLicensePlateResult result = ocr.ReadLicensePlate(inputLicensePlate);

// Retrieve license plate coordinates
Rectangle rectangle = result.Licenseplate;

// Retrieve license plate value
string output = result.Text;
Imports IronOcr
Imports IronSoftware.Drawing

' Instantiate OCR engine
Dim ocr = New IronTesseract()

Using inputLicensePlate = New OcrInput()

    inputLicensePlate.LoadImage("LicensePlate.jpeg")

    ' Perform OCR
    Dim result As OcrLicensePlateResult = ocr.ReadLicensePlate(inputLicensePlate)

    ' Retrieve license plate coordinates
    Dim rectangle As Rectangle = result.Licenseplate

    ' Retrieve license plate value
    Dim output As String = result.Text

End Using
NuGet Download
PM > Install-Package IronOcr
閱讀車牌

閱讀車牌

此方法使用IronTesseract OCR引擎有效地從影像中擷取車牌號碼。範例說明:

  1. IronTesseract 初始化:建立IronTesseract的實例來處理OCR操作。
  2. 圖片載入:使用OcrInput類別載入包含車牌的圖像文件。
  3. OCR過程:在Read方法,執行OCR並從圖像中識別文字。
  4. 結果分析:迭代識別出的字詞。 如果任何字詞被識別為車牌,則列印其文字和邊框。

此程式碼在停車管理、車輛進出控制及自動識別系統相關應用中特別有用。

探索如何使用IronOCR讀取車牌
在GitHub上查看

準備開始了嗎?

Nuget Downloads 6,236,385版本:2026.9剛剛發布

Key in blue circle

立即免費取得 30 天試用金鑰

Your trial license will be sent to your email address

無任何限制。100% 解鎖。無需信用卡。

bullet_checked無需信用卡或建立帳號無任何限制。100% 解鎖。無需信用卡。
  • Logo Aetna
  • Logo NASA
  • Logo GE
  • Logo Porsche
  • Logo USDA
  • Logo Qatar
Join Millions of Engineers who’ve tried IronPDF
獲取您的無義務諮詢
填寫以下表格或發送電子郵件至sales@ironsoftware.com
您的詳細資訊將始終保密。
被全球數百萬工程師信任
Iron Software的客戶標誌
立即獲取您的30天試用金鑰
無需信用卡或帳戶建立