EdgeDetectorConfig

This message is used to configure the EdgeDetector node. You can set the horizontal and vertical Sobel filter kernel.

Examples of functionality

Reference

class depthai.EdgeDetectorConfig
get(self: depthai.EdgeDetectorConfig)depthai.RawEdgeDetectorConfig
getConfigData(self: depthai.EdgeDetectorConfig)depthai.EdgeDetectorConfigData
getData(self: object) → numpy.ndarray[numpy.uint8]
getRaw(self: depthai.ADatatype)depthai.RawBuffer
getSequenceNum(self: depthai.Buffer)int
getTimestamp(self: depthai.Buffer)datetime.timedelta
getTimestampDevice(self: depthai.Buffer)datetime.timedelta
set(self: depthai.EdgeDetectorConfig, config: depthai.RawEdgeDetectorConfig)depthai.EdgeDetectorConfig
setData(*args, **kwargs)

Overloaded function.

  1. setData(self: depthai.Buffer, arg0: list[int]) -> None

  2. setData(self: depthai.Buffer, arg0: numpy.ndarray[numpy.uint8]) -> None

setSequenceNum(self: depthai.Buffer, arg0: int)depthai.Buffer
setSobelFilterKernels(self: depthai.EdgeDetectorConfig, horizontalKernel: list[list[int]], verticalKernel: list[list[int]])None
setTimestamp(self: depthai.Buffer, arg0: datetime.timedelta)depthai.Buffer
setTimestampDevice(self: depthai.Buffer, arg0: datetime.timedelta)depthai.Buffer
class dai::EdgeDetectorConfig : public dai::Buffer

EdgeDetectorConfig message. Carries sobel edge filter config.

Public Functions

EdgeDetectorConfig()

Construct EdgeDetectorConfig message.

EdgeDetectorConfig(std::shared_ptr<RawEdgeDetectorConfig> ptr)
~EdgeDetectorConfig() = default
void setSobelFilterKernels(const std::vector<std::vector<int>> &horizontalKernel, const std::vector<std::vector<int>> &verticalKernel)

Set sobel filter horizontal and vertical 3x3 kernels

Parameters
  • horizontalKernel: Used for horizontal gradient computation in 3x3 Sobel filter

  • verticalKernel: Used for vertical gradient computation in 3x3 Sobel filter

EdgeDetectorConfigData getConfigData() const

Retrieve configuration data for EdgeDetector

Return

EdgeDetectorConfigData: sobel filter horizontal and vertical 3x3 kernels

EdgeDetectorConfig &set(dai::RawEdgeDetectorConfig config)

Set explicit configuration.

Parameters
  • config: Explicit configuration

dai::RawEdgeDetectorConfig get() const

Retrieve configuration data for EdgeDetector.

Return

config for EdgeDetector

Private Functions

std::shared_ptr<RawBuffer> serialize() const override

Private Members

RawEdgeDetectorConfig &cfg

Got questions?

Head over to Discussion Forum for technical support or any other questions you might have.