Skip to content

Commit

Permalink
api add code for close the image object
Browse files Browse the repository at this point in the history
  • Loading branch information
nickliqian committed Jan 8, 2019
1 parent e27bbd4 commit 0182d7d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions recognize_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ def up_image():
'value': value, # 预测的结果
'speed_time(ms)': int((e - s) * 1000) # 识别耗费的时间
}
img.close()
return jsonify(result)
else:
content = json.dumps({"error_code": "1001"})
Expand Down

0 comments on commit 0182d7d

Please sign in to comment.