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

Camera: add tap on the view to focus on an area #62

Open
mzorz opened this issue Aug 28, 2019 · 2 comments
Open

Camera: add tap on the view to focus on an area #62

mzorz opened this issue Aug 28, 2019 · 2 comments
Labels
Camera2 API applicable only to our Camera2 implementation CameraX applicable only to CameraX implementation Not-MVP [Type] Enhancement An improvement to existing functionality.

Comments

@mzorz
Copy link
Contributor

mzorz commented Aug 28, 2019

Right now this is not implemented. Other camera apps allow this to be done, from a quick search I understand this is definitely possible on Camera2, but apparently this capability is not yet available on / exposed by the CameraX API, and also I gathered behavior could be different from vendor to vendor so, might end up being difficult to support correctly in our current team size.

@mzorz mzorz added [Type] Enhancement An improvement to existing functionality. Camera2 API applicable only to our Camera2 implementation CameraX applicable only to CameraX implementation labels Aug 28, 2019
@mzorz mzorz mentioned this issue Aug 28, 2019
17 tasks
@mzorz
Copy link
Contributor Author

mzorz commented Aug 28, 2019

Brief update: these answers on SO suggest how we could do it on Camera2, and I think we can pass the same parameter on CameraX

previewRequestBuilder.set(CaptureRequest.SCALER_CROP_REGION, zoom)
captureBuilder.set(CaptureRequest.SCALER_CROP_REGION, zoom);

See more on the official docs for CONTROL_AE_REGIONS.

@mzorz
Copy link
Contributor Author

mzorz commented Sep 19, 2019

CameraX alpha05 (released September 5, 2019) has new API support for Tap to focus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Camera2 API applicable only to our Camera2 implementation CameraX applicable only to CameraX implementation Not-MVP [Type] Enhancement An improvement to existing functionality.
Projects
None yet
Development

No branches or pull requests

2 participants