In french: IADétecteDessin
Classifies freehand drawings, including circles, squares and triangles.
arrAIImageResult is array of aiImageResult
WHEN EXCEPTION IN
arrAIImageResult = AIDetectDrawing("circle.png")
iElement is aiImageResult
FOR EACH ÉLÉMENT iElement OF arrAIImageResult
Trace(iElement.aidElementType, " ", iElement.ConfidenceLevel)
<Result> = AIDetectDrawing(<Image>)
Array of 3 variables of type aiImageResult, sorted by confidence level in descending order.
<Image>: Control name, Image variable, character string
Image to be analyzed. The image can correspond to:
This image must have a black contour on a white background. The contour should be relatively thick to improve detection and classification.
- an Image control,
- a variable of type Image,
- an Image Memo,
- the path of an image or PDF file.
returns an array containing 3 variables of type aiImageResult
. Each one corresponds to one of the possible values (circle, square or triangle), classified according to probability.
For each possible value, the following information is returned:
- type (aidCircle, aidSquare and aidTriangle),
- probability (in percent).
The polygon is not specified.
Please note the function works as a classifier. Even if the drawing does not look like a circle, square, or triangle, the classifier may return probabilities higher than 0 for those shapes.
This page is also available for…