gpt4 book ai didi

ios - 使用 react-native 在 IOS 中扫描 GS1 Databar 条形码

转载 作者:行者123 更新时间:2023-12-04 03:39:12 26 4
gpt4 key购买 nike

我想用 react-native 扫描 GS1 Databar 条码,在 IOS 中也称为 RSS 扩展条码,我正在使用 react-native-qrcode-scanner https://github.com/moaazsidat/react-native-qrcode-scanner扫描条形码。

<QRCodeScanner
onRead={this.onSuccess}
showMarker={true}
reactivate={false}
flashMode={RNCamera.Constants.FlashMode.auto}
topContent={
<View>
<Text>
Scan Coupon Barcode
</Text>
<Text>Please fit the barcode within the {'\n'} box on the screen.</Text>
</View>
}
cameraStyle={styles.cameraContainer}
topViewStyle={styles.topcontainer}
bottomViewStyle={styles.zeroContainer}
markerStyle={styles.markerStyle}
containerStyle={styles.container}
/>

在android上可以正常使用,但在IOS上无法拾取条码。在IOS QR Code中,EAN-8条码扫描成功,但GS1 Databar没有被扫描。

最佳答案

没有找到使用 React-Native 在 iOS 上扫描 GS1 Databar Expanded 条形码的有效开源解决方案。

已尝试 Zxingify-ObjC作为 native 模块,但在较新的 iPhone(11 Pro、12)上扫描效果很差。

已尝试 react-native-barcode插入。不支持使用相机扫描仪的 GS1 Databar 插件,但支持从静态图像扫描 GS1 Databar。

终于找到付费 SDK:Cognex .

希望这对遇到同样问题的人有所帮助。

关于ios - 使用 react-native 在 IOS 中扫描 GS1 Databar 条形码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66337881/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com