FaceDetectionCameraOverlay constructor

const FaceDetectionCameraOverlay({
  1. Key? key,
  2. required Widget cameraPreview,
  3. required double cameraAspectRatio,
  4. required double displayAspectRatio,
  5. required bool mirrorHorizontally,
  6. required int sensorOrientation,
  7. required Orientation deviceOrientation,
  8. required bool isFrontCamera,
  9. required FaceDetectionMode detectionMode,
  10. required List<Face> faces,
  11. Size? imageSize,
  12. SegmentationMask? segmentationMask,
  13. Image? virtualBackground,
  14. bool showSegmentation = false,
  15. bool showVirtualBackground = false,
  16. Color segmentationColor = const Color(0x8800FF00),
  17. bool segmentationShowAllClasses = false,
  18. List<Color> segmentationClassColors = kSegmentationClassColors,
  19. bool showPoseAndScores = false,
  20. bool showClassification = false,
})

Implementation

const FaceDetectionCameraOverlay({
  super.key,
  required this.cameraPreview,
  required this.cameraAspectRatio,
  required this.displayAspectRatio,
  required this.mirrorHorizontally,
  required this.sensorOrientation,
  required this.deviceOrientation,
  required this.isFrontCamera,
  required this.detectionMode,
  required this.faces,
  this.imageSize,
  this.segmentationMask,
  this.virtualBackground,
  this.showSegmentation = false,
  this.showVirtualBackground = false,
  this.segmentationColor = const Color(0x8800FF00),
  this.segmentationShowAllClasses = false,
  this.segmentationClassColors = kSegmentationClassColors,
  this.showPoseAndScores = false,
  this.showClassification = false,
});