In module image_preproc.
image_preproc
See https://scikit-image.org/docs/stable/auto_examples/applications/plot_thresholding_guide.html#thresholding
Local Otsu looks promising.