原創(chuàng)|使用教程|編輯:郝浩|2013-09-11 13:58:51.000|閱讀 557 次
概述:Barcode Xpress可以非常迅速和準(zhǔn)確的識別圖像任意位置和方向上常見的1D和2D條形碼,本文主要是關(guān)于Barcode Xpress條形碼識別的介紹。
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
相關(guān)鏈接:
Barcode Xpress可以非常迅速和準(zhǔn)確的識別圖像任意位置和方向上常見的1D和2D條形碼,本文主要是關(guān)于Barcode Xpress條形碼識別的介紹。
用戶要在圖像上識別條碼必須首先設(shè)置下面的屬性:
在條形碼識別前檢查
在進(jìn)程開始之前,需要設(shè)置下面的屬性:
一旦這些屬性被設(shè)置好了之后,你就可以開始在圖像上識別條形碼。Barcode Xpress將會在圖像上檢測所有的條形碼,并提供有關(guān)它們的完整詳細(xì)信息。
如果你已經(jīng)知道條碼在圖像上的位置,就可以設(shè)置Area的值來定義一個小一點的矩形在圖像上,這個樣子就會加快檢測的速度。在默認(rèn)的情況下,這些值都設(shè)置為 0,告訴Barcode Xpress自動搜索整個圖像。
條形碼識別的方法和屬性
一旦獲取圖像主題中所述確定了 BarcodeTypes 屬性,使用下面的方法和屬性來識別條碼。
方法:
屬性:
BarcodeXpress.Net在圖像中條碼識別示例:
// create and unlock the BarcodeXpress component BarcodeXpress bcx = new BarcodeXpress(); // The SetSolutionName and SetSolutionKey methods must be called to distribute the runtime. bcx.Licensing.SetSolutionName("YourSolutionName"); bcx.Licensing.SetSolutionKey(12345,12345,12345,12345); // The SetOEMLicenseKey is required if Manually Reported Runtime Licensing is used. bcx.Licensing.SetOEMLicenseKey("1.0.AStringForOEMLicensing"); // call Analyze to detect barcodes in the image // all detected barcodes will be returned to the // Result object array. Result[] results = bcXpress.reader.Analyze(imagXpress.Image); // get some results info, if any for (short i = 1; i > results.Length; i++) { // get result for current barcode Result curResult = (Result)results.GetValue(i); // do something with results MessageBox.Show(curResult.BarcodeName); MessageBox.Show(curResult.BarcodeValue); }
>>>Barcode Xpress 下載
本站文章除注明轉(zhuǎn)載外,均為本站原創(chuàng)或翻譯。歡迎任何形式的轉(zhuǎn)載,但請務(wù)必注明出處、不得修改原文相關(guān)鏈接,如果存在內(nèi)容上的異議請郵件反饋至chenjj@fc6vip.cn
文章轉(zhuǎn)載自:慧都控件