使用zxing解码时返回图像中的条形码位置 [英] Return barcode location in the image while decoding with zxing

查看:508
本文介绍了使用zxing解码时返回图像中的条形码位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我当前的项目中,我需要知道如何用zxing获取像素在图像中的条形码位置,以像素为单位或以像素为单位.我的图像来源是Kinect v2.主要目的是将条形码与车身框架相关联,这需要位置信息.我在C#中使用标准的Kinect v2 SDK和visual studio 2013.我觉得这并不困难,但是我需要一些指导.提前非常感谢您!

In my current project, I need to know how to get the location of the barcode in the image with zxing, in pixel or range of pixels. My image source is Kinect v2. The main purpose is to associate barcode with body frame, which requires the location information. I'm using standard Kinect v2 SDK and visual studio 2013, in C#. I feel it's not difficult, but I need some guidance. Thank you very much in advance!

推荐答案

在我看来(请参阅 ResultPoints ,每个都有一个X和Y值.

It looks to me (referencing posts such as this) that the ResultFound action should pass a Result including ResultPoints, each with an X and Y value.

这些点的某些细节似乎取决于要解析的条形码的类型,但这就是我要开始的地方.

It seems like some of the details of those points depend on the type of barcode being parsed, but that would be where I'd start.

取决于您要对位置执行的操作,您可能需要使用CoordinateMapper才能将其放入正确的坐标系.

Depending on what exactly you're trying to do with the location, you may need to use a CoordinateMapper to get it into the correct coordinate system.

这篇关于使用zxing解码时返回图像中的条形码位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆