ReIdentification

Struct ReIdentification 

pub struct ReIdentification(/* private fields */);
Expand description

ReIdentification functionality.

Implementations§

§

impl ReIdentification

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::InvalidTrackID if 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>

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::TimeNotSet
  • Error::CameraNameNotSet

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::TimeNotSet
  • Error::StateCorrupt
  • Error::StateSettingsMismatch

Trait Implementations§

§

impl Debug for ReIdentification

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.