From b7a614d2646eca57fc93cd26ca897c128027e310 Mon Sep 17 00:00:00 2001 From: tzutalin Date: Wed, 31 May 2017 09:34:51 +0800 Subject: [PATCH] Update version to v1.3.3 --- libs/labelFile.py | 8 +++++--- setup.cfg | 2 +- setup.py | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/libs/labelFile.py b/libs/labelFile.py index f28d9f63..437ee033 100644 --- a/libs/labelFile.py +++ b/libs/labelFile.py @@ -8,6 +8,7 @@ except ImportError: from base64 import b64encode, b64decode from pascal_voc_io import PascalVocWriter +from pascal_voc_io import XML_EXT import os.path import sys @@ -17,8 +18,9 @@ class LabelFileError(Exception): class LabelFile(object): - # It might be changed as window creates - suffix = '.xml' + # It might be changed as window creates. By default, using XML ext + # suffix = '.lif' + suffix = XML_EXT def __init__(self, filename=None): self.shapes = () @@ -45,7 +47,7 @@ class LabelFile(object): for shape in shapes: points = shape['points'] label = shape['label'] - # Add Chris + # Add Chris difficult = int(shape['difficult']) bndbox = LabelFile.convertPoints2BndBox(points) writer.addBndBox(bndbox[0], bndbox[1], bndbox[2], bndbox[3], label, difficult) diff --git a/setup.cfg b/setup.cfg index abf7d038..aa8aa86a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 1.3.2 +current_version = 1.3.3 commit = True tag = True diff --git a/setup.py b/setup.py index 7cc89e35..d678cda3 100644 --- a/setup.py +++ b/setup.py @@ -21,7 +21,7 @@ test_requirements = [ setup( name='labelImg', - version='1.3.2', + version='1.3.3', description="LabelImg is a graphical image annotation tool and label object bounding boxes in images", long_description=readme + '\n\n' + history, author="TzuTa Lin",