Class Inference
-
- All Implemented Interfaces:
public class Inference
Inference class for running model processing lifecycles.
-
-
Constructor Summary
Constructors Constructor Description Inference(Model model, InferenceOptions options)
Constructs an inference engine for a given model.
-
Method Summary
-
-
Constructor Detail
-
Inference
Inference(Model model, InferenceOptions options)
Constructs an inference engine for a given model.- Parameters:
model
- the model instance used to perform inferenceoptions
- configuration options to control inference behavior
-
-
Method Detail
-
run
<T> T run(Array<byte> imageBytes)
Runs inference on a provided byte array and returns results.
- Parameters:
imageBytes
- the image in byte[] format to run inference on- Returns:
an Inference Results representing the inference output
-
run
<T> T run(Bitmap bitmap)
Runs inference on a provided image bitmap and returns a summary.
- Parameters:
bitmap
- the image bitmap to run inference on- Returns:
a Results object representing the inference output
-
-
-
-