Image Processing - Detect lines using regionprops
Show older comments
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
Walter Roberson
on 3 Jan 2012
Not so easily unless you have rotated the image to align the bars either horizontally or vertically.
Kim
on 3 Jan 2012
Walter Roberson
on 3 Jan 2012
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.
Image Analyst
on 3 Jan 2012
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().
Kim
on 10 Jan 2012
Accepted Answer
More Answers (0)
Categories
Find more on Region and Image Properties in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!