原創|使用教程|編輯:龔雪|2015-12-07 13:47:45.000|閱讀 762 次
概述:Neodynamic Barcode Reader SDK是一款條碼識別和讀取開發包,本文將簡單介紹如何用Neodynamic Barcode Reader SDK實現條碼的識別。附C#和VB代碼供參考。
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
【Neodynamic Barcode Reader SDK下載】
Neodynamic Barcode Reader SDK是一款可以對.NET應用和ASP.NET網站添加條碼識別和讀取功能的高級開發包,可以從數字圖像、 位圖和掃描的文檔等中識別讀取多種一維線型條碼。支持多種條碼類型。
本文將簡單介紹如何用Neodynamic Barcode Reader SDK實現條碼的識別。
假設需對下圖進行解碼識別,我們知道這圖片中包含了EAN-13碼和Code-128碼。可參考下面代碼,對圖片進行掃描識別,再獲取控制臺結果。
步驟:
VB 'Add the Barcode Reader namespace reference Imports Neodynamic.SDK.BarcodeReader
'Create a BarcodeReader object Dim myReader As New BarcodeReader() 'Add the barcode symbologies to be recognized myReader.Symbology.Add(Symbology.Ean13) myReader.Symbology.Add(Symbology.Code128) 'Set max num of barcode symbols to be detected myReader.Hints.MaxNumOfBarcodes = 2 'Scan the source image and get result Dim results As List(Of BarcodeScanResult) = myReader.Scan("c:\barcode_sample.jpg") 'Display scan result For Each result As BarcodeScanResult In results Console.WriteLine("Barcode Type: " & result.Symbology.ToString()) Console.WriteLine("Barcode Data: " + result.Text) Console.WriteLine("=============") Next
C#
//Add the Barcode Reader namespace reference using Neodynamic.SDK.BarcodeReader;
//Create a BarcodeReader object BarcodeReader myReader = new BarcodeReader(); //Add the barcode symbologies to be recognized myReader.Symbology.Add(Symbology.Ean13); myReader.Symbology.Add(Symbology.Code128); //Set max num of barcode symbols to be detected myReader.Hints.MaxNumOfBarcodes = 2; //Scan the source image and get result List<BarcodeScanResult> results = myReader.Scan(@"c:\barcode_sample.jpg"); //Display scan result foreach (BarcodeScanResult result in results) { Console.WriteLine("Barcode Type: " + result.Symbology.ToString()); Console.WriteLine("Barcode Data: " + result.Text); Console.WriteLine("============="); }
本文譯自
點擊查看產品詳情
購買最新正版授權!""
慧都年終盛典火爆開啟,一年僅一次的最強促銷,破冰鉅惠不容錯過!!優惠詳情點擊查看>>
本站文章除注明轉載外,均為本站原創或翻譯。歡迎任何形式的轉載,但請務必注明出處、不得修改原文相關鏈接,如果存在內容上的異議請郵件反饋至chenjj@fc6vip.cn