Redlaser 和 Zxing 问题无法扫描
我正在开发一款手机应用程序,您想在我的项目中使用 Zxing。然而,我知道很多人都对 Redlaser 着迷,所以我决定尝试一下。当我去商场时,我注意到扫描仪甚至无法读取 Forever 21、H&M 或 Tilly's 等商店的 UPC!这对我来说是一个大问题,因为这些商店在南加州非常受欢迎!我在热门话题上尝试过,但至少在那里它会读取条形码并返回零结果,但在其他商店却什么也没有。 如果 Redlaser 甚至无法读取那些商店的条形码,那么我会假设 Zxing 也绝对不会尝试读取它。有办法解决这个问题吗?我知道一个问题是这些商店不在 Google Shopping Api 数据库中,但如果我将它们添加到我的 datafeeds 数据库 Api 中,它们仍然无法读取吗?我真的很希望有一个孤子。
I am working on a phone app and U would like to use Zxing for my project. However, I know that alot of people are crazy about Redlaser so I had decided to try it out. When I went to the mall I had noticed that the scanner does not even read the UPC for Stores like Forever 21, H&M or Tilly's! This is a huge problem for me because these are very popular stores in Southern California! I tried it at hot topic, but at least there it would read the barcode and return zero results, but at these other stores it was nothing.
If Redlaser can not even read the barcode at those stores, then I will make the assumption that Zxing definitely will not even attempt to read it either. Is there anyway to fix this? I know one issue is that those stores are not in the google shopping Api database, but if I added them to my datafeeds database Api would they still be unreadable? I'm really hoping for a soliton.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您在这里混淆了两件事:扫描和提供附加信息。 RedLaser 和 ZXing 都应该能够扫描所有 UPC 和 EAN 条形码并得出扫描的号码。在提供附加信息时,RedLaser SDK(相对于 RedLaser 应用程序)和 ZXing 库均不提供任何附加信息。这由你来实施。
如果您甚至无法在商店中扫描产品的条形码,也可能意味着该公司使用带有公司私有条形码编号的非标准条形码格式。即使您可以扫描这些条形码,也不太可能有任何服务可以获取这些私人号码的附加信息。它还表明这些产品可能仅由一家公司销售。但如今大多数产品都具有带有唯一条形码编号的 EAN/UPC/GS1 条形码。
更新:
如果产品有 UPC/EAN 条形码,您可以扫描它并获得(几乎)唯一的产品编号。这是所有收银台都支持的条形码。而UPC/EAN/GS1编号是几乎所有产品信息提供商都支持的产品编号。
如果它是 Code 39、Code 128、ITF 条形码(或一些其他格式,具体取决于条形码扫描仪库),您也可以扫描它并获取数字或字符串。然而,不同商店的解释可能有所不同。
如果它是另一种条形码符号系统,您甚至无法使用条形码库扫描它。
此外,许多产品都有多个具有不同用途的条形码:一个可能确实是一种产品编号,但其他条形码即使您可以解码它也可能对您没有用(例如电子设备的序列号) 。
You're mixing up two things here: scanning and providing additional information. Both RedLaser and ZXing should be able to scan all UPC and EAN barcodes and come up with the scanned number. When it comes to providing additional information, neither the RedLaser SDK (as opposed to the RedLaser app) nor the ZXing library provide any additional information. That's up to you to implement.
If you weren't even able to scan the product's barcode in a store, it could also mean that the company uses a non-standard barcode format with company private barcode numbers. Even if you could scan these barcodes, it's very unlikely that there is any any service to get additional information for these private numbers. It also indicates that these products are probably sold by single company only. But most products today have a EAN/UPC/GS1 barcode with a unique barcode number.
Update:
If the product has a UPC/EAN barcode, you can scan it and get an (almost) unique product number. This is the kind of barcode all cash desk support. And the UPC/EAN/GS1 number is the product number support by almost all providers of product information.
If it's a Code 39, Code 128, ITF barcode (or few additional formats depending on the barcode scanner library), you can scan it as well and get a number or string. However, it's interpretation might differnt from shop to shop.
If it's yet another barcode symbology, you cannot even scan it with the barcode library.
Furthermore, many products have several barcodes with different purposes: one might indeed be a sort of product number but the other ones might be something that of no use for you even if you could decode it (such as the serial number of an electronic device).
我猜您看到的不是 UPC/EAN 产品代码,而是很可能是对某些商店特定标识符进行编码的 Code 39 条形码。
ZXing 肯定可以读取 Code 39。使用条码扫描仪尝试一下。 RedLaser 可能不会,因为它专注于 UPC/EAN,尽管它基于相同的库。
但是,即使您可以阅读其中的内容,我怀疑您能否用它做很多事情。这个数字可能在商店系统之外没有任何意义。
I am guessing that you are not looking at a UPC/EAN product code, but most likely a Code 39 barcode that encodes some store-specific identifier.
ZXing definitely reads Code 39. Try it with Barcode Scanner. RedLaser might not since it is focused on UPC/EAN, though it's based on the same library.
But, even though you can read the contents, I doubt you will be able to do much with it. It is likely a number that doesn't mean anything outside the store's systems.