Struct ReIdentification
pub struct ReIdentification(/* private fields */);Expand description
ReIdentification functionality.
Implementations§
§impl ReIdentification
impl ReIdentification
pub fn get_matching_track_ids(
&self,
track_id: &TrackID,
) -> Result<Vec<TrackID>, Error>
pub fn get_matching_track_ids( &self, track_id: &TrackID, ) -> Result<Vec<TrackID>, Error>
Retrieve the matching track IDs of a given track ID.
When the track is not (yet) matched to other tracks, a list with one track ID is returned (its own ID).
When the track ID was matched to other track IDs, all known matching track IDs are returned in the list.
This function only returns matching track IDs that are known locally to this instance of the ReIdentification algorithm.
In night mode this function will only return the track ID itself because there is not enough appearance information in IR video data to uniquely identify people.
§Errors
Error::InvalidTrackIDif the track ID was not found or the class of the track does not have support for ReIdentification.
pub fn get_re_id_state(&self) -> Result<ReIDState, Error>
pub fn get_re_id_state(&self) -> Result<ReIDState, Error>
Get the current state of the ReIdentification algorithm.
This can be used to store the state to persistent storage when a device shuts down and restore it later when it reboots.
This state data can change during any VideoIntelligence::process_frame
call.
This function can only be called when the clock time has been set through
VideoIntelligence::set_clock_time, and a unique camera name has been set
through VideoIntelligence::set_camera_name.
§Errors
Error::TimeNotSetError::CameraNameNotSet
pub fn merge_re_id_state(&mut self, state: ReIDState) -> Result<(), Error>
pub fn merge_re_id_state(&mut self, state: ReIDState) -> Result<(), Error>
Merge ReIdentification data into the current VideoIntelligence instance.
This can be used to restore a previous state from persistent storage, for
example when a device reboots. When called with data obtained from a
different instance of VideoIntelligence, for example from a different
camera, this will merge the ReIdentification data from that instance into
the current instance.
This function can only be called when the clock time has been set through
VideoIntelligence::set_clock_time.
§Errors
Error::TimeNotSetError::StateCorruptError::StateSettingsMismatch