我正在寻找一个库或方法来解码 QR 码(或可能是另一种形式的二维条形码)并能够实际确定相机位置和方向。这看起来应该是可行的,但我并不完全确定。
有谁知道最好的路线是什么?或者是否有可能?
最佳答案
zxing是 Google 托管的开源 Java 库,用于二维条形码(包括 QR)。
参见com.google.zxing.ResultMetadataType.ORIENTATION
(可选元数据在 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).
关于computer-vision - QR 码 - 相机方向/投影,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3689210/