ovl.thresholds.canny_edge module

class ovl.thresholds.canny_edge.CannyEdge(low: int, high: int, aperture_size: int = None, l2_gradient: bool = None)[source]

Bases: ovl.thresholds.threshold.Threshold

A Canny edge detection Threshold Creates a binary image using the Canny edge detection algorithm See: https://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_imgproc/py_canny/py_canny.html

canny_parameters()[source]

Returns the parameters of the Canny threshold that are not None

convert(image: numpy.ndarray) → numpy.ndarray[source]
static deserialize_canny_threshold(serialized_canny_threshold: str)[source]
serialize()[source]

Serializes the Canny Threshold to a json string

validate() → bool[source]

Validate that the Canny edge parameters are valid