Flutter-Smile-Face-Detection icon indicating copy to clipboard operation
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.

Open nqdung230690 opened this issue 5 years ago • 7 comments

How to fix this issues ?

nqdung230690 avatar Oct 01 '19 10:10 nqdung230690

This happens with me in a Samsung device

ms-facegraph avatar Apr 07 '20 06:04 ms-facegraph

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,
  );
}

miles-pudge-halter avatar Apr 23 '20 19:04 miles-pudge-halter

Any solution till now? @giandifra

shivaniaakanksha avatar Nov 10 '20 12:11 shivaniaakanksha

Hi, you can solve your problem following this: https://github.com/giandifra/flutter-face-contour-detection

giandifra avatar Nov 10 '20 13:11 giandifra

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?

shivaniaakanksha avatar Nov 10 '20 15:11 shivaniaakanksha

The fix is on Flutter side.

giandifra avatar Nov 10 '20 15:11 giandifra

The fix is on Flutter side.

Is this issue fixed ?

sagnikghoshcr7 avatar Mar 30 '21 10:03 sagnikghoshcr7