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
a30dbf41
Commit
a30dbf41
authored
Jun 08, 2021
by
WenmuZhou
Browse files
add simple doc of whl
parent
2f62c953
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
1 deletion
+30
-1
ppstructure/README_ch.md
ppstructure/README_ch.md
+30
-1
No files found.
ppstructure/README_ch.md
View file @
a30dbf41
# TableStructurer
1.
代码使用
```
python
import
cv2
from
paddlestructure
import
PaddleStructure
,
draw_result
table_engine
=
PaddleStructure
(
output
=
'./output/table'
,
show_log
=
True
)
img_path
=
'../doc/table/1.png'
img
=
cv2
.
imread
(
img_path
)
result
=
table_engine
(
img
)
for
line
in
result
:
print
(
line
)
from
PIL
import
Image
font_path
=
'path/tp/PaddleOCR/doc/fonts/simfang.ttf'
image
=
Image
.
open
(
img_path
).
convert
(
'RGB'
)
im_show
=
draw_result
(
image
,
result
,
font_path
=
font_path
)
im_show
=
Image
.
fromarray
(
im_show
)
im_show
.
save
(
'result.jpg'
)
```
2.
命令行使用
```
bash
paddlestructure
--image_dir
=
../doc/table/1.png
```
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