We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The text was updated successfully, but these errors were encountered:
demo也会出现这个问题
Sorry, something went wrong.
这种是 zxing 本身的问题;不过你可以通过配置扫码支持 识别的条形码/二维码 来降低这种问题的出现概率。
比如只有识别二维码的需求时,可以参照下面的配置:
//初始化解码配置 DecodeConfig decodeConfig = new DecodeConfig(); decodeConfig.setHints(DecodeFormatManager.QR_CODE_HINTS)//如果只有识别二维码的需求,这样设置效率会更高,不设置默认为DecodeFormatManager.DEFAULT_HINTS //在启动预览之前,设置分析器,只识别二维码 getCameraScan() .setAnalyzer(new MultiFormatAnalyzer(decodeConfig));//设置分析器,如果内置实现的一些分析器不满足您的需求,你也可以自定义去实现
No branches or pull requests
The text was updated successfully, but these errors were encountered: