public final class DeepMAR extends PedestrianAttrRecognizer
Created by ken.yu on 17-1-10.
| Constructor and Description |
|---|
DeepMAR(int gpu,
Logger logger)
Create an instance of DeepMAR.
|
DeepMAR(int gpu,
java.lang.String protocolPath,
java.lang.String weightsPath,
Logger logger)
Create an instance of DeepMAR.
|
| Modifier and Type | Method and Description |
|---|---|
Attributes |
recognize(Tracklet.BoundingBox bbox)
|
Attributes |
recognize(Tracklet tracklet)
Recognize attributes from a track of pedestrian.
|
public DeepMAR(int gpu,
@Nonnull
java.lang.String protocolPath,
@Nonnull
java.lang.String weightsPath,
@Nullable
Logger logger)
gpu - The GPU to use.protocolPath - Path of the DeepMAR protocol file.weightsPath - Path of the binary weights model of DeepMAR.logger - An external logger.public DeepMAR(int gpu,
@Nullable
Logger logger)
throws java.io.IOException
gpu - id of GPU to use.logger - logger for outputting debug info.java.io.IOException@Nonnull public Attributes recognize(@Nonnull Tracklet tracklet) throws java.io.IOException
recognize in
class PedestrianAttrRecognizer
tracklet - A pedestrian track.java.io.IOException - Exception that might occur during
recognition.
@Nonnull public Attributes recognize(@Nonnull Tracklet.BoundingBox bbox)