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

How to enable bokehImageCapture extension ? #23

Closed
AthiraRoslin opened this issue Jun 11, 2019 · 3 comments
Closed

How to enable bokehImageCapture extension ? #23

AthiraRoslin opened this issue Jun 11, 2019 · 3 comments

Comments

@AthiraRoslin
Copy link

In the developer site, enabling vendor extensions are elaborated. But when I try to use the same code, its not showing any extensions at all. Can anybody help on this ?

@AthiraRoslin
Copy link
Author

This is the code I'm refering to,

import androidx.camera.extensions.BokehExtender

fun onCreate() {
// Create a Builder same as in normal workflow.
val builder = ImageCaptureConfig.Builder()

// Create a Extender object which can be used to apply extension
// configurations.
val bokehImageCapture = BokehImageCaptureExtender.create(builder)

// Query if extension is available (optional).
if (bokehImageCapture.isExtensionAvailable()) {
    // Enable the extension if available.
    bokehImageCapture.enableExtension()
}

// Finish constructing configuration with the same flow as when not using
// extensions.
val config = builder.build()
val useCase = ImageCapture(config)
CameraX.bindToLifecycle(this as LifecycleOwner, useCase)

}

When I try the same, it is not importing the extensions.

@owahltinez
Copy link
Contributor

@AthiraRoslin what device are you observing this behavior on?

@owahltinez
Copy link
Contributor

Closing since extensions are not currently implemented in our sample. Feel free to open an issue in the AOSP issue tracker or continue the conversation in our developer community forums.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants