public class PersonLinker extends Object
There are various challenges associated with doing this. For example, how much training is needed? Currently the amount of training is determined by the user's settings.
The distance threshold that determines whether a person is the same person or not is determined by the user's settings, and is fed through the to annotator that is instantiated.
Modifier and Type | Class and Description |
---|---|
protected static class |
PersonLinker.PersonLinkerOptions
Options for the person matcher.
|
protected static class |
PersonLinker.TrackedPerson
A tracked person is a tracked face with a person identifier.
|
Constructor and Description |
---|
PersonLinker(PersonLinker.PersonLinkerOptions options)
Default constructor that takes the options object.
|
Modifier and Type | Method and Description |
---|---|
VideoShotDetector<MBFImage> |
getShotDetector()
Returns the shot detector in use.
|
static void |
main(String[] args) |
static PersonLinker.PersonLinkerOptions |
parseArgs(String[] args)
Parses the command line arguments to create an options object.
|
void |
processFrame(MBFImage frame)
Process the video frame given
|
void |
processFrame(MBFImage frame,
Timecode timecode)
Process the given video frame.
|
void |
processVideo(Video<MBFImage> v)
Process a video.
|
void |
processVideo(Video<MBFImage> v,
String uri)
Process the video and provide a URI which all relations will be linked to.
|
void |
reset()
Resets the state of the person linker.
|
public PersonLinker(PersonLinker.PersonLinkerOptions options)
options
- The options for the new PersonLinkerpublic void processVideo(Video<MBFImage> v)
v
- The video to processpublic void processVideo(Video<MBFImage> v, String uri)
v
- The video to processuri
- The URI of the videopublic void processFrame(MBFImage frame)
frame
- The frame to processpublic void processFrame(MBFImage frame, Timecode timecode)
frame
- The frametimecode
- The frame's timecodepublic VideoShotDetector<MBFImage> getShotDetector()
public void reset()
public static PersonLinker.PersonLinkerOptions parseArgs(String[] args)
args
- The arguments from the command-linepublic static void main(String[] args) throws VideoCaptureException
args
- Command-line argsVideoCaptureException