_get_str
_get_number
_get_bool
_parse_json_output
_reload_image
dom_rectangle_from_dict
interactive_region_from_dict
InteractiveRegion
object from a dictionary.
visual_viewport_from_dict
VisualViewport
object from a dictionary.
add_set_of_mark
_add_set_of_mark
- screenshot (Image.Image): The screenshot to add marks to.
- ROIs (Dict[str, InteractiveRegion]): The regions to add marks to.
_draw_roi
- draw (ImageDraw.ImageDraw): The draw object.
- idx (int): The index of the ROI.
- font (ImageFont.FreeTypeFont | ImageFont.ImageFont): The font.
- rect (DOMRectangle): The DOM rectangle.
_get_text_color
- bg_color: The background color (R, G, B, A).
_get_random_color
- identifier: The ID used as a seed to ensure color consistency.