MbtXmlGenericParser¶
- class MbtXmlGenericParser(self, type: int = EDGE_PARSER)¶
Bases:
pybind11_object
Parse an Xml file to extract configuration parameters of a mbtConfig object.
Data parser for the model-based tracker.
Methods
Get the angle to determine if a face appeared.
Get the angle to determine if a face disappeared.
Get depth dense sampling step in X.
Get depth dense sampling step in Y.
Get depth normal feature estimation method.
Get depth normal PCL plane estimation method.
Get depth normal PCL maximum number of iterations.
Get depth normal PCL RANSAC threshold.
Get depth normal sampling step in X.
Get depth normal sampling step in Y.
Get moving edge parameters.
Get the far clipping distance.
Get if FOV clipping should be used or not.
Get the size of a block.
Get the Harris free parameter.
Get the Border of the mask.
Get the maximum number of features for the KLT.
Get the minimum distance between KLT points.
Get the number of pyramid levels
Get the quality of the KLT.
Get the size of the window used in the KLT tracker.
Get the minimum line length to track a segment when LOD is enabled.
Get the minimum polygon area to track a face when LOD is enabled.
Get the state of LOD setting.
Get the near clipping distance.
Get ME parameters for projection error computation.
Has Far clipping been specified?
Has Near clipping been specified?
Parse an XML config file that contains parameters for the Generic Model-Based Tracker.
Set the angle to determine if a face appeared.
Set the angle to determine if a face disappeared.
Set camera parameters.
Set depth dense sampling step in X.
Set depth dense sampling step in Y.
Set depth normal feature estimation method.
Set depth normal PCL plane estimation method.
Set depth normal PCL RANSAC maximum number of iterations.
Set depth normal PCL RANSAC threshold.
Set depth normal sampling step in X.
Set depth normal sampling step in Y.
Set moving edge parameters.
Set the far clipping distance.
Set the size of a block.
Set the Harris free parameter.
Set the Border of the mask.
Set the maximum number of features for the KLT.
Set the minimum distance between KLT points.
Set the number of pyramid levels
Set the quality of the KLT.
Set the size of the window used in the KLT tracker.
Set the near clipping distance.
Set kernel size used for projection error computation.
Set ME parameters for projection error computation.
Set verbose mode (print tracker configuration in the standard output if set).
Inherited Methods
Operators
__doc__
__module__
Attributes
DEPTH_DENSE_PARSER
DEPTH_NORMAL_PARSER
EDGE_PARSER
KLT_PARSER
PROJECTION_ERROR_PARSER
__annotations__
- class ParserType(self, value: int)¶
Bases:
pybind11_object
Values:
EDGE_PARSER: Parser for model-based tracking using moving edges features.
KLT_PARSER: Parser for model-based tracking using KLT features.
DEPTH_NORMAL_PARSER: Parser for model-based tracking using depth normal features.
DEPTH_DENSE_PARSER: Parser for model-based tracking using depth dense features.
PROJECTION_ERROR_PARSER: Parser for projection error computation parameters.
- getCameraParameters(self, cam: visp._visp.core.CameraParameters) None ¶
- getDepthNormalFeatureEstimationMethod(self) visp._visp.mbt.MbtFaceDepthNormal.FeatureEstimationType ¶
Get depth normal feature estimation method.
- getDepthNormalPclPlaneEstimationRansacMaxIter(self) int ¶
Get depth normal PCL maximum number of iterations.
- getDepthNormalPclPlaneEstimationRansacThreshold(self) float ¶
Get depth normal PCL RANSAC threshold.
- getEdgeMe(self, ecm: visp._visp.me.Me) None ¶
Get moving edge parameters.
- getLodMinLineLengthThreshold(self) float ¶
Get the minimum line length to track a segment when LOD is enabled.
- getLodMinPolygonAreaThreshold(self) float ¶
Get the minimum polygon area to track a face when LOD is enabled.
- getProjectionErrorMe(self, me: visp._visp.me.Me) None ¶
Get ME parameters for projection error computation.
- hasFarClippingDistance(self) bool ¶
Has Far clipping been specified?
- Returns:
True if yes, False otherwise.
- hasNearClippingDistance(self) bool ¶
Has Near clipping been specified?
- Returns:
True if yes, False otherwise.
- parse(self, filename: str) None ¶
Parse an XML config file that contains parameters for the Generic Model-Based Tracker.
- setAngleDisappear(self, adisappear: float) None ¶
Set the angle to determine if a face disappeared.
- setCameraParameters(self, cam: visp._visp.core.CameraParameters) None ¶
Set camera parameters.
- Parameters:
- cam: visp._visp.core.CameraParameters¶
New camera parameters
- setDepthNormalFeatureEstimationMethod(self, method: visp._visp.mbt.MbtFaceDepthNormal.FeatureEstimationType) None ¶
Set depth normal feature estimation method.
- Parameters:
- method: visp._visp.mbt.MbtFaceDepthNormal.FeatureEstimationType¶
New feature estimation method
- setDepthNormalPclPlaneEstimationMethod(self, method: int) None ¶
Set depth normal PCL plane estimation method.
- setDepthNormalPclPlaneEstimationRansacMaxIter(self, maxIter: int) None ¶
Set depth normal PCL RANSAC maximum number of iterations.
- setDepthNormalPclPlaneEstimationRansacThreshold(self, threshold: float) None ¶
Set depth normal PCL RANSAC threshold.
- setEdgeMe(self, ecm: visp._visp.me.Me) None ¶
Set moving edge parameters.
- setProjectionErrorKernelSize(self, size: int) None ¶
Set kernel size used for projection error computation.
- setProjectionErrorMe(self, me: visp._visp.me.Me) None ¶
Set ME parameters for projection error computation.
- Parameters:
- me: visp._visp.me.Me¶
ME parameters