原創(chuàng)|使用教程|編輯:龔雪|2015-12-07 13:47:45.000|閱讀 782 次
概述:Neodynamic Barcode Reader SDK是一款條碼識(shí)別和讀取開(kāi)發(fā)包,本文將簡(jiǎn)單介紹如何用Neodynamic Barcode Reader SDK實(shí)現(xiàn)條碼的識(shí)別。附C#和VB代碼供參考。
# 界面/圖表報(bào)表/文檔/IDE等千款熱門(mén)軟控件火熱銷售中 >>
【Neodynamic Barcode Reader SDK下載】
Neodynamic Barcode Reader SDK是一款可以對(duì).NET應(yīng)用和ASP.NET網(wǎng)站添加條碼識(shí)別和讀取功能的高級(jí)開(kāi)發(fā)包,可以從數(shù)字圖像、 位圖和掃描的文檔等中識(shí)別讀取多種一維線型條碼。支持多種條碼類型。
本文將簡(jiǎn)單介紹如何用Neodynamic Barcode Reader SDK實(shí)現(xiàn)條碼的識(shí)別。
假設(shè)需對(duì)下圖進(jìn)行解碼識(shí)別,我們知道這圖片中包含了EAN-13碼和Code-128碼。可參考下面代碼,對(duì)圖片進(jìn)行掃描識(shí)別,再獲取控制臺(tái)結(jié)果。

步驟:
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("=============");
}
本文譯自
點(diǎn)擊查看產(chǎn)品詳情
購(gòu)買最新正版授權(quán)!""
慧都年終盛典火爆開(kāi)啟,一年僅一次的最強(qiáng)促銷,破冰鉅惠不容錯(cuò)過(guò)!!優(yōu)惠詳情點(diǎn)擊查看>>
本站文章除注明轉(zhuǎn)載外,均為本站原創(chuàng)或翻譯。歡迎任何形式的轉(zhuǎn)載,但請(qǐng)務(wù)必注明出處、不得修改原文相關(guān)鏈接,如果存在內(nèi)容上的異議請(qǐng)郵件反饋至chenjj@ke049m.cn