Loading tutorials
cv2, index NumPy arrays, and read pixel values. You should know that a grayscale image stores one brightness value per pixel, from 0 (black) to 255 (white).1 min readcv2, that you know what a contour is, and that you can read NumPy arrays. You should already have a clean white-on-black mask, as produced in the earlier thresholding chapter.1 min readcv2, and have a list of contours from cv2.findContours. The code uses the OpenCV 4 Python API.2 min read