Reputation: 119
I want to get the boxes count in a warehouse by using image processing edge detection techniques. So I used Sobel algorithm to detect edges. Now I need to measure the edge length. Does anyone know how to get length of edges and any suitable algorithm to get final count ?
Upvotes: 2
Views: 2817
Reputation: 51
You can consider using Canny Edge Detector that extracts edges. All edge points have the width of one pixel. Then you can extract the connected components of edge points and count how many pixels are in each connected component.
Upvotes: 4
Reputation: 2870
You should consider using the Hough transform for identifying the boxes. The basic transform won't explicitly give you the length of the side of a particular box however, but it would be a good starting point.
Take a look at Localization of Piled Boxes by Means of the Hough Transform.
Upvotes: 0