Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
CoreML.AddImageParameter
Adds an image parameter.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
CoreML | 7.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ✅ Yes |
MBS( "CoreML.AddImageParameter"; CoreMLRef; Name; Image ) More
Parameters
Parameter | Description | Example |
---|---|---|
CoreMLRef | The reference number to the model. | $Model |
Name | The name of the parameter. | "test" |
Image | A container value with image content. Can be PNG, JPEG, GIF, TIFF, BMP or various other types. |
Result
Returns OK or error.
Description
Adds an image parameter.Please make sure that the image has the required size.
Version 8.4 automatically scales image to required size.
Examples
Add image parameter:
Set Variable [ $r ; Value: MBS("CoreML.AddImageParameter"; $$ML; "image"; CoreML::Input Picture) ]
See also
- CoreML.Add2DArrayParameter
- CoreML.AddArrayParameter
- CoreML.AddDoubleParameter
- CoreML.AddIntegerParameter
- CoreML.AddTextParameter
- CoreML.PredictionFromFeatures
Release notes
- Version 8.4
- Improved CoreML.AddImageParameter function to auto scale image to required size.
Example Databases
Blog Entries
FileMaker Magazin
This function checks for a license.
Created 16th September 2017, last changed 16th September 2018