noahzhy / pascal-part-py

Helpers in python to manipulate the annotations of the Pascal-Part dataset.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pascal-part-py

Helpers in python to manipulate the annotations of the Pascal-Part dataset.

Usage

an = ImageAnnotation(image_path, annotation_matrix_path)

an.im  # image

an.objects  # list of objects in the image
an.objects[0].parts  # list of parts that belong to the first object

an.objects[0].mask  # mask of the first object
an.objects[0].parts[0].mask  # mask of the first part of the first object
                             # (see part2ind.py for index encoding)

an.objects[0].props  # properties of the first object (e.g. bbox coordinates, centroid...)
an.objects[0].parts[0].props  # properties of the first part
                              # of the first object (e.g. bbox coordinates, centroid...)

See also

pascal-part-classes

About

Helpers in python to manipulate the annotations of the Pascal-Part dataset.


Languages

Language:Python 100.0%