如何读取这个条形码?

发布于 2024-10-03 19:52:24 字数 327 浏览 1 评论 0原文

如何找出我的样本中的条形码属于哪种类型?我查了一下维基百科,有很多类型的条形码,最常见的是 Code 39 和 Code 128。

有没有条形码 OCR 的库(python、java、C#、delphi)? alt text

在此条形码上应编码时间和到期日期。


编辑

我需要知道如何读取和解码上面的条形码。这个条形码是在遗留系统中生成的,如果我的应用程序可以 OCR 并理解它们,那就太好了

我的条形码应该是日期 19.11.2010 15:43

How to find out which type of barcode is this in my sample ? I looked on wikipedia and there are quite many types of barcodes, most common should be Code 39 and Code 128.

Is there any lib for barcode OCR (python, java, C#, delphi) ?
alt text

On this barcode should be encoded time and date of expiration.


EDIT

I need to know how to read and decode above barcode. This barcodes were generated in legacy system and It would be nice if my app could OCR and understand them

On my barcode should be date 19.11.2010 15:43

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

樱娆 2024-10-10 19:52:24

根据这个在线条形码阅读器,它是编号为 5252235562500 的产品的 EAN_13 代码。

根据 Wikipedia 这是折扣优惠券的产品编号,制造商代码为 25223,系列代码为 556,优惠券代码为 25。

如果数据中编码有一个到期日期,它以某种自定义格式编码到家庭代码和优惠券代码中。否则,您需要制造商提供的循环表来确定哪个优惠券具有哪个到期日期。

According to this online bar code reader, it an EAN_13 code for a product with the number 5252235562500.

According to Wikipedia it's a product number for a discount coupon with manufacturer code 25223, family code 556 and coupon code 25.

If there is an expiration date encoded in the data, it's in some custom format encoded into the family code and coupon code. Otherwise you need a loopup table from the manufacturer to determine which coupon has which expiration date.

爱你是孤单的心事 2024-10-10 19:52:24

有一个出色的条形码读取库,名为 斑马线 (zxing),可在 Java 中使用,并带有 ports/wrappers C#、C++、Ruby 等。

这个特定的代码确实是 EAN-13 代码,它编码 13 个十进制数字 [0-9](2..3 个国家/地区数字 + 9..10 个产品数字 + 1 个校验和数字)。

There's an excellent barcode reading library named Zebra crossing (zxing) available in Java with ports/wrappers to C#, C++, Ruby, etc.

This particular one is indeed EAN-13 code, which encodes 13 decimal digits [0-9] (2..3 country digits + 9..10 product digits + 1 checksum digit).

深府石板幽径 2024-10-10 19:52:24

上面引用的维基百科文章似乎仅提及仅适用于 UPC12 条形码的“优惠券代码”,这与 EAN13 条形码略有不同。

根据 GS1 官方网站 http://gepir.gs1.org /v31/xx/gtin.aspx?Lang=en-US 此条形码未定义为属于任何人(或国家/地区),因此它可能由某些组织在内部用于自定义应用程序。

GS1 网站提供了大量有关条形码标准和格式的信息。

The Wikipedia article referenced above seems to only refers to "coupon codes" only for UPC12 barcodes which are slightly different from EAN13 barcodes.

According to the offical GS1 site http://gepir.gs1.org/v31/xx/gtin.aspx?Lang=en-US this barcode is not defined as belonging to anyone (or country) so it is probably used internally by some organization for a custom application.

The GS1 site lot of information on barcode standards and formats.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文