Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
CoreML.OpenModel
Opens a compiled model file.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| CoreML | 7.4 | Yes | No | No | Yes, macOS only | Yes |
Parameters
| Parameter | Description | Example |
|---|---|---|
| Path | The path to the model file. | "/test.mlmodelc" |
Result
Returns OK or error.
Description
Opens a compiled model file.If the model is not compiled (*.mlmodel), you can compile it with CoreML.CompileModel.
Returns error message if there is a problem.
See also Vision.ClassifyImage to use Vision framework from Apple to classify images with Apple's model.
Examples
Load Model:
Set Variable [ $$ML ; Value: MBS("CoreML.OpenModel"; CoreML::Model Path) ]
If [ MBS("IsError") ]
Show Custom Dialog [ "Failed to load" ; $$ML ]
Set Variable [ $$ML ; Value: "" ]
Else
Set Field [ CoreML::Model Description ; MBS("CoreML.Description"; $$ML) ]
End If
See also
Example Databases
Blog Entries
Created 16th September 2017, last changed 17th October 2019
CoreML.GetUsesCPUOnly - CoreML.PredictionFromFeatures
Feedback: Report problem or ask question.
Links
MBS Xojo Plugins