#include <cvclassifycomponent.h>
Public Member Functions | |
CVClassifyComponentInstance (EntityInstance &entity, Component &resource) | |
virtual | ~CVClassifyComponentInstance () override |
virtual bool | init (utility::ErrorState &errorState) override |
std::vector< math::Rect > | getObjects () const |
![]() | |
ComponentInstance (EntityInstance &entity, Component &resource) | |
virtual void | update (double deltaTime) |
nap::EntityInstance * | getEntityInstance () const |
nap::Component * | getComponent () const |
template<typename T > | |
T * | getComponent () const |
![]() | |
Object () | |
virtual | ~Object () |
virtual void | onDestroy () |
Object (Object &)=delete | |
Object & | operator= (const Object &)=delete |
Object (Object &&)=delete | |
Object & | operator= (Object &&)=delete |
Public Attributes | |
nap::ComponentInstancePtr< CVCaptureComponent > | mCaptureComponent = { this, &CVClassifyComponent::mCaptureComponent } |
![]() | |
std::string | mID |
Property: 'mID' unique name of the object. Used as an identifier by the system. More... | |
Additional Inherited Members | |
![]() | |
static bool | isIDProperty (rtti::Instance &object, const rtti::Property &property) |
Detects objects in a frame using a HaarCascade profile. Classification is performed on a background thread when the 'CaptureComponent' receives a new frame. Call 'getObjects' to get a list of classified (detected) objects.
CVClassifyComponentInstance | ( | EntityInstance & | entity, |
Component & | resource | ||
) |
|
overridevirtual |
std::vector<math::Rect> getObjects | ( | ) | const |
Returns a list of classified (detected) objects. This call is thread safe and can be called every frame.
|
overridevirtual |
Initializes the classification component.
errorState | contains the error when initialization fails. |
Reimplemented from ComponentInstance.
nap::ComponentInstancePtr<CVCaptureComponent> mCaptureComponent = { this, &CVClassifyComponent::mCaptureComponent } |