TxtSmartFactoryLib  0.8.0
Smart Factory Library
ft::TxtMotionDetection Class Reference

#include <TxtMotionDetection.h>

Inheritance diagram for ft::TxtMotionDetection:
Collaboration diagram for ft::TxtMotionDetection:

Public Member Functions

 TxtMotionDetection (ft::TxtCamera *cam, double max_limit_Area)
 
virtual ~TxtMotionDetection ()
 
bool init ()
 
bool startThread ()
 
bool stopThread ()
 
std::string getDataString ()
 
- Public Member Functions inherited from ft::SubjectObserver
 SubjectObserver ()
 
virtual ~SubjectObserver ()
 
virtual void Attach (Observer *)
 
virtual void Detach (Observer *)
 
virtual void Notify ()
 

Protected Member Functions

void run ()
 

Static Protected Member Functions

static void * start_thread (void *obj)
 

Protected Attributes

ft::TxtCameracam
 
cv::Mat gray_last
 
std::chrono::system_clock::time_point tsLastDetected
 
double max_limit_Area
 
volatile bool m_stoprequested
 
volatile bool m_running
 
pthread_mutex_t m_mutex
 
pthread_t m_thread
 

Constructor & Destructor Documentation

ft::TxtMotionDetection::TxtMotionDetection ( ft::TxtCamera cam,
double  max_limit_Area 
)
virtual ft::TxtMotionDetection::~TxtMotionDetection ( )
virtual

Member Function Documentation

std::string ft::TxtMotionDetection::getDataString ( )
bool ft::TxtMotionDetection::init ( )
void ft::TxtMotionDetection::run ( )
protected
static void* ft::TxtMotionDetection::start_thread ( void *  obj)
inlinestaticprotected
bool ft::TxtMotionDetection::startThread ( )
bool ft::TxtMotionDetection::stopThread ( )

Member Data Documentation

ft::TxtCamera* ft::TxtMotionDetection::cam
protected
cv::Mat ft::TxtMotionDetection::gray_last
protected
pthread_mutex_t ft::TxtMotionDetection::m_mutex
protected
volatile bool ft::TxtMotionDetection::m_running
protected
volatile bool ft::TxtMotionDetection::m_stoprequested
protected
pthread_t ft::TxtMotionDetection::m_thread
protected
double ft::TxtMotionDetection::max_limit_Area
protected
std::chrono::system_clock::time_point ft::TxtMotionDetection::tsLastDetected
protected

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