(image, bboxes, unwhitened=False)
return tf.cast(tf.squeeze(tf.image.draw_bounding_boxes(image, bboxes) * 255., 0), tf.int32)
Draw an image with bounding boxes to show.
    If unwhitened is False, then the whole image must has pixel value between 0 - 1
    Else the input image must be subtracted by the mean of RGB, thus has pixel value between -128 - 128
Draw an image with bounding boxes to show.
    If unwhitened is False, then the whole image must has pixel value between 0 - 1
    Else the input image must be subtracted by the mean of RGB, thus has pixel value between -128 - 128
Draw an image with bounding boxes to show . If unwhitened is False then the whole image must has pixel value between 0 - 1 Else the input image must be subtracted by the mean of RGB thus has pixel value between - 128 - 128
def get_image_to_show(image, bboxes, unwhitened=False):
    """Draw an image with bounding boxes to show.
    If unwhitened is False, then the whole image must has pixel value between 0 - 1
    Else the input image must be subtracted by the mean of RGB, thus has pixel value between -128 - 128
    """
    image = tf.expand_dims(image, 0)
    bboxes = tf.expand_dims(bboxes, 0)

    if unwhitened:
        return tf_image_unwhitened(tf.image.draw_bounding_boxes(image, bboxes))

    return tf.cast(tf.squeeze(tf.image.draw_bounding_boxes(image, bboxes) * 255., 0), tf.int32)
def get_image_to_show ( image , bboxes , unwhitened = False ) : image = tf . expand_dims ( image , 0 ) bboxes = tf . expand_dims ( bboxes , 0 ) if unwhitened : return tf_image_unwhitened ( tf . image . draw_bounding_boxes ( image , bboxes ) ) return tf . cast ( tf . squeeze ( tf . image . draw_bounding_boxes ( image , bboxes ) * 255. , 0 ) , tf . int32 )