Skip to content

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

Notifications You must be signed in to change notification settings

twuilliam/pascal-part-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages