structure
frame
- class stardust.components.frame.Media(point_cloud=None, image=None)[source]
Bases:
object
Annotate container objects such as files, point clouds, pictures, audio and video
- Args:
- point_cloud:
Point cloud, point cloud set
- eg:
point_cloud = PointCloud(“1681532060081818.pcd”)
- image:
image、image—set,eg: image = Image(“1689737321.jpg”)
- Returns:
Media instance
- Examples:
media = Media(point_cloud=PointCloud(*), image=Image(*))
- class stardust.components.frame.TaskInfo(task_id=None, frame_num=None, project_id=None, pool_id=None)[source]
Bases:
object
rosetta Information about the project
- Args:
- task_id:
int, rosetta_task_id
- frame_num:
int, frame, Start at 0
- project_id:
int, rosetta_project_id
- pool_id:
int, rosetta_pool_id
- Returns:
TaskInfo instance
- Examples:
task_info = TaskInfo(288919499858784002, 0, 1703, 456212)
- class stardust.components.frame.Annotation(box3d_lst=None, box2d_lst=None, input_lst=None, line_lst=None, polygon_lst=None, key_point_lst=None, text_lst=None)[source]
Bases:
object
Annotate the result, supporting 3D box, 2D box, input box, line, polygon
- Args:
- box3d_lst:
All box3d annotation results, in general, take the box3d object id as the key and box3d object as the value
- box2d_lst:
All box2d annotation results, in general, take the box2d object id as the key and box2d object as the value
- input_lst:
In general, the input object id is used as the key and the input object as the value
- line_lst:
In general, the result of all line annotations takes the id of the line object as the key and the line object as the value
- polygon_lst:
All polygon annotations, in general, take the id of the polygon object as the key and the polygon object as the value
- Returns:
Annotation instance
- Examples:
ann = Annotation( box3d_lst, box2d_lst, input_lst, line_lst, polygon_lst, )
- stardust.components.frame.Prediction
alias of
Annotation
- class stardust.components.frame.Frame(media=None, task_info=None, annotation=None, prediction=None)[source]
Bases:
object
Single frame structure
- Args:
- media:
Media obj
- task_info:
TaskInfo obj
- annotation:
Annotation obj
- Returns:
Frame instance
- Examples:
frame = Frame(media, task_info, annotation, prediction )
- property urls: List[str]
Gets the address of the annotated file
- Returns:
list