I have a barcode image how i take only the barcode part from the image??

1 view (last 30 days)
The barcode image have barcode lines and numbers, background is white and the symbols is black. I want only the barcode part, how I take this part??

Answers (1)

Image Analyst
Image Analyst on 2 Jun 2015
Threshold for black. Then get the bounding boxes using regionprops(), then get the max x and y of all the boxes and finally use imcrop(). Attach your image if you want more help. Or see my Image Segmentation Tutorial in my File Exchange: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!