

Looking for the source code to this post? Jump Right To The Downloads Section OpenCV Thresholding ( cv2.threshold ) To learn how to apply basic thresholding and Otsu thresholding with OpenCV and the cv2.threshold function, just keep reading.

Our next tutorial will cover adaptive thresholding in detail. We’ll be discussing simple thresholding and Otsu’s thresholding here today.

Thresholding is one of the most common (and basic) segmentation techniques in computer vision and it allows us to separate the foreground (i.e., the objects that we are interested in) from the background of the image.
