opencvEdge detection


Syntax

  • edges = cv2.Canny(image, threshold1, threshold2[, edges[, apertureSize[, L2gradient]]])
  • void Canny(InputArray image, OutputArray edges, double threshold1, double threshold2, int apertureSize=3, bool L2gradient=false

Parameters

ParameterDetails
imageInput image
edgesOutput image
threshold1First threshold for hysteresis procedure
threshold2Second threshold for hysteresis procedure
apertureSizeAperture size for Sobel operator
L2gradientFlag indicating whether a more accurate algorithm for image gradient should be used