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 件のコメント

Walter Roberson
Walter Roberson 2012 年 1 月 3 日
Not so easily unless you have rotated the image to align the bars either horizontally or vertically.
Kim
Kim 2012 年 1 月 3 日
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?
Walter Roberson
Walter Roberson 2012 年 1 月 3 日
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
Image Analyst 2012 年 1 月 3 日
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
Kim 2012 年 1 月 10 日
Thank You!! :)

サインインしてコメントする。

 採用された回答

Image Analyst
Image Analyst 2012 年 1 月 3 日

1 投票

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by