ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / Image detection functions
  • Properties specific to aiConfigureContourDetection variables
  • WLanguage functions that use aiConfigureContourDetection variables
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
aiConfigureContourDetection (Variable type)
In french: iaParametreDetectionContour
The iaConfigureContourDetection type is used to define the parameters of the contour detection function. You can define and change the characteristics of these parameters using different WLanguage properties.
Note: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Example
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)
Properties

Properties specific to aiConfigureContourDetection variables

The following properties can be used to define the characteristics of aiConfigureContourDetection variables:
Property nameType usedEffect
DetectionAlgorithmInteger constantContour detection algorithm:
  • iaDétectContourCanny (Default value): J.F.Canny (edge detector) algorithm from 1986.
  • iaDétectContourBinaryThresholding Binary Thresholding algorithm.
DilateBooleanApplies dilation to the image, which in some cases may allow for better detection:
  • True to apply dilation to the image,
  • False (default value) otherwise.
GaussianFilterKernelSizeIntegerNoise reduction using Gaussian blur.
By default, this property is set to 3.
Note: This value must be odd.
ValueThresholdRealThis property is used when the thresholding algorithm is applied.
Any pixel with a value greater than ValueThreshold will be set to the value of ValueThresholdMax.
By default, this property is set to 150.0.
ValueThresholdMaxRealThis property is used when the thresholding algorithm is applied.
Any pixel with a value greater than ValueThreshold will be set to the value of ValueThresholdMax.
By default, this property is set to 255.0.

WLanguage functions that use aiConfigureContourDetection variables

aiConfigureContourDetection variables can be handled using the following WLanguage functions:
AIDetectContourDetects the contours of the shapes in an image.
Minimum version required
  • Version 28
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/28/2025

Send a report | Local help