当前位置:网站首页>How does LeadTools detect, read and write barcodes
How does LeadTools detect, read and write barcodes
2020-11-06 22:27:00 【roffey】
There are many multi page files in the workplace . Able to load 、 Splitting and extraction are important requirements for many applications . Some of the most common types of files :PDF,TIFF and Microsoft Office Format , for example Docx,Doc,Xls and Xlsx.LEADTOOLS Supports all of these formats as well as 30 Many other multi page formats . Because there are many different types of multi page formats , So trying to support common formats can be a headache , And trying to support all of these formats is like a nightmare . Fortunately, ,LEADTOOLS SDK This application can be completed in less than five lines of code .
LEADTOOLS (Lead Technology) from Moe Daher and Rich Little Founded in 1990 year , Its headquarters are in Charlotte, North Carolina .LEAD Is established to make Daher Mr. Wang's invention in the field of digital image and compression technology is market-oriented . In the past, more than 30 In the course of development in ,LEAD With its market leadership in major countries around the world , It has become an established global leader in the field of digital image development tools .LEADTOOLS Developed and released LEAD It's an award-winning development kit .
Click to see LEADTOOLS Series of products
When encoding and decoding machine-readable data within a barcode , Speed and accuracy are the key .LEADTOOLS Provides a top-level computer vision barcode library than any other bar code on the market SDK All faster , More reliable , This ensures that you always get the best results .
Whether it's found on the back of your license PDF417 bar code , On the sticker is QR bar code , Or on the back of the product is UPC bar code ,LEADTOOLS Can support it and 100 A variety of different bar code symbols .
Just four lines of code , You can determine the symbol system of the bar code , Scope, etc . Whatever the angle or the color , Can quickly find and decode all supported symbol systems . To improve accuracy ,LEAD There are many different configuration options available , for example EnableDoublePass,EnablePreprocessing and EnableFastMode, To modify the behavior of barcode decoding to suit your application requirements .
Below C# The code shows you everything you need to detect and decode barcodes in an image . If you need a complete step-by-step tutorial , Check out our tutorial , This guide describes how to detect and extract barcodes and how to 1D and 2D The barcode is written into the image .
// READ BARCODE
static void ReadBarcode(RasterImage image)
{
BarcodeEngine barcodeEngineInstance = new BarcodeEngine();
try
{
BarcodeData[] dataArray = barcodeEngineInstance.Reader.ReadBarcodes(image, LeadRect.Empty, 0, null);
StringBuilder sb = new StringBuilder();
sb.AppendFormat("{0} barcode(s) found", dataArray.Length);
sb.AppendLine();
for (int i = 0; i < dataArray.Length; i++)
{
BarcodeData data = dataArray[i];
sb.AppendFormat("Symbology: {0}, Location: {1}, Data: {2}", data.Symbology.ToString(), data.Bounds.ToString(), data.Value);
sb.AppendLine();
}
Console.WriteLine(sb.ToString());
}
catch (Exception ex)
{
Console.WriteLine(ex);
}
Console.ReadLine();
}
// GENERATE BARCODE
static void WriteUPCABarcode(RasterImage image)
{
BarcodeData data = new BarcodeData
{
Symbology = BarcodeSymbology.UPCA,
Value = "01234567890",
Bounds = new LeadRect(10, 10, 600, 200)
};
OneDBarcodeWriteOptions options = new OneDBarcodeWriteOptions
{
EnableErrorCheck = true,
TextPosition = BarcodeOutputTextPosition.Default
};
barcodeEngine.Writer.WriteBarcode(image, data, options);
}
Give it a try !
Test yourself , Please make sure to get the latest... Free of charge from our website LEADTOOLS SDK assessment ( If not already installed ). The trial version is valid for 60 God .
Please keep an eye on , We will continue to release more tutorials , Programmers can use these tutorials to develop direct impact data capture , distinguish , Exchange applications with other urgent business needs .
版权声明
本文为[roffey]所创,转载请带上原文链接,感谢
边栏推荐
- How to add modules to nginx image?
- 如何才能快速正确的部署甘特图
- Count the number of project code lines
- September 3, 2020: naked writing algorithm: loop matrix traversal.
- Introduction to Huawei cloud micro certification examination
- The advantages and functions of psychological counseling app
- 20个XR项目路演,近20个资本机构出席!诚邀您参加2020 Qualcomm XR生态合作伙伴大会
- JS string - string string object method
- [forward] how to view UserData in Lua
- Code generator plug-in and creator preform file analysis
猜你喜欢
C and C / C + + mixed programming series 5 - GC collaboration of memory management
Design of NAND flash interface control
10000! Ideal car recalls all defective cars: 97 accidents have occurred and losses will be expanded
插件Bilibili新版0.5.5
Ora-02292: complete constraint violation (midbjdev2.sys_ C0020757) - subrecord found
Application layer software development Godfather teaches you how to refactor, senior programmers must professional skills
August 14, 2020: what are the execution engines for data tasks?
2020-08-29: process thread differences, in addition to the inclusion relationship, the underlying details?
2020 database technology conference helps technology upgrade
vue3 新特性
随机推荐
小程序商城系统插件代码该如何写?怎么用代码检查添加插件是否成功?
Web API interface design: swaggerui document / unified response format / unified exception handling / unified authority verification
打工人好物——磨炼钢铁意志就要这样高效的电脑
超高频RFID医疗血液管理系统应用
预留电池接口,内置充放电电路及电量计,迅为助力轻松搞定手持应用
Nanjing logo design and production, guide VI system design
Practice of Xiaoxiong school development board: real equipment access of smart street lamp sandbox experiment
Two dimensional code location and alarm system of Expressway
[graffiti Internet of things footprints] panoramic introduction of graffiti cloud platform
August 14, 2020: what are the execution engines for data tasks?
Application of UHF RFID medical blood management system
JS array the usage of array is all here (array method reconstruction, array traversal, array de duplication, array judgment and conversion)
Message queue - Analysis
Google browser realizes video playback acceleration function
Application insights application insights use application maps to build request link views
RFID fixed assets management system for fire equipment
Novice guidance and event management system in game development
迅为-iMX6ULL开发板上配置AP热点
Qt音视频开发46-视频传输UDP版
What the hell is fastthreadlocal? The existence of ThreadLocal!!