First of all, we read the image and perform some steps on it, such as Gaussian/median Blur and Grayscale conversion.
For the first method, we use Binary threshold and then after finding the Contours, we draw them.
And in the second method, after defining a simple kernel, we use the Erode