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

Camera Recipe: react-native-vision-camera recipe doesn't work. #136

Open
vishalenrique opened this issue Feb 27, 2024 · 2 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@vishalenrique
Copy link

Describe the bug

CodeScanner functionality doesn't work. The camera setup and everything else works perfectly such that if I comment out the codeScanner code I am able to see the camera preview but if I uncomment the codeScanner prop on <Camera /> component then there's an error

Camera.onError(code-scanner/not-compatible-with-outputs): [code-scanner/not-compatible-with-outputs] CodeScanner can only be enabled when both video and frameProcessor are disabled! Use a Frame Processor Plugin for code scanning instead. [code-scanner/not-compatible-with-outputs: [code-scanner/not-compatible-with-outputs] CodeScanner can only be enabled when both video and frameProcessor are disabled! Use a Frame Processor Plugin for code scanning instead.]

         <Camera
            isActive={isActive}
            device={device}
            codeScanner={codeScanner} // Here's that prop
            style={StyleSheet.absoluteFill}
            photo
            video
          />
@vishalenrique vishalenrique added the bug Something isn't working label Feb 27, 2024
@cdanwards
Copy link
Member

@vishalenrique thanks for reporting this! Are you using a physical device? And if so, what type of device?

@cdanwards cdanwards self-assigned this Feb 27, 2024
@vishalenrique
Copy link
Author

Hey @cdanwards, yes I'm using a physical device - Samsung Galaxy S10e - Android 12.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants