WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Stored procedures
AIDetectModel (Function)
In french: IAModèleDétecte
Runs a trained neural network model on an image. This function allows you to use artificial intelligence to detect objects in an image.
Caution: This function is an advanced function. To use this function, it is recommended to read the documentation of the neural network used (specifics, expected results and interpretation).
// Image declaration
MyImage is Image
MyImage = IMG_Test
// Declare a model
MyAINNModel is aiNeuralNetworkModel
MyAINNModel.Configuration = "MyModel.cfg"
MyAINNModel.TrainedWeights = "MyModel.weights.pb"
MyAINNModel.PixelScaleFactor = 1.0
MyAINNModel.XDimension = 300
MyAINNModel.YDimension = 300
MyAINNModel.AverageIntensityR = 104
MyAINNModel.AverageIntensityG = 117
MyAINNModel.AverageIntensityB = 113
MyAINNModel.RGBColor = True
myMatrixArray is array of 1 array of 1 by 1 by 200 by 7 real
// Run model
myMatrixArray = AIDetectModel(MyAINNModel, MyImage)
<Result> = AIDetectModel(<Model> , <Image>)
<Result>: Array of array
Array of matrices containing the result of the execution of the model.
<Model>: aiNeuralNetworkModel variable
Name of the iaNeuronNetworkModel variable describing the characteristics of the neural network used.
<Image>: String, Image or Image control
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.
  • The supported neural network models are: caffe, tensorflow y darknet.
  • The model must be trained (weights are known).
  • The expected extensions according to the models are:
    • Configuration:
      • Caffe: *.prototxt
      • Tensorflow: *.pbtxt
      • Darknet: *.cfg
    • Weights:
      • Caffe: *.caffemodel
      • Tensorflow: *.pb
      • Darknet: *.weights
Business / UI classification: Business Logic
Component: wd280ia.dll
Minimum version required
  • Version 27
This page is also available for…
Click [Add] to post a comment