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 |
pipeline| Modifier | Constructor and Description |
|---|---|
protected |
ObjectDetectionTranslator(ObjectDetectionTranslator.ObjectDetectionBuilder<?> builder)
Creates the
ObjectDetectionTranslator from the given builder. |
| Modifier and Type | Method and Description |
|---|---|
void |
prepare(TranslatorContext ctx)
Prepares the translator with the manager and model to use.
|
getBatchifier, 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(TranslatorContext ctx) throws java.lang.Exception
ctx - the context for the Predictor.java.lang.Exception - if there is an error for preparing the translator