def image_entropy(img):
    hist = img.histogram()
    hist_size = sum(hist)
    hist = [float(h) / hist_size for h in hist]
    return -sum([p * math.log(p, 2) for p in hist if p != 0])
True if the object is in a signaled state
dataset/ETHPy150Open codelucas/newspaper/newspaper/images.py/image_entropy--crossover with--dataset/ETHPy150Open pika/pika/pika/adapters/blocking_connection.py/_CallbackResult.ready