myEvaluation.py
def seg_text2listxy(text):
    """
    Purpose: parse x, y coordinates from text of seg (segmentation) annotation in xml
    Args: 
        text: text of seg (segmentation) annotation in xml, "[x0,y0, x1,y1, x2,y2, x3,y3, ...]"
    Returns:  lists of storing x y coordinates, 
        x: [x0, x1, x2, x3, ...]
        y: [y0, y1, y2, y3, ...]
    """
    strList = text[1:-1].split(", ")
    x = list(map(int, strList[::2]))
    y = list(map(int, strList[1::2]))
    return x, y

    Purpose: parse x, y coordinates from text of seg (segmentation) annotation in xml
    Args: 
        text: text of seg (segmentation) annotation in xml, "[x0,y0, x1,y1, x2,y2, x3,y3, ...]"
    Returns:  lists of storing x y coordinates, 
        x: [x0, x1, x2, x3, ...]
        y: [y0, y1, y2, y3, ...]
    
parse x, y coordinates from text of seg (segmentation) annotation in xml
parse x y coordinates from text of seg ( segmentation ) annotation in xml
def seg_text2listxy(text):
    strList = text[1:-1].split(", ")
    x = list(map(int, strList[::2]))
    y = list(map(int, strList[1::2]))
    return x, y
def seg_text2listxy ( text ) : strList = text [ 1 : - 1 ] . split ( ", " ) x = list ( map ( int , strList [ : : 2 ] ) ) y = list ( map ( int , strList [ 1 : : 2 ] ) ) return x , y
Purpose: parse x, y coordinates from text of seg (segmentation) annotation in xml
Purpose : parse x y coordinates from text of seg ( segmentation ) annotation in xml
"""
    Purpose: parse x, y coordinates from text of seg (segmentation) annotation in xml
    Args: 
        text: text of seg (segmentation) annotation in xml, "[x0,y0, x1,y1, x2,y2, x3,y3, ...]"
    Returns:  lists of storing x y coordinates, 
        x: [x0, x1, x2, x3, ...]
        y: [y0, y1, y2, y3, ...]
    """
text
None