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
1147bd3a
"git@developer.sourcefind.cn:OpenDAS/torchaudio.git" did not exist on "7ab08200a810153a55b6c3090a8b525b83040b54"
Commit
1147bd3a
authored
Aug 27, 2020
by
WenmuZhou
Browse files
添加use_zero_copy_run参数
parent
ee05c913
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
paddleocr.py
paddleocr.py
+2
-1
No files found.
paddleocr.py
View file @
1147bd3a
...
@@ -129,6 +129,7 @@ def parse_args():
...
@@ -129,6 +129,7 @@ def parse_args():
parser
.
add_argument
(
"--det"
,
type
=
str2bool
,
default
=
True
)
parser
.
add_argument
(
"--det"
,
type
=
str2bool
,
default
=
True
)
parser
.
add_argument
(
"--rec"
,
type
=
str2bool
,
default
=
True
)
parser
.
add_argument
(
"--rec"
,
type
=
str2bool
,
default
=
True
)
parser
.
add_argument
(
"--use_zero_copy_run"
,
type
=
bool
,
default
=
False
)
return
parser
.
parse_args
()
return
parser
.
parse_args
()
...
@@ -209,4 +210,4 @@ def main():
...
@@ -209,4 +210,4 @@ def main():
print
(
img_path
)
print
(
img_path
)
result
=
ocr_engine
.
ocr
(
img_path
,
det
=
args
.
det
,
rec
=
args
.
rec
)
result
=
ocr_engine
.
ocr
(
img_path
,
det
=
args
.
det
,
rec
=
args
.
rec
)
for
line
in
result
:
for
line
in
result
:
print
(
line
)
print
(
line
)
\ No newline at end of file
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