Platforms to show: All Mac Windows Linux Cross-Platform

Back to MLFeatureValueMBS class.

MLFeatureValueMBS.featureValueWithCGImage(image as variant, orientation as integer = -1, constraint as MLImageConstraintMBS, options as Dictionary = nil, byref error as NSErrorMBS) as MLFeatureValueMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreML MBS Mac64bit Plugin 20.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Wraps an image as a value for a feature, given an image’s URL and constraints.

Available on macOS 10.15 or newer.
If orientation is in range 1 to 8, we pass that as orientation. Otherwise orientation will come from EXIF

See also:

MLFeatureValueMBS.featureValueWithCGImage(image as variant, orientation as integer = -1, pixelsWide as Integer, pixelsHigh as Integer, pixelFormatType as String, options as Dictionary = nil, byref error as NSErrorMBS) as MLFeatureValueMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreML MBS Mac64bit Plugin 20.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Wraps an image as a value for a feature, given an image, its width, and its height, in pixels.

Available on macOS 10.15 or newer.
If orientation is in range 1 to 8, we pass that as orientation. Otherwise orientation will come from EXIF

See also:

MLFeatureValueMBS.featureValueWithDictionary(value as Dictionary, byref error as NSErrorMBS) as MLFeatureValueMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreML MBS Mac64bit Plugin 17.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates new feature based on a dictionary.

Copies the dictionary.
For encoding a sparse feature set or for encoding probabilities. Input keys that are not number or string are rejected on construction and return a MLModelErrorFeatureTypeMismatch error. Further validation for consistency occurs on evaluation.

MLFeatureValueMBS.featureValueWithDouble(value as double) as MLFeatureValueMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreML MBS Mac64bit Plugin 17.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns feature object for given value.

MLFeatureValueMBS.featureValueWithImageFile(File as FolderItem, orientation as integer = -1, constraint as MLImageConstraintMBS, options as Dictionary = nil, byref error as NSErrorMBS) as MLFeatureValueMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreML MBS Mac64bit Plugin 20.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Wraps an image as a value for a feature, given an image and its constraints.

Available on macOS 10.15 or newer.
If orientation is in range 1 to 8, we pass that as orientation. Otherwise orientation will come from EXIF

See also:

Some examples using this method:

MLFeatureValueMBS.featureValueWithImageFile(File as FolderItem, orientation as integer = -1, pixelsWide as Integer, pixelsHigh as Integer, pixelFormatType as String, options as Dictionary = nil, byref error as NSErrorMBS) as MLFeatureValueMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreML MBS Mac64bit Plugin 20.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Wraps an image as a value for a feature, given an image’s URL, and its width and height, in pixels.

Available on macOS 10.15 or newer.
If orientation is in range 1 to 8, we pass that as orientation. Otherwise orientation will come from EXIF

See also:

MLFeatureValueMBS.featureValueWithInt64(value as Int64) as MLFeatureValueMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreML MBS Mac64bit Plugin 17.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns feature object for given value.

MLFeatureValueMBS.featureValueWithMultiArray(value as MLMultiArrayMBS) as MLFeatureValueMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreML MBS Mac64bit Plugin 17.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns feature object for given value.

MLFeatureValueMBS.featureValueWithPicture(value as Picture) as MLFeatureValueMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreML MBS Mac64bit Plugin 17.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns feature object for given value.

Some examples using this method:

MLFeatureValueMBS.featureValueWithPixelBuffer(Handle as Integer) as MLFeatureValueMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreML MBS Mac64bit Plugin 20.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Wraps a pixel buffer as a value for a feature.

MLFeatureValueMBS.featureValueWithSequence(sequence as MLSequenceMBS) as MLFeatureValueMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreML MBS Mac64bit Plugin 20.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Wraps a sequence as a value for a feature.

MLFeatureValueMBS.featureValueWithString(value as string) as MLFeatureValueMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreML MBS Mac64bit Plugin 17.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns feature object for given value.

MLFeatureValueMBS.MLFeatureValueImageOptionCropAndScale as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreML MBS Mac64bit Plugin 20.0 ✅ Yes ❌ No ❌ No ✅ Yes All
The option you use to crop and scale an image when creating an image feature value.

MLFeatureValueMBS.MLFeatureValueImageOptionCropRect as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreML MBS Mac64bit Plugin 20.0 ✅ Yes ❌ No ❌ No ✅ Yes All
The option you use to crop an image when creating an image feature value.

MLFeatureValueMBS.undefinedFeatureValueWithType(type as Integer) as MLFeatureValueMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreML MBS Mac64bit Plugin 17.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Represent an undefined value of a specified type.

The items on this page are in the following plugins: MBS Mac64bit Plugin.


The biggest plugin in space...