How can i check in numpy if a binary image is almost all black?
Here is a list of ideas I can think of:

get the np.sum() and if it is lower than a threshold, then consider it almost black
calculate np.mean() and np.std() of the image, an almost black image is an image that has low mean and low variance
How can i see in if a binary image is almost all black or all white in numpy or scikit-image modules ?
I thought about numpy.all function or numpy.any but i do not know how neither for a total black image nor for a almost black image.