Skip to content

For py-faster-rcnn, transform the annotation into VOC format

Notifications You must be signed in to change notification settings

YoungDav/Transform_VOC_Format

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This tools help you to transfrom annotation format to VOC2007 format used for py-faster-rcnn

ANNOTATION FORMAT:
{
 img_name_2 : [ [xmin_1, ymin_1, xmax_1, ymax_1, label_1], [xmin_2, ymin_2, xmax_2, ymax_2, label_2] .... ],
 img_name_3 : [ [xmin_1, ymin_1, xmax_1, ymax_1, label_1], [xmin_2, ymin_2, xmax_2, ymax_2, label_2] .... ], ....
}

case:
{
 '00002.jpg' : [ [ 21, 48, 99, 76, 'cat'], [ 22, 21, 34, 78, 'dog'] .... ],
 '00003.jpg' : [ [ 19, 87, 78, 99, 'dog'], [ 32, 76, 90, 12, 'cat'] .... ],  ....
}

Transfrom VOC Format

00002.jpg -> 00002.xml

About

For py-faster-rcnn, transform the annotation into VOC format

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages