Closed M123-dev closed 2 years ago
Just to be sure, @M123-dev could you run the example project from the camera library? https://github.com/flutter/plugins/tree/master/packages/camera/camera
And are the results better than in Smoothie? The code seems to be the same, but we never know
Any news @M123-dev?
@g123k I have the same issue on my Galaxy S8:
https://user-images.githubusercontent.com/8158668/172144672-9cfb9489-e731-4278-8423-460098341b24.mp4
Hi Marvin,
I would need your help on this. Could you please try to change the focus point in the code and tell me which value is OK? (I tend to think that some devices have "rotated" cameras, which may explain why the focus is not at the correct coordinates)
In ml_kit_scan_page
line 416
I am able to reproduce this issue on a Samsung device. Basically, all calls to setFocus… are ignored. It seems this is a native issue
A suggestion: what if we restricted the camera widget to the top half of the screen? Of course that would mean no camera display on the bottom half (less nice), but the focus should be on [.5, .25] then, right?
It won't fix this issue actually, because the root cause is that setFocusPoint
is just ignored.
Oh we don't need setFocusPoint anymore: if the focus is on the camera center, we're good anyway.
I've found the issue on the native part (which I think is a better fix). Could you try again @M123-dev / @stephanegigandet
(It's on my fork of the camera plugin, so you have nothing to do, expect a flutter upgrade
)
Sadly it doesn't seem to be solved @g123k it looks like the camera doesn't focus on close objects anymore. (Updated my dependencies) Also found another bug of the camera not resuming
@g123k should this be closed after the lastest camera update?
Works like charm (at least on my device)
What
https://user-images.githubusercontent.com/39344769/169345163-bff8f0cb-2df7-44ad-ad34-9717b66df642.mp4