Commit 99e394f4 authored by sleepless-se's avatar sleepless-se
Browse files

fix api return format

parent 612625e0
Pipeline #68037903 passed with stage
in 12 minutes and 25 seconds
......@@ -61,14 +61,13 @@ def return_format(data):
for result in data:
box = result['box_points']
new_result = {}
new_result['box_points'] = [box[1],box[0],box[3],box[2]]
new_result['percentage_probability'] = result['percentage_probability'] * 100
new_result['name'] = result['name']
print(result)
results.append(new_result)
return new_result
raw_result = {}
raw_result['box_points'] = [box[1],box[0],box[3],box[2]]
raw_result['percentage_probability'] = result['percentage_probability'] * 100
raw_result['name'] = result['name']
results.append(raw_result)
return results
app = Flask(__name__)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment