ClassifyModel class

////////// CLASSIFY

Constructors

ClassifyModel({required ExecuTorchModel model, required String modelPath, required int inputWidth, required int inputHeight, required List<String> labels})

Properties

hashCode int
The hash code for this object.
no setterinherited
inputHeight int
final
inputWidth int
final
labels List<String>
final
model → ExecuTorchModel
final
modelPath String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

forward(TensorData inputTensor, Uint8List originalImageBytes) Future<List<TensorData>>
Executa a inferência do modelo com o tensor de entrada. Retorna um mapa contendo as saídas do modelo.
getResult(List<TensorData> outputs, Uint8List originalImageBytes) ClassificationResult
Processa as saídas do modelo para gerar o resultado de classificação Retorna um ClassificationResult contendo os resultados da classificação.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
predict(Uint8List originalImageBytes) Future<ClassificationResult>
Realiza a predição de classificação em uma imagem de entrada. Retorna um ClassificationResult contendo os resultados da classificação.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited