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
2cde36b2
Unverified
Commit
2cde36b2
authored
Apr 13, 2021
by
Double_V
Committed by
GitHub
Apr 13, 2021
Browse files
Merge branch 'dygraph' into dy/fix_pgnet_table
parents
62193fad
04b83869
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
22 deletions
+24
-22
doc/doc_en/multi_languages_en.md
doc/doc_en/multi_languages_en.md
+22
-22
tools/infer/predict_e2e.py
tools/infer/predict_e2e.py
+1
-0
tools/infer/utility.py
tools/infer/utility.py
+1
-0
No files found.
doc/doc_en/multi_languages_en.md
View file @
2cde36b2
...
...
@@ -2,8 +2,8 @@
**Recent Update**
-2021.4.9 supports the detection and recognition of 80 languages
-2021.4.9 supports
**lightweight high-precision**
English model detection and recognition
-
2021.4.9 supports the detection and recognition of 80 languages
-
2021.4.9 supports
**lightweight high-precision**
English model detection and recognition
PaddleOCR aims to create a rich, leading, and practical OCR tool library, which not only provides
Chinese and English models in general scenarios, but also provides models specifically trained
...
...
@@ -25,21 +25,21 @@ The multilingual models cover Latin, Arabic, Traditional Chinese, Korean, Japane
This document will briefly introduce how to use the multilingual model.
-
[
1 Installation
](
#Install
)
-
[
1.1 paddle installation
](
#paddleinstallation
)
-
[
1.2 paddleocr package installation
](
#paddleocr_package_install
)
-
[
2 Quick Use
](
#Quick_Use
)
-
[
2.1 Command line operation
](
#Command_line_operation
)
-
[
2.1.1 Prediction of the whole image
](
#bash_detection+recognition
)
-
[
2.1.2 Recognition
](
#bash_Recognition
)
-
[
2.1.3 Detection
](
#bash_detection
)
-
[
2.2 python script running
](
#python_Script_running
)
-
[
2.2.1 Whole image prediction
](
#python_detection+recognition
)
-
[
2.2.2 Recognition
](
#python_Recognition
)
-
[
2.2.3 Detection
](
#python_detection
)
-
[
3 Custom Training
](
#Custom_Training
)
-
[
4 Supported languages and abbreviations
](
#language_abbreviations
)
-
[
1 Installation
](
#Install
)
-
[
1.1 paddle installation
](
#paddleinstallation
)
-
[
1.2 paddleocr package installation
](
#paddleocr_package_install
)
-
[
2 Quick Use
](
#Quick_Use
)
-
[
2.1 Command line operation
](
#Command_line_operation
)
-
[
2.1.1 Prediction of the whole image
](
#bash_detection+recognition
)
-
[
2.1.2 Recognition
](
#bash_Recognition
)
-
[
2.1.3 Detection
](
#bash_detection
)
-
[
2.2 python script running
](
#python_Script_running
)
-
[
2.2.1 Whole image prediction
](
#python_detection+recognition
)
-
[
2.2.2 Recognition
](
#python_Recognition
)
-
[
2.2.3 Detection
](
#python_detection
)
-
[
3 Custom Training
](
#Custom_Training
)
-
[
4 Supported languages and abbreviations
](
#language_abbreviations
)
<a
name=
"Install"
></a>
## 1 Installation
...
...
@@ -89,7 +89,7 @@ The specific supported [language] (#language_abbreviations) can be viewed in the
paddleocr
--image_dir
doc/imgs/japan_2.jpg
--lang
=
japan
```


The result is a list, each item contains a text box, text and recognition confidence
```
text
...
...
@@ -106,7 +106,7 @@ The result is a list, each item contains a text box, text and recognition confid
paddleocr
--image_dir
doc/imgs_words/japan/1.jpg
--det
false
--lang
=
japan
```


The result is a tuple, which returns the recognition result and recognition confidence
...
...
@@ -159,7 +159,7 @@ im_show.save('result.jpg')
```
Visualization of results:


*
Recognition
...
...
@@ -173,7 +173,7 @@ for line in result:
print(line)
```


The result is a tuple, which only contains the recognition result and recognition confidence
...
...
@@ -208,7 +208,7 @@ The result is a list, each item contains only text boxes
```
Visualization of results:


ppocr also supports direction classification. For more usage methods, please refer to:
[
whl package instructions
](
https://github.com/PaddlePaddle/PaddleOCR/blob/release/2.0/doc/doc_ch/whl.md
)
.
...
...
tools/infer/predict_e2e.py
View file @
2cde36b2
...
...
@@ -66,6 +66,7 @@ class TextE2E(object):
postprocess_params
[
"score_thresh"
]
=
args
.
e2e_pgnet_score_thresh
postprocess_params
[
"character_dict_path"
]
=
args
.
e2e_char_dict_path
postprocess_params
[
"valid_set"
]
=
args
.
e2e_pgnet_valid_set
postprocess_params
[
"mode"
]
=
args
.
e2e_pgnet_mode
self
.
e2e_pgnet_polygon
=
args
.
e2e_pgnet_polygon
else
:
logger
.
info
(
"unknown e2e_algorithm:{}"
.
format
(
self
.
e2e_algorithm
))
...
...
tools/infer/utility.py
View file @
2cde36b2
...
...
@@ -86,6 +86,7 @@ def parse_args():
"--e2e_char_dict_path"
,
type
=
str
,
default
=
"./ppocr/utils/ic15_dict.txt"
)
parser
.
add_argument
(
"--e2e_pgnet_valid_set"
,
type
=
str
,
default
=
'totaltext'
)
parser
.
add_argument
(
"--e2e_pgnet_polygon"
,
type
=
bool
,
default
=
True
)
parser
.
add_argument
(
"--e2e_pgnet_mode"
,
type
=
str
,
default
=
'fast'
)
# params for text classifier
parser
.
add_argument
(
"--use_angle_cls"
,
type
=
str2bool
,
default
=
False
)
...
...
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