March 2019
Intermediate to advanced
532 pages
13h 2m
English
In connection with the structuring element, OpenCV provides the cv2.getStructuringElement() function.
This function outputs the desired kernel (a NumPy array of type uint8). Two parameters should be passed to this function—the shape and the size of the kernel. OpenCV provides the following three shapes: