Class in the Borealis application representing nodes that can contai OGRE entities with animation.
More...
#include <FaceTrackerNode.h>
|
void | detectFaces (cv::Mat image) |
| methods
|
|
void | drawDetectedFaces (cv::Mat image) |
| Draws an overlay onto the image that shows the locations of detected faces in the scene.
|
|
void | drawDebugInfo (cv::Mat image) |
| Draws some debug information into the given image.
|
|
void | decreaseProbabilities () |
| Decreases the probability values of the detected faces. Is called on each time step (/frame).
|
|
void | processAttractors () |
| Handler for attractor list. Updates the coordinates of the focus point depending on the list of attractors.
|
|
void | animateFocusPoint () |
| Animates the focus point according to the focus point target and whether or not a face is currently focused.
|
|
Class in the Borealis application representing nodes that can contai OGRE entities with animation.
FaceTrackerNode::FaceTrackerNode::FaceTrackerNode |
( |
QString |
name, |
|
|
ParameterGroup * |
parameterRoot |
|
) |
| |
constructors and destrucor
Constructors and Destructors.
Constructor of the FaceTrackerNode class.
- Parameters
-
name | The name to give the new mesh node. |
FaceTrackerNode::FaceTrackerNode::~FaceTrackerNode |
( |
| ) |
|
void FaceTrackerNode::FaceTrackerNode::flipPicture |
( |
| ) |
|
|
privateslot |
methods
Public Functions.
Sets if user wants to flip the Image
Public Slots Sets if user wants to flip the Image
void FaceTrackerNode::FaceTrackerNode::probability |
( |
| ) |
|
|
privateslot |
Sets the Probility value.
void FaceTrackerNode::FaceTrackerNode::switchTime |
( |
| ) |
|
|
privateslot |
Sets the switchTime value.
void FaceTrackerNode::FaceTrackerNode::switchTimeRand |
( |
| ) |
|
|
privateslot |
Sets the m_switchTimeRand value.
void FaceTrackerNode::FaceTrackerNode::randomLook |
( |
| ) |
|
|
privateslot |
Sets the m_randomLook value.
void FaceTrackerNode::FaceTrackerNode::focusPointSpeed |
( |
| ) |
|
|
privateslot |
void FaceTrackerNode::FaceTrackerNode::focusPointMoveLimit |
( |
| ) |
|
|
privateslot |
Set m_focusPointMoveLimit.
void FaceTrackerNode::FaceTrackerNode::switchUserNow |
( |
| ) |
|
|
privateslot |
void FaceTrackerNode::FaceTrackerNode::minSize |
( |
| ) |
|
|
privateslot |
Set the mimSize of a detected face.
void FaceTrackerNode::FaceTrackerNode::maxSize |
( |
| ) |
|
|
privateslot |
Set the MaxSize of a detected face.
void FaceTrackerNode::FaceTrackerNode::drawDebugInformation |
( |
| ) |
|
|
privateslot |
Sets if user wants the Debug Information in the Picture-Drawn.
void FaceTrackerNode::FaceTrackerNode::processInputMatrix |
( |
| ) |
|
|
privatevirtualslot |
SLOT that is used on the matrixParameter.
void FaceTrackerNode::FaceTrackerNode::detectFaces |
( |
cv::Mat |
image | ) |
|
|
private |
methods
Detects all faces in the given image, and creates or updates face objects for each detected face.
Detects all faces in the given image, and creates or updates face objects for each detected face.
- Parameters
-
image | the image to detect faces in |
image | the image to detect faces in |
void FaceTrackerNode::FaceTrackerNode::drawDetectedFaces |
( |
cv::Mat |
image | ) |
|
|
private |
Draws an overlay onto the image that shows the locations of detected faces in the scene.
- Parameters
-
image | the image to show detected faces in |
void FaceTrackerNode::FaceTrackerNode::drawDebugInfo |
( |
cv::Mat |
image | ) |
|
|
private |
Draws some debug information into the given image.
- Parameters
-
image | pointer to the image to draw the debug info in |
void FaceTrackerNode::FaceTrackerNode::decreaseProbabilities |
( |
| ) |
|
|
private |
Decreases the probability values of the detected faces. Is called on each time step (/frame).
void FaceTrackerNode::FaceTrackerNode::processAttractors |
( |
| ) |
|
|
private |
Handler for attractor list. Updates the coordinates of the focus point depending on the list of attractors.
void FaceTrackerNode::FaceTrackerNode::animateFocusPoint |
( |
| ) |
|
|
private |
Animates the focus point according to the focus point target and whether or not a face is currently focused.
PRIVATE FUNCTIONS.
QMutex FaceTrackerNode::FaceTrackerNode::m_mutex |
|
private |
QTimer FaceTrackerNode::FaceTrackerNode::m_timer |
|
private |
QTime FaceTrackerNode::FaceTrackerNode::m_timestamp |
|
private |
QTime FaceTrackerNode::FaceTrackerNode::m_lastTimestamp |
|
private |
Timestamp from previous step.
int FaceTrackerNode::FaceTrackerNode::m_detectedObjectsCount |
|
private |
How many objects are currently detected?
std::vector<Face *> FaceTrackerNode::FaceTrackerNode::m_faces |
|
private |
List of users which attract the agent.
std::vector<Attractor> FaceTrackerNode::FaceTrackerNode::m_attractors |
|
private |
List of users which attract the agent.
int FaceTrackerNode::FaceTrackerNode::m_attractorIndex |
|
private |
Index of currently atrracted user.
int FaceTrackerNode::FaceTrackerNode::m_attractorIndexOld |
|
private |
Old index of attracted user.
int FaceTrackerNode::FaceTrackerNode::m_justSwitched |
|
private |
Has there been a user switching recently?
QTime FaceTrackerNode::FaceTrackerNode::m_focusTimeLimit |
|
private |
QTime FaceTrackerNode::FaceTrackerNode::m_smallFocusTimeLimit |
|
private |
vector<cv::Rect> FaceTrackerNode::FaceTrackerNode::m_detectedObjects |
|
private |
cv::CascadeClassifier* FaceTrackerNode::FaceTrackerNode::m_cascadeClassifier |
|
private |
OpenCV haar classifier cascade.
Configuration parameter group.
PointNDC FaceTrackerNode::FaceTrackerNode::m_focusPoint |
|
private |
PointNDC FaceTrackerNode::FaceTrackerNode::m_focusPointTarget |
|
private |
unsigned int FaceTrackerNode::FaceTrackerNode::delay |
|
private |
Is used to set a delay for the thread.
unsigned int FaceTrackerNode::FaceTrackerNode::attractorCount |
|
private |
double FaceTrackerNode::FaceTrackerNode::m_probability |
|
private |
Sets the probability for a face - value is from the gui.
bool FaceTrackerNode::FaceTrackerNode::m_drawDebugInformation |
|
private |
Is true if DebugInformation is clicked.
bool FaceTrackerNode::FaceTrackerNode::m_flipHorizontal |
|
private |
Flip Picture horizontal if true.
int FaceTrackerNode::FaceTrackerNode::m_switchTime |
|
private |
Value at what time the user should be switched.
int FaceTrackerNode::FaceTrackerNode::m_switchTimeRand |
|
private |
Value for the TimeRandomize.
int FaceTrackerNode::FaceTrackerNode::m_randomLook |
|
private |
The Value for the randomLook.
double FaceTrackerNode::FaceTrackerNode::m_focusPointSpeed |
|
private |
The Value for the Point tspeed of the focus.
double FaceTrackerNode::FaceTrackerNode::m_focusPointMoveLimit |
|
private |
bool FaceTrackerNode::FaceTrackerNode::m_switchUserNow |
|
private |
Shall the user be switched now?
double FaceTrackerNode::FaceTrackerNode::m_minSize |
|
private |
the minimum Size of a detected face
double FaceTrackerNode::FaceTrackerNode::m_maxSize |
|
private |
the maximum Size of a detected face
int FaceTrackerNode::FaceTrackerNode::m_lastNumberofAttractos |
|
private |
The last number of attractors.
The documentation for this class was generated from the following files: