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
8a0a3a54
Commit
8a0a3a54
authored
Apr 08, 2022
by
tink2123
Browse files
update result img
parent
1210dbf5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
deploy/pdserving/imgs/pipeline_result.png
deploy/pdserving/imgs/pipeline_result.png
+0
-0
deploy/pdserving/pipeline_http_client.py
deploy/pdserving/pipeline_http_client.py
+8
-3
No files found.
deploy/pdserving/imgs/pipeline_result.png
View replaced file @
1210dbf5
View file @
8a0a3a54
522 KB
|
W:
|
H:
493 KB
|
W:
|
H:
2-up
Swipe
Onion skin
deploy/pdserving/pipeline_http_client.py
View file @
8a0a3a54
...
@@ -46,9 +46,14 @@ for idx, img_file in enumerate(os.listdir(test_img_dir)):
...
@@ -46,9 +46,14 @@ for idx, img_file in enumerate(os.listdir(test_img_dir)):
# check success
# check success
if
result
[
"err_no"
]
==
0
:
if
result
[
"err_no"
]
==
0
:
ocr_result
=
result
[
"value"
][
0
]
ocr_result
=
result
[
"value"
][
0
]
for
item
in
eval
(
ocr_result
):
try
:
# return transcription and points
for
item
in
eval
(
ocr_result
):
print
(
"{}, {}"
.
format
(
item
[
0
],
item
[
1
]))
# return transcription and points
print
(
"{}, {}"
.
format
(
item
[
0
],
item
[
1
]))
except
Exception
as
e
:
print
(
"No results"
)
continue
else
:
else
:
print
(
print
(
"For details about error message, see PipelineServingLogs/pipeline.log"
"For details about error message, see PipelineServingLogs/pipeline.log"
...
...
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