public static final class MultiBoxDetection.Builder
extends java.lang.Object
MultiBoxDetection
object.Modifier and Type | Method and Description |
---|---|
MultiBoxDetection |
build()
Builds a
MultiBoxDetection block. |
MultiBoxDetection.Builder |
optBackgroundId(int backgroundId)
Sets the class ID for the background.
|
MultiBoxDetection.Builder |
optClip(boolean clip)
Sets the boolean parameter that indicates whether to clip out-of-boundary boxes.
|
MultiBoxDetection.Builder |
optForceSuppress(boolean forceSuppress)
Sets the boolean parameter that indicates whether to suppress all detections regardless
of class_id.
|
MultiBoxDetection.Builder |
optNmsThreshold(float nmsThreshold)
Sets the non-maximum suppression(NMS) threshold.
|
MultiBoxDetection.Builder |
optNmsTopK(int nmsTopK)
Sets the boolean parameter that indicates whether to clip out-of-boundary boxes.
|
MultiBoxDetection.Builder |
optThreshold(float threshold)
Sets the threshold score for a detection to be a positive prediction.
|
public MultiBoxDetection.Builder optClip(boolean clip)
true
by default.clip
- whether to clip out-of-boundary boxesBuilder
public MultiBoxDetection.Builder optForceSuppress(boolean forceSuppress)
false
by default.forceSuppress
- whether to suppress all detections regardless of class_idBuilder
public MultiBoxDetection.Builder optBackgroundId(int backgroundId)
backgroundId
- the class ID for the backgroundBuilder
public MultiBoxDetection.Builder optNmsTopK(int nmsTopK)
nmsTopK
- whether to clip out-of-boundary boxesBuilder
public MultiBoxDetection.Builder optThreshold(float threshold)
threshold
- the threshold score for a detection to be a positive predictionBuilder
public MultiBoxDetection.Builder optNmsThreshold(float nmsThreshold)
nmsThreshold
- the non-maximum suppression(NMS) thresholdBuilder
public MultiBoxDetection build()
MultiBoxDetection
block.MultiBoxDetection
block