Intel Realsense D435 python wrapper pyrealsense.config类(config流传输配置文件?profile管道【pipeline】配置文件?)

config.py

# encoding: utf-8
# module pyrealsense2.pyrealsense2
# from D:\Yolov3_Tensorflow\python\lib\site-packages\pyrealsense2\pyrealsense2.cp36-win_amd64.pyd
# by generator 1.147
"""
LibrealsenseTM Python Bindings
        ==============================
        Library for accessing Intel RealSenseTM cameras
"""

# imports
import pybind11_builtins as __pybind11_builtins


class config(__pybind11_builtins.pybind11_object):
    """
    The config allows pipeline users to request filters for the pipeline streams and device selection and configuration.
    This is an optional step in pipeline creation, as the pipeline resolves its streaming device internally.
    Config provides its users a way to set the filters and test if there is no conflict with the pipeline requirements from the device.
    It also allows the user to find a matching device for the config filters and the pipeline, in order to select a device explicitly, and modify its controls before streaming starts.
    (该配置允许管道用户为管道流以及设备选择和配置请求过滤器。
     这是管道创建中的可选步骤,因为管道在内部解析其流设备。
     Config为用户提供了一种设置过滤器并测试是否与设备的管道要求没有冲突的方法。
     它还允许用户找到配置过滤器和管道的匹配设备,以便显式选择设备,并在流开始之前修改其控件。)
    """
    def can_resolve(self, p): # real signature unknown; restored from __doc__
        """
        can_resolve(self: pyrealsense2.pyrealsense2.config, p: pyrealsense2.pyrealsense2.pipeline_wrapper) -> bool
        
        Check if the config can resolve the configuration filters, to find a matching device and streams profiles. The resolution conditions are as described in resolve().
        (检查配置是否可以解析配置过滤器,以找到匹配的设备和流配置文件。 解析条件如resolve()中所述。)
        """
        return False

    def disable_all_streams(self): # real signature unknown; restored from __doc__
        """
        disable_all_streams(self: pyrealsense2.pyrealsense2.config) -> None
        
        Disable all device stream explicitly, to remove any requests on the streams profiles.
        The streams can still be enabled due to pipeline computer vision module request. This call removes any filter on the streams configuration.
        (显式禁用所有设备流,以删除流配置文件上的所有请求。
         由于管道计算机视觉模块的请求,仍可以启用流。 此调用将删除流配置上的所有过滤器。)
        """
        pass

    def disable_stream(self, stream, index=-1): # real signature unknown; restored from __doc__
        """
        disable_stream(self: pyrealsense2.pyrealsense2.config, stream: pyrealsense2.pyrealsense2.stream, index: int=-1) -> None
        
        Disable a device stream explicitly, to remove any requests on this stream profile.
        The stream can still be enabled due to pipeline computer vision module request. This call removes any filter on the stream configuration.
        (显式禁用设备流,以删除此流配置文件上的所有请求。
         由于管道计算机视觉模块的请求,仍可以启用该流。 该调用将删除流配置上的所有过滤器。)
        """
        pass

    def enable_all_streams(self): # real signature unknown; restored from __doc__
        """
        enable_all_streams(self: pyrealsense2.pyrealsense2.config) -> None
        
        Enable all device streams explicitly.
        The conditions and behavior of this method are similar to those of enable_stream().
        This filter enables all raw streams of the selected device. The device is either selected explicitly by the application, or by the pipeline requirements or default. The list of streams is device dependent.
        (显式启用所有设备流。
         此方法的条件和行为与enable_stream()相似。
         该过滤器启用所选设备的所有原始流。 该设备可以由应用程序明确选择,也可以由管道要求或默认选择。 流列表取决于设备。)
        """
        pass

    def enable_device(self, serial): # real signature unknown; restored from __doc__
        """
        enable_device(self: pyrealsense2.pyrealsense2.config, serial: str) -> None
        
        Select a specific device explicitly by its serial number, to be used by the pipeline.
        The conditions and behavior of this method are similar to those of enable_stream().
        This method is required if the application needs to set device or sensor settings prior to pipeline streaming, to enforce the pipeline to use the configured device.
        (通过序列号显式选择一个特定的设备,以供管道使用。
         此方法的条件和行为与enable_stream()相似。
         如果应用程序需要在管道流传输之前设置设备或传感器设置,以强制管道使用已配置的设备,则需要此方法。)
        """
        pass

    def enable_device_from_file(self, file_name, repeat_playback=True): # real signature unknown; restored from __doc__
        """
        enable_device_from_file(self: pyrealsense2.pyrealsense2.config, file_name: str, repeat_playback: bool=True) -> None
        
        Select a recorded device from a file, to be used by the pipeline through playback.
        The device available streams are as recorded to the file, and resolve() considers only this device and configuration as available.
        This request cannot be used if enable_record_to_file() is called for the current config, and vice versa.
        (enable_device_from_file(自身:pyrealsense2.pyrealsense2.config,file_name:str,repeat_playback:bool = True)->无
        
         从文件中选择一个记录的设备,以供管道通过回放使用。
         设备可用流记录在文件中,并且resolve()仅将此设备和配置视为可用。
         如果为当前配置调用enable_record_to_file(),则不能使用此请求,反之亦然。)
        """
        pass

    def enable_record_to_file(self, file_name): # real signature unknown; restored from __doc__
        """
        enable_record_to_file(self: pyrealsense2.pyrealsense2.config, file_name: str) -> None
        
        Requires that the resolved device would be recorded to file.
        This request cannot be used if enable_device_from_file() is called for the current config, and vice versa as available.
        (要求将解析后的设备记录到文件中。
         如果为当前配置调用enable_device_from_file(),则不能使用此请求,反之亦然。)
        """
        pass

    def enable_stream(self, *args, **kwargs): # real signature unknown; restored from __doc__
        """
        enable_stream(*args, **kwargs)
        Overloaded function.
        
        1. enable_stream(self: pyrealsense2.pyrealsense2.config, stream_type: pyrealsense2.pyrealsense2.stream, stream_index: int, width: int, height: int, format: pyrealsense2.pyrealsense2.format=format.any, framerate: int=0) -> None
        
        Enable a device stream explicitly, with selected stream parameters.
        The method allows the application to request a stream with specific configuration.
        If no stream is explicitly enabled, the pipeline configures the device and its streams according to the attached computer vision modules and processing blocks requirements, or default configuration for the first available device.
        The application can configure any of the input stream parameters according to its requirement, or set to 0 for don't care value.
        The config accumulates the application calls for enable configuration methods, until the configuration is applied.
        Multiple enable stream calls for the same stream override each other, and the last call is maintained.
        Upon calling resolve(), the config checks for conflicts between the application configuration requests and the attached computer vision modules and processing blocks requirements, and fails if conflicts are found.
        Before resolve() is called, no conflict check is done.
        (使用选定的流参数显式启用设备流。
        该方法允许应用程序请求具有特定配置的流。
        如果未明确启用任何流,则管道将根据连接的计算机视觉模块和处理块要求或第一个可用设备的默认配置来配置设备及其流。
        该应用程序可以根据其要求配置任何输入流参数,或将其设置为0(无关值)。
        配置会累积应用程序对启用配置方法的调用,直到应用配置为止。
        对同一个流的多个enable流调用会相互覆盖,并保持最后一个调用。
        调用resolve()时,配置将检查应用程序配置请求与连接的计算机视觉模块和处理模块要求之间是否存在冲突,如果发现冲突,则配置失败。
        在调用resolve()之前,不会进行任何冲突检查。)
        
        2. enable_stream(self: pyrealsense2.pyrealsense2.config, stream_type: pyrealsense2.pyrealsense2.stream, stream_index: int=-1) -> None
        
        Stream type and possibly also stream index. Other parameters are resolved internally.
        (流类型,也可能是流索引。 其他参数在内部解析。)
        
        3. enable_stream(self: pyrealsense2.pyrealsense2.config, stream_type: pyrealsense2.pyrealsense2.stream, format: pyrealsense2.pyrealsense2.format, framerate: int=0) -> None
        
        Stream type and format, and possibly frame rate. Other parameters are resolved internally.
        (流类型和格式,以及可能的帧速率。 其他参数在内部解析。)
        
        4. enable_stream(self: pyrealsense2.pyrealsense2.config, stream_type: pyrealsense2.pyrealsense2.stream, width: int, height: int, format: pyrealsense2.pyrealsense2.format=format.any, framerate: int=0) -> None
        
        Stream type and resolution, and possibly format and frame rate. Other parameters are resolved internally.
        (流类型和分辨率,以及可能的格式和帧速率。 其他参数在内部解析。)
        
        5. enable_stream(self: pyrealsense2.pyrealsense2.config, stream_type: pyrealsense2.pyrealsense2.stream, stream_index: int, format: pyrealsense2.pyrealsense2.format, framerate: int=0) -> None
        
        Stream type, index, and format, and possibly framerate. Other parameters are resolved internally.
        (流类型,索引和格式,以及可能的帧速率。 其他参数在内部解析。)
        """
        pass

    def resolve(self, p): # real signature unknown; restored from __doc__
        """
        resolve(self: pyrealsense2.pyrealsense2.config, p: pyrealsense2.pyrealsense2.pipeline_wrapper) -> pyrealsense2.pyrealsense2.pipeline_profile
        
        Resolve the configuration filters, to find a matching device and streams profiles.
        The method resolves the user configuration filters for the device and streams, and combines them with the requirements of the computer vision modules and processing blocks attached to the pipeline. If there are no conflicts of requests, it looks for an available device, which can satisfy all requests, and selects the first matching streams configuration.
        In the absence of any request, the config object selects the first available device and the first color and depth streams configuration.The pipeline profile selection during start() follows the same method. Thus, the selected profile is the same, if no change occurs to the available devices.Resolving the pipeline configuration provides the application access to the pipeline selected device for advanced control.The returned configuration is not applied to the device, so the application doesn't own the device sensors. However, the application can call enable_device(), to enforce the device returned by this method is selected by pipeline start(), and configure the device and sensors options or extensions before streaming starts.
        (解决配置过滤器,找到匹配的设备和流配置文件。
        该方法解析设备和流的用户配置过滤器,并将它们与计算机视觉模块和附加到管道的处理模块的要求结合在一起。如果没有请求冲突,它将寻找一个可以满足所有请求的可用设备,然后选择第一个匹配的流配置。
        在没有任何请求的情况下,config对象选择第一个可用的设备以及第一个颜色和深度流配置。start()期间的管道配置文件选择遵循相同的方法。因此,如果可用设备没有发生任何变化,则所选配置文件是相同的。解析管道配置使应用程序可以访问管道所选设备以进行高级控制。返回的配置不适用于该设备,因此应用程序不会拥有设备传感器。但是,应用程序可以调用enable_device(),以强制通过管道start()选择此方法返回的设备,并在流开始之前配置设备和传感器的选项或扩展。)
        """
        pass

    def __init__(self): # real signature unknown; restored from __doc__
        """ __init__(self: pyrealsense2.pyrealsense2.config) -> None """
        pass



你可能感兴趣的:(Intel,RealSense)