1
votes

I am trying to detect rectangular shapes in c# and with aforge.net.

The Problem is not the detection itself. It is to find a reliable algorithm to preprocess the image for detection. There is a lot of noise in the images:

original image

image processing so far

I use a SISThreshold and various dilatation and opening filters, as well as edge detection. The square between 3 and 4 is not detected. I think because of the uneven edge of the square.

Do you have a more reliable algorithm or some Tips to improve my detection?

1

1 Answers

0
votes

You could try using using erosion to get rid of noise, or try BradleyLocalThresholding instead of SISThresholding.