attachment

base

class stardust.components.attachment.attachment.AttachmentType(value)[source]

Bases: Enum

Media type enumeration

Text = 'TEXT'
Image = 'IMAGE'
ImageSet = 'IMAGE_SET'
Video = 'VIDEO'
Audio = 'AUDIO'
AudioSet = 'AUDIO_SET'
PointCloud = 'POINTCLOUD'
PointCloudSet = 'POINTCLOUD_SET'
ImageSequence = 'IMAGE_SEQUENCE'
PointCloudSequence = 'POINTCLOUD_SEQUENCE'
PointCloudSetSequence = 'POINTCLOUD_SET_SEQUENCE'
class stardust.components.attachment.attachment.UriInfo(uri)[source]

Bases: object

uri: str
download_url(download_path=None)[source]
Return type:

str

image

class stardust.components.attachment.image.Image(uri, width=None, height=None, name=None, camera_param=None)[source]

Bases: UriInfo

Picture object

Args:
width:

the picture width

height:

the picture height

name:

the picture name

camera_param:

class Camera

Returns:

Image instance

Examples:
image = Image('', camera_param=cam)
static draw_dashed_line(image, start_point, end_point, color, thickness, line_type, shift)[source]
static get_points(max_point, min_point)[source]
visual_2d_box(box3d, file_path)[source]
visual_3d_box(box3d, file_path)[source]
static gen_image(image_obj)[source]

generate the Image obj

Args:
image_obj:

rosetta image data

Returns:

a Image instance

class stardust.components.attachment.image.ImageSet(image_set)[source]

Bases: object

Args:

image_set: Image list

type = 'IMAGE_SET'
image_set: List[Image]

pointcloud

class stardust.components.attachment.pointcloud.PointCloud(uri=None, name=None, file_path=None)[source]

Bases: UriInfo

Point cloud structure, marked as point cloud type

Args:
uri:

Cloud address of the point cloud

name:

Point cloud name

file_path:

Local path of the point cloud file

Returns:

PointCloud instance

Examples:
path = '/Users/stardust/Desktop/1681532060081818.pcd'
p = PointCloud(filename=path)
print(p.points_info)
property pcd
points_info(add1=False)[source]
Return type:

ndarray

get_attribute_items(attribute)[source]
Return type:

Optional[ndarray]

class stardust.components.attachment.pointcloud.PointCloudSet(point_cloud_set)[source]

Bases: object

Args:
point_cloud_set:

PointCloud list

Returns:

PointCloudSet class

type = 'POINTCLOUD_SET'
point_cloud_set: List[PointCloud]