|
|
|
|
|
AIDetectContour (Function) In french: IADétecteContour Detects the contours of the shapes in an image. myContour is aiConfigureContourDetection myContour.DetectionAlgorithm = aiDetectContourCannyEdge myContour.Dilate = True myContour.GaussianFilterKernelSize = 3 myContour.ValueThreshold = 150 myContour.ValueThresholdMax = 255  myPolygon is Polygon myPolygon = AIDetectContour("Image_test_contour_3.png", myContour) 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. The 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
- Dilation: False
- Gaussian filter size: 3
- Threshold value: Default value: 150.0
- Maximum threshold value: Default value: 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…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|