public class YoloTranslator extends ObjectDetectionTranslator
| Modifier and Type | Class and Description |
|---|---|
static class |
YoloTranslator.Builder
The builder for
YoloTranslator. |
ObjectDetectionTranslator.BaseBuilder<T extends ObjectDetectionTranslator.BaseBuilder>BaseImageTranslator.ClassificationBuilder<T extends BaseImageTranslator.BaseBuilder>, BaseImageTranslator.SynsetLoaderclasses, imageHeight, imageWidth, threshold| Constructor and Description |
|---|
YoloTranslator(YoloTranslator.Builder builder)
Constructs an ImageTranslator with the provided builder.
|
| Modifier and Type | Method and Description |
|---|---|
static YoloTranslator.Builder |
builder()
Creates a builder to build a
YoloTranslator. |
DetectedObjects |
processOutput(TranslatorContext ctx,
NDList list)
Processes the output NDList to the corresponding output object.
|
preparegetBatchifier, getPipeline, processInputpublic YoloTranslator(YoloTranslator.Builder builder)
builder - the data to build withpublic DetectedObjects processOutput(TranslatorContext ctx, NDList list)
ctx - the toolkit used for post-processinglist - the output NDList after inferencepublic static YoloTranslator.Builder builder()
YoloTranslator.