QR码 - 相机方向/投影 [英] QR Codes - Camera Orientation/Projection
问题描述
我正在寻找一个库或方法来解码QR码(或潜在的另一种形式的二维码),并且能够实际确定相机的位置和方向。这似乎应该是可行的,但我不完全确定。
有没有人知道什么是最好的路线?
/rel =nofollow noreferrer> zxing 是用于二维条形码(包括QR)的开源Google托管Java库。请参阅 com.google.zxing.ResultMetadataType.ORIENTATION
(从 com.google.zxing.Result.getResultMetadata()
):
表示图像中条形码的可能近似取向。该值以从正常,垂直方向顺时针旋转的度数给出。例如,通过读取从顶部到底部发现的1D条形码将被称为具有方向90。此键映射到值在[0,360]范围内的整数。
I am looking for a library or method to decode a QR Code (or potentially another form of 2d barcode) and to be able to actually determine the camera position and orientation. This seems like it should be doable, but I am not entirely sure.
Does anyone know what the best route for this is? Or if it is even possible?
zxing is the open-source Google-hosted Java library for 2d barcodes including QR.
see com.google.zxing.ResultMetadataType.ORIENTATION
(optional metadata returned in a hashtable from com.google.zxing.Result.getResultMetadata()
):
Denotes the likely approximate orientation of the barcode in the image. This value is given as degrees rotated clockwise from the normal, upright orientation. For example a 1D barcode which was found by reading top-to-bottom would be said to have orientation "90". This key maps to an Integer whose value is in the range [0,360).
这篇关于QR码 - 相机方向/投影的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!