concepts.language.gpt_vlm_query.gpt_image_query_utils#

Utility functions for preparing image queries for GPT models, such as drawing bounding boxes or drawing grids on images.

Functions

draw_grid(img, nr_vertical, nr_horizontal[, ...])

Draw a grid on the image with nr_vertical and nr_horizontal lines.

draw_masks(img, masks[, alpha, ...])

Draw masks on the image with the specified color and alpha value.

draw_text(img, text, x, y[, font_scale, ...])

draw_text_inplace(img_, text, x, y[, ...])

resize_to(img, target_max_dim)