ImageEmbedderOptions
class ImageEmbedderOptions : TaskOptions, NSCopyingOptions for setting up a ImageEmbedder.
- 
                  
                  Running mode of the image embedder task. Defaults to .image.ImageEmbeddercan be created with one of the following running modes:- .image: The mode for performing embedding extraction on single image inputs.
- .video: The mode for performing embedding extraction on the decoded frames of a video.
- .liveStream: The mode for performing embedding extraction on a live stream of input data, such as from the camera.
 DeclarationSwift var runningMode: RunningMode { get set }
- 
                  
                  An object that confirms to ImageEmbedderLiveStreamDelegateprotocol. This object must implementimageEmbedder(_:didFinishEmbeddingWithResult:timestampInMilliseconds:error:)to receive the results of asynchronous embedding extraction on images (i.e, whenrunningMode = .liveStream).DeclarationSwift weak var imageEmbedderLiveStreamDelegate: ImageEmbedderLiveStreamDelegate? { get set }
- 
                  
                  @brief Sets whether L2 normalization should be performed on the returned embeddings. Use this option only if the model does not already contain a native L2_NORMALIZATION TF Lite Op. In most cases, this is already the case and L2 norm is thus achieved through TF Lite inference. NOby default.DeclarationSwift var l2Normalize: Bool { get set }
- 
                  
                  @brief Sets whether the returned embedding should be quantized to bytes via scalar quantization. Embeddings are implicitly assumed to be unit-norm and therefore any dimensions is guaranteed to have value in [-1.0, 1.0]. Use the l2Normalizeproperty if this is not the case.NOby default.DeclarationSwift var quantize: Bool { get set }