FaceMatchLiteRtModel

constructor(modelData: ByteString, imageSquareSize: Int, embeddingsArraySize: Int)

Parameters

modelData

The LiteRT model file data need to be extracted on the client side to the ByteString from the FlatBuffer mode file. The compatible model file for LiteRT can be obtained from GitHub project or converted from other models available online (see https://ai.google.dev/edge/litert for more details on that).

imageSquareSize

The input image (square) size in pixels. Dictated by the particular Model capabilities.

embeddingsArraySize

The size of the embeddings array produced by the particular Model.