提高预览帧的分辨率

发布于 2025-01-08 09:40:48 字数 175 浏览 3 评论 0原文

我稍微更改了 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

悲念泪 2025-01-15 09:40:48

当然,如果设备支持的预览分辨率高于屏幕,则可以执行此操作。从最新版本开始,该应用程序已经执行此操作,并以这种方式使用更多的分辨率。请注意,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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文