Skip to content

Instantly share code, notes, and snippets.

@xizhang
Last active February 21, 2020 19:51
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
// 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