sha123
sha123

Reputation: 119

How to measure lengths of edges in edge-detected images?

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

Answers (2)

ralu
ralu

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

Zane
Zane

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

Related Questions