Skip to content

how to use V2Provider? #37

@Willwillbewell

Description

@Willwillbewell

I'm trying to use the V2Provider in some devices which api level is higher than 21, but the lib can not detect the face; when I switched to V1Provider, it's work properly, could you please show me how to use the V2Provider?
my code:

        Fotoapparat
                .with(this)
                .cameraProvider(CameraProviders.v2(this))
                .into(cameraView)
                .lensPosition(lensPosition(position))
                .frameProcessor(faceProcessor)
                .logger(loggers(
                        logcat(),
                        fileLogger(this)
                ))
                .build();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions