from typing import List


def cocoReg2viaReg(seg:List
    ):
    """Convert COCO annotation to VIA x,y

    Args:
        seg (List): COCO annotation info

    Returns:
        x (List): VIA annotation (all_points_x)
        y (List): VIA annotation (all_points_y)
    """
    x,y = [],[]
    for i,s in enumerate(seg):
        if i%2 == 0:
            x.append(s)
        else:
            y.append(s)
    return x,y