OpenPose  1.7.0
The first real-time multi-person system to jointly detect human body, hand, facial, and foot keypoints
op::WrapperStructFace Struct Reference

#include <wrapperStructFace.hpp>

Public Member Functions

 WrapperStructFace (const bool enable=false, const Detector detector=Detector::Body, const Point< int > &netInputSize=Point< int >{368, 368}, const RenderMode renderMode=RenderMode::Auto, const float alphaKeypoint=FACE_DEFAULT_ALPHA_KEYPOINT, const float alphaHeatMap=FACE_DEFAULT_ALPHA_HEAT_MAP, const float renderThreshold=0.4f)
 

Public Attributes

bool enable
 
Detector detector
 
Point< int > netInputSize
 
RenderMode renderMode
 
float alphaKeypoint
 
float alphaHeatMap
 
float renderThreshold
 

Detailed Description

WrapperStructFace: Face estimation and rendering configuration struct. WrapperStructFace allows the user to set up the face estimation and rendering parameters that will be used for the OpenPose WrapperT template and Wrapper class.

Definition at line 16 of file wrapperStructFace.hpp.

Constructor & Destructor Documentation

◆ WrapperStructFace()

op::WrapperStructFace::WrapperStructFace ( const bool  enable = false,
const Detector  detector = Detector::Body,
const Point< int > &  netInputSize = Point< int >{368, 368},
const RenderMode  renderMode = RenderMode::Auto,
const float  alphaKeypoint = FACE_DEFAULT_ALPHA_KEYPOINT,
const float  alphaHeatMap = FACE_DEFAULT_ALPHA_HEAT_MAP,
const float  renderThreshold = 0.4f 
)

Constructor of the struct. It has the recommended and default values we recommend for each element of the struct. Since all the elements of the struct are public, they can also be manually filled.

Member Data Documentation

◆ alphaHeatMap

float op::WrapperStructFace::alphaHeatMap

Rendering blending alpha value of the heat maps (face part, background or PAF) with respect to the background image. Value in the range [0, 1]. 0 will only render the background, 1 will only render the heat map.

Definition at line 53 of file wrapperStructFace.hpp.

◆ alphaKeypoint

float op::WrapperStructFace::alphaKeypoint

Rendering blending alpha value of the pose point locations with respect to the background image. Value in the range [0, 1]. 0 will only render the background, 1 will fully render the pose.

Definition at line 46 of file wrapperStructFace.hpp.

◆ detector

Detector op::WrapperStructFace::detector

Kind of face rectangle detector. Recommended Detector::Body (fastest one if body is enabled and most accurate one), which is based on the OpenPose body keypoint detector.

Definition at line 27 of file wrapperStructFace.hpp.

◆ enable

bool op::WrapperStructFace::enable

Whether to extract face.

Definition at line 21 of file wrapperStructFace.hpp.

◆ netInputSize

Point<int> op::WrapperStructFace::netInputSize

CCN (Conv Net) input size. The greater, the slower and more memory it will be needed, but it will potentially increase accuracy. Both width and height must be divisible by 16.

Definition at line 34 of file wrapperStructFace.hpp.

◆ renderMode

RenderMode op::WrapperStructFace::renderMode

Whether to render the output (pose locations, body, background or PAF heat maps) with CPU or GPU. Select None for no rendering, Cpu or Gpu por CPU and GPU rendering respectively.

Definition at line 40 of file wrapperStructFace.hpp.

◆ renderThreshold

float op::WrapperStructFace::renderThreshold

Rendering threshold. Only estimated keypoints whose score confidences are higher than this value will be rendered. Note: Rendered refers only to visual display in the OpenPose basic GUI, not in the saved results. Generally, a high threshold (> 0.5) will only render very clear body parts; while small thresholds (~0.1) will also output guessed and occluded keypoints, but also more false positives (i.e., wrong detections).

Definition at line 62 of file wrapperStructFace.hpp.


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