赞
踩
目录
- from flask import Flask, request, jsonify
- import json
-
- app = Flask(__name__)
-
-
- @app.route('/img/recog', methods=['GET', 'POST'])
- def img_recog():
- filePath = request.args.get('filePath', None)
- if filePath:
- from test import run
- # run为test文件里面的图像解析代码,请自行编写
- result_dict = run(filePath)
- if len(result_dict) > 0:
- response = dict()
- response["msg"] = "成功"
- response["status"] = "1"
- response["result"] = str(re
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。