将 Xoom 摄像头的彩色图像转换为单色图像以进行二维码识别
我在 Motorola Xoom 上开发了一个应用程序,它使用 xzing 库识别 QrCode。我已经在我的计算机上完成了相同的应用程序,它在我的计算机上运行得很好,但在 Xoom 上,它很难识别 QrCode。它需要非常好的照明,并且不能有直射聚光灯。问题出在相机上。前置摄像头的效果还不错,但永远不如我的实验室电脑上的网络摄像头。即使后置摄像头具有更好的分辨率,它也是最差的。后置摄像头的效果最差有点奇怪,但考虑到对焦效果不佳,我认为这很正常。您需要一张非常清晰的图片才能获得良好的结果。
现在我使用 zxing 中名为 PlanarYUVLuminanceSource 的算法。
所以我想知道你们是否找到了一些将彩色图像从 xoom 相机转换为单色图像的好算法。用于识别单色图像的 xzing 库已经足够好了,所以只是单色图像质量较差。无需向我推荐另一个单色图像二维码阅读器。
I have done an app on the Motorola Xoom that recognize QrCode using the xzing library. I already have done the same application on my computer and it was working perfectly on my computer, but on the Xoom, it has an hard time to recognize QrCode. It needs a very good lighting with no direct spot light in it. The problem come from the camera. The front camera work not to bad, but never as good as the webcam on my labtop. The back camera is worst even if it has a better resolution. It's kind of weird that the back camera give worst result, but given that the focus doesn't work well, I think it's normal. You need a very sharp picture to have good result.
Right now I use the algo from zxing called PlanarYUVLuminanceSource.
So I wonder if you guys have found some Good algorithm for converting color image from the xoom camera to a monochrome image. The xzing library for recognizing monochrome image is good enought, so it's just the monochrome picture that is bad quality. No need to recommend me an another monochrome image qrcode reader.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
现在您的“tempBitmap”包含您正在寻找的黑白图像:)
Now your 'tempBitmap' contains the black and white image you are looking for :)