VisionSkillBindingHelper Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A class that can be composed within an implementation that extends the ISkillBinding interface to ease skill development.
public ref class VisionSkillBindingHelper : Windows::Foundation::Collections::IIterable<Windows::Foundation::Collections::IKeyValuePair<System::String ^, Microsoft::AI::Skills::SkillInterfacePreview::ISkillFeature ^> ^>, Windows::Foundation::Collections::IMap<System::String ^, Microsoft::AI::Skills::SkillInterfacePreview::ISkillFeature ^>
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Composable(typeof(Microsoft.AI.Skills.SkillInterfacePreview.IVisionSkillBindingHelperFactory), Windows.Foundation.Metadata.CompositionType.Public, 65536, "Microsoft.AI.Skills.SkillInterfacePreview.SkillsAPIContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.AI.Skills.SkillInterfacePreview.SkillsAPIContract), 65536)]
public class VisionSkillBindingHelper : Windows.Foundation.Collections.IIterable<Windows.Foundation.Collections.IKeyValuePair<string,Microsoft.AI.Skills.SkillInterfacePreview.ISkillFeature>>, Windows.Foundation.Collections.IMap<string,Microsoft.AI.Skills.SkillInterfacePreview.ISkillFeature>
type VisionSkillBindingHelper = class
interface IMap<string, ISkillFeature>
interface IIterable<IKeyValuePair<string, ISkillFeature>>
Public Class VisionSkillBindingHelper
Implements IIterable(Of IKeyValuePair(Of String, ISkillFeature)), IMap(Of String, ISkillFeature)
- Inheritance
-
VisionSkillBindingHelper
- Attributes
-
Windows.Foundation.Metadata.MarshalingBehaviorAttribute Windows.Foundation.Metadata.ThreadingAttribute Windows.Foundation.Metadata.ComposableAttribute Windows.Foundation.Metadata.ContractVersionAttribute
- Implements
-
Windows.Foundation.Collections.IIterable<Windows.Foundation.Collections.IKeyValuePair<K,V>> Windows.Foundation.Collections.IIterable<Windows.Foundation.Collections.IKeyValuePair<String,ISkillFeature>> Windows.Foundation.Collections.IMap<String,ISkillFeature>
Remarks
VisionSkillBindingHelper is an unsealed runtimeclass that implements the IMap interface. It holds at least one SkillFeature that encapsulates an input SkillFeatureImageValue. The use of this class to store SkillFeature objects ensures automatic population of appropriate ISkillFeatureValue objects at creation and conversion of image features to the prescribed format at bind time.
Constructors
| VisionSkillBindingHelper(ISkillDescriptor, ISkillExecutionDevice) |
Constructor for VisionSkillBindingHelper. |
Properties
| Device |
The ISkillExecutionDevice associated with the ISkillFeature objects in this container. |
| Size |
Gets the number of items in the map. |
Methods
| Clear() |
Removes all items from the map. |
| First() |
Returns an iterator for the items in the collection. |
| GetView() |
Returns an immutable view of the map. |
| HasKey(String) |
Determines whether the map contains the specified key. |
| Insert(String, ISkillFeature) |
Inserts or replaces an item in the map. |
| Lookup(String) |
Returns the item at the specified key in the map. |
| Remove(String) |
Removes an item from the map. |
| SetInputImageAsync(VideoFrame) |
Inserts a SkillFeature that encapsulates a SkillFeatureImageValue created with the input VideoFrame. |