5.0

5.0 | 2 ratings Rate this file 41 Downloads (last 30 days) File Size: 149 KB File ID: #31727

barcode reader

by Indraneel Biswas

 

08 Jun 2011

barcode reader which does not use thresholding

| Watch this File

File Information
Description

the main file is barCodeCam.m
this is definitely not the most robust barcode reader, but seems to work on low resolution barcode photos, with some amount of distortion.
some sample photos are included. i have not yet implemented the image segmentation to crop the text and surroundings out of the barcode. so users need to crop the barcode and feed it to the code.
i am sorry the code is quite messy. there can be some redundancies and a more compact version is possible.
your feedback will help me improve it.
the barcode symbology used is EAN-13. the variable G gives the array of barcode without the symbology.

Required Products Image Processing Toolbox
MATLAB release MATLAB 7.5 (R2007b)
Tags for This File  
Everyone's Tags
barcode, data analysis, grayscale, image processing, mathematics, signal processing
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (7)
18 Jul 2012 Saloni

I just tried the code. It works well for sample image Cam, but shows error in case on Cam3 and Cambook3. Also the EAN-13 barcode i downloaded from net is very different from the bar codes I see on things. I really need this code!! Please help!!!

25 Jan 2012 noosa

I am trying to run this code but I get this error :
??? Error using ==> area at 44
Must supply Y data or X and Y data as first
argument(s).
Can you help me please???

25 Oct 2011 aaycaa  
22 Jul 2011 Rudolph de Jager

hi haritha,

most probably it is because the cam.jpg file is not in the filepath/searchpath. Easy solution is to copy the file 'cam.jpg' into the same directory as the barcode_reader function or m-file.

16 Jun 2011 haritha

while running the file im getting an error

File "cam.jpg" does not exist.

Error in ==> barcode_reader at 4
A0=imread('cam.jpg');

can u help me out plss im new to matlab

09 Jun 2011 Biswajit  
09 Jun 2011 Biswajit

Just tried your code..and it works :) :)
Thanks a lot for sharing Indraneel...
Regards,
Biswajit

Contact us