ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Image detection functions
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
Detects the contours of the shapes in an image.
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)
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.
Component: wd300ia.dll
Minimum version required
  • Version 28
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/31/2023

Send a report | Local help