ACT-CV - Machine Vision for Cognitive Modeling
Public Member Functions | Private Attributes | List of all members
TextObs Class Reference

text extraction More...

#include <FrameObserver.h>

Inheritance diagram for TextObs:
Inheritance graph
Collaboration diagram for TextObs:
Collaboration graph

Public Member Functions

 TextObs (bool showWin=false)
 
void FrameNotify (IplImage *img, int frameNr)
 notification of a new frame More...
 
void RegionInfoNotify (const std::vector< RegionInfo > &regions)
 
const char * GetName () const
 the name of the observer More...
 
void EnterCriticalSection ()
 
std::vector< ObjectPosition > & GetData ()
 
void LeaveCriticalSection ()
 

Private Attributes

mhthreads::Mutex mutex
 mutex for the result More...
 
std::vector< ObjectPositionlastResult
 the last result More...
 
GCPointer< FrameObswin
 
int lastFrameNr
 

Additional Inherited Members

- Private Member Functions inherited from ImageCopy
 ImageCopy (int divi=1)
 
 ~ImageCopy ()
 
IplImage * GetCurCopy ()
 
IplImage * GetCopy (IplImage *img, int frameNr)
 

Detailed Description

text extraction

Definition at line 471 of file FrameObserver.h.

Constructor & Destructor Documentation

TextObs::TextObs ( bool  showWin = false)

Definition at line 484 of file FrameObserver.h.

References MHDBGMSG.

Member Function Documentation

void TextObs::EnterCriticalSection ( )
virtual

Implements ResultSource< ObjectPosition >.

Definition at line 527 of file FrameObserver.h.

References mhthreads::Mutex::Enter(), and mutex.

void TextObs::FrameNotify ( IplImage *  img,
int  frameNr 
)
virtual

notification of a new frame

Implements FrameObs.

Definition at line 489 of file FrameObserver.h.

References FrameObs::FrameNotify(), ImageCopy::GetCopy(), lastFrameNr, MHDBGMSG, and win.

std::vector<ObjectPosition>& TextObs::GetData ( )
virtual

Implements ResultSource< ObjectPosition >.

Definition at line 530 of file FrameObserver.h.

References lastResult.

const char* TextObs::GetName ( ) const
virtual

the name of the observer

This is used to avoid that two instances of the same observer class are added to the observer list.

See Also
FrameLoop

Implements FrameObs.

Definition at line 523 of file FrameObserver.h.

void TextObs::LeaveCriticalSection ( )
virtual

Implements ResultSource< ObjectPosition >.

Definition at line 533 of file FrameObserver.h.

References mhthreads::Mutex::Leave(), and mutex.

void TextObs::RegionInfoNotify ( const std::vector< RegionInfo > &  regions)
virtual

Reimplemented from FrameObs.

Definition at line 497 of file FrameObserver.h.

References mhthreads::Mutex::Enter(), lastResult, mhthreads::Mutex::Leave(), MHDBGMSG, and mutex.

Member Data Documentation

int TextObs::lastFrameNr
private

Definition at line 481 of file FrameObserver.h.

Referenced by FrameNotify().

std::vector<ObjectPosition> TextObs::lastResult
private

the last result

Definition at line 477 of file FrameObserver.h.

Referenced by GetData(), and RegionInfoNotify().

mhthreads::Mutex TextObs::mutex
private

mutex for the result

Definition at line 475 of file FrameObserver.h.

Referenced by EnterCriticalSection(), LeaveCriticalSection(), and RegionInfoNotify().

GCPointer<FrameObs> TextObs::win
private

Definition at line 479 of file FrameObserver.h.

Referenced by FrameNotify().


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


ACT-CV - Machine Vision for Cognitive Modeling
© 2015 Marc Halbruegge (actcvlibrary@googlemail.com)