diff --git a/.ipynb_checkpoints/app_spec-checkpoint.yml b/.ipynb_checkpoints/app_spec-checkpoint.yml index fe50a64..039daaf 100644 --- a/.ipynb_checkpoints/app_spec-checkpoint.yml +++ b/.ipynb_checkpoints/app_spec-checkpoint.yml @@ -5,7 +5,7 @@ description: 输入一张带有文字的图片 output: take_take: - name: take_take + name: take_time value_type: float description: 识别图片中文字的耗时(单位/s) output: diff --git a/app_spec.yml b/app_spec.yml index fe50a64..039daaf 100644 --- a/app_spec.yml +++ b/app_spec.yml @@ -5,7 +5,7 @@ description: 输入一张带有文字的图片 output: take_take: - name: take_take + name: take_time value_type: float description: 识别图片中文字的耗时(单位/s) output: diff --git a/handler.py b/handler.py index 1a767b0..9ccb3ce 100644 --- a/handler.py +++ b/handler.py @@ -125,7 +125,7 @@ base64_str = conf['img'] # value_type: str # description: some description img = base64_to_image(base64_str) - h,w = img.shape[:2] + h,w = img.shape[:2] timeTake = time.time() _,result,angle= model.model(img, detectAngle=True,##是否进行文字方向检测