New functions like batch move, delete, withdraw with redundant codes

revert-2226-fix_mem
Leif 4 years ago
parent 0ae2b779ce
commit ecf8b569d8

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -82,8 +82,11 @@ class Shape(object):
return False
def addPoint(self, point):
if not self.reachMaxPoints():
self.points.append(point)
if not self.reachMaxPoints(): # 4个点时发出close信号
if self.points and point == self.points[0]:
self.close()
else:
self.points.append(point)
def popPoint(self):
if self.points:

@ -96,4 +96,7 @@ hideBox=隐藏所有标注
showBox=显示所有标注
saveLabel=保存标记结果
singleRe=重识别此区块
labelDialogOption=弹出标记输入框
labelDialogOption=弹出标记输入框
undo=撤销
undoLastPoint=撤销上个点
autoSaveMode=自动保存标记结果

@ -96,4 +96,7 @@ hideBox=Hide All Box
showBox=Show All Box
saveLabel=Save Label
singleRe=Re-recognition RectBox
labelDialogOption=Pop-up Label Input Dialog
labelDialogOption=Pop-up Label Input Dialog
undo=Undo
undoLastPoint=Undo Last Point
autoSaveMode=Auto Save Label Mode
Loading…
Cancel
Save