Banuba SDK
Public Member Functions | Static Public Member Functions | List of all members
bnb::interfaces::recognizer Class Referenceabstract

Public Member Functions

virtual std::shared_ptr< featureget_feature (::bnb::interfaces::feature_id feature)=0
 
virtual void set_features (const std::unordered_set<::bnb::interfaces::feature_id > &features)=0
 
virtual void add_feature (const std::shared_ptr< feature > &feature, const std::unordered_set<::bnb::interfaces::feature_id > &dependencies)=0
 
virtual void remove_feature (const std::shared_ptr< feature > &feature)=0
 
virtual void set_max_faces (int32_t num)=0
 sets maximum allowed face results, if face tracking feature is present
 
virtual void set_offline_mode (bool on)=0
 
virtual void set_use_future_filter (bool on)=0
 Set future frame filtrarion mode. More...
 
virtual void set_use_future_interpolate (bool on)=0
 Set future frame interpolation mode. More...
 
virtual void process (const std::shared_ptr<::bnb::interfaces::frame_data > &frame_data)=0
 
virtual void push_camera_frame (const std::shared_ptr<::bnb::interfaces::frame_data > &input_frame_data)=0
 
virtual bool pop_frame_data (const std::shared_ptr<::bnb::interfaces::frame_data > &output_frame_data)=0
 
virtual void start ()=0
 start the recognizer
 
virtual void pause ()=0
 pause the recognizer
 
virtual void stop ()=0
 pause + clear
 
virtual void clear ()=0
 clear input and output buffers and pipeline state, also clean cached features
 

Static Public Member Functions

static std::shared_ptr< recognizercreate (recognizer_mode mode)
 
static int64_t get_feature_id (::bnb::interfaces::feature_id feature)
 

Detailed Description

Definition at line 22 of file recognizer.hpp.

Member Function Documentation

◆ set_use_future_filter()

virtual void bnb::interfaces::recognizer::set_use_future_filter ( bool  on)
pure virtual

Set future frame filtrarion mode.

Produce smoother recognition result (anti jitter), however adds inconsistency in push'ed/pop'ed frames (one frame lag) Applied only in push_camera_frame/pop_frame_data methods, when offline mode is disabled. Example: push frame 1 - pop frame 1, push frame 2 - pop frame 1, push frame 3 - pop frame 2, ...

◆ set_use_future_interpolate()

virtual void bnb::interfaces::recognizer::set_use_future_interpolate ( bool  on)
pure virtual

Set future frame interpolation mode.

Produce faster recognition result (skip even frames), however adds inconsistency in push'ed/pop'ed frames (one frame lag) Applied only in push_camera_frame/pop_frame_data methods, when offline mode is disabled. Example: push frame 1 - pop frame 1, push frame 2 - pop frame 1, push frame 3 - pop frame 2, ...


The documentation for this class was generated from the following file: