public interface DeepMAR extends Recognizer
Modifier and Type | Interface and Description |
---|---|
static class |
DeepMAR.PointerManager
The class PointerManager holds the pointers to some constant
values.
|
Modifier and Type | Field and Description |
---|---|
static String[] |
ATTR_LIST
This array lists the attributes in the same order as the values
retrieved from the FC8 layer.
|
static int |
INPUT_HEIGHT
|
static int |
INPUT_WIDTH
|
static float |
MEAN_PIXEL
|
static DeepMAR.PointerManager
|
POINTERS
|
static Random |
random
|
static float |
REG_COEFF
|
Modifier and Type | Method and Description |
---|---|
static Attributes |
fillAttributes(float[] outputArray)
Fill the values from the FC8 layer of DeepMAR into an Attributes
object.
|
static float[] |
preprocess(Tracklet.BoundingBox bbox)
Preprocess the image, including mean value subtracting, value
normalizing and pixel remapping.
|
static int |
randomlyPickGPU(String gpus)
|
recognize
static final float MEAN_PIXEL
static final float REG_COEFF
static final Random random
static final DeepMAR.PointerManager POINTERS
static final int INPUT_WIDTH
static final int INPUT_HEIGHT
static final String[] ATTR_LIST
static int randomlyPickGPU(String gpus)
@Nonnull static float[] preprocess(@Nonnull Tracklet.BoundingBox bbox)
bbox
- the bounding box including the target pedestrian image.@Nonnull static Attributes fillAttributes(@Nonnull float[] outputArray)
outputArray
- vector from the FC8 layer.