from typing import List
from typing import Dict


def bounding_boxes_from_words(word_infos: List[Dict]) -> List[List[int]]:
    """Returns an array of arrays representing bounding boxes

    :param List[Dict] word_infos: the words found in the OCR results
    
    :returns List[List[int]]:  a list of bounding boxes ofthe found words. Each 
        entry has 4 elements aligning with [left, top, width, height]
    """
    
    bounding_boxes = []
    for word in word_infos:
        bounding_boxes.append([int(num) for num in word["boundingBox"].split(",")])
    
    return bounding_boxes