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,279,416版本:2026.10剛剛發布

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 IronOCR
預訂您的免費線上演示
Booking Badge

受到全球數百萬工程師的信任

Iron Software的客戶標誌
獲取您的無義務咨詢
您的詳細資訊將始終保密。
  • Logo Aetna
  • Logo NASA
  • Logo GE
  • Logo Porsche
  • Logo USDA
  • Logo Qatar
受到全球數百萬工程師的信任
立即獲取您的30天試用金鑰。
無需信用卡或帳戶建立
C# PDF的NuGet程式庫
使用NuGet安裝

版本: 2026.10

PM > Install-Package IronOcr
nuget.org/packages/IronOcr/
  1. 在解決方案資源管理器中,右鍵點擊參考,管理NuGet包
  2. 選擇瀏覽並搜尋"IronOCR"
  3. 選擇包並安裝
C# PDF DLL
下載 DLL

版本: 2026.10

或這裡下載Windows安裝程式。

  1. 下載並解壓IronOCR至您的方案目錄下的~/Libs等位置
  2. 在Visual Studio解決方案資源管理器中,右鍵點擊參考。選擇瀏覽,"IronOCR.dll"

授權從$999