public class ExternPedestrianAttrRecognizer extends PedestrianAttrRecognizer
16 bytes - Request UUID.
4 bytes - Tracklet length (number of bounding boxes).
foreach bounding box: {
16 bytes - Bounding box data (x, y, width, height).
width * height * 3 bytes - Image data.
}
Response format
jsonLen bytes - Bytes of JSON string representing the attributes.
Modifier and Type | Class and Description |
---|---|
protected class |
ExternPedestrianAttrRecognizer.RequestMessage
The RequestMessage is a class specializing the format of request messages
of ExternPedestrianComparerWithAttr to extern solvers.
|
Constructor and Description |
---|
ExternPedestrianAttrRecognizer(java.net.InetAddress solverAddress,
int port,
Logger logger)
Constructor of ExternPedestrianAttrRecognizer specifying external solver's
address and listening port.
|
Modifier and Type | Method and Description |
---|---|
void |
connect(java.net.InetAddress solverAddress,
int port) |
Attributes |
recognize(Tracklet tracklet)
Recognize attributes from a track of pedestrian.
|
public ExternPedestrianAttrRecognizer(@Nonnull java.net.InetAddress solverAddress, int port, @Nullable Logger logger)
solverAddress
- The address of the solver.port
- The port the solver is listening to.public void connect(@Nonnull java.net.InetAddress solverAddress, int port)
@Nonnull public Attributes recognize(@Nonnull Tracklet tracklet)
PedestrianAttrRecognizer
recognize
in class PedestrianAttrRecognizer
tracklet
- A pedestrian track.