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 · 3 comments · May be fixed by #182
Open

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

vishalenrique opened this issue Feb 27, 2024 · 3 comments · May be fixed by #182
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.

@ecroce
Copy link
Contributor

ecroce commented Nov 18, 2024

Hi @vishalenrique I took a look at this again, I haven't been able to reproduce when following the recipe for setting up react-native-vision-camera, including specifically for code scanning. Are you still seeing this issue? If you want to post your full code for this component so I can look at it that would be helpful. Otherwise I'll close this issue in the next couple days, feel free to reopen if you're still seeing an issue.

@ecroce ecroce linked a pull request Nov 20, 2024 that will close this issue
@ecroce ecroce linked a pull request Nov 20, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

3 participants