public static class TFObjectDetector.Parameters
extends java.lang.Object
TFObjectDetector.Parameters
provides configuration information for instantiating the TFObjectDetectorModifier and Type | Field and Description |
---|---|
Activity |
activity
The activity in which the detector is to run.
|
int |
inputSize |
boolean |
isModelQuantized |
double |
maxFrameRate |
int |
maxNumDetections |
double |
minimumConfidence
Deprecated.
Use minResultConfidence instead
|
float |
minResultConfidence |
int |
numExecutorThreads |
int |
numInterpreterThreads |
int |
tfodMonitorViewIdParent
The resource id of the view within
activity that will be used
as the parent for a live monitor which provides feedback as to what objects
are detected. |
ViewGroup |
tfodMonitorViewParent
The view that will be used as the parent for a live monitor which provides
feedback as to what objects are detected.
|
int |
timingBufferSize |
float |
trackerMarginalCorrelation |
float |
trackerMaxOverlap |
float |
trackerMinCorrelation |
float |
trackerMinSize |
boolean |
useObjectTracker |
Constructor and Description |
---|
Parameters() |
Parameters(int tfodMonitorViewIdParent) |
@Deprecated public double minimumConfidence
public boolean useObjectTracker
public boolean isModelQuantized
public int inputSize
public int numInterpreterThreads
public int numExecutorThreads
public int maxNumDetections
public int timingBufferSize
public double maxFrameRate
public float minResultConfidence
public float trackerMaxOverlap
public float trackerMinSize
public float trackerMarginalCorrelation
public float trackerMinCorrelation
public int tfodMonitorViewIdParent
activity
that will be used
as the parent for a live monitor which provides feedback as to what objects
are detected. If both tfodMonitorViewIdParent
and tfodMonitorViewParent
are specified, tfodMonitorViewParent
is used and tfodMonitorViewIdParent
is ignored. Optional: if no view monitor parent is indicated, then no detector
monitoring is provided. The default is zero, which does not indicate a view parent.tfodMonitorViewParent
public ViewGroup tfodMonitorViewParent
tfodMonitorViewIdParent
and tfodMonitorViewParent
are specified, tfodMonitorViewParent
is used
and tfodMonitorViewIdParent
is ignored. Optional: if no view monitor parent is
indicated, then no detector monitoring is provided. The default is null.tfodMonitorViewIdParent
public Activity activity