def extract_cell(result) -> list:
    """
    Args:
        result: inference_detector result
    Returns: the array of detected cells. Each array describes a cell bounding box.
    The arrays consists normally of five elements
    1. top left x coordinate
    2. top left y coordinate
    3. bottom right x coordinate
    4. bottom right y coordinate
    5. threshold value
    """
    result_cell = []
    # for cells
    for r in result[0][1]:
        if r[4] > .85:
            # to be able to append the threshold as integer value
            r[4] = r[4] * 100
            result_cell.append(r.astype(int))
    return result_cell