A demo of how to use erosion with OpenCV.
This is code from my article, Applying Erosion to Images with OpenCV: A Complete Guide.
Also featured on the Computer Vision Power Hour
Have Python installed on your machine.
Create a new Python environment.
run:
pip install -r requirements.txt
Enjoy!