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
a633d37d
Commit
a633d37d
authored
Dec 15, 2020
by
Leif
Browse files
Update autoDialog
parent
14df1b95
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
PPOCRLabel/libs/autoDialog.py
PPOCRLabel/libs/autoDialog.py
+4
-1
No files found.
PPOCRLabel/libs/autoDialog.py
View file @
a633d37d
...
@@ -41,11 +41,14 @@ class Worker(QThread):
...
@@ -41,11 +41,14 @@ class Worker(QThread):
print
(
'Can not recognise file is : '
,
Imgpath
)
print
(
'Can not recognise file is : '
,
Imgpath
)
pass
pass
else
:
else
:
strs
=
''
for
res
in
self
.
result_dic
:
for
res
in
self
.
result_dic
:
chars
=
res
[
1
][
0
]
chars
=
res
[
1
][
0
]
cond
=
res
[
1
][
1
]
cond
=
res
[
1
][
1
]
posi
=
res
[
0
]
posi
=
res
[
0
]
self
.
listValue
.
emit
(
"Transcription: "
+
chars
+
" Probability: "
+
str
(
cond
)
+
" Location: "
+
json
.
dumps
(
posi
))
strs
+=
"Transcription: "
+
chars
+
" Probability: "
+
str
(
cond
)
+
" Location: "
+
json
.
dumps
(
posi
)
+
'
\n
'
self
.
listValue
.
emit
(
strs
)
self
.
mainThread
.
result_dic
=
self
.
result_dic
self
.
mainThread
.
result_dic
=
self
.
result_dic
self
.
mainThread
.
filePath
=
Imgpath
self
.
mainThread
.
filePath
=
Imgpath
# 保存
# 保存
...
...
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