public abstract static class ObjectDetectionTranslator.BaseBuilder<T extends ObjectDetectionTranslator.BaseBuilder> extends BaseImageTranslator.ClassificationBuilder<T>
| Modifier and Type | Field and Description |
|---|---|
protected double |
imageHeight |
protected double |
imageWidth |
protected float |
threshold |
synsetLoaderbatchifier, flag, pipeline| Constructor and Description |
|---|
BaseBuilder() |
| Modifier and Type | Method and Description |
|---|---|
double |
getImageHeight()
Get resized image height.
|
double |
getImageWidth()
Get resized image width.
|
float |
getThreshold()
Get threshold.
|
T |
optRescaleSize(double imageWidth,
double imageHeight)
Sets the optional rescale size.
|
T |
optThreshold(float threshold)
Sets the threshold for prediction accuracy.
|
protected abstract T |
self() |
optSynset, optSynsetArtifactName, optSynsetUrl, validateaddTransform, optBatchifier, optFlag, setPipelineprotected float threshold
protected double imageWidth
protected double imageHeight
protected abstract T self()
self in class BaseImageTranslator.BaseBuilder<T extends ObjectDetectionTranslator.BaseBuilder>public T optThreshold(float threshold)
Predictions below the threshold will be dropped.
threshold - the threshold for the prediction accuracypublic T optRescaleSize(double imageWidth, double imageHeight)
imageWidth - the width to rescale images toimageHeight - the height to rescale images topublic float getThreshold()
public double getImageWidth()
public double getImageHeight()