如何阅读条形码登机牌
我想到了一个项目,它要求我读取登机牌上的条形码,并找出乘客的目的地。 (目的地)
这样的事情可能吗?是否有任何库(C++、Java、语言根本不重要)或者网络服务可以让我快速读取条形码?
I have a project in mind, and it requires that I read the barcode on the boarding pass, and figure out where the passenger is heading. (destination)
Is such thing possible? Is there any library (C++, Java, language doesn't matter at all) or maybe webservices that I can use to quickly read a bar code?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
据我所知,您可以从条形码登机牌上获取以下信息:姓名、预订编号、航班出发地和目的地、航班号、日期等。
因此,您可以弄清楚乘客要去哪里。
关于该库,也许您可以看看这个链接,这是一个多格式的一维/二维条形码带有 Android、Java 客户端的图像处理库。
如果您想在线解码条形码,也许以下链接可以提供帮助:
1. http://zxing.org/w/decode.jspx
2.搜索datasymbol和条码识别sdk,应该有在线条码解码器。抱歉,系统阻止我发布另一个链接。
From what I know, you can get the following information from the barcoded boarding pass: Name, Booking Ref., Flying from and to, Flight #, Date, etc.
So, you could figure out where the passenger is heading.
About the library perhaps you could take a look this link, a multi-format 1D/2D barcode image processing library with clients for Android, Java.
If you want to decode the barcode online, perhaps the following links could help:
1. http://zxing.org/w/decode.jspx
2. search for datasymbol and barcode recognition sdk, there should be an online barcode decoder. Sorry, the system prevented me from posting another link.
根据国际航空运输协会BCBP实施指南您应该能够从 4 种不同的符号系统(换句话说,从 4 种不同类型的代码中)获取这些信息。符号系统分为纸质登机牌和移动登机牌。
可以使用库获取这些信息。最流行的解码和编码库是 ZXing (“斑马线”)项目。您可以通过该库解码所有提到的代码。
此外,我建议您阅读这篇关于登机牌条形码的文章内容,当然还有官方实施指南。
According to BCBP Implementation Guide of International Air Transport Association you should be able to get those information from 4 different symbologies, in other words, in 4 different types of codes. The symbologies are divided by paper and mobile boarding pass.
It is possible to get those information using libraries. The most popular library for decoding and encoding is ZXing ("Zebra Crossing") project. You can decode all the mentioned codes through this library.
Besides I suggest you reading this article about boarding pass barcode contents and, of course, the official implementation guide.