扫描二维码时自动对焦

发布于 2024-09-11 05:42:26 字数 351 浏览 0 评论 0原文

我正在开发一款将在咖啡馆和餐馆使用的黑莓应用程序,其中一项功能是二维码扫描

有什么方法可以让相机自动对焦二维码吗?

搜索时,我发现 FocusControl< /a>,看起来就是我要找的。不幸的是,它仅从 OS 5.0 开始可用。

我想知道如何在 OS 4.5、4.6 和 4.7 上实现同样的效果。

有什么建议吗?

I'm working on a BlackBerry app which will be used in cafes and restaurants, and one of the features is QR code scanning

Is there any way to make the camera autofocus the QR code?

Searching, I found FocusControl, which looks like the one I'm looking for. Unfortunately, it's only available since OS 5.0.

I wonder how to achieve the same thing on OS 4.5, 4.6, and 4.7.

Any suggestions?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

心房敞 2024-09-18 05:42:26

你不能。
在4.5之前的操作系统中,您可以启动本机相机应用程序并侦听最近创建的图像文件(FileSystemJournalListener)。这样,如果 BB 具有自动对焦功能,图像就会更清晰。

然而,没有办法对每个 BB 都这样做。除非你在拍摄图像后应用自己的一些图像算法。

You can't.
In OSs prior to 4.5, you can launch the native camera app and listen for recently created image files (FileSystemJournalListener). This way, if the BB has autofocus, the image has more definition.

However, there's no way to do this for every BB. Unless you apply some image algorithm of your own after taking the image.

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