bardecode.com
barcode reading software
  • Home
  • Download
  • Purchase
  • SDK Licensing
  • Pricing
    • Windows SDK Price List
    • Windows SDK with PDF Extension Price List
    • PDF Extension For Windows Price List
    • Linux SDK Price List
    • Multi-Platform Toolkit for .Net/Docker Price List
    • BardecodeFiler Desktop Only Price List
    • BardecodeFiler Windows Service Price List
    • DOS Command Prompt Barcode Tool Price List
  • Products
    • Barcode Reader Toolkit for Windows
    • Barcode Reader Toolkit for Linux
    • BardecodeFiler Application Desktop Only
    • BardecodeFiler Application & Windows Service
    • Windows DOS Command Prompt Barcode Tool
    • Multi-Platform Barcode Reader Toolkit for .Net Standard on Docker
    • Aquaforest’s Autobahn DX
  • Knowledge Base
    • Documentation
    • Specifications
  • News
  • Contact
    • About Us
    • Resellers
    • Links
Select Page ...

News

Reading barcodes from color images

admin November 26, 2012 Image No Comments

The graph below is a representation of a single scan line bisecting the image of the barcode shown underneath. The scale on the Y-axis represents pixel values with distance in pixels on the X-axis. Note that the value of a pixel is derived from the RGB value using the formula (R + G + B) / 3. The peaks on the graph represent white spaces between bars and the troughs represent the black bars.

Now, the barcode shown below consists of 30 black bars, and with care it’s possible to count 30 troughs between points A and B along with the 29 peaks between the troughs. The lowest peak between A and B has a value of 159 and the highest trough has a value of 145. This means that only color threshold values between 146 and 158 will stand a chance of decoding the barcode value on this scan line. If the difference between the lowest peak and the highest trough can be increased then so are the chances of an SDK of being able to decode the barcode value.

← RSS Expanded Examples
Identifying output files when using tiff split →
admin

  • Copyright © 2021 Softek Software Ltd. All Rights Reserved