barcode-scanner

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

How can I add a Javascript listener to capture input from bluetooth barcode scanner to iPad?

北战南征 提交于 2019-11-27 22:36:17
I'm having trouble logging keystrokes in javascript on the iPad. The following script works on Chrome and Safari, but not iPad Safari. The bluetooth barcode scanner sends 12 digits as keystrokes, then sends a return character. Does anyone have any ideas? I think you will need an iPad to try this out :) Thanks, Mark $(document).ready(function(){ $(document).keypress(function(e){ if( e.keyCode == 13){ alert($('#barcode').attr('value')); $('#barcode').attr('value',''); } else{ var key = String.fromCharCode(e.which); var new_val = $('#barcode').attr('value') + key; $('#barcode').attr('value',new

Unity Zxing QR code scanner integration

感情迁移 提交于 2019-11-27 22:26:22
I need to integrate Zxing with vuforia to make a QR code scanning app in Unity? I have no idea how to integrate Zxing with Vuforia in unity.Can someone guide me how to do this?I have Zxing .dll files and Vuforia unity package.Thanks in Advance. I was looking for integrating Zxing with vuforia in Unity today. The first thing to do is to download the dll from : https://zxingnet.codeplex.com/ and copy the unity dll into your Plugins folder (which should be in the Assets folder) Then, I managed to found some examples (some of theses is outdated) : http://ydaira.blogspot.fr/2012/09/how-to-decode-qr

Reading a barcode using a USB barcode scanner along with ignoring keyboard data input while scanner product id and vendor id are not known

岁酱吖の 提交于 2019-11-27 19:31:52
Is there a way to read from a USB barcode reader while ignoring the keyboard and not knowing the PID or VID of the USB scanner? I know that there is a way of differentiating between USB scanner input and keyboard input by using the VID and or PID of the USB scanner; this was done using code from http://nicholas.piasecki.name/blog/2009/02/distinguishing-barcode-scanners-from-the-keyboard-in-winforms/ But is there another solution to differentiate between keyboard and USB scanner without putting the scanner's VID or PID in a configuration file (or source code)? The reason for not wanting to put

Javascript: How to read a hand held barcode scanner best?

南笙酒味 提交于 2019-11-27 18:24:01
I'd like to be able to scan barcodes via a hand held scanner and handle the results with Javascript. A barcode-scanner works almost like a keyboard. It outputs the scanned/translated (barcode->number) data raw (right?). Actually I just need to catch the output and proceed. But how? Here's some pseudocode I'd like to make work: $(document).on("scanButtonDown", "document", function(e) { // get scanned content var scannedProductId = this.getScannedContent(); // get product var product = getProductById(scannedProductId); // add productname to list $("#product_list").append("<li>" + product.name +

Reading USB HID barcode scanner input without knowing VID&PID

梦想的初衷 提交于 2019-11-27 16:31:41
问题 I'm trying to develop device independent library for barcode scanners, it has to be working in windows environment. I've done some research in this field, afaik most of the solutions of this problem are depending on specific device VID&PID (RawInput @ filter by vid&pid string), in my situation this is inacceptable, because i'm trying to develop a device independent solution, which will be working with any USB-barcode scanner. Actually this thing is quite challenging, for me atleast, here are

ZXing barcode scanner in custom layout in fragment

流过昼夜 提交于 2019-11-27 13:08:09
问题 I develope ZXing barcode continuous scanner following this page on Android Studio. My App build.gradle had include: repositories { mavenCentral() maven { url "https://raw.github.com/embarkmobile/zxing-android-minimal/mvn-repo/maven-repository/" } } dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') compile 'com.android.support:appcompat-v7:23.0.1' compile files('src/main/jniLibs/scanditsdk-android-4.7.5.jar') compile files('src/main/jniLibs/httpclient-4.0.jar') compile 'com

Android - Barcode Scanning, Options? Zxing?

空扰寡人 提交于 2019-11-27 12:18:00
问题 I want to create an application for Android that will be able to scan barcodes, get the information contained within the barcode and then be able to use that information in some way. I have no idea how to create a barcode scanner so I went Googling and it seems Zxing is the most commonly used way to implement a barcode scanner in an app. Some Links: http://code.google.com/p/zxing/ http://awalkingcity.com/blog/2008/08/25/qr-codes-made-easy-in-android/ Using ZXing to create an android barcode

Calling barcode scanner on a button click in android application

杀马特。学长 韩版系。学妹 提交于 2019-11-27 10:53:47
I have downloaded the zxing 1.6 and was able to successfully run a standalone barcode scanner through it. Now this scanner is in another project and (the CaptureActivity) and I have my app's different project called MyProj , all I want to do is on click of button in my project call CaptureActivity in another project , how do I import that entire project in my project or what do I do it get this working. Thanking in advance I think that "copying" Barcode Scanner and include it in your app might be overloading your projects. You should certainly use the Intent from the Scanner: From here: http:/

looking for best barcode scanner library, besides zxing [closed]

∥☆過路亽.° 提交于 2019-11-27 09:12:45
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I am looking for some best barcode libraries on all platforms. I know zxing but wondering more libraries besides it. Any help is appreciated~ 回答1: Jeff Lamarche's Cocoa Barcodes project for iPhone and iPad Zxing's barcode image process library Android barcode library ISBN & QR Barcode Scanning Mobile App for