barcode

ZXing Barcode Scanner Intent: set DecodeHintType.ASSUME_GS1

你说的曾经没有我的故事 提交于 2019-11-28 05:04:39
问题 In my app I want to scan a GS1-128 barcode, and need the FNC1 characters passed from the ZXing barcode scanner. Right now I just receive the plain text without the FNC1 characters. Is there a way to pass the DecodeHintType.ASSUME_GS1 via Intent to the scanner app? I don't want to include the complete scanner source in my app and rather use the Intent. In the source code of the scanner I can see that the DecodeHintType needs to be set to achive that: https://code.google.com/p/zxing/source

How do I validate a UPC or EAN code?

混江龙づ霸主 提交于 2019-11-28 05:01:53
I need a C# .NET function to evaluate whether a typed or scanned barcode is a valid Global Trade Item Number (UPC or EAN). The last digit of a bar code number is a computer Check Digit which makes sure the bar code is correctly composed. GTIN Check Digit Calculator public static bool IsValidGtin(string code) { if (code != (new Regex("[^0-9]")).Replace(code, "")) { // is not numeric return false; } // pad with zeros to lengthen to 14 digits switch (code.Length) { case 8: code = "000000" + code; break; case 12: code = "00" + code; break; case 13: code = "0" + code; break; case 14: break; default

Do the Amazon web service APIs support barcode/UPC queries?

爷,独闯天下 提交于 2019-11-28 05:01:45
I skimmed through their documentation and found it a bit overwhelming at first. I know you can search for items by entering a UPC (the number below a 1D barcode), but I couldn't find a word about it in the API. What I want to do is perform a product lookup by doing a UPC search after scanning a barcode. quickcel Here is a page from the e-commerce service docs which shows how you can use the ItemLookup method to find a specific product by UPC. Note that default IdType for the ItemLookup is ASIN, but you can change it to something else like UPC if you need to Matthias K. Be carefull if you want

Scan multiple barcodes with ZXing

安稳与你 提交于 2019-11-28 04:54:10
问题 I am currently trying to get ZXing to scan some barcodes. It's doing that job fine so far (via intent). Now I would like to make it decode multiple barcodes at once (they are placed beneath each other) without having to scan each barcode individually. Is this even possible via intent? If not, a short example of how to do it the other way would be appreciated :) I've so far only found a pretty old thread where a user requested this feature and some developers seem to have integrated it.

Package doesn't exist error in intelliJ

可紊 提交于 2019-11-28 04:36:41
I'm trying to use the barbecue barcode printing library. I have successfully added the library to IntelliJ through project structure add library. Then I imported the packages and wrote the methods, which gave me no error. The packages were available in the class. But when I compile it gives me the error: error: package net.sourceforge.barbecue does not exist How can this be? I'm coding in ubuntu, is there any other place to which I have to add the library? Thanks. Tika I tried to "Maven > Reimport" but the only thing that actually fixed it was to close the project, delete the .idea directory,

How to read barcodes with the camera on Android?

ⅰ亾dé卋堺 提交于 2019-11-28 04:22:18
I want my application to recognize barcodes taken by camera. Is it possible using Android SDK? Something like this: Barcode Scanner schwiz It's not built into the SDK, but you can use the Zxing library . It's free, open source, and Apache-licensed. The 2016 recommendation is to use the Barcode API , which also works offline. Samuel Urbanowicz 2016 update With the latest release of Google Play Services, v7.8, you have access to the new Mobile Vision API. That's probably the most convenient way to implement barcode scanning now, and it also works offline . From the Android Barcode API : The

QR code (2D barcode) coding and decoding algorithms? [closed]

主宰稳场 提交于 2019-11-28 02:48:29
Looking for free/opensource code or description of algorithms to code (simple) and decode (hard) the 2D barcode QR code . It doesn't seem like a trivial problem, but it's so popular in Japan that there must be something already available... I have a colleague who worked on ZXing ("Zebra Crossing"). That's got a fair variety of platform support. Dungeon Hunter QR Code Demystified - Part 1 QR Code Demystified - Part 2 QR Code Demystified - Part 3 QR Code Demystified - Part 4 QR Code Demystified - Part 5 QR Code Demystified - Part 6 and http://www.thonky.com/qr-code-tutorial/introduction/ To know

How to fixed keylistener on JTextField?

梦想的初衷 提交于 2019-11-28 02:26:16
I have a Java swing application, so I have a simple Text box with KeyListener and I have a barcode reader (USB), when the barcode reader write the number on this textbox, I chek the code and I process it. But I have the problem the code can have from 4 to 13 digits. So I have this code public class KeyListenerCodice implements KeyListener{ public void keyPressed(KeyEvent click) { } public void keyReleased(KeyEvent keyEvent) { printIt("Released", keyEvent); } public void keyTyped(KeyEvent keyEvent) { printIt("Typed", keyEvent); } private void printIt(String title, KeyEvent keyEvent) { if

How to capture whole Barcode value on Winform without using TextChanged event?

时间秒杀一切 提交于 2019-11-28 01:15:17
When a barcode is scanned on form1, I make a call to database to get the item for this barcode and open form2 with pre-populated data. If I use text changed event then it makes as many times as numbers in one barcode. I cannot check length of the barcode as it may be different each time. which event I should use to make only one call when Barcode is scanned? I tried TextChanged, KeyPress, KeyDown events but they all are being called multiple times. private void txt_Barcode_TextChanged(object sender, EventArgs e) { con.Open(); GenerateInvoice gn = new GenerateInvoice(); string query = "SELECT *

Read barcodes from input-event (linux, c)

守給你的承諾、 提交于 2019-11-27 23:19:45
I have a small program that read barcodes from /dev/input/event4. This is the code: #include <sys/file.h> #include <stdio.h> #include <string.h> #include <linux/input.h> int main (int argc, char *argv[]) { struct input_event ev; int fd, rd; //Open Device if ((fd = open ("/dev/input/event4", O_RDONLY|O_NONBLOCK)) == -1){ printf ("not a vaild device.\n"); return -1; } while (1){ memset((void*)&ev, 0, sizeof(ev)); rd = read (fd, (void*)&ev, sizeof(ev)); if (rd <= 0){ printf ("rd: %d\n", rd); sleep(1); } if(rd>0 && ev.value==0 && ev.type==1){ printf("type: %d, code: %d, value: %d, rd: %d\n", ev