https://github.com/tzutalin/labelImg/issues/31 add support for displaying and saving unicode labels

This commit is contained in:
Ryan Flynn
2016-12-21 23:49:40 -05:00
parent 9a4c922d98
commit 03236397d7
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -74,7 +74,7 @@ class PascalVocWriter:
for each_object in self.boxlist:
object_item = SubElement(top, 'object')
name = SubElement(object_item, 'name')
name.text = str(each_object['name'])
name.text = unicode(each_object['name'])
pose = SubElement(object_item, 'pose')
pose.text = "Unspecified"
truncated = SubElement(object_item, 'truncated')