Barcode 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

The first Barcode SDKs were not implemented as software libraries but as standalone applications for 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 every day 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

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:

Types

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

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:

Barcode library 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 via Xamarin, 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 60[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] Placeholder Ltd Proprietary Read C, Java, Objective-C, Swift, Kotlin, JavaScript, C++, .Net, Dart, C#, TypeScript Android, iOS, Xamarin, Flutter, React Native, Linux 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
Barcode Reader SDK[40] 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[41] 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[42] ORPALIS Proprietary, Royalty-free Full .Net .Net Library can write and read barcodes from almost 90 image and document formats[43] more than 30 barcode types
GNU Barcode[44] 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[45] 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[46] 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[47] barcode types
KeepDynamic Barcode SDK[48] 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[49] 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[50] Google Google API[51] Read Java, Objective-C, Swift Android, iOS ML Kit Barcode Scanning API can recognize barcodes from mobile camera 13 barcode types
Neodynamic Barcode Professional[52] 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[53] barcode types / read: 12[54] 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[55] 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[56] 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[57] 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[58] 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[59] 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[60] TechnoRiver Proprietary, Royalty-free Write .Net .Net SmartCodeDeveloper SDK can write barcodes in 7 image formats more than 30 barcode types
Spire.Barcode[61] 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[62] barcode types
TBarCode SDK[63] 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[64] barcode types
VintaSoft Barcode .NET SDK[65] 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[66] documents. more than 60 barcode types
VSBarcodeReader [67] 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[68] 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[69] None Public domain Write .Net .Net Zen Barcode Rendering Framework can write barcodes in 7 image formats 9 barcode types
Zint[70] SourceForge Apache 2.0, BSD, GNU GPLv3 Write C, .Net via ZintNET[71] port, Java via Okapi Barcode[72] port Linux/Unix, Windows, Java, .Net Can generate barcodes in 6 image formats[73] (depends on port) more than 50[74] barcode types
ZXing[75] 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
Docutain Barcode Scanner SDK[76] INFOSOFT Informations- und Dokumentationssysteme 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
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

Recommendations and best practices

Barcodes is the way of adding machine reading tags to any object[77] 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[78][79]

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.[80]

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[81][82]

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.[83] 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 256-bit national encoding charset and text in common Unicode charsets like UTF16 or UTF8.

New projects should use 2D barcodes if industry standards permit.[84][85] 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 [86] or PDF417, which can have difference width to height more than 64 times.

See also

References

  1. "Barcodes vs RFID, Why Barcodes Still Win". www.brightpearl.com. 17 August 2018.
  2. Canteli, Ana (28 February 2020). "Barcode in document management". www.openkm.com.
  3. "Barcodes help make your business processes more efficient". processflows.co.uk.
  4. "DHL shipment tracking labels". www.dhl.com.
  5. "USPS Tracking Barcode and Label Changes". www.endicia.com.
  6. 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.
  7. Palladino, Tommy (11 February 2018). "Walmart Turns Its iPhone App's Barcode Scanner into an Augmented Reality Price Comparison Tool". mobile-ar.reality.news.
  8. "PrintBar II Barcode printing software". books.google.com. ISSN 0888-8507, PC Mag, August 1989 p.464. August 1989.
  9. "Bar Code Software for Windows". books.google.com. ISSN 0888-8507, PC Mag, 8 November 1994 p.414. 8 November 1994.
  10. "LabelWorks for Windows". books.google.com. ISSN 0199-6649, InfoWorld Vol.17, №43 p.104. 23 October 1995.
  11. "Bar Code Fonts for Windows". books.google.com. ISSN 0888-8507, PC Mag Vol.16, № 21. 2 December 1997.
  12. "Bar Code Readers for IBM PC, Mac, and RS232 Terminals". books.google.com. ISSN 0888-8507, PC Mag Vol.16, № 21. 2 December 1997.
  13. "AIM Specifications (ISS)". www.aimglobal.org.
  14. "Standards by ISO/IEC JTC 1/SC 31 Automatic identification and data capture techniques". www.iso.org.
  15. "MacroPDF417 Barcodes". www.barcodefaq.com.
  16. "ZBar bar code reader. How does it work?". zbar.sourceforge.net.
  17. Rocholl, Johann C.; Klenk, Sebastian; Heidemann, Gunther. "Robust 1D Barcode Recognition on Mobile Devices" (PDF). 2010 International Conference on Pattern Recognition.
  18. 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.
  19. Katona, Melinda; Bodńar, Ṕeter; Nýul, Ĺaszĺo G. "Distance Transform and Template Matching BasedMethods for Localization of Barcodes and QR Codes" (PDF).
  20. Hansen, Daniel Kold; Nasrollahi, Kamal; Rasmusen, Christoffer B; Moeslund, Thomas B. "Real-Time Barcode Detection and Classification using Deep Learning" (PDF).
  21. Trewe, Marti (4 June 2012). "QR codes work best in magazines, newspapers". theamericangenius.com}.
  22. Baruah, Basant (13 April 2020). "Augmented reality and QR codes – What you need to know". blog.beaconstac.com.
  23. "Launch of the QR-bill in Switzerland". www.six-group.com. 9 June 2020.
  24. "QR code design & use". www.prepressure.com.
  25. "International drivers license. Booklet and plastic card". www.idlid.com.
  26. "Han Xin Code". www.ancc.org.cn.
  27. "How to Make your Business Card Better with QR Codes". covve.com.
  28. "Scanning Automobile VIN Bar Codes". www.barcodehq.com.
  29. "Aspose.BarCode On Premise APIs". www.aspose.com.
  30. "MSDN Magazine V32 N8, Aspose.BarCodeA complete toolkit for barcode generation and recognition" (PDF). Microsoft. August 2017.
  31. "Barcode Writer in Pure PostScript". bwipp.terryburton.co.uk.
  32. "Symbologies Reference". github.com.
  33. "Welcome to Barcode4J". sourceforge.net.
  34. "Preview of all supported barcode symbologies by Barcode4J". sourceforge.net.
  35. "Barcode Encoder & Decoder Components for .NET & Java developers". www.barcodelib.com.
  36. barkoder.com. "Barcode Scanner SDK for all Enterprise mobile solutions". barkoder. Retrieved 2023-10-26.
  37. "BarCode Reader SDK reads barcodes from scanned documents and images". bytescout.com. 10 August 2010.
  38. "ClearImage Barcode Reader SDK". www.inliteresearch.com.
  39. "Barcode Scanner SDK & API". manateeworks.com.
  40. "Barcode Recognition SDK - DTK Software". www.dtksoft.com.
  41. "Dynamsoft Barcode Reader SDK". www.dynamsoft.com. 21 December 2021.
  42. "GdPicture.NET Barcode SDK for 1D & 2D Barcode Reading & Writing". www.gdpicture.com.
  43. "GdPicture.NET: More than 100 Document Formats Supported". www.gdpicture.com.
  44. "GNU Barcode". www.gnu.org.
  45. "IBscanner for .NET". www.ibscanner.com.
  46. "Barcode Generation Solutions for Business Automation". www.idautomation.com.
  47. "Barcode Fonts". www.idautomation.com.
  48. "Barcode Components". www.keepdynamic.com.
  49. "Barcode SDK Technology". www.leadtools.com.
  50. "Barcode Scanning, ML Kit, Google Developers". developers.google.com.
  51. "Google APIs Terms of Service". google.com.
  52. "Barcode, Labeling, Printing & Imaging components". neodynamic.
  53. "Barcode Symbologies". www.neodynamic.com.
  54. "Recognize, Read and Decode Barcodes from Images". www.neodynamic.com.
  55. "The barcodes". grandzebu.net.
  56. "World Leading .NET SDK for Barcode Scanning and Reading". www.pqscan.com.
  57. "Python Barcode Library". github.com. 8 August 2022.
  58. "Barcode Scanner SDK". scanbot.io.
  59. "Barcode Reader SDK for Windows". www.sd-toolkit.com.
  60. "The industry leading Barcode SDK". www.technoriversoft.com.
  61. ".NET Barcode Library - Generate, Read and Scan 1D 2D Barcode Images". www.e-iceblue.com.
  62. "Supports rich Barcode type, more than 39 different barcodes". www.e-iceblue.com.
  63. "TBarCode SDK - Barcode Generator Software". www.tec-it.com.
  64. "TBarCode SDK Data Sheet & Barcode Overview". www.tec-it.com.
  65. "VintaSoft Barcode .NET SDK". www.vintasoft.com.
  66. "Read barcodes from PDF document". www.vintasoft.com.
  67. "VS BARCODE READER". visionsmarts.com.
  68. "ZBar bar code reader". sourceforge.net.
  69. "Zen Barcode Rendering Framework". github.com. 6 January 2023.
  70. "Zint Barcode Generator". sourceforge.net.
  71. "ZintNET is a .NET port of the popular Zint Library written in C#". sourceforge.net.
  72. "Okapi Barcode". github.com. 30 December 2022.
  73. "Zint Barcode Generator and Zint Barcode Studio User Manual Introduction". www.zint.org.uk.
  74. "Zint Barcode Generator and Zint Barcode Studio User Manual Types of symbology". www.zint.org.uk.
  75. "ZXing ("Zebra Crossing") barcode scanning library for Java, Android". github.com. 12 January 2023.
  76. "Docutain Barcode Scanner SDK". sdk.docutain.com.
  77. "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.
  78. "History of Barcodes". barcodeguide.seagullscientific.com. BarTender by Seagull Scientific.
  79. "History of the Barcode Scanner". www.dbk.com. Refurbished IT Solutions.
  80. "What is the most efficient barcode to use?". www.barcodefaq.com. Barcode Information Tutorials.
  81. "Barcoding – getting it right Recommendations for best practice by GS1 UK" (PDF). www.gs1uk.org. GS1 UK The Global Language of Business.
  82. "Best practices for improving the quality of Bar codes at the Point-of sale" (PDF). www.gs1.at. GS1 Austria.
  83. "Error correction makes a big difference in the choice of 1D vs. 2D barcoding". www.supplychainservices.com. 4 December 2014.
  84. "Understanding the Value of 2D Barcodes". www.maibpo.com.
  85. "3 Ways that 2D Barcodes Increase Warehouse Efficiency". lowrysolutions.com. 4 October 2016.
  86. "DMRE". www.e-d-c.info. Retrieved 2021-12-16.
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.