xh c
xh c

Reputation: 11

Image processing after edge detect in opencv

I use canny to detect edge.But, as the quality of image is bad, a lot of noise is as below: enter image description here

Origin image is this. enter image description here

I just want the rectangle edges. As the edge I want to detect is so regular(like bricks). I wonder if there were some image process algorithms that could help me?

Note that some edge in image is so week, use a GaussianBlur may make these edge hard to be detected.

Thanks for all reply.

Upvotes: 0

Views: 320

Answers (1)

user1196549
user1196549

Reputation:

Just a hint: it could be useful to strongly blur the image horizontally and vertically to obtain "clean" rows. From this you could reconstruct the grid and possibly inspect every cell.

enter image description here

enter image description here

Upvotes: 1

Related Questions