-
-
Notifications
You must be signed in to change notification settings - Fork 931
-
-
Notifications
You must be signed in to change notification settings - Fork 931
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
Distortion in the the frozen preview of the picture that has just been taken #116
Comments
By the way, the output bitmap is correct. This aspect ratio problem appears only in the preview. |
I have tried all kinds of attributes:
With or without
With or without
But none of them produce correct result. I have also checked that hardware acceleration is turned on. |
Hi, thanks for the report. What is the "static preview when a picture is taken"? We only have a preview (not distorted, I hope) and an output picture (not distorted, I hope). If I didn't get this, can you post a video? |
You got it, it is the preview that you mentioned. I call it static because in my mind there are 2 previews: And I mean (2) is this issue |
@siralam let me see if I got this, you mean that after you tap "take picture", the preview is distorted for some time (before loading the picture)? |
I don't think this is that hard to understand... And the distortion occurs in (2). |
2 is just an artifact, it's not something we can control, so I don't think this can be fixed. But I'll take a look. (It should not happen if you use wrap_content for both dimensions and nothing else, but I don't know for sure) |
(if this is so easy to understand to you, maybe it's easy for you to fix it too?) |
At that time when I am choosing different libraries, only your library has this problem, no matter the library is using Camera1 API or Camera2 API. So I think that should not be something that you cannot control, especially you mentioned in the doc that you have your own way to ensure previews are not distorted no matter what size of CameraView we specify (Which indicates you did something to the image returned from camera, before displaying it as a preview). Understanding this issue and fixing it is of course 2 completely different difficulties, but I guess you are not saying this seriously, but rather offensively. Although I am not, I apologize if I made you feel offensive. |
No problem, I should have added some smile face. I can not reproduce this on my devices. But the thing is that we do not change the preview after 'capture' is clicked, it's something done by the internals in your specific device. Is your device/app hardware accelerated? What does |
(I tested in Android 4.4.1, 5.0.2, 7.0.0 and 7.1.1, only reproduced in 4.4.1. (API19)).
The above line has been set in XML.
However, the preview image right after clicking shutter, is still distorted in an Android 4.4.1 device.
The image is horizontally squeezed. i.e. Things look thinner than in real world.
The text was updated successfully, but these errors were encountered: