-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add ppocr module #1864
add ppocr module #1864
Conversation
return dst_img | ||
|
||
def resize_norm_img_rec(self, img, max_wh_ratio): | ||
imgC, imgH, imgW = self.rec_image_shape |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
for beg_img_no in range(0, img_num, batch_num): | ||
end_img_no = min(img_num, beg_img_no + batch_num) | ||
norm_img_batch = [] | ||
max_wh_ratio = 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'use_space_char': True | ||
} | ||
self.char_ops = CharacterOps(char_ops_params) | ||
self.rec_image_shape = [3, 32, 320] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
v3的识别shape改成了[3,48,320]
self.dict[char] = i | ||
self.character = dict_character | ||
|
||
def add_special_char(self, dict_character): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
## 二、安装 | ||
|
||
- ### 1、环境依赖 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
同上
|
||
- paddlehub >= 1.6.0 | [如何安装paddlehub](../../../../docs/docs_ch/get_start/installation.rst) | ||
|
||
- shapely |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
同上
## 二、安装 | ||
|
||
- ### 1、环境依赖 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
版本信息应该是2.2
|
||
- paddlehub >= 1.6.0 | [如何安装paddlehub](../../../../docs/docs_ch/get_start/installation.rst) | ||
|
||
- shapely |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
python的package加到requirements.txt中
@@ -0,0 +1,179 @@ | |||
# -*- coding:utf-8 -*- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
缺少license
@@ -0,0 +1,462 @@ | |||
# -*- coding:utf-8 -*- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
缺少license
@@ -0,0 +1,306 @@ | |||
# -*- coding:utf-8 -*- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
同上,补充license
@@ -0,0 +1,269 @@ | |||
# -*- coding:utf-8 -*- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
同上,补充license
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
加入ppocr_v3的检测和识别模块。