CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - stopwatch
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Sub Category
Picture Viewer
2D Graphic
3D Graphic
Graph Drawing
Wavelet
GIS program
Fractal program
Special Effects
OpenGL program
Graph Recognize
CAD
OpenCV
VTK
Search - stopwatch - List
[
Graph Recognize
]
条码识别
DL : 0
Image primaryImage = Image.FromFile(fileName); Bitmap pImg = MakeGrayscale3((Bitmap)primaryImage); using (ZBar.ImageScanner scanner = new ZBar.ImageScanner()) { List<ZBar.Symbol> symbols = new List<ZBar.Symbol>(); System.Diagnostics.Stopwatch watch = new Stopwatch(); watch.Start(); symbols = scanner.Scan((Image)pImg); watch.Stop(); TimeSpan timeSpan = watch.Elapsed; MessageBox.Show("扫描执行时间:" + timeSpan.TotalMilliseconds.ToString()); if (symbols != null && symbols.Count > 0) { string result = string.Empty; symbols.ForEach(s => result += "条码内容:" + s.Data + " 条码质量:" + s.Type + Environment.NewLine); MessageBox.Show(result); } }(This is the code that c# identifies with ZBar, which I use to automatically generate Baidu translation just to download the code on the site)
Date
: 2025-12-15
Size
: 2.57mb
User
:
jackwang1211
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.