使用 ZXing 在 iPhone 上实现 AR
有人尝试过将 ZXing 与 ARToolKit 等 iPhone AR 工具包一起使用吗?尝试使用二维码作为标记在 iPhone 上显示我的模型。
ZXing 项目是否足以获取 QR 码的尺寸以提供给 ARToolkit?
Has anyone attempted to use ZXing with an iphone AR toolkit like ARToolKit? Trying to use a QR code as a marker to display my models on an iphone.
Is the ZXing project sufficient to get the dimensions of the QR code to feed to the ARToolkit?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我怀疑最简单的方法是反转这些步骤,因此您可以使用 AR 工具包来确定要提供给 ZXing(或类似工具)的图像片段。有一篇名为“Applying QR Code in Augmented Reality Application”的论文描述了这样的方法。
QR 码中的位置检测器是在 ARToolkit 中注册的图案,因此它会自行找到这些图案。诀窍是从三个位置检测器确定 QR 码的边界框,然后应用给出代码垂直视图所需的透视投影(由 AR 工具包给出),以便将未变形的 QR 图像输入到 QR 库(它们通常无法处理太多失真)。
I suspect the easiest way is to reverse those steps, so you use AR toolkit to determine the image-segment to feed to ZXing (or similar). There's a paper called "Applying QR Code in Augmented Reality Application" that describes an approach like this.
The position detectors in QR codes are registered patterns with ARToolkit, so it will find those by itself. The trick is to determine the bounding box of the QR code from the three position detectors, then apply the perspective projection necessary to give a perpendicular view of the code (given by AR toolkit) so the unwarped QR image can be fed to the QR library (they normally can't deal with much distortion).