ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Image detection functions
  • Properties specific to aiConfigureContourDetection variables
  • WLanguage functions that use aiConfigureContourDetection variables
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
aiConfigureContourDetection (Type of variable)
In french: iaParametreDetectionContour
The iaConfigureContourDetection type is used to define the parameters of the contour detection function. The characteristics of these parameters can be defined and changed using different WLanguage properties.
Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Example
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)
Properties

Properties specific to aiConfigureContourDetection variables

The following properties can be used to handle aiConfigureContourDetection variables:
Property nameType usedEffect
DetectionAlgorithmInteger constantContour detection algorithm:
  • aiDetectContourCannyEdge (Default): edge detection algorithm developed by J.F.Canny in 1986.
  • aiDetectContourBinaryThresholding: 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.
Remark: This value must be an odd number.
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: 06/05/2023

Send a report | Local help