public abstract class ObjectDetectionTranslator extends BaseImageTranslator<DetectedObjects>
| Modifier and Type | Class and Description |
|---|---|
static class |
ObjectDetectionTranslator.ObjectDetectionBuilder<T extends ObjectDetectionTranslator.ObjectDetectionBuilder>
The base builder for the object detection translator.
|
BaseImageTranslator.BaseBuilder<T extends BaseImageTranslator.BaseBuilder>, BaseImageTranslator.ClassificationBuilder<T extends BaseImageTranslator.BaseBuilder>, BaseImageTranslator.SynsetLoader| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<java.lang.String> |
classes |
protected double |
imageHeight |
protected double |
imageWidth |
protected float |
threshold |
| Modifier | Constructor and Description |
|---|---|
protected |
ObjectDetectionTranslator(ObjectDetectionTranslator.ObjectDetectionBuilder<?> builder)
Creates the
ObjectDetectionTranslator from the given builder. |
| Modifier and Type | Method and Description |
|---|---|
void |
prepare(NDManager manager,
Model model)
Prepares the translator with the manager and model to use.
|
getBatchifier, getBooleanValue, getFloatValue, getIntValue, getPipeline, getStringValue, processInputclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprocessOutputprotected float threshold
protected java.util.List<java.lang.String> classes
protected double imageWidth
protected double imageHeight
protected ObjectDetectionTranslator(ObjectDetectionTranslator.ObjectDetectionBuilder<?> builder)
ObjectDetectionTranslator from the given builder.builder - the builder for the translatorpublic void prepare(NDManager manager, Model model) throws java.io.IOException
manager - the manager for the translatormodel - the model to translate forjava.io.IOException - if there is an error reading inputs for preparing the translator