6d134f7
5ca1c6991afd941dd93a4052 6 years ago
3 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
44 description: 输入一张带有文字的图片
55 output:
66 take_take:
7 name: take_take
7 name: take_time
88 value_type: float
99 description: 识别图片中文字的耗时(单位/s)
1010 output:
44 description: 输入一张带有文字的图片
55 output:
66 take_take:
7 name: take_take
7 name: take_time
88 value_type: float
99 description: 识别图片中文字的耗时(单位/s)
1010 output:
124124
125125 base64_str = conf['img'] # value_type: str # description: some description
126126 img = base64_to_image(base64_str)
127 h,w = img.shape[:2]
127 h,w = img.shape[:2]
128128 timeTake = time.time()
129129 _,result,angle= model.model(img,
130130 detectAngle=True,##是否进行文字方向检测