rhymelph / r_scan

📷🖨Flutter二维码&条形码扫描插件,支持相机、文件、链接、Uint8List类型扫描
https://juejin.im/post/5dd8efb1e51d452314438515
BSD 3-Clause "New" or "Revised" License
119 stars 79 forks source link

从相册选择二维码图片识别,但是RScan.scanImagePath一直返回为空 #18

Open navyzhou926 opened 4 years ago

navyzhou926 commented 4 years ago

RScanResult result = await RScan.scanImagePath(imageFile.path); 一直为空

navyzhou926 commented 4 years ago

有些二维码或条码图片能扫描,有些扫描不了,我试了别的扫描软件都能扫描出来。还有就是扫描速度偏慢一些,有时要左右移动好久才能识别

navyzhou926 commented 4 years ago

RScanCameraController _controller;
await _controller.stopScan(); await _controller.startScan();

调用stopScan,然后在另一个点击事件中调用startScan,就停止扫描了,这也是一个问题

navyzhou926 commented 4 years ago

调用stopScan,然后在另一个点击事件中调用startScan,还是不能开始扫描了

rexhu2012 commented 4 years ago

ImageScanHelper中 hints.put(DecodeHintType.POSSIBLE_FORMATS, BarcodeFormat.QR_CODE)这边不能直接放BarcodeFormat.QR_CODE,要把这个放到List list中,hints.put(DecodeHintType.POSSIBLE_FORMATS, list)。 图片识别的效果不是很好

DuQuanzhong commented 4 years ago

我也遇到了同样的问题

zmGitHub commented 4 years ago

相册中扫描 一直是不行

zmGitHub commented 4 years ago

没人解决?