67 lines
3.0 KiB
Python
67 lines
3.0 KiB
Python
from google.protobuf.internal import containers as _containers
|
|
from google.protobuf import descriptor as _descriptor
|
|
from google.protobuf import message as _message
|
|
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
|
|
|
DESCRIPTOR: _descriptor.FileDescriptor
|
|
|
|
class Box(_message.Message):
|
|
__slots__ = ["left", "top", "width", "height"]
|
|
LEFT_FIELD_NUMBER: _ClassVar[int]
|
|
TOP_FIELD_NUMBER: _ClassVar[int]
|
|
WIDTH_FIELD_NUMBER: _ClassVar[int]
|
|
HEIGHT_FIELD_NUMBER: _ClassVar[int]
|
|
left: float
|
|
top: float
|
|
width: float
|
|
height: float
|
|
def __init__(self, left: _Optional[float] = ..., top: _Optional[float] = ..., width: _Optional[float] = ..., height: _Optional[float] = ...) -> None: ...
|
|
|
|
class Point(_message.Message):
|
|
__slots__ = ["x", "y"]
|
|
X_FIELD_NUMBER: _ClassVar[int]
|
|
Y_FIELD_NUMBER: _ClassVar[int]
|
|
x: float
|
|
y: float
|
|
def __init__(self, x: _Optional[float] = ..., y: _Optional[float] = ...) -> None: ...
|
|
|
|
class RLEBallDetection(_message.Message):
|
|
__slots__ = ["plane_position", "annotation", "count"]
|
|
PLANE_POSITION_FIELD_NUMBER: _ClassVar[int]
|
|
ANNOTATION_FIELD_NUMBER: _ClassVar[int]
|
|
COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
plane_position: Point
|
|
annotation: Box
|
|
count: int
|
|
def __init__(self, plane_position: _Optional[_Union[Point, _Mapping]] = ..., annotation: _Optional[_Union[Box, _Mapping]] = ..., count: _Optional[int] = ...) -> None: ...
|
|
|
|
class PathMetaData(_message.Message):
|
|
__slots__ = ["start_frame", "end_frame", "is_static"]
|
|
START_FRAME_FIELD_NUMBER: _ClassVar[int]
|
|
END_FRAME_FIELD_NUMBER: _ClassVar[int]
|
|
IS_STATIC_FIELD_NUMBER: _ClassVar[int]
|
|
start_frame: int
|
|
end_frame: int
|
|
is_static: bool
|
|
def __init__(self, start_frame: _Optional[int] = ..., end_frame: _Optional[int] = ..., is_static: bool = ...) -> None: ...
|
|
|
|
class DetectionHistory(_message.Message):
|
|
__slots__ = ["ball_identifier", "detections", "meta_datas"]
|
|
BALL_IDENTIFIER_FIELD_NUMBER: _ClassVar[int]
|
|
DETECTIONS_FIELD_NUMBER: _ClassVar[int]
|
|
META_DATAS_FIELD_NUMBER: _ClassVar[int]
|
|
ball_identifier: int
|
|
detections: _containers.RepeatedCompositeFieldContainer[RLEBallDetection]
|
|
meta_datas: _containers.RepeatedCompositeFieldContainer[PathMetaData]
|
|
def __init__(self, ball_identifier: _Optional[int] = ..., detections: _Optional[_Iterable[_Union[RLEBallDetection, _Mapping]]] = ..., meta_datas: _Optional[_Iterable[_Union[PathMetaData, _Mapping]]] = ...) -> None: ...
|
|
|
|
class Shot(_message.Message):
|
|
__slots__ = ["start_frame", "end_frame", "detection_histories"]
|
|
START_FRAME_FIELD_NUMBER: _ClassVar[int]
|
|
END_FRAME_FIELD_NUMBER: _ClassVar[int]
|
|
DETECTION_HISTORIES_FIELD_NUMBER: _ClassVar[int]
|
|
start_frame: int
|
|
end_frame: int
|
|
detection_histories: _containers.RepeatedCompositeFieldContainer[DetectionHistory]
|
|
def __init__(self, start_frame: _Optional[int] = ..., end_frame: _Optional[int] = ..., detection_histories: _Optional[_Iterable[_Union[DetectionHistory, _Mapping]]] = ...) -> None: ...
|