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>classes, imageHeight, imageWidth, synsetArtifactName, 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.
|
preparegetPipeline, processInputclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBatchifierpublic YoloTranslator(YoloTranslator.Builder builder)
builder - the data to build withpublic DetectedObjects processOutput(TranslatorContext ctx, NDList list) throws java.lang.Exception
ctx - the toolkit used for post-processinglist - the output NDList after inferencejava.lang.Exception - if an error occurs during processing outputpublic static YoloTranslator.Builder builder()
YoloTranslator.