- Triggering 360° extraction from E57 files with a Python script.
- Uploading and registering other 360° formats (cube maps) using the Files API and the DMS API.
Trigger 360° image extraction from E57 files using Python
Use the Cognite Python SDK to trigger 360° image extraction from E57 files. SetextractPhotosphereImages to true to turn on this setting. Adjust file_id, model_id, and dmsInstancesSpaceId for your environment.
The example shows the Python script that triggers the extraction of 360° images.
Custom script for other formatted 360° images
Follow these steps to upload the cube map images to CDF for 360° formats other than E57 and specify the location and orientation of the 360° images in the data modeling service (DMS) instances.1
Upload cube map images
Upload the cube map images to the Files API, for example using a Python script. Each image file needs an
externalId and metadata.A unique externalId should be set for each file, and it should be the same as referenced from the corresponding Image360 instances image-360-cubemap-front and similar property fields.2
Create DMS instances
For each 360° image collection, use the Instances API to create instances that specify the location and orientation of the images. See Ingesting instances into a graph or Create or update nodes/edges for more information.Three data model views are used for 360° images:
Image360CollectionStation360Image360
cdf_360_image_schema system data model in all CDF projects.You can store the instances in the same space, when ingesting instances for a collection through these three data model views. The DMS instances should have the following metadata:Image360CollectionStation360
Image360