The point cloud compression feature compresses point cloud data in Object Storage Service (OSS). This helps reduce data transmission over the network.
Operation description
-
Before you use this API, make sure that you understand the billing methods and pricing of Intelligent Media Management.
Important The completion time of asynchronous tasks is not guaranteed. -
File format: Only point cloud files in the PCD format are supported.
-
This is an asynchronous API. After a task starts, its information is saved for only 7 days. After this period, the information cannot be retrieved. To view task information, call the GetTask or ListTasks operation and use the returned
TaskId. You can also set the Notification parameter to receive task information through notification messages.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
imm:CreateCompressPointCloudTask |
create |
*Project
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProjectName |
string |
Yes |
The project name. For more information, see Create a project. |
test-project |
| SourceURI |
string |
Yes |
The OSS URI of the point cloud file. The URI must be in the format oss://${Bucket}/${Object}. ${Bucket} is the name of the OSS bucket in the same region as the project. ${Object} is the full path of the file, including the file name extension. |
oss://test/src/test.pcd |
| TargetURI |
string |
Yes |
The OSS URI of the output file after compression. The URI must be in the format oss://${Bucket}/${Object}. ${Bucket} is the name of the OSS bucket in the same region as the project. ${Object} is the full path of the file, including the file name extension. |
oss://test/tgt |
| PointCloudFileFormat |
string |
No |
The format of the point cloud file. Only the PCD format is supported. The default value is pcd. |
pcd |
| CompressMethod |
string |
Yes |
The name of the compression algorithm. Valid values:
|
octree |
| PointCloudFields |
array |
Yes |
The PCD property fields to compress and the compression order. After compression, the data is decompressed in this order.
|
|
|
string |
No |
The PCD property field to compress. Valid values:
|
["xyz"] |
|
| KdtreeOption | KdtreeOption |
No |
The parameters for K-d tree compression. |
|
| OctreeOption | OctreeOption |
No |
The parameters for Octree compression. |
|
| UserData |
string |
No |
Custom information that is returned in the asynchronous notification message. You can use this information to associate notification messages in your system. The maximum length is 2048 bytes. |
{"ID": "user1","Name": "test-user1","Avatar": "http://example.com?id=user1"} |
| Tags |
object |
No |
Custom tags to search for and filter asynchronous tasks. |
{"LabelKey": "Value"} |
| CredentialConfig | CredentialConfig |
No |
If you do not have special requirements, leave this parameter empty. The chained authorization configuration. This parameter is not required. For more information, see Use chained authorization to access other entity resources. |
|
| Notification | Notification |
No |
The notification configuration. For more information, click Notification. For the format of asynchronous notification messages, see Asynchronous notification message format. Note
Intelligent Media Management API callbacks do not support specifying a webhook address. Use MNS instead. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Response schema |
||
| RequestId |
string |
The request ID. |
CA995EFD-083D-4F40-BE8A-BDF75FFF**** |
| TaskId |
string |
The task ID. |
PointCloudCompress-badda57d-a3ab-4e6d-938f-49b77ce**** |
| EventId |
string |
The event ID. |
0B7-1LR4Wcue1aBhk2xT85MfL***** |
Examples
Success response
JSON format
{
"RequestId": "CA995EFD-083D-4F40-BE8A-BDF75FFF****",
"TaskId": "PointCloudCompress-badda57d-a3ab-4e6d-938f-49b77ce****",
"EventId": "0B7-1LR4Wcue1aBhk2xT85MfL*****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.