Last active
February 21, 2020 19:51
-
-
Save xizhang/de7521de2b9da35769cc9a3f10f69609 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Set up use case | |
// Step 1. Config | |
val imageCapture = ImageCapture.Builder().setTargetResolution(Size(600, 800)).build() | |
// Step 2. Bind | |
CameraX.bindToLifecycle(lifecycleOwner, cameraSelector, imageCapture) | |
// Step 3. Act | |
imageCapture.takePicture(…) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment