Image Processing - Detect lines using regionprops

How can I detect the lines of barcode using regionprops to inform the computer this is the barcode??
Here is the image link that being processed from my code

5 Comments

Not so easily unless you have rotated the image to align the bars either horizontally or vertically.
As the barcode are near to each other, can I use centroid to detect the centre point of the object.
Check if the points are near each other then keep the object?
That link just keeps telling me that it is preparing the download :(
You could do centroid checking, yes, but recall that the centroids of noise might be close together.
You could use the eccentricity as a guideline as to whether you have a long narrow object.
Yeah, I hate sites that don't show you the picture right away. If you click on the camera icon it will show you the binary image of the bar code. Kim might be able to use Hough() or houghlines().
Thank You!! :)

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!