File Exchange

image thumbnail

barcode reader using image processing

version (1.54 KB) by abhas vyas
decodes a bar code using thickness variation of lines


Updated 05 Apr 2011

View License

the following code reads bar-code and displays the corresponding decoded value using look up tables.
black and white bars in a bar codes are correspondingly decoded to '0' or '1'.
download the barcode images from google and see the code work!

Cite As

abhas vyas (2020). barcode reader using image processing (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (5)

please provide the updated code


ganesh s

Abhas Thanks for shearing this but it is showing error
Undefined function or variable 'binr'.

Error in ==> Untitled at 94

abhas vyas

hello sean ,
im sorry abt the last update, i have included the comments and the corresponding coda3.jpg is attached here with

Sean de

-malware script (clear all clc)
-tuned to run on an image not provided
-Poorly written code with almost no comments (and no useful comments)
-Doesn't return any results or tell you what things mean
-Is not at all close to vectorized. The entire goal of this script could probably be one-lined in an anonymous function.
-No help; no h1 line


description updated

sorry for the prev. update as it lacked suitable comments the corresponding coda3.jpg is been attached

MATLAB Release Compatibility
Created with R2008a
Compatible with any release
Platform Compatibility
Windows macOS Linux