Barcode library
View on WikipediaBarcode library or Barcode SDK is a software library that can be used to add barcode features to desktop, web, mobile or embedded applications. Barcode library presents sets of subroutines or objects which allow to create barcode images and put them on surfaces or recognize machine-encoded text / data from scanned or captured by camera images with embedded barcodes. The library can support two modes: generation and recognition mode, some libraries support barcode reading and writing in the same way, but some libraries support only one mode.
At this time barcode technology allows to add machine reading tags or machine reading additional data to any object of real world with less than one cent cost.[1] and use any of camera equipped device to identify additional data about an object. In this way, combination of barcode technology and barcode library allows to implement with low cost any automatic document processing[2][3] application, OMR application, package tracking[4][5] application or even augmented reality[6][7] application.
History
[edit]The first Barcode SDKs were not implemented as software libraries but as standalone applications for MS-DOS and Windows[8][9][10] and as Barcode fonts.[11] At that time barcodes were used mostly in retail and for internal corporation needs, thus barcode users looked for all-inclusive hardware solutions[12] to generate, print and recognize barcodes.
The situation changed when camera equipped devices (like mobile phones) and document scanners became common for everyday usage. Because barcodes could be scanned and recognized on common ordinary equipment and industrial and office users did not need to obtain expensive specialized one-function devices for barcode reading, the need for barcode writing and reading SDKs and libraries increased.
Barcode writing libraries already had been implemented as barcode fonts or standalone applications in projects like GNU Barcode or Zint. Implementation of a barcode writing library does not require hard Computer Science skills because it just need to follow AIM[13] or ISO specifications.[14] It does not have any difference from encoding data in special file format.
2D barcodes encoding is more difficult because 2D barcodes instead of 1D barcodes have additional encoding data like columns, rows, ECI or data correction options. Some 2D barcodes like MaxiCode or Pdf 417 also have special encoding fields like Post Address or metadata which convert these barcodes in multiple graphical files.[15] These differences could not be solved by barcode fonts usage and required API with multiple parameters processing.
Barcode reading libraries are more complex, requiring Computer Vision techniques. However, they can be run on common camera or scanner equipped devices. The first libraries could recognize only 1D barcodes by laser scanners mode emulation. This mode captured the whole image but then library made some scan-lines with Bresenham's algorithm and tried to recognize data from these lines as hardware laser scanners did. The bright representation of these libraries is early ZXing project supported by Google, ZBar[16] or other solutions.[17][18]
For the recognition of 2D barcodes laser scanners mode emulation is not suitable. Moreover, this method has difficulty with barcode area detection, which causes problems with 1D angled barcode detection. More complicated methods from Computer Vision were implemented[19][20] to improve recognition quality for 1D and 2D barcodes.
Application
[edit]Barcode libraries have provided low cost automatic identification and data capture features to various fields of services and industry. This can be entertainment, healthcare, postal services, such as document processing or retail applications.
They can be used for:
- Advertisement[21]
- Augmented reality implementation[22] as quick identification of virtual objects
- Automatic data identification in document processing
- Automatically identified hyperlinks to internet pages
- Automatically recognized payment bills[23]
- Creative usage of barcodes in design[24]
- Data entry for documents, like driver ID,[25] receipt or passport
- Encryption keys transfer and documents validation
- Food and goods tracking in retail
- Games in augmented reality
- In airports, bus / railroad stations for automatic tickets and passenger documents identification
- Internet of Things with linkage of physical object to virtual representation
- Package tracking[26]
- Patient or medicine identification in healthcare services or industry
- Quick information extraction from business cards[27]
- Tracking of rental cars, airline luggage and even nuclear wastes
- Vehicles identification[28]
Types
[edit]Barcode libraries and or Barcode SDKs can be split in different types, which is based on their functionality:
- Barcode Fonts
- Barcode Writing library
- Barcode Reading library
- Barcode Full support library
The first barcode libraries were fully transparent to user and used as simple printing text with specialized TrueType Fonts. This works well for 1D barcodes, because 1D barcode just the same as linear text, sometimes with checksum. Usage of Barcode Fonts with 2D barcodes also possible but it has problem with metadata processing like setting barcode row and columns and metadata. This is solved with predefined different metadata values in set of fonts for the same type of barcode.
Barcode libraries with API calls have more customization features in writing and reading modes. However, only part of libraries has full support of writing and reading modes. More than half of libraries supports only one mode.
Barcode library list
[edit]Barcode libraries can support different barcode formats and programming languages. Also, they have different support of reading and writing functionality. Most common barcode libraries and SDKs are represented in the following list:
| Name | Company | License | Type | Languages | Platforms | Library abilities | Supported barcode types |
|---|---|---|---|---|---|---|---|
| Aspose.Barcode[29] | Aspose | Proprietary, Royalty-free | Full | Java, .NET, C++, PHP, JavaScript, Python | Cross-platform(native), Java, .NET, Android, iOS and Tizen via .NET MAUI, Python via .NET and Java, Web | Aspose.Barcode library can write barcodes in 7 image formats and read barcodes from 5 image formats. Reading barcodes from MS Word documents and PDF files is also possible with Aspose.Words and Aspose.PDF components. | more than 80[30] barcode types |
| Barcode Writer in Pure PostScript[31] | Terry Burton Consulting Ltd | MIT with commercial support | Write | PostScript | Cross-platform | Barcode Writer in Pure Postscript can generate all barcode formats entirely within PostScript. | more than 70[32] barcode types |
| Barcode4J[33] | SourceForge | Apache 2.0 | Write | Java | Java | Barcode4J library can generate barcode images in 5 image formats. The project is outdated. | 15[34] barcode types |
| BarcodeLib[35] | BarcodeLib.com | Proprietary, Royalty-free | Full | Java, .NET | Java, .NET | BarcodeLib library can write barcodes in 7 image formats and read barcodes from 5 image formats | 11 types of 1D barcodes and 3 types of 2D barcodes |
| barKoder Barcode Scanner SDK[36] | barKoder Ltd | Proprietary | Read | C, Java, Objective-C, Swift, Kotlin, JavaScript, C++, .NET, Dart, C#, TypeScript, Python | Android, iOS, Xamarin, Flutter, React Native, Linux, Cordova, .NET MAUI, Windows, Web, Browser, Cross-platform, NativeScript, Capacitor | The barKoder barcode scanner SDK supports barcode scanning both via images (5 formats) or through cameras of mobile devices | more than 30 barcode types |
| ByteScout BarCode SDK[37] | ByteScout, Inc. | Proprietary, Royalty-free | Full | .NET; JavaScript via REST API; COM API: C++, Java, Delphi, PHP, VBScript | .NET, Windows, Web | ByteScout BarCode SDK libraries can write barcodes in 7 image formats and read barcodes from 5 image formats. | more than 20 barcode types |
| ClearImage Barcode Reader SDK[38] | Inlite Research, Inc | Proprietary, per computer | Read | .NET; COM API: C++, Java, Delphi, PHP, VBScript | Windows | Barcode Reader library can read barcodes from 5 image formats and pdf files. | 19 barcode types |
| Cognex Barcode Scanner SDK[39] | Cognex | Proprietary, Royalty-free | Read | Java, .NET, Objective-C, Swift | Android, iOS | Cognex Barcode Scanner SDK can capture and recognize barcodes from mobile camera | 17 barcode types |
| Docutain Barcode Scanner SDK[40] | INFOSOFT Informations und Dokumentations systeme GmbH | Proprietary | Read | Java, JavaScript, .NET, Swift, Kotlin, Dart, C# | Android, iOS, Xamarin, Flutter, Cordova, Ionic, React Native, .NET MAUI | Docutain Barcode Scanner SDK can read 9 types of 1D barcodes and 4 different 2D formats with mobile apps. | 13 barcode types |
| DTK Software Barcode Reader SDK[41] | DTK Software | Proprietary | Read | Java, .NET | Java, .NET | DTK Barcode Reader SDK can read barcodes from 5 image formats | more than 30 barcode types |
| Dynamsoft Barcode Reader SDK[42] | Dynamsoft | Proprietary, Per Computer | Read | C++; Objective-C; Native API Wrapper: .NET, PHP, Java; JavaScript via WebAssembly | Windows, Linux, Android via Xamarin, iOS via Xamarin, Browser | Dynamsoft Barcode Reader SDK can read barcodes from more than 5 image formats and recognize barcodes from camera | more than 30 barcode types |
| GdPicture.NET Barcode SDK[43] | ORPALIS | Proprietary, Royalty-free | Full | .NET | .NET | Library can write and read barcodes from almost 90 image and document formats[44] | more than 30 barcode types |
| GNU Barcode[45] | GNU Operating System | GPLv3 | Write | PostScript | Cross-platform | GNU Barcode library can generate barcodes directly in document by Postscript language | 10 barcode types |
| IBscanner for .NET[46] | Inobix | Proprietary, Royalty-free | Read | .NET | .NET | IBscanner for .NET library can read barcodes from 5 image formats | 12 types of 1D barcodes |
| IDAutomation Barcode Generator[47] | IDAutomation.com, Inc. | Proprietary, Royalty-free | Write | Java, .NET, C++, PHP, JavaScript, VBA, TrueType Fonts | Java, .NET, Windows, Web | IDAutomation Barcode Generator library and TrueType Fonts can generate barcodes in various programming languages and applications which support TrueType Fonts | 24[48] barcode types |
| KeepDynamic Barcode SDK[49] | KeepDynamic.com | Proprietary, Royalty-free | Full | Java, .NET, VBA | Java, .NET, MS Office | KeepDynamic Barcode SDK can write barcodes in 7 image formats and read barcodes from 5 image formats. | 9 types of 1D barcodes and 3 types of 2D barcodes |
| LEADTOOLS Barcode SDK[50] | LEAD Technologies, Inc | Proprietary, Per Application | Full | Java, .NET, C++, Objective-C, Swift, JavaScript via REST API | Cross-platform(native), Java, .NET, Android, iOS, Web | LEADTOOLS Barcode SDK can write barcodes in various image formats and read barcodes from various image formats (depends on platform) | more than 50 barcode types |
| ML Kit Barcode Scanning API[51] | Google API[52] | Read | Java, Objective-C, Swift | Android, iOS | ML Kit Barcode Scanning API can recognize barcodes from mobile camera | 13 barcode types | |
| Neodynamic Barcode Professional[53] | Neodynamic SRL | Proprietary, Royalty-free | Full | .NET; JavaScript, PHP via REST API | .NET, Web | Neodynamic Barcode Professional can write more than 70 barcode types in 7 image formats and read 12 barcode types from 5 image formats. | write: more than 70[54] barcode types / read: 12[55] types of 1D barcodes |
| OnBarcode Barcode SDK | OnBarcode | Proprietary, Royalty-free | Full | Java, .NET, Objective-C | Java, .NET, Android, iOS | OnBarcode Barcode SDK can write barcodes in 7 image formats and read barcodes from 5 image formats (depends on platform) | more than 20 barcode types |
| OpenBarcodes[56] | SourceForge | GPLv2 | Write | TrueType Font | Cross-platform | OpenBarcodes TrueType Fonts can encode text to barcode in any rich text application | 4 types of 1D barcodes and 3 types of 2D barcodes |
| pqScan Barcode SDK[57] | pqScan | Proprietary, Royalty-free | Full | Java, .NET | Java, .NET | pqScan Barcode SDK can write barcodes in 7 image formats and read barcodes from 5 image formats | 13 barcode types |
| Python Barcode Library[58] | Game Maker 2k | BSD | Write | Python | Cross-platform | Python Barcode Library can generate barcode images with Python language | 12 barcode types |
| Scanbot Barcode Scanner SDK[59] | Scanbot SDK | Proprietary | Read | Java, Objective-C, Swift, Kotlin, Dart, JavaScript, C#, .NET | Android, iOS, Browser, Xamarin, Cordova, Ionic, Flutter, React Native | Scanbot Barcode Scanner SDK can read 9 types of 1D barcodes and 9 different 2D formats via apps and websites. | 18 barcode types |
| SD-TOOLKIT Barcode SDK[60] | SD-TOOLKIT | Proprietary, Royalty-free | Read | Java; .NET; C++(native); COM API: C++, Java, Delphi, VBScript; Objective-C | Java; .NET, Android, iOS, Windows | SD-TOOLKIT Barcode SDK can read barcodes from 5 image formats | 15 types of 1D barcodes and 4 types of 2D barcodes |
| SmartCodeDeveloper SDK[61] | TechnoRiver | Proprietary, Royalty-free | Write | .NET | .NET | SmartCodeDeveloper SDK can write barcodes in 7 image formats | more than 30 barcode types |
| Spire.Barcode[62] | E-iceblue Co. Ltd. | Proprietary, Royalty-free | Full | Java, .NET | Java, .NET, Android via Xamarin, iOS via Xamarin | Spire.Barcode library can write barcodes in 7 image formats and read barcodes from 5 image formats | 39[63] barcode types |
| Syncfusion.Barcode | Syncfusion | Proprietary | Write | .NET | .NET | Syncfusion.Barcode library generates barcodes as images or PDF documents. Also, provide UI controls to display the barcodes in UI. | 10 types of 1D barcodes and 2 types of 2D barcodes |
| TBarCode SDK[64] | TEC-IT Datenverarbeitung GmbH | Proprietary, Royalty-free | Write | .NET; C++; Delphi; PowerBuilder; COM API: C++, Delphi, VBScript; ABAP | Cross-platform(native), .NET, SAP | TBarCode SDK can write barcodes in 7 image formats (depends on platform) | more than 70[65] barcode types |
| VintaSoft Barcode .NET SDK[66] | VintaSoft | Proprietary, Royalty-free | Full | .NET | .NET, Android via Xamarin | VintaSoft Barcode .NET SDK can write barcodes in 7 image formats and read barcodes from 5 image formats. Also library can read images from embedded pdf[67] documents. | more than 60 barcode types |
| Viziotix Barcode Decoder SDK[68] | Viziotix | Proprietary Per Device | Read | C/C++, wrappers from C++ library: .NET, Python, Java, Swift | Windows, Linux, Android, iOS, CUDA | Viziotix Barcode Decoder SDK can read 28 barcode types from camera and most common image formats. | 28 barcode types[69] |
| VSBarcodeReader [70] | Vision Smarts SPRL | Proprietary, Royalty-free | Read | Objective-C, Swift, Java, Kotlin | iOS, Android, Xamarin, Cordova, Ionic | Vision Smarts Barcode Scanner SDK reads barcodes using the camera of the mobile device. It works 100% offline. | 18 types of 1D and 2D barcodes |
| ZBar[71] | SourceForge | GNU LGPL 2.1 | Read | Python, Perl, C++, C | Linux/Unix, Windows, iOS | ZBar library can capture image from video stream and recognize barcodes. The library works as linear scanner emulation. | 7 types of 1D barcodes and QR code |
| Zen Barcode Rendering Framework[72] | None | Public domain | Write | .NET | .NET | Zen Barcode Rendering Framework can write barcodes in 7 image formats | 9 barcode types |
| Zint[73] | SourceForge | Apache 2.0, BSD, GNU GPLv3 | Write | C, .NET via ZintNET[74] port, Java via Okapi Barcode[75] port | Linux/Unix, Windows, Java, .NET | Can generate barcodes in 6 image formats[76] (depends on port) | more than 50[77] barcode types |
| ZXing[78] | ZXing Project | Apache 2.0 | Full | Java, .NET, C++, Objective-C, JavaScript, PHP, Ruby, Python, TypeScript | Cross-platform(native), Java, .NET, Android, iOS, Web | ZXing library with ports can produce barcodes in various image formats (it depends from the source port) and read barcodes from image or from camera. | more than 20 barcode types |
Recommendations and best practices
[edit]Barcodes is the way of adding machine reading tags to any object[79] of real world with low cost. All other ways like RFID chips or object detection by image recognition are more expensive and difficult to implement. There are more than 200 barcode types and this makes choice of barcode type ambiguous. First barcode was standardized in 60th and there were two waves of barcode features development[80][81]
The first wave of creation barcode standards was started in 60th and those were 1D barcodes. Main advantages of these barcodes were simple encoding and recognition with laser scanners for linear barcodes. All of these restrictions were tied to slow 8-bit processors, which were used at that time. This makes 1D barcodes have restricted symbol encoding like Code 11 or have restricted barcode length like EAN 13, UPCA, EAN 8 or be used even without checksum like Code 39 barcodes. In addition to this, informational density encoding of these barcode types is too low.[82]
Moreover, all of these 1D barcodes have low quality checksum or even do not have any checksum which makes recognition process unpredictable on images with too low quality. Open source engines does not recognize 1D barcodes on images with low quality but barcode engines with advanced recognition algorithms can recognize these barcodes. Unfortunately, recognition of low quality images could produce some incorrect symbols in recognized text. Low-density encoding, encoding restrictions and weak checksum makes 1D barcode unsuitable to current requirements to informational systems and data processing. Using of 1D barcodes in the new applications is reasonable if only it is required by industrial standards[83][84]
The second way of barcode standards implementation was started in 90th and it was development of 2D barcodes. Main advantages of 2D barcodes are high encoding density, which is 10 times more, no restrictions to text encoding and self-checked codes like Reed Solomon codes, which not only add confidence in correct recognition but also can restore some wiped or corrupted barcode data.[85] Main disadvantage of 2D barcodes, they cannot be recognized by laser scanners, except PDF 417, for recognition they require photo scanners. Most of 2D barcodes can encode information in byte mode and this allows encoding both text in 8-bit national encoding charset and text in common Unicode charsets like UTF16 or UTF8 with ECI tag.
New projects should use 2D barcodes if industry standards permit.[86][87] They do not have any restrictions to encoding text, they can be correctly restored on corrupted or low quality images and their recognition result is fully confidential. The informational density allows placing them on the same area or even lesser than 1D barcodes. The main question here could be requirement to marked area. Most common QR code can be only in square size, same Aztec or Datamatrix in some sizes. If someone has a long rectangular area with low height, they can use Datamatrix with rectangular sizes, see DMRE [88] or PDF417, which can have difference width to height more than 64 times.
See also
[edit]- Application programming interface
- Automated identification and data capture (AIDC)
- Barcode
- Barcode printer
- Barcode reader
- Barcode system
- Computer vision
- Digital image processing
- Dynamic-link library
- Machine vision
- Object recognition
- Pattern recognition
- Software development kit (SDK)
- Software library
- TrueType Fonts
References
[edit]- ^ "Barcodes vs RFID, Why Barcodes Still Win". www.brightpearl.com. 17 August 2018.
- ^ Canteli, Ana (28 February 2020). "Barcode in document management". www.openkm.com.
- ^ "Barcodes help make your business processes more efficient". processflows.co.uk. Archived from the original on 2021-01-17.
- ^ "DHL shipment tracking labels". www.dhl.com.
- ^ "USPS Tracking Barcode and Label Changes". www.endicia.com.
- ^ Samara, Anatoliy; Hofmann, Klaus Michael; Groten, Dirk (4 September 2014). "Patent US 2014/0247278 A1 Barcode visualization in augmented reality" (PDF). United States Patent Application Publication.
- ^ Palladino, Tommy (11 February 2018). "Walmart Turns Its iPhone App's Barcode Scanner into an Augmented Reality Price Comparison Tool". mobile-ar.reality.news.
- ^ "PrintBar II Barcode printing software". books.google.com. ISSN 0888-8507, PC Mag, August 1989 p.464. August 1989.
- ^ "Bar Code Software for Windows". books.google.com. ISSN 0888-8507, PC Mag, 8 November 1994 p.414. 8 November 1994.
- ^ "LabelWorks for Windows". books.google.com. ISSN 0199-6649, InfoWorld Vol.17, №43 p.104. 23 October 1995.
- ^ "Bar Code Fonts for Windows". books.google.com. ISSN 0888-8507, PC Mag Vol.16, № 21. 2 December 1997.
- ^ "Bar Code Readers for IBM PC, Mac, and RS232 Terminals". books.google.com. ISSN 0888-8507, PC Mag Vol.16, № 21. 2 December 1997.
- ^ "AIM Specifications (ISS)". www.aimglobal.org.
- ^ "Standards by ISO/IEC JTC 1/SC 31 Automatic identification and data capture techniques". www.iso.org.
- ^ "MacroPDF417 Barcodes". www.barcodefaq.com.
- ^ "ZBar bar code reader. How does it work?". zbar.sourceforge.net.
- ^ Rocholl, Johann C.; Klenk, Sebastian; Heidemann, Gunther. "Robust 1D Barcode Recognition on Mobile Devices" (PDF). 2010 International Conference on Pattern Recognition.
- ^ Adelmann, Robert; Langheinrich, Marc; Flörkemeier, Christian. "Toolkit for Bar Code Recognition and Resolving on Camera Phones – Jump Starting the Internet of Things" (PDF). European Mathematical Information Service. S2CID 1050073.
- ^ Katona, Melinda; Bodńar, Ṕeter; Nýul, Ĺaszĺo G. "Distance Transform and Template Matching BasedMethods for Localization of Barcodes and QR Codes" (PDF).
- ^ Hansen, Daniel Kold; Nasrollahi, Kamal; Rasmusen, Christoffer B; Moeslund, Thomas B. "Real-Time Barcode Detection and Classification using Deep Learning" (PDF).
- ^ Trewe, Marti (4 June 2012). "QR codes work best in magazines, newspapers". theamericangenius.com.
- ^ Baruah, Basant (13 April 2020). "Augmented reality and QR codes – What you need to know". blog.beaconstac.com.
- ^ "Launch of the QR-bill in Switzerland". www.six-group.com. 9 June 2020.
- ^ "QR code design & use". www.prepressure.com. 31 January 2013.
- ^ "International drivers license. Booklet and plastic card". www.idlid.com.
- ^ "Han Xin Code". www.ancc.org.cn. Archived from the original on 2020-04-02.
- ^ "How to Make your Business Card Better with QR Codes". covve.com.
- ^ "Scanning Automobile VIN Bar Codes". www.barcodehq.com.
- ^ "Aspose.BarCode On Premise APIs". www.aspose.com.
- ^ "MSDN Magazine V32 N8, Aspose.BarCodeA complete toolkit for barcode generation and recognition" (PDF). Microsoft. August 2017. p. 99.
- ^ "Barcode Writer in Pure PostScript". bwipp.terryburton.co.uk.
- ^ "Symbologies Reference". github.com.
- ^ "Welcome to Barcode4J". sourceforge.net.
- ^ "Preview of all supported barcode symbologies by Barcode4J". sourceforge.net.
- ^ "Barcode Encoder & Decoder Components for .NET & Java developers". www.barcodelib.com.
- ^ barkoder.com. "Barcode Scanner SDK for all Enterprise mobile solutions". barkoder. Retrieved 2023-10-26.
- ^ "BarCode Reader SDK reads barcodes from scanned documents and images". bytescout.com. 10 August 2010.
- ^ "ClearImage Barcode Reader SDK". www.inliteresearch.com.
- ^ "Barcode Scanner SDK & API". manateeworks.com.
- ^ "Docutain Barcode Scanner SDK". sdk.docutain.com.
- ^ "Barcode Recognition SDK - DTK Software". www.dtksoft.com.
- ^ "Dynamsoft Barcode Reader SDK". www.dynamsoft.com. 21 December 2021.
- ^ "GdPicture.NET Barcode SDK for 1D & 2D Barcode Reading & Writing". www.gdpicture.com.
- ^ "GdPicture.NET: More than 100 Document Formats Supported". www.gdpicture.com.
- ^ "GNU Barcode". www.gnu.org.
- ^ "IBscanner for .NET". www.ibscanner.com.
- ^ "Barcode Generation Solutions for Business Automation". www.idautomation.com.
- ^ "Barcode Fonts". www.idautomation.com.
- ^ "Barcode Components". www.keepdynamic.com.
- ^ "Barcode SDK Technology". www.leadtools.com.
- ^ "Barcode Scanning, ML Kit, Google Developers". developers.google.com.
- ^ "Google APIs Terms of Service". google.com.
- ^ "Barcode, Labeling, Printing & Imaging components". neodynamic.
- ^ "Barcode Symbologies". www.neodynamic.com.
- ^ "Recognize, Read and Decode Barcodes from Images". www.neodynamic.com.
- ^ "The barcodes". grandzebu.net.
- ^ "World Leading .NET SDK for Barcode Scanning and Reading". www.pqscan.com.
- ^ "Python Barcode Library". github.com. 8 August 2022.
- ^ "Barcode Scanner SDK". scanbot.io.
- ^ "Barcode Reader SDK for Windows". www.sd-toolkit.com.
- ^ "The industry leading Barcode SDK". www.technoriversoft.com.
- ^ ".NET Barcode Library - Generate, Read and Scan 1D 2D Barcode Images". www.e-iceblue.com.
- ^ "Supports rich Barcode type, more than 39 different barcodes". www.e-iceblue.com.
- ^ "TBarCode SDK - Barcode Generator Software". www.tec-it.com.
- ^ "TBarCode SDK Data Sheet & Barcode Overview". www.tec-it.com.
- ^ "VintaSoft Barcode .NET SDK". www.vintasoft.com.
- ^ "Read barcodes from PDF document". www.vintasoft.com.
- ^ "Powerful Barcode Decoder SDK - Viziotix". www.viziotix.com.
- ^ "Expert barcode scanner SDK for smartphones, robots, drones and cameras" (PDF). www.viziotix.com.
- ^ "VS BARCODE READER". visionsmarts.com.
- ^ "ZBar bar code reader". sourceforge.net.
- ^ "Zen Barcode Rendering Framework". github.com. 6 January 2023.
- ^ "Zint Barcode Generator". sourceforge.net.
- ^ "ZintNET is a .NET port of the popular Zint Library written in C#". sourceforge.net.
- ^ "Okapi Barcode". github.com. 30 December 2022.
- ^ "Zint Barcode Generator and Zint Barcode Studio User Manual Introduction". www.zint.org.uk.
- ^ "Zint Barcode Generator and Zint Barcode Studio User Manual Types of symbology". www.zint.org.uk.
- ^ "ZXing ("Zebra Crossing") barcode scanning library for Java, Android". github.com. 12 January 2023.
- ^ "Automatic Identification and Data Capturing (AIDC) Technology". www.elprocus.com. ElProCus is an educational website on electronic projects for ECE and EEE students. 6 June 2014.
- ^ "History of Barcodes". barcodeguide.seagullscientific.com. BarTender by Seagull Scientific.
- ^ "History of the Barcode Scanner". www.dbk.com. Refurbished IT Solutions. Archived from the original on 2022-04-23.
- ^ "What is the most efficient barcode to use?". www.barcodefaq.com. Barcode Information Tutorials.
- ^ "Barcoding – getting it right Recommendations for best practice by GS1 UK" (PDF). www.gs1uk.org. GS1 UK The Global Language of Business.
- ^ "Best practices for improving the quality of Bar codes at the Point-of sale" (PDF). www.gs1.at. GS1 Austria.
- ^ "Error correction makes a big difference in the choice of 1D vs. 2D barcoding". www.supplychainservices.com. 4 December 2014. Archived from the original on 2022-03-30.
- ^ "Understanding the Value of 2D Barcodes". www.maibpo.com. Archived from the original on 2020-07-11.
- ^ "3 Ways that 2D Barcodes Increase Warehouse Efficiency". lowrysolutions.com. 4 October 2016.
- ^ "DMRE". www.e-d-c.info. Retrieved 2021-12-16.
External links
[edit]Barcode library
View on GrokipediaOverview
Definition and terminology
A barcode library, also known as a barcode SDK (software development kit), is a collection of code, application programming interfaces (APIs), documentation, and related resources that enables developers to integrate barcode scanning, decoding, and/or generation capabilities into software applications.[3][4] These libraries are commonly employed in mobile applications for iOS and Android platforms to support automatic identification and data capture through device cameras. Barcode libraries vary in scope: some provide only barcode generation (creating barcode images from input data), others focus exclusively on recognition (detecting and decoding barcodes from images or live camera feeds), and many support both generation and recognition functions. A fundamental term is barcode symbology, which refers to a defined encoding scheme for representing numeric, alphabetic, or other data as a scannable pattern of bars, spaces, or shapes.[5] Symbologies are broadly classified into one-dimensional (1D) and two-dimensional (2D) types. 1D barcodes (also called linear barcodes) consist of parallel lines and spaces of varying widths that encode data along a single horizontal axis, typically holding a limited amount of information (such as numeric identifiers) and requiring a scan across the entire width.[6] 2D barcodes use patterns extending in both horizontal and vertical dimensions—such as squares, dots, or hexagons—enabling significantly higher data capacity, error correction, and omnidirectional scanning.[6]Purpose and core capabilities
Barcode libraries, also known as barcode SDKs, are software components that enable applications to scan, decode, and sometimes generate barcodes, with primary usage in mobile apps for iOS and Android platforms. Their central purpose is to facilitate automatic identification and data capture (AIDC), a technology that automatically identifies objects, collects data from machine-readable codes such as barcodes, and enters it directly into computer systems without manual intervention.[7] This process bridges the physical and digital worlds by encoding data into scannable formats, reading it with devices, and processing it for storage or use, thereby reducing human error, accelerating operations, and providing real-time visibility into business processes.[7] Core capabilities typically include scanning and decoding of supported barcode symbologies, on-device processing for offline functionality that allows operation without an internet connection, and integration into applications for real-time data capture.[8] These features support consistent data capture in many environments, making barcode libraries suitable for a range of workflows. Barcode libraries play an essential role in key industries. In retail, they support inventory management through real-time stock updates, accelerate checkouts by quickly retrieving product information, and enable promotion and authenticity verification.[9] In logistics and warehousing, they facilitate inbound and outbound tracking, real-time goods monitoring, accurate picking and sorting, and error reduction during order fulfillment.[9] In healthcare, they enable patient identification via wristband scanning, medication administration verification, medical equipment tracking, and secure management of laboratory samples to prevent mix-ups.[9] These applications underscore the libraries' importance for efficient automatic identification and data capture across diverse operational contexts.[7]Historical development
The development of barcode libraries originated alongside the emergence of barcode standards in the 1970s. The Universal Product Code (UPC) was established in 1973, with the first commercial scan occurring on June 26, 1974, at a supermarket using IBM-developed hardware scanners.[10] During the 1970s and 1980s, barcode applications expanded in retail, warehouses, and libraries, but software implementations remained limited, primarily consisting of generation tools integrated with hardware scanners or basic printing solutions.[11] Early software advancements appeared in the late 1990s and early 2000s, with professional tools for generating high-quality barcodes and the gradual shift toward image-based decoding as camera-equipped devices emerged, enabling software processing of captured images. The rise of mobile barcode scanning libraries began in the early 2000s with the introduction of camera-equipped phones, particularly in Japan where QR code scanning was integrated into mobile services in 2002, though limited by low-resolution cameras.[12] The 2010s marked a transformative period, driven by smartphones featuring high-resolution cameras and increased processing power, which enabled reliable software decoding from images without specialized hardware.[12] During this decade, mobile operating systems incorporated barcode scanning capabilities into their development kits, facilitating widespread adoption in consumer and commercial applications across retail, e-commerce, and logistics.[12] Into the 2020s, barcode libraries evolved further toward enterprise-grade solutions, emphasizing robust image processing to address demanding scenarios and support complex, large-scale use cases in professional environments.Technical fundamentals
Barcode symbologies supported
Modern barcode libraries support a broad range of 1D (linear) and 2D symbologies, which are standardized formats for encoding data in patterns readable by optical scanners or cameras. These symbologies vary in data capacity, density, and application suitability, with most libraries covering the major ones used across retail, logistics, healthcare, and industrial sectors.[13][14] Major 1D symbologies include:- EAN/UPC: EAN (including EAN-13 and EAN-8) and UPC (including UPC-A and UPC-E) are linear barcodes primarily used for retail product identification and point-of-sale scanning worldwide.[15]
- Code 128: A high-density symbology capable of encoding alphanumeric characters and standard ASCII symbols, widely used in logistics, transportation, and inventory management.[14]
- Code 39: An alphanumeric symbology (also known as Code 3 of 9) that supports letters and numbers, commonly applied in automotive, defense, and general inventory tracking applications.[14]
- QR Code: A matrix barcode with high data capacity, error correction, and widespread use for storing URLs, text, payment information, and marketing content.[15]
- Data Matrix: A compact matrix code with built-in error correction, ideal for labeling small items in electronics, pharmaceuticals, and industrial environments.[14]
- PDF417: A stacked 2D symbology capable of encoding large amounts of data, frequently used in transportation documents, identification cards, and logistics applications.[14]
Generation vs. recognition mechanisms
Barcode generation involves encoding input data according to the rules of a chosen symbology into a visual pattern of bars and spaces (for 1D barcodes) or a grid of modules (for 2D barcodes) that can be printed or displayed.[16] The process typically begins with the data being segmented and transformed into a structured format that includes start and stop characters, quiet zones, and error correction information where applicable, after which software renders this encoded information as an image.[17] This encoding is deterministic and computationally straightforward, producing a clean, machine-readable graphic from the input data.[18] Barcode recognition, in contrast, is the process of extracting the original data from a captured image of the barcode. It begins with image capture using a camera or optical sensor, followed by preprocessing steps such as binarization to convert the image into a black-and-white format suitable for analysis.[19] Detection then locates the barcode's position and orientation within the image, often using techniques like gradient analysis to identify structured patterns. Finally, decoding interprets the visual elements—measuring widths of bars and spaces or analyzing module arrangements—according to the symbology's encoding rules, with error correction applied to recover data from imperfect images.[19][18] Recognition is generally more computationally intensive than generation, as it must account for image variations such as noise, distortion, and lighting conditions. Many barcode libraries support both generation and recognition capabilities within a unified framework, enabling applications to create and interpret barcodes using the same software component.Performance factors in real-world scanning
Real-world barcode scanning performance is influenced by environmental conditions and physical factors that degrade image quality, barcode integrity, or the scanning process itself, often leading to reduced accuracy, increased failures, or slower operation. Poor lighting conditions, such as low light, harsh glare, or reflections from glossy surfaces, significantly impair scanning by reducing contrast, affecting exposure, and obscuring barcode patterns.[20][21][22] Similarly, motion blur from camera movement or improper focus can distort captured images, making decoding unreliable.[23] Physical damage to barcodes—including scratches, tears, smudges, dirt, fading, or wrinkles—obscures or breaks the encoded pattern, often resulting in failed reads or misdecodes.[20][22][24] Variations in scanning distance and angle further complicate performance: excessive distance reduces resolution, while extreme angles introduce perspective distortion or misalignment that prevents proper pattern recognition.[21][22][24] Key performance metrics include scanning speed (time to successful decode), accuracy (rate of correct reads without misreads or failures), and support for multiple simultaneous barcode scanning, all of which are essential for efficient workflows in high-volume environments. Offline processing enables reliable operation without internet dependency and minimizes latency for real-time applications in areas with poor connectivity.[20][21] These demanding real-world conditions often drive the selection of more robust commercial libraries over free alternatives for applications requiring consistent performance.Major barcode libraries
Commercial SDKs
Commercial barcode SDKs are paid software development kits designed for enterprise applications requiring robust, high-performance barcode scanning on mobile and desktop platforms. These SDKs typically deliver high accuracy and reliability in challenging conditions—such as low light, damaged barcodes, wide angles, long distances, or crowded environments—along with premium features including AI-powered enhancements, batch scanning of multiple barcodes, augmented reality overlays, customizable user interfaces, and broad support for numerous 1D and 2D symbologies.[25][3] They provide dedicated enterprise support, including professional assistance, regular updates, bug fixes, and compatibility with evolving operating systems and frameworks, offering greater reliability and lower integration risks compared to non-commercial alternatives.[25] Common pricing models include fixed annual subscription fees for predictable costs and unlimited usage, flexible or volume-based pricing tied to the number of active devices or scans (with potential discounts at higher volumes), and flat annual licenses that cover unlimited scans without additional per-use charges.[26][27] These solutions primarily target enterprise organizations and high-volume use cases in industries such as retail, logistics, healthcare, manufacturing, and ticketing, where consistent performance, scalability, and professional support are essential.[25] Leading examples include Scandit, Scanbot SDK, and Dynamsoft.Open-source and free libraries
Open-source and free barcode libraries provide developers with accessible alternatives for integrating barcode scanning and generation capabilities into applications, particularly on mobile platforms. These libraries are typically characterized by zero licensing fees, community-driven development and support, and—for open-source variants—the ability to access, modify, and customize the source code.[28][29] Popular examples include ZXing (Zebra Crossing), a widely adopted open-source library licensed under Apache 2.0, and Google ML Kit's barcode scanning API, which is offered free of charge though not open-source.[28][29] Common limitations of these libraries include reduced reliability and performance in difficult scanning conditions, such as low light, damaged codes, or blur, as well as the absence of enterprise-oriented features like dedicated professional support or optimized handling of complex scenarios.[30][29] They are often selected for prototyping or budget-constrained projects where cost is a primary concern.[28]Cross-platform frameworks
Many barcode libraries provide support for cross-platform development frameworks, enabling integration of barcode scanning and generation capabilities into applications built for iOS and Android using tools such as Flutter, React Native, and .NET MAUI.[31] This support typically comes through dedicated plugins, bindings, or wrappers that expose the library's functionality to these frameworks while leveraging native code underneath. As of early 2026, popular camera-based barcode scanning libraries have emerged for Flutter and React Native, reflecting community preferences and active maintenance. In the Flutter ecosystem, mobile_scanner stands out as the most popular option, with over 2,240 likes on pub.dev. It provides a universal scanner that utilizes ML Kit and CameraX on Android, AVFoundation and Apple Vision on iOS/macOS, and ZXing on the web. It supports multiple barcode formats, real-time scanning, and remains highly active with significant adoption.[32] Other notable Flutter packages include flutter_barcode_scanner (with around 1,400 likes), ai_barcode_scanner (offering AI-enhanced features like gallery scanning and customizable UI), and simple_barcode_scanner (with support extending to web and Windows).[33][34][35] For React Native, expo-barcode-scanner is a common choice for Expo-based applications, supporting scanning of various barcodes, including from images.[36] react-native-vision-camera offers high-performance camera capabilities with built-in support for QR code and barcode scanning.[37] Additional options include @yudiel/react-qr-scanner, which focuses on QR codes but supports multiple formats and provides features like continuous scanning and device selection.[38] These libraries are camera-based and are among the most popular or actively maintained based on recent metrics. The key advantage of this approach is the ability to maintain a single codebase for barcode operations across platforms, which reduces development time, minimizes code duplication, and simplifies maintenance and updates since changes apply universally rather than requiring separate platform-specific implementations.[39] This also promotes consistent behavior and user experience across iOS and Android applications, facilitating simultaneous development for multiple operating systems.[40] However, cross-platform integrations often rely on abstraction layers or bridges to native components, which can introduce minor performance overhead or reduced access to platform-specific optimizations—such as direct camera controls—compared to fully native implementations, particularly in latency-sensitive or resource-intensive scanning scenarios.[41]Leading commercial solutions
Scandit
Scandit is a leading provider of AI-powered barcode scanning SDKs, recognized for delivering enterprise-grade performance in mobile and cross-platform applications. The Scandit Barcode Scanner SDK is designed for high accuracy and reliability in challenging real-world conditions, including low light environments, damaged or crinkled barcodes, long distances, wide angles, and small or poorly printed codes.[3] Scanning operations typically complete in approximately one-tenth of a second even under these demanding circumstances, making it suitable for time-sensitive enterprise workflows.[3] A core innovation is MatrixScan, which supports fast simultaneous scanning of multiple barcodes in a single camera view, enhanced by augmented reality (AR) overlays that provide visual guidance, highlight items, and deliver real-time task insights to reduce errors and improve efficiency in processes such as inventory counting, order picking, receiving, and stock management.[42] The SDK offers broad platform support, including native development for iOS (Swift) and Android (Java/Kotlin), as well as integration with cross-platform frameworks such as Flutter, React Native, .NET MAUI, Xamarin, Cordova, Capacitor, and web applications via JavaScript.[3] In 2025, Scandit is widely regarded as a top choice for demanding enterprise use cases in sectors like retail, logistics, manufacturing, and healthcare, due to its robust performance and advanced AI-driven capabilities in tough scanning scenarios.[28] It is often benchmarked alongside alternatives such as Scanbot SDK and Dynamsoft in assessments of commercial barcode solutions.[28]Scanbot SDK
Scanbot SDK is a commercial barcode scanning software development kit designed for integration into mobile and cross-platform applications, with strong emphasis on privacy-focused, on-device processing.[43] The SDK operates entirely offline, requiring no server connections or usage tracking, which ensures that all data processing remains on the user's device and supports full privacy compliance.[43][44] Its pricing follows a flat-rate model based on a fixed annual license fee, providing unlimited scanning, users, and device installations without additional per-scan or per-user charges, which delivers budget predictability and eliminates variable costs.[26][44] Scanbot SDK includes Ready-to-Use UI (RTU UI) components that enable rapid integration with minimal code—often within a few hours—while offering extensive customization options such as brand-specific color palettes, localized text, configurable controls (e.g., zoom, flash, camera switch), and adaptable layouts for different scanning workflows.[45][43] These features contribute to its reputation for straightforward integration and predictable costs, making it suitable for developers seeking reliable performance without complex setup or ongoing fees.[44][26] Scanbot SDK is frequently compared to other enterprise solutions like Scandit for its offline capabilities and pricing transparency.[46]Dynamsoft Barcode Reader
Dynamsoft Barcode Reader is a commercial barcode SDK developed by Dynamsoft, widely recognized for its reliable performance in industrial and high-volume scanning environments such as manufacturing, logistics, and quality assurance workflows.[47] The SDK is optimized for desktop and server deployments, where it supports high-speed processing of large volumes of barcodes, including batch decoding of over 100 barcodes in a single image and scanning rates of up to 62 barcodes per second (equivalent to 0.02 seconds per barcode).[48] This capability suits production line optimization, inventory control, and document processing applications that demand consistent throughput and minimal failures.[47] The SDK excels in handling damaged and low-quality barcodes common in industrial settings, such as those that are blurred, crumpled, distorted, low-contrast, or affected by shadows, glare, or poor lighting.[49] It also supports Direct Part Marking (DPM) barcodes, including laser-etched, dot-peened, and engraved codes frequently used in manufacturing.[49] For severely damaged codes, Dynamsoft employs proprietary algorithms to locate and complete QR codes affected by scratches, markings, or missing corners, improving decoding rates in challenging conditions.[50] Dynamsoft provides broad symbology support tailored to specialized industrial use cases, including 1D formats such as Code 39, Code 128, EAN-13, and Pharmacode, as well as 2D formats like QR Code, Data Matrix, PDF417, Aztec Code, MaxiCode, and DotCode (designed for high-speed, high-volume printing applications).[13] Additional support for postal codes and composite symbols further broadens its applicability in logistics and manufacturing.[13] Dynamsoft is often considered alongside Scandit and Scanbot as a strong enterprise option for demanding scanning requirements.[49]Prominent free and open-source options
ZXing
ZXing (Zebra Crossing) is a long-standing open-source barcode image processing library for decoding and generating multi-format 1D and 2D barcodes.[2] Originally implemented in Java, it has been ported to numerous other languages and platforms, including Android, C++, .NET, JavaScript, Python, and more (with many ports maintained by third parties).[2] The library supports a broad range of barcode symbologies, including Aztec, Codabar, Code 39, Code 93, Code 128, Data Matrix, EAN-8, EAN-13, ITF, MaxiCode, PDF417, QR Code, RSS-14, RSS-Expanded, UPC-A, UPC-E, and UPC/EAN extensions.[51] ZXing remains in maintenance mode only, with no active development or planned roadmap; only community-contributed bug fixes and minor enhancements are accepted, though occasional updates have occurred as recently as February 2026.[2] In demanding mobile scanning scenarios—such as low light conditions, damaged or distorted barcodes, or smaller symbols—ZXing exhibits limitations in reliability and performance, particularly on recent device models due to compatibility issues (including the official Android Barcode Scanner app's incompatibility with Android 14 and later) and the project's maintenance status.[29][2] It is frequently employed as a baseline for comparison in evaluations of more advanced barcode scanning solutions.Google ML Kit
Google ML Kit provides a free barcode scanning API as part of Google's on-device machine learning SDK for mobile applications on Android and iOS. The API performs barcode detection and decoding entirely on the device without requiring an internet connection, enabling real-time processing and offline use cases.[1][52] The barcode scanning functionality leverages Google's machine learning models for inference directly on the device, supporting a broad set of linear formats (such as Code 39, Code 128, EAN-13, and UPC-A) and 2D formats (such as QR Code, Data Matrix, PDF417, and Aztec). It automatically parses structured data from supported 2D barcodes and recognizes barcodes in any orientation. Developers can configure the scanner to target specific formats for improved speed and limit detection to a maximum of 10 barcodes per image.[1] On Android, developers integrate the API via bundled models (adding about 2.4 MB to app size for immediate availability) or unbundled models downloaded dynamically through Google Play Services (adding about 200 KB initially). On iOS, integration occurs through CocoaPods, with input images processed as UIImage or sample buffers. Optimal performance requires images with sufficient resolution (typically 1280x720 or higher) and focus, where the smallest barcode unit should be at least 2 pixels wide and tall. Lower resolutions can be used for real-time applications if the barcode occupies most of the frame.[53][54] Google ML Kit's barcode scanner is offered at no cost and serves as a popular free alternative to commercial barcode SDKs for general-purpose applications.[52]Other notable open-source projects
Other notable open-source projects provide barcode scanning functionality in niche contexts, though they are generally less widely adopted than ZXing or Google ML Kit. QuaggaJS is a JavaScript library designed for real-time barcode localization and decoding in web applications, supporting 1D symbologies such as EAN, CODE 128, CODE 39, EAN-8, UPC-A, UPC-E, Interleaved 2 of 5, Standard 2 of 5, CODE 93, and CODABAR. It accesses camera streams viagetUserMedia for live scanning or processes static images, with features like scale- and rotation-invariant bounding box estimation. It is typically used for browser-based applications requiring immediate feedback from user devices.[55][56] Its original development halted after 2017, though community forks continue some activity.[56]
ZBar is a C library for reading barcodes from diverse sources including video streams, image files, and raw sensors, with support for multiple symbologies including EAN-13, UPC-A, UPC-E, Code 128, Code 39, QR Code, and DataBar variants. It offers orientation detection and multi-barcode processing per frame, making it suitable for embedded systems, native applications, or WebAssembly integrations in web environments.[57]
BoofCV is a Java-based real-time computer vision library that includes QR code and Micro QR code detection, decoding, and generation tools as part of its broader image processing capabilities. It targets research, academic, and industrial computer vision projects requiring integrated fiducial marker handling alongside other algorithms.[58]
Additional niche projects include html5-qrcode, a cross-platform JavaScript library for integrating QR code and barcode scanning into HTML5 web applications with camera and file input support.[59] These alternatives often address specific needs like web-only deployment or vision pipeline integration but typically see less frequent updates and fewer enterprise-grade enhancements compared to more prominent libraries.