CoreML.ResultImage
------------------

Queries result image.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [CoreML](component_CoreML.md) | [7.4](newinversion74.md) | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ✅ Yes |

MBS( "CoreML.ResultImage"; CoreMLRef; Name { ; ImageType; FileName } ) 

**MBS**( **"CoreML.ResultImage";** /\* Queries result image. \*/  
**$CoreMLRef**; /\* The reference number to the model.e.g. $Model \*/   
**$Name**; /\* The name of the parameter.e.g. "image" \*/   
**$ImageType**; /\* Optional; The type of image to return.   
Either JPEG, PNG, GIF or BMP. Default is JPEG.e.g. "JPEG" \*/   
**$FileName**) /\* Optional; The filename to use for the picture.   
Default is "image" with the extension matching the image type.e.g. "test.jpg" \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| CoreMLRef | The reference number to the model. | $Model |  |
| Name | The name of the parameter. | "image" |  |
| ImageType | The type of image to return.    Either JPEG, PNG, GIF or BMP. Default is JPEG. | "JPEG" | Optional |
| FileName | The filename to use for the picture.    Default is "image" with the extension matching the image type. | "test.jpg" | Optional |

### Result

Returns container value or error.

### Description

Queries result image.  
If the [CoreML.PredictionFromFeatures](CoreMLPredictionFromFeatures.md) returns result and there is an image included, you can query it here.  
### See also

- [CoreML.PredictionFromFeatures](CoreMLPredictionFromFeatures.md)

### Blog Entries

- [Checkout Machine Learning features in FileMaker](https://www.mbsplugins.de/archive/2020-05-22/Checkout_Machine_Learning_feat/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 16th September 2017 , last changed 29th September 2020

  
[CoreML.ReleaseAll](CoreMLReleaseAll.md) - [CoreML.SetUsesCPUOnly](CoreMLSetUsesCPUOnly.md)

[HTML Version](CoreMLResultImage.shtml)