Merge branch 'dygraph' into dygraph
commit
08efbb9608
|
@ -42,7 +42,7 @@ The above pictures are the visualizations of the general ppocr_server model. For
|
||||||
- Scan the QR code below with your Wechat, you can access to official technical exchange group. Look forward to your participation.
|
- Scan the QR code below with your Wechat, you can access to official technical exchange group. Look forward to your participation.
|
||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
<img src="./doc/joinus.PNG" width = "200" height = "200" />
|
<img src="https://raw.githubusercontent.com/PaddlePaddle/PaddleOCR/release/2.0/doc/joinus.PNG" width = "200" height = "200" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,7 @@ PaddleOCR同时支持动态图与静态图两种编程范式
|
||||||
- 微信扫描二维码加入官方交流群,获得更高效的问题答疑,与各行各业开发者充分交流,期待您的加入。
|
- 微信扫描二维码加入官方交流群,获得更高效的问题答疑,与各行各业开发者充分交流,期待您的加入。
|
||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
<img src="./doc/joinus.PNG" width = "200" height = "200" />
|
<img src="https://raw.githubusercontent.com/PaddlePaddle/PaddleOCR/release/2.0/doc/joinus.PNG" width = "200" height = "200" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
## 快速体验
|
## 快速体验
|
||||||
|
|
|
@ -39,10 +39,7 @@ class TextDetector(object):
|
||||||
self.args = args
|
self.args = args
|
||||||
self.det_algorithm = args.det_algorithm
|
self.det_algorithm = args.det_algorithm
|
||||||
pre_process_list = [{
|
pre_process_list = [{
|
||||||
'DetResizeForTest': {
|
'DetResizeForTest': None
|
||||||
'limit_side_len': args.det_limit_side_len,
|
|
||||||
'limit_type': args.det_limit_type
|
|
||||||
}
|
|
||||||
}, {
|
}, {
|
||||||
'NormalizeImage': {
|
'NormalizeImage': {
|
||||||
'std': [0.229, 0.224, 0.225],
|
'std': [0.229, 0.224, 0.225],
|
||||||
|
|
|
@ -97,7 +97,7 @@ def main():
|
||||||
preds = model(images)
|
preds = model(images)
|
||||||
post_result = post_process_class(preds, shape_list)
|
post_result = post_process_class(preds, shape_list)
|
||||||
boxes = post_result[0]['points']
|
boxes = post_result[0]['points']
|
||||||
# write resule
|
# write result
|
||||||
dt_boxes_json = []
|
dt_boxes_json = []
|
||||||
for box in boxes:
|
for box in boxes:
|
||||||
tmp_json = {"transcription": ""}
|
tmp_json = {"transcription": ""}
|
||||||
|
|
Loading…
Reference in New Issue