pyaesthetics.spacebaseddecomposition.text2image_ratio¶
- pyaesthetics.spacebaseddecomposition.text2image_ratio(areas)¶
This function evaluates the text-to-image ratio, as well as the total area occupied by both image and text.
- Parameters:
areas (dict) – areas dict as extracted by the get_areas function
- Returns:
a dict containing the text / (image+text) ratio, total area of text, total area of images, and number of images
- Return type:
dict