def getCharsSegments(rows, bounds):
    """
    Gets the char segments of text row images acording to chars bounds. rows and bounds

    are list of the same matching sizes.

    Parameters
    ----------
    rows(list) : The list of segmented text row images
    bounds(list) : Bounds matching chars iamges sizes in a text rows

    Returns
    -------
    list : List of segment char images in text row images

    """
    charsSegments = []
    boundsIndex = 0
    for row in rows:
        rowCharBounds = bounds[boundsIndex]
        rowCharsSegments = []
        for charBound in rowCharBounds:
            rowCharsSegments += [ row[(charBound[0]):(charBound[1]),(charBound[2]):(charBound[3])] ]
        boundsIndex += 1
        charsSegments += [rowCharsSegments]
        rowCharsSegments = []
    return charsSegments