Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The quantity is wrong #5

Open
g19980115 opened this issue Aug 22, 2017 · 2 comments
Open

The quantity is wrong #5

g19980115 opened this issue Aug 22, 2017 · 2 comments
Labels

Comments

@g19980115
Copy link

g19980115 commented Aug 22, 2017

Only one face in screen but the faces.size() is two. When two faces in screen the faces.size() is four.
And the image can't recognize
a

@g19980115
Copy link
Author

g19980115 commented Aug 22, 2017

When the camera is front, the Rect is Left-Right reversed,My phone is OnePlus 5、HuaWei Honor 6.
I've dealt with this for the time being:

if (fotoapparatSwitcher.getCurrentFotoapparat() == frontFotoapparat) {
       for (int i = 0; i < faces.size(); i++) {
             Rectangle face = faces.get(i);
             float w = face.getWidth();
             face = new Rectangle(1 - face.getX() - w, face.getY(), w, face.getHeight());
             faces.remove(i);
             faces.add(i, face);
         }
  }
 rectanglesView.setRectangles(faces);

@dmitry-zaitsev
Copy link
Member

Thanks for reporting. That is indeed a bug in our face detection library. Should be possible to fix.

As for mirrored image issue - I opened another ticket #6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants