文档服务地址:http://47.92.0.57:3000/ 周报索引地址:http://47.92.0.57:3000/s/NruNXRYmV

Commit 3625762c by 李梓桢

Update imageAnnotation.py

parent abd81d99
......@@ -31,7 +31,7 @@ def get_image():
# 保存图片标注结果
@image.route("/image/saveImage", methods=["POST"])
def save_image():
data = json.loads(request.data)
data = json.loads(request.data.decode('utf-8'))
image_list = data['imageList']
ret = Image.saveImage(image_list)
res = {
......@@ -61,7 +61,7 @@ def get_layer():
# 保存图层标注结果
@image.route("/layer/saveLayer", methods=["POST"])
def save_layer():
data = json.loads(request.data)
data = json.loads(request.data.decode('utf-8'))
layer_info = data['layerInfo']
landmark_info = None
if 'landmarkInfo' in data:
......
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