Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
27号BigBang
labelme
提交
4ab0e9a7
L
labelme
项目概览
27号BigBang
/
labelme
与 Fork 源项目一致
从无法访问的项目Fork
通知
6
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
labelme
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
4ab0e9a7
编写于
12月 27, 2019
作者:
K
Kentaro Wada
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Minor fix
上级
ac5ae220
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
17 addition
and
18 deletion
+17
-18
.gitignore
.gitignore
+0
-1
labelme.spec
labelme.spec
+2
-1
labelme/app.py
labelme/app.py
+8
-8
labelme/config/default_config.yaml
labelme/config/default_config.yaml
+1
-1
labelme/widgets/canvas.py
labelme/widgets/canvas.py
+6
-7
未找到文件。
.gitignore
浏览文件 @
4ab0e9a7
...
@@ -9,4 +9,3 @@
...
@@ -9,4 +9,3 @@
.DS_Store
.DS_Store
.idea/
.idea/
create_labelme_env.bat
labelme.spec
浏览文件 @
4ab0e9a7
# -*- mode: python -*-
# -*- mode: python -*-
# vim: ft=python
# vim: ft=python
block_cipher
=
None
block_cipher
=
None
...
@@ -32,7 +33,7 @@ exe = EXE(
...
@@ -32,7 +33,7 @@ exe = EXE(
strip
=
False
,
strip
=
False
,
upx
=
True
,
upx
=
True
,
runtime_tmpdir
=
None
,
runtime_tmpdir
=
None
,
console
=
Tru
e
,
console
=
Fals
e
,
icon
=
'labelme/icons/icon.ico'
,
icon
=
'labelme/icons/icon.ico'
,
)
)
app
=
BUNDLE
(
app
=
BUNDLE
(
...
...
labelme/app.py
浏览文件 @
4ab0e9a7
...
@@ -52,7 +52,7 @@ class MainWindow(QtWidgets.QMainWindow):
...
@@ -52,7 +52,7 @@ class MainWindow(QtWidgets.QMainWindow):
output
=
None
,
output
=
None
,
output_file
=
None
,
output_file
=
None
,
output_dir
=
None
,
output_dir
=
None
,
):
):
if
output
is
not
None
:
if
output
is
not
None
:
logger
.
warning
(
logger
.
warning
(
'argument output is deprecated, use output_file instead'
'argument output is deprecated, use output_file instead'
...
@@ -340,10 +340,13 @@ class MainWindow(QtWidgets.QMainWindow):
...
@@ -340,10 +340,13 @@ class MainWindow(QtWidgets.QMainWindow):
self
.
tr
(
'Add point to the nearest edge'
),
self
.
tr
(
'Add point to the nearest edge'
),
enabled
=
False
,
enabled
=
False
,
)
)
removePoint
=
action
(
removePoint
=
action
(
'Remove Selected Point'
,
self
.
canvas
.
removeSelectedPoint
,
text
=
'Remove Selected Point'
,
None
,
'edit'
,
'Remove selected point from polygon'
,
slot
=
self
.
canvas
.
removeSelectedPoint
,
enabled
=
False
)
icon
=
'edit'
,
tip
=
'Remove selected point from polygon'
,
enabled
=
False
,
)
undo
=
action
(
self
.
tr
(
'Undo'
),
self
.
undoShapeEdit
,
undo
=
action
(
self
.
tr
(
'Undo'
),
self
.
undoShapeEdit
,
shortcuts
[
'undo'
],
'undo'
,
shortcuts
[
'undo'
],
'undo'
,
...
@@ -802,9 +805,6 @@ class MainWindow(QtWidgets.QMainWindow):
...
@@ -802,9 +805,6 @@ class MainWindow(QtWidgets.QMainWindow):
url
=
'https://github.com/wkentaro/labelme/tree/master/examples/tutorial'
# NOQA
url
=
'https://github.com/wkentaro/labelme/tree/master/examples/tutorial'
# NOQA
webbrowser
.
open
(
url
)
webbrowser
.
open
(
url
)
def
toggleRemovePointEnabled
(
self
,
enabled
):
self
.
actions
.
removePoint
.
setEnabled
(
enabled
)
def
toggleDrawingSensitive
(
self
,
drawing
=
True
):
def
toggleDrawingSensitive
(
self
,
drawing
=
True
):
"""Toggle drawing sensitive.
"""Toggle drawing sensitive.
...
...
labelme/config/default_config.yaml
浏览文件 @
4ab0e9a7
auto_save
:
false
auto_save
:
false
display_label_popup
:
true
display_label_popup
:
true
instance_label_auto_increment
:
true
instance_label_auto_increment
:
true
store_data
:
fals
e
store_data
:
tru
e
keep_prev
:
false
keep_prev
:
false
logger_level
:
info
logger_level
:
info
...
...
labelme/widgets/canvas.py
浏览文件 @
4ab0e9a7
...
@@ -358,13 +358,12 @@ class Canvas(QtWidgets.QWidget):
...
@@ -358,13 +358,12 @@ class Canvas(QtWidgets.QWidget):
self
.
repaint
()
self
.
repaint
()
elif
ev
.
button
()
==
QtCore
.
Qt
.
LeftButton
and
self
.
selectedShapes
:
elif
ev
.
button
()
==
QtCore
.
Qt
.
LeftButton
and
self
.
selectedShapes
:
self
.
overrideCursor
(
CURSOR_GRAB
)
self
.
overrideCursor
(
CURSOR_GRAB
)
if
self
.
movingShape
:
if
self
.
movingShape
and
self
.
hShape
:
# Only save if changes have actually been made
index
=
self
.
shapes
.
index
(
self
.
hShape
)
if
self
.
hShape
is
not
None
:
if
(
self
.
shapesBackups
[
-
1
][
index
].
points
!=
currentShapeIndex
=
self
.
shapes
.
index
(
self
.
hShape
)
self
.
shapes
[
index
].
points
):
if
not
self
.
shapesBackups
[
-
1
][
currentShapeIndex
].
points
==
self
.
shapes
[
currentShapeIndex
].
points
:
self
.
storeShapes
()
self
.
storeShapes
()
self
.
shapeMoved
.
emit
()
self
.
shapeMoved
.
emit
()
def
endMove
(
self
,
copy
):
def
endMove
(
self
,
copy
):
assert
self
.
selectedShapes
and
self
.
selectedShapesCopy
assert
self
.
selectedShapes
and
self
.
selectedShapesCopy
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录