Skip to content

Commit

Permalink
Update version to 1.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
tzutalin committed Oct 24, 2017
1 parent 2e525f8 commit a77184a
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
10 changes: 10 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@
History
=======

1.5.2 (2017-10-24)
------------------

* Assig different colors to different lablels

1.5.1 (2017-9-27)
------------------

* Show a autosaving dialog

1.5.0 (2017-9-14)
------------------

Expand Down
4 changes: 3 additions & 1 deletion libs/lib.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from math import sqrt
from libs.ustr import ustr
import hashlib
try:
from PyQt5.QtGui import *
Expand Down Expand Up @@ -74,7 +75,8 @@ def fmtShortcut(text):


def generateColorByText(text):
hashCode = hash(text)
s = str(ustr(text))
hashCode = int(hashlib.sha256(s.encode('utf-8')).hexdigest(), 16)
r = int((hashCode / 255) % 255)
g = int((hashCode / 65025) % 255)
b = int((hashCode / 16581375) % 255)
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 1.5.1
current_version = 1.5.2
commit = True
tag = True

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

setup(
name='labelImg',
version='1.5.1',
version='1.5.2',
description="LabelImg is a graphical image annotation tool and label object bounding boxes in images",
long_description=readme + '\n\n' + history,
author="TzuTa Lin",
Expand Down

0 comments on commit a77184a

Please sign in to comment.