Update version to v1.3.3

This commit is contained in:
tzutalin 2017-05-31 09:34:51 +08:00
parent 550c4581ec
commit b7a614d264
3 changed files with 7 additions and 5 deletions

View File

@ -8,6 +8,7 @@ except ImportError:
from base64 import b64encode, b64decode from base64 import b64encode, b64decode
from pascal_voc_io import PascalVocWriter from pascal_voc_io import PascalVocWriter
from pascal_voc_io import XML_EXT
import os.path import os.path
import sys import sys
@ -17,8 +18,9 @@ class LabelFileError(Exception):
class LabelFile(object): class LabelFile(object):
# It might be changed as window creates # It might be changed as window creates. By default, using XML ext
suffix = '.xml' # suffix = '.lif'
suffix = XML_EXT
def __init__(self, filename=None): def __init__(self, filename=None):
self.shapes = () self.shapes = ()
@ -45,7 +47,7 @@ class LabelFile(object):
for shape in shapes: for shape in shapes:
points = shape['points'] points = shape['points']
label = shape['label'] label = shape['label']
# Add Chris # Add Chris
difficult = int(shape['difficult']) difficult = int(shape['difficult'])
bndbox = LabelFile.convertPoints2BndBox(points) bndbox = LabelFile.convertPoints2BndBox(points)
writer.addBndBox(bndbox[0], bndbox[1], bndbox[2], bndbox[3], label, difficult) writer.addBndBox(bndbox[0], bndbox[1], bndbox[2], bndbox[3], label, difficult)

View File

@ -1,5 +1,5 @@
[bumpversion] [bumpversion]
current_version = 1.3.2 current_version = 1.3.3
commit = True commit = True
tag = True tag = True

View File

@ -21,7 +21,7 @@ test_requirements = [
setup( setup(
name='labelImg', 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", description="LabelImg is a graphical image annotation tool and label object bounding boxes in images",
long_description=readme + '\n\n' + history, long_description=readme + '\n\n' + history,
author="TzuTa Lin", author="TzuTa Lin",