1 | initial version |
Hi @Dhara Shah!
If your object size is always bigger than the noise & also it is closed, you can filter those contours by using the parameter contour Area. Here is an opencv example.
for(unsigned int i=0;i<contours.size(),i++)
{
double minContourArea= 1000;
if(contourArea(contours[i])> minContourArea)
{
//count this contour
}
}