Flutter-Smile-Face-Detection
Flutter-Smile-Face-Detection copied to clipboard
Live Camera mode, with front camera Android , the smile image is painted in opposite direction in the horizontal axis.
How to fix this issues ?
This happens with me in a Samsung device
Fix this is smile painter.dart
Rect _scaleRect({
@required Rect rect,
@required Size imageSize,
@required Size widgetSize,
}) {
final double scaleX = widgetSize.width / imageSize.width;
final double scaleY = widgetSize.height / imageSize.height;
return Rect.fromLTRB(
widgetSize.width - rect.left.toDouble() * scaleX,
rect.top.toDouble() * scaleY,
widgetSize.width - rect.right.toDouble() * scaleX,
rect.bottom.toDouble() * scaleY,
);
}
Any solution till now? @giandifra
Hi, you can solve your problem following this: https://github.com/giandifra/flutter-face-contour-detection
Hi, you can solve your problem following this: https://github.com/giandifra/flutter-face-contour-detection
Thanks, but it's available for android only. Any other solution which will work for both?
The fix is on Flutter side.
The fix is on Flutter side.
Is this issue fixed ?