Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
paddle_dbnet
Commits
ee9c1bcf
Commit
ee9c1bcf
authored
Feb 09, 2021
by
Leif
Browse files
Fix 4 points and shortcut bugs
parent
92207b9e
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
7 deletions
+2
-7
PPOCRLabel/PPOCRLabel.py
PPOCRLabel/PPOCRLabel.py
+1
-1
PPOCRLabel/README.md
PPOCRLabel/README.md
+0
-1
PPOCRLabel/README_ch.md
PPOCRLabel/README_ch.md
+0
-1
PPOCRLabel/libs/shape.py
PPOCRLabel/libs/shape.py
+1
-4
No files found.
PPOCRLabel/PPOCRLabel.py
View file @
ee9c1bcf
...
@@ -435,7 +435,7 @@ class MainWindow(QMainWindow, WindowMixin):
...
@@ -435,7 +435,7 @@ class MainWindow(QMainWindow, WindowMixin):
######## New actions #######
######## New actions #######
AutoRec
=
action
(
getStr
(
'autoRecognition'
),
self
.
autoRecognition
,
AutoRec
=
action
(
getStr
(
'autoRecognition'
),
self
.
autoRecognition
,
'
Ctrl+Shift+A
'
,
'Auto'
,
getStr
(
'autoRecognition'
),
enabled
=
False
)
''
,
'Auto'
,
getStr
(
'autoRecognition'
),
enabled
=
False
)
reRec
=
action
(
getStr
(
'reRecognition'
),
self
.
reRecognition
,
reRec
=
action
(
getStr
(
'reRecognition'
),
self
.
reRecognition
,
'Ctrl+Shift+R'
,
'reRec'
,
getStr
(
'reRecognition'
),
enabled
=
False
)
'Ctrl+Shift+R'
,
'reRec'
,
getStr
(
'reRecognition'
),
enabled
=
False
)
...
...
PPOCRLabel/README.md
View file @
ee9c1bcf
...
@@ -109,7 +109,6 @@ python3 PPOCRLabel.py
...
@@ -109,7 +109,6 @@ python3 PPOCRLabel.py
| Shortcut keys | Description |
| Shortcut keys | Description |
| ------------------------ | ------------------------------------------------ |
| ------------------------ | ------------------------------------------------ |
| Ctrl + Shift + A | Automatically label all unchecked images |
| Ctrl + Shift + R | Re-recognize all the labels of the current image |
| Ctrl + Shift + R | Re-recognize all the labels of the current image |
| W | Create a rect box |
| W | Create a rect box |
| Q | Create a four-points box |
| Q | Create a four-points box |
...
...
PPOCRLabel/README_ch.md
View file @
ee9c1bcf
...
@@ -96,7 +96,6 @@ python3 PPOCRLabel.py --lang ch
...
@@ -96,7 +96,6 @@ python3 PPOCRLabel.py --lang ch
| 快捷键 | 说明 |
| 快捷键 | 说明 |
| ---------------- | ---------------------------- |
| ---------------- | ---------------------------- |
| Ctrl + shift + A | 自动标注所有未确认过的图片 |
| Ctrl + shift + R | 对当前图片的所有标记重新识别 |
| Ctrl + shift + R | 对当前图片的所有标记重新识别 |
| W | 新建矩形框 |
| W | 新建矩形框 |
| Q | 新建四点框 |
| Q | 新建四点框 |
...
...
PPOCRLabel/libs/shape.py
View file @
ee9c1bcf
...
@@ -83,9 +83,6 @@ class Shape(object):
...
@@ -83,9 +83,6 @@ class Shape(object):
def
addPoint
(
self
,
point
):
def
addPoint
(
self
,
point
):
if
not
self
.
reachMaxPoints
():
# 4个点时发出close信号
if
not
self
.
reachMaxPoints
():
# 4个点时发出close信号
if
self
.
points
and
point
==
self
.
points
[
0
]:
self
.
close
()
else
:
self
.
points
.
append
(
point
)
self
.
points
.
append
(
point
)
def
popPoint
(
self
):
def
popPoint
(
self
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment