# Revision history [back]

### Detect different shaped contours?

How do i use detect certain shaped contours found using findContours. I want to bound contours which are thin and long, leave everything else away.. but cannot seem to adjust the parameter correctly, or would it be better to use simple blob detector??.. I tried it, but it doesn't seem to work that well..

### Detect different shaped contours?

How do i use detect certain shaped contours found using findContours. I want to bound contours which are thin and long, leave everything else away.. but cannot seem to adjust the parameter correctly, or would it be better to use simple blob detector??.. I tried it, but it doesn't seem to work that well..

here is a sample image

I find conturs using findContours, and store them as vector<vector <points>> contour.

I then check the area of each contour, those below 1000 are filtered out, and not drawn in the output image.

So the one i am interested in is the one the red rect, and everything else is noise.

the contour has a distinct shape which is always long. and thin as seen in contour down below.

 3 retagged sturkmen 5891 ●3 ●41 ●68 https://github.com/stu...

### Detect different shaped contours?

How do i use detect certain shaped contours found using findContours. I want to bound contours which are thin and long, leave everything else away.. but cannot seem to adjust the parameter correctly, or would it be better to use simple blob detector??.. I tried it, but it doesn't seem to work that well..

here is a sample image

I find conturs using findContours, and store them as vector<vector <points>> contour.

I then check the area of each contour, those below 1000 are filtered out, and not drawn in the output image.

So the one i am interested in is the one the red rect, and everything else is noise.

the contour has a distinct shape which is always long. and thin as seen in contour down below.