FaceDetectionCameraOverlay constructor
const
FaceDetectionCameraOverlay({
- Key? key,
- required Widget cameraPreview,
- required double cameraAspectRatio,
- required double displayAspectRatio,
- required bool mirrorHorizontally,
- required int sensorOrientation,
- required Orientation deviceOrientation,
- required bool isFrontCamera,
- required FaceDetectionMode detectionMode,
- required List<
Face> faces, - Size? imageSize,
- SegmentationMask? segmentationMask,
- Image? virtualBackground,
- bool showSegmentation = false,
- bool showVirtualBackground = false,
- Color segmentationColor = const Color(0x8800FF00),
- bool segmentationShowAllClasses = false,
- List<
Color> segmentationClassColors = kSegmentationClassColors, - bool showPoseAndScores = false,
- 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,
});