PreProcessing class
Classe responsável pelo pré-processamento de imagens para modelos TFLite.
Métodos Estáticos:
- fromUiImage: Converte um ui.Image em bytes PNG (Uint8List).
- imageToTensor: Converte bytes de imagem em um tensor 4D normalizado
- tensorToImage: Converte tensor normalizado (4D) de volta para imagem
- tensorToImageBytes: Converte tensor normalizado (4D) de volta para bytes de imagem PNG
- processImage: Função que orquestra o pré-processamento completo
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromUiImage(
Image image) → Future< Uint8List> - Converte um ui.Image em bytes PNG (Uint8List).
-
imageToTensor(
Uint8List imageBytes, int tensorWidth, int tensorHeight) → Future< List< List< >List< >List< >double> > - Converte bytes de imagem em um tensor 4D normalizado
-
processImage(
Uint8List imageBytes, {int width = 640, int height = 640}) → Future< List< List< >List< >List< >double> > - Orquestra o pré-processamento completo: converte bytes de imagem em tensor 4D normalizado
-
tensorToImage(
List< List< tensor) → ImageList< >List< >double> > - Converte um tensor normalizado (4D) de volta para imagem
-
tensorToImageBytes(
List< List< tensor) → Uint8ListList< >List< >double> > - Converte um tensor normalizado (4D) de volta para bytes de imagem PNG