Callback-interface for handling tracker events.
More...
#include <face_sdk_tracker.h>
|
virtual void | on_track_appeared (const std::shared_ptr< face_sdk::video_stream > &stream, const std::shared_ptr< face_sdk::track > &track, const std::shared_ptr< face_sdk::video_frame > &frame, const std::shared_ptr< face_sdk::face > &face)=0 |
| Raises when a person has appeared in the stream. More...
|
|
virtual void | on_track_disappeared (const std::shared_ptr< face_sdk::video_stream > &stream, const std::shared_ptr< face_sdk::track > &track)=0 |
| Raises when a person is lost in the stream. More...
|
|
virtual void | on_track_updated (const std::shared_ptr< face_sdk::video_stream > &stream, const std::shared_ptr< face_sdk::track > &track, const std::shared_ptr< face_sdk::video_frame > &frame, const std::shared_ptr< face_sdk::face > &face)=0 |
| Raises when the track object has updated. More...
|
|
virtual void | on_track_best_frame (const std::shared_ptr< face_sdk::video_stream > &stream, const std::shared_ptr< face_sdk::track > &track, const std::shared_ptr< face_sdk::video_frame > &frame, const std::shared_ptr< face_sdk::face > &face)=0 |
| Raises when the track object find new best face. More...
|
|
virtual void | on_frame_process_error (const face_sdk::exception &exc, const std::shared_ptr< face_sdk::video_stream > &stream, const std::shared_ptr< face_sdk::video_frame > &frame)=0 |
| Raises when failed to process frame in stream. More...
|
|
Callback-interface for handling tracker events.
- Examples:
- tracker.cpp.
◆ on_frame_process_error()
Raises when failed to process frame in stream.
- Parameters
-
[in] | exc | The exception. Use format_exception function to get error contents |
[in] | stream | The stream to which the exception was thrown |
[in] | frame | The invalid frame |
◆ on_track_appeared()
Raises when a person has appeared in the stream.
- Parameters
-
[in] | stream | The stream where a person has detected |
[in] | track | The track of a person |
[in] | frame | The frame where a person has detected |
[in] | face | The detected face object in the frame |
- Examples:
- tracker.cpp.
◆ on_track_best_frame()
Raises when the track object find new best face.
- Parameters
-
[in] | stream | The stream where the track object has updated |
[in] | track | The updated track |
[in] | frame | The frame where track has updated |
[in] | face | The detected new best face in the frame |
- Examples:
- tracker.cpp.
◆ on_track_disappeared()
Raises when a person is lost in the stream.
- Parameters
-
[in] | stream | The stream where a person is lost |
[in] | track | The track of a person |
- Examples:
- tracker.cpp.
◆ on_track_updated()
Raises when the track object has updated.
- Parameters
-
[in] | stream | The stream where the track object has updated |
[in] | track | The updated track |
[in] | frame | The frame where track has updated |
[in] | face | The detected face in the frame |
- Examples:
- tracker.cpp.
The documentation for this class was generated from the following file: