Update version to 1.5.2
This commit is contained in:
parent
2e525f8ab2
commit
a77184a176
10
HISTORY.rst
10
HISTORY.rst
@ -2,6 +2,16 @@
|
|||||||
History
|
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)
|
1.5.0 (2017-9-14)
|
||||||
------------------
|
------------------
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
from math import sqrt
|
from math import sqrt
|
||||||
|
from libs.ustr import ustr
|
||||||
import hashlib
|
import hashlib
|
||||||
try:
|
try:
|
||||||
from PyQt5.QtGui import *
|
from PyQt5.QtGui import *
|
||||||
@ -74,7 +75,8 @@ def fmtShortcut(text):
|
|||||||
|
|
||||||
|
|
||||||
def generateColorByText(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)
|
r = int((hashCode / 255) % 255)
|
||||||
g = int((hashCode / 65025) % 255)
|
g = int((hashCode / 65025) % 255)
|
||||||
b = int((hashCode / 16581375) % 255)
|
b = int((hashCode / 16581375) % 255)
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
[bumpversion]
|
[bumpversion]
|
||||||
current_version = 1.5.1
|
current_version = 1.5.2
|
||||||
commit = True
|
commit = True
|
||||||
tag = True
|
tag = True
|
||||||
|
|
||||||
|
|||||||
2
setup.py
2
setup.py
@ -18,7 +18,7 @@ required_packages.append('labelImg')
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='labelImg',
|
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",
|
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",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user