Adaptive thresholding addresses one of the main limitations of simple (global) thresholding its inability to handle images with varying lighting conditions. Instead of using a single global threshold value for the whole image, adaptive thresholding calculates the threshold for small regions around each pixel. This approach provides better results for images where illumination changes across different parts.
Instead of a constant threshold for all pixels, the image is divided into smaller blocks and a threshold is computed for each region.
Helps segment images effectively even if lighting is not uniform, making it ideal for documents or scenes with shadows and bright spots.