使用 Java 为 Android 渲染 Microsoft Surface Identity 标签
我想为 Android 设备编写一个与 Surface 交互的应用程序,并且我需要能够让 Android 设备显示 Microsoft Surface Identity Tags。我能够使用字节标签文档创建一个类来绘制字节标签< /a> 但我能找到的所有身份标签就是 这个 MSDN 文档 并且它不包含任何有关如何绘制它们的信息。谁能向我指出一些有关如何以编程方式生成身份标签的文档?
I want to write an application for Android devices that interacts with the surface and I need to be able to have the Android device display Microsoft Surface Identity Tags. I was able to create a class to draw the Byte Tags using the Byte Tag documentation but all I could find for the Identity Tags was this MSDN documentation and it doesn't include any information about how to draw them. Can anyone point me to some documentation on how to generate Identity Tags programmatically?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我尝试使用 Surface 读取 Nexus One 上显示的标签,但不起作用。 Surface 根本看不到屏幕上的任何内容。摄像机就是拍不到它。不确定所有手机都一样,但有可能。
I've tried reading tags displayed on my Nexus One with Surface and it doesn't work. The Surface can't see anything on the screen at all. The cameras just don't pick it up. Not sure this would be the same for all phones, but it's likely.
首先,我不确定您是否可以在显示器上执行此操作。规格说明背景应该是红外吸收的。我不确定手机屏幕是否吸收红外线。
(来源:microsoft.com)
红外线吸收背景
标签中心有一个红外线反射圆(半径 0.125 英寸) 。该圆圈在 Microsoft Surface 屏幕上定位标签。
三个红外反射圆(半径为 0.08 英寸)位于每个方向(左、右、下)距离标签中心 0.28 英寸的位置。这些“引导”圆决定标签方向。
通读文档,似乎有一种叫做 身份标签打印
您还可以使用 IdentityTagGenerator 类您的应用程序以编程方式执行此操作。我认为您需要研究这个类并反编译它以了解身份标签是如何打印的。
First of all, I am not sure if you can do this on the display. The specification tells that the background should be infrared absorbing. I am not sure that the phone screen is infrared absorbing.
(source: microsoft.com)
Infrared-absorbing background
One infrared-reflecting circle (0.125-inch radius) in the center of the tag. This circle locates the tag on the Microsoft Surface screen.
Three infrared-reflecting circles (0.08-inch radius) located 0.28 inches from the center of the tag in each direction (left, right, and down). These "guide" circles determine the tag orientation.
Reading through the documentation, It seems that there is something called an Identity Tag Printing tool in the SDK that will let you print your own identity tags.
Also you can use the IdentityTagGenerator class in your app to do this programatically. I think you will need to study this class and decompile it to understand how Identity Tags are printed.
使用 sdk 示例中的 RawImage 来尝试一下!
Use RawImage from sdk samples to try it !