使用ZXing条码库解析GS1结构数据 [英] GS1 structure data parsing using the ZXing barcode library

查看:484
本文介绍了使用ZXing条码库解析GS1结构数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找使用ZXing库对GS1 DataBar条形码符号进行解码的方法.我不会得到条形码位图,我收到的只是条形码的内容,例如:8110106141416543213500110000310123196000.

I am looking to use the ZXing library to decode GS1 DataBar barcode symbols. I will not be getting the barcode bitmap, all I receive is the content of the barcode, e.g.: 8110106141416543213500110000310123196000.

您能告诉我ZXing是否有一种可以解码条形码的结构化数据的方法?我尝试查看所有方法,但没有找到合适的方法.

Can you tell me whether ZXing has a method that can decode the barcode's structured data? I have tried looking at all the methods out there but I didn't find anything appropriate.

推荐答案

据我所知Zxing没有提供GS1结构化的数据解析功能.

As far as I know Zxing does not provide a GS1 structured data parsing feature.

您可能需要为此编写自己的代码.该答案说明了如何提取和查找GS1结构化数据:

You may need to write you own code for this. This answer explains how to extract and lookup GS1 structured data:

https://stackoverflow.com/a/31760872/2568535

将GTIN分为GS1前缀(国家会员组织),公司前缀和项目标识符-并非总是可能的.

Separating a GTIN into its components - GS1 Prefix (national Member Organisation), Company Prefix and Item Identifier - isn't always possible.

GS1提供了成员组织前缀分配列表,但这取决于每个成员决定如何进一步划分号码空间.尽管某些GS1国家会员提供了在线API来查找公司数据(例如GS1US具有 GEPIR )大部分都不是.再次,一些会员对公司前缀的长度有严格的规定,而对公司前缀的长度却没有依据.

GS1 provides a list of Member Organisation prefix assignments however it is up to each Member to decide how they further partition their number space. Whilst some national GS1 Members provide an online API to lookup the company data (e.g. GS1US has GEPIR) most do not. Again, some Members have rigid rules about the length of the Company Prefix based on its initial digits but others do not.

请记住,对此问题的答案提供了一些免费产品信息平台的示例.

With that in mind the answers to this question provide some examples of free product information platforms.

这篇关于使用ZXing条码库解析GS1结构数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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