CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - imagescanner
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - imagescanner - List
[
CSharp
]
图像扫描
DL : 0
一个C#写的图像扫描的程序,功能虽然简单,但有一定的参考价值-A c# program for image scan with simple function and good reference value.
Date
: 2025-07-11
Size
: 18kb
User
:
楂樻攢
[
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-07-11
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.