# EdgeDetectorConfig

此消息用于配置 [EdgeDetector](https://docs.luxonis.com/software/depthai/examples/edge_detector.md) 节点。 您可以设置水平和垂直的 Sobel 滤波器内核。

## 功能示例

 * [边缘检测器](https://docs.luxonis.com/software/depthai/examples/edge_detector.md)

## 参考

### depthai.EdgeDetectorConfig(depthai.Buffer)

Kind: Class

EdgeDetectorConfig message. Carries sobel edge filter config.

#### __init__(self)

Kind: Method

#### get(self) -> RawEdgeDetectorConfig: RawEdgeDetectorConfig

Kind: Method

Retrieve configuration data for EdgeDetector.

Returns:
config for EdgeDetector

#### getConfigData(self) -> EdgeDetectorConfigData: EdgeDetectorConfigData

Kind: Method

Retrieve configuration data for EdgeDetector

Returns:
EdgeDetectorConfigData: sobel filter horizontal and vertical 3x3 kernels

#### set(self, config: RawEdgeDetectorConfig) -> EdgeDetectorConfig: EdgeDetectorConfig

Kind: Method

Set explicit configuration.

Parameter ``config``:
Explicit configuration

#### setSobelFilterKernels(self, horizontalKernel: collections.abc.Sequence [ collections.abc.Sequence [ typing.SupportsInt ] ],
verticalKernel: collections.abc.Sequence [ collections.abc.Sequence [ typing.SupportsInt ] ])

Kind: Method

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

### 需要帮助？

请前往 [OAKChina 官网](https://www.oakchina.cn/) 获取技术支持或解答您的任何疑问。
