def test_remove_border_unseen(): v = VocXmlDetectAnnotation('data/voc-xml/000004.xml', 'data/voc-xml/') v1 = v.genRotatedAnnotation(True) v2 = v1.genCropResult() v3 = v2.genNoBoarderAndUnseenAnnotation()
def test_flip_and_crop(): v = VocXmlDetectAnnotation('data/voc-xml/000004.xml', 'data/voc-xml/') v1 = v.genRotatedAnnotation(True) v1.genCropResult()
def test_xml_dump(): v = VocXmlDetectAnnotation('data/voc-xml/000004.xml', 'data/voc-xml/') v2 = v.genRotatedAnnotation(True)
def test_flip_anno(): v = VocXmlDetectAnnotation('data/voc-xml/000004.xml', 'data/voc-xml/') v.genRotatedAnnotation(True)