def predict_function(x):
    random.seed(x[0][0])
return random.random()
img = np.arange(256 * 256).reshape((256, 256))
best_box = get_best_bounding_box(img, predict_function)
print('best bounding box %r' % (best_box,))
Keras Classification - Object Detection