5ca1c6991afd941dd93a4052
6 years ago
| 4 | 4 |
description: 输入一张带有文字的图片
|
| 5 | 5 |
output:
|
| 6 | 6 |
take_take:
|
| 7 | |
name: take_take
|
|
7 |
name: take_time
|
| 8 | 8 |
value_type: float
|
| 9 | 9 |
description: 识别图片中文字的耗时(单位/s)
|
| 10 | 10 |
output:
|
| 4 | 4 |
description: 输入一张带有文字的图片
|
| 5 | 5 |
output:
|
| 6 | 6 |
take_take:
|
| 7 | |
name: take_take
|
|
7 |
name: take_time
|
| 8 | 8 |
value_type: float
|
| 9 | 9 |
description: 识别图片中文字的耗时(单位/s)
|
| 10 | 10 |
output:
|
| 124 | 124 |
|
| 125 | 125 |
base64_str = conf['img'] # value_type: str # description: some description
|
| 126 | 126 |
img = base64_to_image(base64_str)
|
| 127 | |
h,w = img.shape[:2]
|
|
127 |
h,w = img.shape[:2]
|
| 128 | 128 |
timeTake = time.time()
|
| 129 | 129 |
_,result,angle= model.model(img,
|
| 130 | 130 |
detectAngle=True,##是否进行文字方向检测
|