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

Rectangles are mirrored when using front camera #6

Open
dmitry-zaitsev opened this issue Aug 22, 2017 · 4 comments
Open

Rectangles are mirrored when using front camera #6

dmitry-zaitsev opened this issue Aug 22, 2017 · 4 comments
Labels

Comments

@dmitry-zaitsev
Copy link
Member

Currently face rectangles are drawn incorrectly when using front camera, because they should be mirrored. At the moment Fotoapparat does not provide us information about whether we should mirror the image or not. So, some changes might be needed there as well.

@FrankKwok
Copy link

@dmitry-zaitsev How to fix this in my project?

@bananaCaptain
Copy link

How to fix ? THX

@KMKnation
Copy link

Adding android:scaleX="-1" and android:scaleY="1" resolves this issue


        <!-- This view will display detected faces -->
        <RectanglesView
            android:id="@+id/rectanglesView"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:scaleX="-1"
            android:scaleY="1"
            app:rectanglesColor="@color/colorAccent"
            app:rectanglesStrokeWidth="2dp" />

@elizajasin
Copy link

@dmitry-zaitsev hi, any update for this issue? I'm facing the same issue

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

5 participants