public class ExternRecognizer extends Object implements Recognizer
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 |
ExternRecognizer.RequestMessage
The RequestMessage is a class specializing the format of request
messages
of ExternPedestrianComparerWithAttr to extern solvers.
|
Modifier and Type | Field and Description |
---|---|
private Logger |
logger
|
private int |
port
|
private Socket |
socket
|
private InetAddress |
solverAddress
|
Constructor and Description |
---|
ExternRecognizer(InetAddress solverAddress,
int port,
Logger logger)
Constructor of ExternRecognizer specifying external solver's
address and listening port.
|
Modifier and Type | Method and Description |
---|---|
private void |
connect()
|
void |
connect(InetAddress solverAddress,
int port)
|
Attributes |
recognize(Tracklet tracklet)
Recognize attributes from a pedestrian tracklet.
|
private Logger logger
private Socket socket
private InetAddress solverAddress
private int port
public ExternRecognizer(@Nonnull 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 InetAddress solverAddress, int port)
private void connect()
@Nonnull public Attributes recognize(@Nonnull Tracklet tracklet)
recognize
in
interface Recognizer
tracklet
- a pedestrian tracklet.