DepthAI v2 has been superseded by DepthAI v3. You are viewing legacy documentation.
此页面由 AI 自动翻译。查看英文原版

本页目录

  • 功能示例
  • 参考

EdgeDetectorConfig

此消息用于配置 EdgeDetector 节点。 您可以设置水平和垂直 Sobel 滤波器内核。

功能示例

参考

class

depthai.EdgeDetectorConfig(depthai.Buffer)

method
method
get(self) -> RawEdgeDetectorConfig: RawEdgeDetectorConfig
Retrieve configuration data for EdgeDetector.  Returns:     config for EdgeDetector
method
getConfigData(self) -> EdgeDetectorConfigData: EdgeDetectorConfigData
Retrieve configuration data for EdgeDetector  Returns:     EdgeDetectorConfigData: sobel filter horizontal and vertical 3x3 kernels
method
set(self, config: RawEdgeDetectorConfig) -> EdgeDetectorConfig: EdgeDetectorConfig
Set explicit configuration.  Parameter ``config``:     Explicit configuration
method
setSobelFilterKernels(self, horizontalKernel: collections.abc.Sequence [ collections.abc.Sequence [ typing.SupportsInt ] ], verticalKernel: collections.abc.Sequence [ collections.abc.Sequence [ typing.SupportsInt ] ])
Set sobel filter horizontal and vertical 3x3 kernels  Parameter ``horizontalKernel``:     Used for horizontal gradient computation in 3x3 Sobel filter  Parameter ``verticalKernel``:     Used for vertical gradient computation in 3x3 Sobel filter

需要帮助?

请前往 Discussion Forum 获取技术支持或提出您可能有的任何其他问题。