Barcode Requirements

Barcode recognition quality depends on barcode print quality and scanning settings. Below are some recommendations for barcodes to be recognized correctly:

  • Barcode must be separated from other text by a fairly wide white gap.1.png
  • Barcode size and the width of its separate bars or dots must meet the following requirements:
    • The optimal barcode height is more than 10 millimeters. The size of a barcode should be less than size A4
    • Barcode height must be bigger than the double height of a text line
      2.png
    • For not-square barcodes, their length must be bigger than their height3.png
    • For 1D barcodes, the width of the thinnest bar in the barcode must be at least 3-5 pixels in terms of pixels of the image
      4.png
    • For 2D barcodes, the dimensions of their cells should be at least 2x2 pixels, the recommended size is 4x4 pixels or more. Besides, for all 2D barcodes except PDF417, the cells should be square, because barcodes with the prolate cells most likely will be recognized incorrectly
  • We do not recommend compressing images of barcodes using JPEG compression as it makes barcode borders fuzzy
    bc.png
  • We do not recommend skewing barcodes, i.e. an angle of the barcode should be a multiple of 90 degrees relative to the horizontal axis
    rotation.png
  • The grayscale scanning mode is the best for OCR purposes. When scanning in black-and-white, adjust the brightness setting. If the barcode is “torn” or very light, lower the brightness to make the image darker. If the barcode is distorted or its parts are glued together, increase the brightness to make the image brighter.
  • Avoid printing barcodes in frames
    frames.png
  • Avoid printing barcodes over a text or a picture.
    patterns.png

In some cases, barcodes which do not fit these recommendations also can be recognized, but the quality of recognition may be poor.

Was this article helpful?

1 out of 1 found this helpful

Have more questions? Submit a request

Recently viewed