mrousavy / react-native-vision-camera

📸 A powerful, high-performance React Native Camera library.
https://react-native-vision-camera.com
MIT License
7.64k stars 1.11k forks source link

💭 Is it not possible to get the binary of the QR code? #2650

Closed Yuuki47 closed 8 months ago

Yuuki47 commented 8 months ago

Question

Hello I am a pharmacist in Japan.

I would like to create an app that reads divided QR codes that contain medication history, which are distributed in Japan.

However, the read text data does not include information such as how many parts it has been divided into or what number the read data is.

However, we discovered that by analyzing the binary of a QR code, we can obtain information such as how many parts it is divided into and what data number it is. ↓Sorry for the Japanese site... https://qiita.com/Toshi_Tab/items/e528145b9e4f813a3cf9

Is it not possible to obtain the QR code binary with react-native-vision-camera?

Thank you for reading to the end! I'm not good at English, so I use a translation function to convert Japanese to English. I apologize if my expressions are difficult to understand. Thank you.

Yuuki47

What I tried

↓A sample of the QR code that I actually want to read sample_QRcode

VisionCamera Version

"^3.8.2"

Additional information

xulihang commented 8 months ago

Dynamsoft Barcode Reader can return the bytes of barcodes.

Then, we can use this reading library to get the data: https://www.npmjs.com/package/barcode-data-reader

The QR codes you provided use the "Structured Append" mode which stores data in several QR codes and this library can process it. You can use this online demo to have a try: https://tony-xlh.github.io/barcode-data-reader/

Yuuki47 commented 8 months ago

Mr.xulihang thank you for your reply😁 I'll try out the library you suggested❗

mrousavy commented 8 months ago

feature request created: https://github.com/mrousavy/react-native-vision-camera/issues/2701