I haven't tried your code, but you will get much better results if you process the image a bit before you call findContours so that the shapes stand out more. Specifically, threshold it and then maybe some blur, erode, dilate. If you post the image(s) you are trying to use I can suggest a specific solution. Are you trying to find Jacob Appelbaum?
↧