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

Public Member Functions

virtual processor_type get_type ()=0
 
virtual void push (const std::shared_ptr<::bnb::interfaces::frame_data > &fd)=0
 
virtual processor_result pop ()=0
 

Static Public Member Functions

static std::shared_ptr< frame_processorcreate_realtime_processor (realtime_processor_mode mode, const std::shared_ptr< processor_configuration > &config)
 Realtime feed processor. More...
 
static std::shared_ptr< frame_processorcreate_photo_processor (const std::shared_ptr< processor_configuration > &config)
 Photo processor. More...
 
static std::shared_ptr< frame_processorcreate_video_processor (const std::shared_ptr< processor_configuration > &config)
 Video processor. More...
 

Detailed Description

Definition at line 21 of file frame_processor.hpp.

Member Function Documentation

◆ create_photo_processor()

static std::shared_ptr<frame_processor> bnb::interfaces::frame_processor::create_photo_processor ( const std::shared_ptr< processor_configuration > &  config)
static

Photo processor.

push to set photo, processing happens on pop synchronously. Several pop calls return same result without unnecessary processing, except case when recognizer pipeline was changed by EffectPlayer, processing will be restarted.

◆ create_realtime_processor()

static std::shared_ptr<frame_processor> bnb::interfaces::frame_processor::create_realtime_processor ( realtime_processor_mode  mode,
const std::shared_ptr< processor_configuration > &  config 
)
static

Realtime feed processor.

See RealtimeProcessorMode for more info.

◆ create_video_processor()

static std::shared_ptr<frame_processor> bnb::interfaces::frame_processor::create_video_processor ( const std::shared_ptr< processor_configuration > &  config)
static

Video processor.

Consistent push - pop will process frames synchronously.


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