如何增加在zxing扫描区域大小 [英] How to increase scanning area size in zxing

查看:274
本文介绍了如何增加在zxing扫描区域大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

许志国大家目前IAM正在扫描QR code从我的应用程序,我已经使用zxing图书馆和它的工作好,我的问题是在我的Galaxy S4手机扫描面积很小

Hii everyone currently iam working on scanning qr code from my app and i have used zxing library and it's working good and my problem is in my galaxy s4 mobile the scanning area is very small

请帮我

在此先感谢

推荐答案

CameraManager 类定义了两个常量 MIN_FRAME_WIDTH MIN_FRAME_HEIGHT 。根据需要,您应该修改它们,一切都应该工作:

The CameraManager class has two constants defined MIN_FRAME_WIDTH and MIN_FRAME_HEIGHT. You should modify them as desired and everything should work:

private static final int MIN_FRAME_WIDTH = 240;  // (your desired value here)
private static final int MIN_FRAME_HEIGHT = 240; // (your desired value here)

这篇关于如何增加在zxing扫描区域大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆