Mar 15, 2022 · The cv2.dilate () is an OpenCV function in Python that applies a morphological filter to images. The cv2.dilate () method takes two inputs, of which one is our input image; the second is called the structuring element or kernel, which decides the nature of the operation. Image dilation Increases the object area.. The fourth argument is the font family, which can be from the default font families of OpenCV like cv2.FONT_HERSHEY_SIMPLEX. The fifth argument is the font size or font scale, and its value should be of data type double. The sixth argument is the text's color, and its value should be an RGB triplet like (255,255,255) for white color.