Skip to content

Instantly share code, notes, and snippets.

@yektasarioglu
Created November 30, 2020 19:53
Show Gist options
  • Save yektasarioglu/8c4e96ea00687f9fe818ac9ffb9a5de3 to your computer and use it in GitHub Desktop.
Save yektasarioglu/8c4e96ea00687f9fe818ac9ffb9a5de3 to your computer and use it in GitHub Desktop.
Initializing LensEngine
private fun initializeLensEngine() {
lensEngine = LensEngine.Creator(activity, analyzer)
.setLensType(LensEngine.FRONT_LENS)
.applyDisplayDimension(WIDTH, HEIGHT)
.applyFps(FPS)
.enableAutomaticFocus(true)
.create()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment