|
|
|
|
|
AIDetectDrawing (Function) In french: IADétecteDessin Classifies freehand drawings, including circles, squares and triangles. arrAIImageResult is array of aiImageResult  WHEN EXCEPTION IN arrAIImageResult = AIDetectDrawing("circle.png") DO Trace(ExceptionInfo(errFullDetails)) END  iElement is aiImageResult FOR EACH ÉLÉMENT iElement OF arrAIImageResult Trace(iElement.aidElementType, " ", iElement.ConfidenceLevel) END
Syntax
<Result> = AIDetectDrawing(<Image>)
<Result>: Array 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: - an Image control,
- a variable of type Image,
- an Image Memo,
- the path of an image or PDF file.
This image must have a black contour on a white background. The contour should be relatively thick to improve detection and classification. Remarks AIDetectDrawing 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…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|