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 boxesBuilderpublic MultiBoxDetection.Builder optForceSuppress(boolean forceSuppress)
false by default.forceSuppress - whether to suppress all detections regardless of class_idBuilderpublic MultiBoxDetection.Builder optBackgroundId(int backgroundId)
backgroundId - the class ID for the backgroundBuilderpublic MultiBoxDetection.Builder optNmsTopK(int nmsTopK)
nmsTopK - whether to clip out-of-boundary boxesBuilderpublic MultiBoxDetection.Builder optThreshold(float threshold)
threshold - the threshold score for a detection to be a positive predictionBuilderpublic MultiBoxDetection.Builder optNmsThreshold(float nmsThreshold)
nmsThreshold - the non-maximum suppression(NMS) thresholdBuilderpublic MultiBoxDetection build()
MultiBoxDetection block.MultiBoxDetection block