diff --git a/stubs/pyorbbecsdk.pyi b/stubs/pyorbbecsdk.pyi index e0d3042..9fcd2aa 100644 --- a/stubs/pyorbbecsdk.pyi +++ b/stubs/pyorbbecsdk.pyi @@ -105,7 +105,7 @@ class Context: @typing.overload def __init__(self, arg0: str) -> None: ... - def create_net_device(self, arg0: str, arg1: int) -> ...: + def create_net_device(self, arg0: str, arg1: int) -> Device: """ Create net device """ @@ -117,7 +117,7 @@ class Context: ... def ob_force_ip_config(self, arg0: str, arg1: OBDeviceIpAddrConfig) ->bool: ... - def query_devices(self) -> ...: + def query_devices(self) -> DeviceList: """ Query devices """ @@ -151,7 +151,7 @@ class Device: ... def get_bool_property_range(self, arg0: OBPropertyID) -> OBBoolPropertyRange: ... - def get_calibration_camera_param_list(self) -> ...: + def get_calibration_camera_param_list(self) -> CameraParamList: ... def get_current_preset_name(self) -> str: ... @@ -173,9 +173,9 @@ class Device: ... def get_multi_device_sync_config(self) -> OBMultiDeviceSyncConfig: ... - def get_sensor(self, arg0: OBSensorType) -> ...: + def get_sensor(self, arg0: OBSensorType) -> Sensor: ... - def get_sensor_list(self) -> ...: + def get_sensor_list(self) -> SensorList: ... def get_support_property_count(self) -> int: ... @@ -289,17 +289,17 @@ class DeviceInfo: Get device gateway """ class DeviceList: - def __getitem__(self, arg0: int) -> ...: + def __getitem__(self, arg0: int) -> Device: ... def __len__(self) -> int: ... def get_count(self) -> int: ... - def get_device_by_index(self, arg0: int) -> ...: + def get_device_by_index(self, arg0: int) -> Device: ... - def get_device_by_serial_number(self, arg0: str) -> ...: + def get_device_by_serial_number(self, arg0: str) -> Device: ... - def get_device_by_uid(self, arg0: str) -> ...: + def get_device_by_uid(self, arg0: str) -> Device: ... def get_device_name_by_index(self, arg0: int) -> str: ... @@ -374,7 +374,7 @@ class Filter: ... def is_threshold_filter(self) -> bool: ... - def process(self, arg0: ...) -> ...: + def process(self, arg0: ...) -> Frame: ... def push_frame(self, arg0: ...) -> None: ... @@ -392,21 +392,21 @@ class FormatConvertFilter(Filter): class Frame: def __repr__(self) -> None: ... - def as_accel_frame(self) -> ...: + def as_accel_frame(self) -> AccelFrame: ... - def as_color_frame(self) -> ...: + def as_color_frame(self) -> ColorFrame: ... - def as_depth_frame(self) -> ...: + def as_depth_frame(self) -> DepthFrame: ... - def as_frame_set(self) -> ...: + def as_frame_set(self) -> FrameSet: ... - def as_gyro_frame(self) -> ...: + def as_gyro_frame(self) -> GyroFrame: ... - def as_ir_frame(self) -> ...: + def as_ir_frame(self) -> IRFrame: ... - def as_points_frame(self) -> ...: + def as_points_frame(self) -> PointsFrame: ... - def as_video_frame(self) -> ...: + def as_video_frame(self) -> VideoFrame: ... def get_data(self) -> numpy.ndarray[numpy.uint8]: ... @@ -424,9 +424,9 @@ class Frame: ... def get_metadata_value(self, arg0: OBFrameMetadataType) -> int: ... - def get_sensor(self) -> ...: + def get_sensor(self) -> Sensor: ... - def get_stream_profile(self) -> ...: + def get_stream_profile(self) -> StreamProfile: ... def get_system_timestamp(self) -> int: ... @@ -3415,13 +3415,13 @@ class Pipeline: ... def get_camera_param(self) -> OBCameraParam: ... - def get_config(self) -> ...: + def get_config(self) -> Config: ... - def get_d2c_depth_profile_list(self, arg0: ..., arg1: OBAlignMode) -> ...: + def get_d2c_depth_profile_list(self, arg0: ..., arg1: OBAlignMode) -> StreamProfileList: ... def get_device(self) -> Device: ... - def get_stream_profile_list(self, arg0: OBSensorType) -> ...: + def get_stream_profile_list(self, arg0: OBSensorType) -> StreamProfileList: ... @typing.overload def start(self, arg0: ...) -> None: @@ -3459,7 +3459,7 @@ class Sensor: ... def get_recommended_filters(self) -> list[Filter]: ... - def get_stream_profile_list(self) -> ...: + def get_stream_profile_list(self) -> StreamProfileList: ... def get_type(self) -> OBSensorType: ... @@ -3511,11 +3511,11 @@ class SpatialAdvancedFilter(Filter): def set_filter_params(self, arg0: OBSpatialAdvancedFilterParams) -> None: ... class StreamProfile: - def as_accel_stream_profile(self) -> ...: + def as_accel_stream_profile(self) -> AccelStreamProfile: ... - def as_gyro_stream_profile(self) -> ...: + def as_gyro_stream_profile(self) -> GyroStreamProfile: ... - def as_video_stream_profile(self) -> ...: + def as_video_stream_profile(self) -> VideoStreamProfile: ... def get_extrinsic_to(self, arg0: StreamProfile) -> OBExtrinsic: ... @@ -3571,13 +3571,13 @@ class ThresholdFilter(Filter): class VideoFrame(Frame): def __repr__(self) -> None: ... - def as_color_frame(self) -> ...: + def as_color_frame(self) -> ColorFrame: ... - def as_depth_frame(self) -> ...: + def as_depth_frame(self) -> DepthFrame: ... - def as_ir_frame(self) -> ...: + def as_ir_frame(self) -> IRFrame: ... - def as_points_frame(self) -> ...: + def as_points_frame(self) -> PointsFrame: ... def get_height(self) -> int: ...