You should have grasped the idea of how image erosion works on simple objects, and now we will continue with applying it to a real photo, separating a number plate's letters and digits from the rest of the content. Consider the following number plate:
The caribbean-2726429_640.jpg image is stored in the sample-images folder. We will first load the image, then create a binarized version, and then apply the erode function many times and compare the results, as follows:
using Images, ImageView, ImageMorphologycarplate_img = load("sample-images/caribbean-2726429_640.jpg")carplate_img_binary = Gray.(Gray ...