You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
495 B
Python
25 lines
495 B
Python
from typing import Any
|
|
|
|
from pydantic import BaseModel, Field
|
|
|
|
|
|
class SaveWorldItem(BaseModel):
|
|
scene: str
|
|
frame: str
|
|
annotation: Any
|
|
|
|
|
|
class CropSceneRequest(BaseModel):
|
|
rawSceneId: str
|
|
startTime: str
|
|
seconds: str
|
|
desc: str
|
|
|
|
|
|
class PredictRotationRequest(BaseModel):
|
|
points: Any # 假设是 N*3 的点云数据
|
|
|
|
# 1. 定义模型
|
|
class LoadWorldItem(BaseModel):
|
|
scene: str = Field(description="这是scene")
|
|
frame: str = Field(description="这是frame") |