import playment client = playment.Client("your-x-api-key-here") frames = [ "https://example.com/image_url_1", "https://example.com/image_url_2", "https://example.com/image_url_3" ] """ Create sensor_data variable """ sensor_data = playment.SensorData() """ Defining Sensor: Contain details of sensor :param _id: This is the sensor's id. :param name: Name of the sensor. :param primary_view: Only one of the sensor can have primary_view as true. :param state(optional): If you want this sensor not to be annotated, provide state as non_editable. Default is editable. """ sensor = playment.Sensor(_id="right", name="right", primary_view=True) """ Adding Sensor """ sensor_data.add_sensor(sensor=sensor) """ Preparing Frame Data """ for i in range(len(frames)): # Preparing a sensor frame object with with sensor frame url and sensor_id sensor_frame_object = playment.SensorFrameObject(frames[i], sensor.id) # Preparing a frame with every sensor frame object
import playment client = playment.Client("x-client-key") """ Collect sensor_poses for cameras w.r.t lidar in your suitable format """ sensor_poses = { "lidar": { "heading": { "w": 1, "x": 0, "y": 0, "z": 0 }, "position": { "x": 0, "y": 0, "z": 0 } }, "camera_1": { "heading": { "w": -0.4512317755370607, "x": 0.5520064554320538, "y": -0.5425287998749007, "z": 0.444231087625815 }, "position": { "x": 0, "y": 0, "z": 0