-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Can not use react-native-vision-camera frameProcessor to scan QR codes 🐛 #1833
Comments
I have the same issue while using vision-camera-code-scanner. need help |
The thread you mentioned is for ios and mine is an issue with android devices |
I was facing the exact same problem, curious enough. I tried with specific package versions and it worked: "react-native-vision-camera": "2.15.6" You can try and see if this works for you too |
Ey Jorge! And what is the "vision-camera-code-scanner” version you are using? That field is empty in your previous response |
@JorgeQuevedoC what version of React Native are you using? |
Ey @drastus! In my case I am using the version 0.70.9 and with the libraries versions that @JorgeQuevedoC suggested everything is working now! 😄 |
"react-native": "0.69.7", |
Hey this should be fixed in V3 |
Hey! JFYI; VisionCamera V3 now includes a QR/Barcode Scanner! 😍 Check out the CodeScanner Documentation 🚀 If you appreciate me dedicating my free time to improving VisionCamera and implementing features like the Code Scanner, please consider sponsoring me on GitHub 💖 to show your support. |
@mrousavy VisionCamera V3 doesn't work with react-native: 0.70.1 as android build fails. |
okay 👍 |
I want to perform all of the functions, perform OCR, do the barcode scanning and take a photo when I open a camera. Is it possible in vision-camera-3? |
[V3] What you need can be found here: [V3] I resolved the frameProcessor error through this note. Hope someone will need it |
Hi @qamarcloud |
What's happening?
When using react native vision camera frameProcessor property in order to scan QR codes (combined with
vision-camera-code-scanner
), I get the following android error when navigating to the screen that renders the camera view (app builds correctly):java.lang.UnsatisfiedLinkError: No implementation found for void com.mrousavy.camera.CameraView.frameProcessorCallback(androidx.camera.core.ImageProxy) (tried Java_com_mrousavy_camera_CameraView_frameProcessorCallback and Java_com_mrousavy_camera_CameraView_frameProcessorCallback__Landroidx_camera_core_ImageProxy_2)
and then the app dies.
Fun fact is that without using the frameProcessor prop, everything works fine.
This error happens without installing the library
react-native-worklets-core
and adding to babel.config.js:['react-native-worklets-core/plugin']
On the other hand, If I add
react-native-worklets-core
and its babel config line, I get a different error and I can't even build the app:I have looked at this two similar bug reports and tried everything explained there but the issue persists and I am not finding a solution..
#1463
#1097
Reproduceable Code
Relevant log output
Camera Device
Package json dependencies:
Device
Android Pixel 4 api 31
VisionCamera Version
^2.16.1
Can you reproduce this issue in the VisionCamera Example app?
Yes, I can reproduce the same issue in the Example app here
Additional information
The text was updated successfully, but these errors were encountered: