|
|
|
|
|
AIDetectContour (Function) In french: IADétecteContour Detects the contours of the shapes in an image. monContour is aiConfigureContourDetection
monContour.DetectionAlgorithm = aiDetectContourCannyEdge
monContour.Dilate = True
monContour.GaussianFilterKernelSize = 3
monContour.ValueThreshold = 150
monContour.ValueThresholdMax = 255
monPolygone is Polygon
monPolygone = AIDetectContour("Image_test_contour_3.png", monContour)
Syntax
<Result> = AIDetectContour(<Image> [, <Parameters>])
<Result>: Array of Polygons Array of Polygon variables containing the different contours detected. <Image>: Character string Image to be analyzed. This image can correspond to: - a variable of type Image,
- the name and path of the image,
- the name and path of a PDF file,
- an Image memo item,
- an Image control.
<Parameters>: Optional aiConfigureContourDetection variable Name of the aiConfigureContourDetection variable used to set the contour detection options. If this parameter is not specified, the default options are: - Edge detection algorithm developed by J.F.Canny in 1986
- Expansion: False
- Gaussian filter size: 3
- Threshold value: Default value: 150.0
- Maximum threshold value: Default: 255.0
Remarks - Results can vary greatly depending on the parameters specified with the aiConfigureContourDetection variable.
- The detection process is powered by artificial intelligence, and does not guarantee total accuracy.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|