def trackBoundingBox(): json_request = request.get_json() pointcloud = PointCloud.parse_json(json_request["pointcloud"], json_request["intensities"]) filtered_indices = tracker.filter_pointcloud(pointcloud) next_bounding_boxes = tracker.predict_bounding_boxes(pointcloud) print(next_bounding_boxes) return str([filtered_indices, next_bounding_boxes])
def init_tracker(): json_request = request.get_json() pointcloud = PointCloud.parse_json(json_request["pointcloud"]) tracker = Tracker(pointcloud) print(str(tracker)) return "success"