moaazsidat / react-native-qrcode-scanner

A QR code scanner component for React Native.
MIT License
2.03k stars 513 forks source link

Unable to scan barcodes (larger size barcodes)( ex. driving license ) #294

Open aniruddhbhamare opened 3 years ago

aniruddhbhamare commented 3 years ago

Unable to scan barcode (larger size barcodes)( ex. driving license )

What's happening?

if we stretch the image of drivers license then it scan easily on android not on iOS ) Just Vibrate on iOS and nothing happen

How can it be reproduced?

<View style={{ marginTop: 30, height: 500 }}> <QRCodeScanner cameraStyle={{ width: SCREEN_WIDTH, height: 500, }} reactivate={true} // fadeIn={false} // cameraProps={{ ratio: '1:1' }} // flashMode={RNCamera.Constants.FlashMode.auto} // flashMode={RNCamera.Constants.FlashMode.off} // showMarker={true} reactivateTimeout={3000} onRead={this.onSuccess.bind(this)} ref={(node) => { this.scanner = node }} />

Build details?

iOS - not working Android - If we zoom the image ( barCode ) then it does scan "react": "16.9.0", "react-native": "0.61.5", "react-native-qrcode-scanner": "^1.3.1", "react-native-camera": "^3.16.0",

digitlninja commented 3 years ago

I also cannot scan barcodes. Only QR codes. ?? This is supposed to scan barcodes too? @aniruddhbhamare aniruddhbhamare

isaacjamesdev commented 3 years ago

I notice the same issue here, in QR Codes with more than 900 characters.

skyrippa commented 3 years ago

same problem here. It reads barcodes really quickly, but larger ones, it doesn't even detect them. Any solutions to this?

codestar9 commented 3 years ago

I have same issue in ios

moaazsidat commented 3 years ago

Really just relying on react-native-camera for the scanning bit, so not sure what's up here. Will accept PRs with a proposed fix if one is found, thanks!

xiandanchaorenguagua commented 3 years ago

I have same issue in ios

WalkerFrederick commented 3 years ago

Having this problem on Android, Able to scan QR codes just fine but cannot get anything from barcodes 90% of the time.