To implement Erosion and Dilation using Python and OpenCV.
- Anaconda - Python 3.7
- OpenCV
# Import the necessary packages
# Create the Text using cv2.putText
# Create the structuring element
# Erode the image
# Dilate the image
Thus the generated text image is eroded and dilated using python and OpenCV.