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
252fbe54
Unverified
Commit
252fbe54
authored
Aug 28, 2020
by
MissPenguin
Committed by
GitHub
Aug 28, 2020
Browse files
Merge pull request #623 from WenmuZhou/fix_whl
修复whl包没有use_zero_copy_run参数的问题
parents
c974039c
1147bd3a
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 @
252fbe54
...
@@ -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