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
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Detects the contours of the shapes in an image.
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)
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.
Component: wd300ia.dll
Minimum version required
  • Version 28
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/30/2024

Send a report | Local help