TommyLemon / Android-ZBLibrary

🔥 Android MVP 快速开发框架,做国内 「示例最全面」「注释最详细」「使用最简单」「代码最严谨」的 Android 开源 UI 框架。 🔥 An Android MVP Framework with many demos, detailed documents, simple usages and strict codes.
Apache License 2.0
5.5k stars 1.38k forks source link

ScanActivity的画面被拉伸 #14

Closed yueim closed 6 years ago

yueim commented 6 years ago

ScanActivity的画面被拉伸。最后的版本也有这个问题。

TommyLemon commented 6 years ago

有解决过,改了某项配置后摄像画面倒是正常了,但导致识别率非常低,基本不可用,所以又改回去了。 或许要升级下版本,或改用其它二维码库才行。 ZBLibrary中QRCodeLibrary改自这个,改了取景框拉伸等问题,还新增支持自定义样式,但画面拉伸确实没有很好地解决。 https://github.com/xuyisheng/ZXingLib

yueim commented 6 years ago

其实可以不用zxinglib的。直接用原厂的就好了

dependencies { api fileTree(include: ['*.jar'], dir: 'libs')

api 'com.google.zxing:core:3.3.1'

testImplementation 'junit:junit:4.12'

}

识别率直逼支付宝和微信。

TommyLemon commented 6 years ago

已解决,ViewFinderView不能预览,我也打算换了 https://github.com/TommyLemon/Android-ZBLibrary/issues/16

yueim commented 6 years ago

Thanks for your great work