October 2018
Intermediate to advanced
472 pages
10h 57m
English
Once we are able to create our mask successfully, we need to perform some morphological operations, which are basic image processing operations used for the analysis and processing of geometrical structures.
First, we will create a kernel that will perform various morphological operations over the input image:
kernel = cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (15, 15))
Now let's perform the close operation over the mask:
mask_closed = cv2.morphologyEx(mask, cv2.MORPH_CLOSE, kernel)
Then we perform ...
Read now
Unlock full access