To segment the image using global thresholding, adaptive thresholding and Otsu's thresholding using python and OpenCV.
- Anaconda - Python 3.7
- OpenCV
# Load the necessary packages
# Read the Image and convert to grayscale
# Use Global thresholding to segment the image
# Use Adaptive thresholding to segment the image
# Use Otsu's method to segment the image
# Display the results
Thus the images are segmented using global thresholding, adaptive thresholding and optimum global thresholding using python and OpenCV.