ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

New WINDEV and WEBDEV 28 feature!
This content has been translated automatically.  Click here  to view the French version.
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
monContour is aiConfigureContourDetection
monContour.DetectionAlgorithm = aiDetectContourCannyEdge
monContour.Dilate = 3
monContour.GaussianFilterKernelSize = 3
monContour.ValueThreshold = 150
monContour.ValueThresholdMax = 255
 
monTableauPolygone is array of Polygon
monTableauPolygone = AIDetectContour(monContour, "Image_test_contour_3.png")
Syntax
<Result> = AIDetectContour(<Image> [, <Parameters>])
<Result>: Array of Polygon
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.
  • Detection is based on Artificial Intelligence, and does not guarantee 100 percent detection%.
Component: wd280ia.dll
Minimum version required
  • Version 28
This page is also available for…
Comments
Click [Add] to post a comment