PC端压力表 1.新增"reading_unit":unit 读数精度 2.压力表类型 5 没有识别出表盘类别:0 通过旋转没有找到水表图片:88 只要有一个数字的概率低于50%:90 "result"里返回类型增加两个, 88,90属于无效图片 图片识别正确 return { "result": 1, "data": { "meter_type": meter_type, # ✅ 新增字段 "reading_unit":unit # ✅ 新增字段(eg. 1 0.1 0.01 0.001) "reading": round(reading, 3) if reading is not None else None, "image": output_image_base64, "logs": logs_str }, "message": "" } 图片识别失败 return { "result": 0, "data": { "meter_type": none, # ✅ 新增字段 "reading_unit":None # ✅ 新增字段(eg. 1 0.1 0.01 0.001) "reading": round(reading, 3) if reading is not None else None, "image": output_image_base64 if 'output_image_base64' in locals() else None, "logs": logs_str }, "message": f"❌ 图像处理失败:{str(e)}" }