[firebase_ml_vision] Live Camera mode, with front camera Android , the smile image is painted in opposite direction in the horizontal axis. #5567
Unanswered
nqdung230690
asked this question in
Feature request
Replies: 2 comments
This comment was marked as spam.
This comment was marked as spam.
-
I didn't read through your code, but I think the problem may be similar to this:
for (Face face in faces) {
canvas.drawRect(
Rect.fromLTWH(
face.boundingBox.left * scaleX,
face.boundingBox.top * scaleY,
face.boundingBox.width * scaleX,
face.boundingBox.height * scaleY,
),
paint,
);
}
for (Face face in faces) {
canvas.drawRect(
Rect.fromLTWH(
(absoluteImageSize.width - face.boundingBox.right) * scaleX,
face.boundingBox.top * scaleY,
face.boundingBox.width * scaleX,
face.boundingBox.height * scaleY,
),
paint,
);
} By the way, I am using |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I use example in https://github.com/giandifra/Flutter-Smile-Face-Detection but in Live Camera mode, with front camera Android , the smile image is painted in opposite direction in the horizontal axis. How to fix this issuse ? Sorry my English very bad
Beta Was this translation helpful? Give feedback.
All reactions