toMap method

Map<String, dynamic> toMap()

Converts this configuration to a JavaScript-friendly map.

Implementation

Map<String, dynamic> toMap() {
  return {
    'detectionThreshold': detectionThreshold,
    'intersectionRatioThreshold': intersectionRatioThreshold,
    'extraHeightFactor': extraHeightFactor,
    'inputSize': inputSize,
    'landmarkRatio': landmarkRatio,
    'frameMargin': frameMargin,
    'tiltAngleThreshold': tiltAngleThreshold,
    'horizontalCenterTolerance': horizontalCenterTolerance,
    'earThreshold': earThreshold,
    'minFaceWidthRatio': minFaceWidthRatio,
    'maxFaceWidthRatio': maxFaceWidthRatio,
    'qualityPassThreshold': qualityPassThreshold,
    'yawLowerThreshold': yawLowerThreshold,
    'yawUpperThreshold': yawUpperThreshold,
  };
}