Note: The default ITS GitLab runner is a shared resource and is subject to slowdowns during heavy usage.
You can run your own GitLab runner that is dedicated just to your group if you need to avoid processing delays.

Commit 9069c626 authored by Songan Zhang's avatar Songan Zhang
Browse files

fix save function

parent 1bae146d
......@@ -2,7 +2,6 @@ from flask import Flask, render_template, request, jsonify
from bounding_box import BoundingBox
from pointcloud import PointCloud
from tracker import Tracker
from predict_label import predict_label
import numpy as np
import json
......@@ -41,10 +40,7 @@ def updateBoundingBoxes():
@app.route("/predictLabel", methods=['POST'])
def predictLabel():
json_request = request.get_json()
json_data = json.dumps(json_request)
filename = json_request['filename'].split('.')[0]
return str(predict_label(json_data, filename))
return str('Car')
if __name__ == "__main__":
tracker = Tracker()
......
{"frames":[{"add_box_count":6,"resize_count":0,"translate_count":0,"rotate_count":0,"delete_count":0,"label_count":0,"rotate_camera_count":5,"filename":"0000000006.bin","bounding_boxes":[{"center":{"x":13.792100071358922,"y":-3.4149453410512436},"width":2.6765878394369524,"length":3.7787128137151473,"angle":-0.20377898289719254,"object_id":"car"},{"center":{"x":7.085325162738445,"y":2.5411436591706646},"width":0.702202091821645,"length":0.4388761149316252,"angle":0.10188949145839223,"object_id":"car"},{"center":{"x":-1.0271226512898233,"y":-8.09512299422978},"width":3.586225324113517,"length":2.367605680717997,"angle":0,"object_id":"car"},{"center":{"x":-5.083388943390494,"y":-4.125901280815247},"width":3.6210441144258056,"length":1.7408861826256716,"angle":0,"object_id":"car"},{"center":{"x":-10.532363792806184,"y":0.10445483360289831},"width":4.352217231894789,"length":1.845339122377025,"angle":0,"object_id":"car"},{"center":{"x":-26.08230909643617,"y":-7.981316024389361},"width":8.342553349072649,"length":3.119980015280138,"angle":0,"object_id":"car"}],"time_elapsed":30.969,"_3D_time_elapsed":2.568,"camera_angle":0}]}
\ No newline at end of file
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