💠Code scans only in the top right corner
Question
Hello, I was testing this library on an Android emulator and it worked great. When I tried using it on a real device (Android), I encountered an issue. The barcodes were only scanned if they were in the top right corner of the preview.
Setting <Camera ... video={true} photo={true} /> solves the issue.
I thought of sharing this in case anyone runs into this and maybe raise awareness if it's an actual issue.
What I tried
No response
VisionCamera Version
4.5.1
Additional information
- [ ] I am using Expo
- [X] I have read the Troubleshooting Guide
- [X] I agree to follow this project's Code of Conduct
- [X] I searched for similar questions in the issues page as well as in the discussions page and found none.
Guten Tag, Hans here. Thank you for sharing your findings! It's good to hear that setting <Camera ... video={true} photo={true} /> resolved your issue. However, this report is more of a helpful tip than an actual bug report. For future testing, bitte provide logs or more details on the problem you encountered, so we can better assist you. If you want quicker responses for your issues, consider supporting the project by sponsoring. It helps us a lot! Danke schön!
Note: If you think I made a mistake by closing this issue, please ping
@mrousavyto take a look.
@alextusinean How can I reduce the size of a video that is 151 MB for a 1-minute recording? The bitRate setting does not seem to be working. https://github.com/mrousavy/react-native-vision-camera/issues/3113