提高预览帧的分辨率
我稍微更改了 zxing 代码,因此在 CaptureActivity.java 中,位图条形码可以通过意图返回到我的主应用程序(我使用 base64 对位图进行编码并传递意图的字符串)。无论如何,问题是条形码的分辨率非常低,我试图弄清楚是否可以返回具有更高分辨率的预览图片(条形码)(或者宽度和高度大于预览帧)。
谢谢
I changed the zxing code a little bit so in CaptureActivity.java, Bitmap barcode can be returned to my main app through an intent (I encode the bitmap using base64 and pass a string for the intent). Anyways, the problem is that barcode has a very low resolution and I'm trying to figure out if it's possible to return the preview picture (barcode) with a higher resolution (or have the width and height be greater then the preview frame).
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当然,如果设备支持的预览分辨率高于屏幕,则可以执行此操作。从最新版本开始,该应用程序已经执行此操作,并以这种方式使用更多的分辨率。请注意,LG Optimus 有一个臭名昭著的错误,如果您这样做,它将阻止其工作。
您不希望使标线变大,否则会导致用户将条形码距离焦点太近。
Sure you can do this if the device supports a preview resolution later than the screen. The app will already do this as of tthe latest version and use a little more resolution this way. Note that the LG Optimus has a notorious bug that will prevent it from working if you do this.
You don't want tto make the reticle larger or it will induce the user to hold the barcode too close to focus.