Banuba SDK
Loading...
Searching...
No Matches
bnb::camera_ocv Class Reference
Inheritance diagram for bnb::camera_ocv:
bnb::camera_base

Public Member Functions

 camera_ocv (const camera_base::push_frame_cb_t &cb, size_t index)
 
void set_device_by_index (uint32_t device_index) override
 
void set_device_by_id (const std::string &device_id) override
 
void start () override
 
- Public Member Functions inherited from bnb::camera_base
 camera_base (push_frame_cb_t cb)
 
const std::vector< camera_device_descriptionget_connected_devices () const
 
size_t get_current_device_index () const
 

Additional Inherited Members

- Public Types inherited from bnb::camera_base
enum class  camera_format { RGBA , YUV }
 
using push_frame_cb_t = std::function<void(bnb::full_image_t image)>
 
- Static Public Attributes inherited from bnb::camera_base
static camera_format current_format = camera_format::RGBA
 
- Protected Member Functions inherited from bnb::camera_base
virtual void abort ()
 
- Protected Attributes inherited from bnb::camera_base
push_frame_cb_t m_push_frame_cb
 
std::atomic_bool m_is_abort_requested
 
std::vector< camera_device_descriptionm_connected_devices
 
size_t m_device_index
 

Detailed Description

Definition at line 16 of file ocv_based.hpp.

Member Function Documentation

◆ set_device_by_id()

void bnb::camera_ocv::set_device_by_id ( const std::string & device_id)
overridevirtual

Implements bnb::camera_base.

◆ set_device_by_index()

void bnb::camera_ocv::set_device_by_index ( uint32_t device_index)
overridevirtual

Implements bnb::camera_base.

◆ start()

void bnb::camera_ocv::start ( )
overridevirtual

Implements bnb::camera_base.


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