public class SingleShotDetectionTranslator extends ObjectDetectionTranslator
Modifier and Type | Class and Description |
---|---|
static class |
SingleShotDetectionTranslator.Builder
The builder for SSD translator.
|
ObjectDetectionTranslator.ObjectDetectionBuilder<T extends ObjectDetectionTranslator.ObjectDetectionBuilder>
BaseImageTranslator.BaseBuilder<T extends BaseImageTranslator.BaseBuilder>, BaseImageTranslator.ClassificationBuilder<T extends BaseImageTranslator.BaseBuilder>, BaseImageTranslator.SynsetLoader
classes, imageHeight, imageWidth, threshold
pipeline
Constructor and Description |
---|
SingleShotDetectionTranslator(SingleShotDetectionTranslator.Builder builder)
Creates the SSD translator from the given builder.
|
Modifier and Type | Method and Description |
---|---|
static SingleShotDetectionTranslator.Builder |
builder()
Creates a builder to build a
SingleShotDetectionTranslator . |
static SingleShotDetectionTranslator.Builder |
builder(java.util.Map<java.lang.String,?> arguments)
Creates a builder to build a
SingleShotDetectionTranslator with specified arguments. |
DetectedObjects |
processOutput(TranslatorContext ctx,
NDList list)
Processes the output NDList to the corresponding output object.
|
prepare
getBatchifier, processInput
public SingleShotDetectionTranslator(SingleShotDetectionTranslator.Builder builder)
builder
- the builder for the translatorpublic DetectedObjects processOutput(TranslatorContext ctx, NDList list)
ctx
- the toolkit used for post-processinglist
- the output NDList after inferencepublic static SingleShotDetectionTranslator.Builder builder()
SingleShotDetectionTranslator
.public static SingleShotDetectionTranslator.Builder builder(java.util.Map<java.lang.String,?> arguments)
SingleShotDetectionTranslator
with specified arguments.arguments
- arguments to specify builder options