barcode-scanner

Android ZXing implementation

此生再无相见时 提交于 2019-12-02 09:20:46
I created a project with the ZXing source code. That works fine. After I changed the package name com.google.zxing.client.android to com.google.zxing.client.android.vofox But it shows error in real device (HTC Wildfire) It has no error in eclipse emulator. My logcat file shown below. 08-23 17:13:58.899: ERROR/AndroidRuntime(9816): FATAL EXCEPTION: main 08-23 17:13:58.899: ERROR/AndroidRuntime(9816): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.google.zxing.client.android.vofox/com.google.zxing.client.android.vofox.CaptureActivity}: android.view.InflateException:

When is it allowable to call `BarcodeScanner.GetDefaultAsync()`?

这一生的挚爱 提交于 2019-12-02 07:00:52
I am trying to use the new Windows 8.1 Point of Service API for Barcode Scanners, and if I call GetDefaultAsync() from any of the following locations, it returns null . App.OnLaunched The first page .Loaded The first page OnNavigatedTo The first page constructor This doesn't seem to be an issue with DeviceCapabilities or drivers, as it will work perfectly if I call it from: A button Click event handler The first page's OnGotFocus The first page's constructor if wrapped in: this.Dispatcher.RunIdleAsync(e => { var res = await BarcodeScanner.GetDefaultAsync(); Assert(res != null); }); Subsequent

pyqt barcode scanner lineEdit

﹥>﹥吖頭↗ 提交于 2019-12-02 03:11:58
问题 I'm using a USB-barcode scanner to set the text of a Qt lineEdit field, the text of which is then used for other features of the GUI (specifically, the text is the name of the sample currently being measured by the user and will be saved as a filename later). My issue is that I want to dynamically overwrite the current text in the lineEdit field with the next scanned barcode , without the user having to delete the current text by hand before scanning. Because I am simply using the scanner as

pyqt barcode scanner lineEdit

南笙酒味 提交于 2019-12-02 02:35:36
I'm using a USB-barcode scanner to set the text of a Qt lineEdit field, the text of which is then used for other features of the GUI (specifically, the text is the name of the sample currently being measured by the user and will be saved as a filename later). My issue is that I want to dynamically overwrite the current text in the lineEdit field with the next scanned barcode , without the user having to delete the current text by hand before scanning. Because I am simply using the scanner as a keyboard emulator rather reading properly the serial info from it, the user has to click the text

Python evdev equivalent for OSX

这一生的挚爱 提交于 2019-12-01 17:54:06
I have written a python script that polls evdev for a HID barcode scanner (emulates a keyboard): the script works well on Linux platforms (Ubuntu). Is there an OS X Python equivalent for evdev that would allow minor porting of the existing python script? If you have Python experience and have configured it for a HID device input, please indicate this in your response. I got a simple test working using cython-hidapi (installable as pip install hidapi - note this is different to the one linked in the comments but seems to be similar in function). I also had installed hidapi-devel from macports

Handle barcode scan in Java

本小妞迷上赌 提交于 2019-12-01 13:27:34
I want to have my application react to barcodes being scanned to trigger button presses. For example the user could scan the ((PRINT)) barcode to activate the print button. The barcodes will just be treated as if the user had entered some text. I am not sure if the scanners will be set up to append an enter or a tab or nothing on the end, so I don't want to make an assumption on that basis. The application is a Java/Swing application. I have looked at keybindings/action maps and the like, but they seem to be focussed on key chords/single key entries. I need it to not trigger the binding until

zbar sdk not working on iphone simulator by using camera simulator

我与影子孤独终老i 提交于 2019-12-01 11:22:28
I have to support barcode scanning on my project. I'm using zbar sdk for that.I have integrated the code and run using iphone simulator. I'm using camera simulator for scanning barcode.Its opening the barcode image correctly.but barcode scanning not working. Anyone used this? you can test bar code on iPhone Simulator, 1 - save the bar code to you simulator, open safari and drag drop the barcode image into safari and then long tap the image, I'll ask you to save the image. 2 - run simulator and when on barcode scan screen press "optons+threefingres long tap" it'll open the gallery where you can

How to defocus a button when barcode scanner sent data ending with newline

白昼怎懂夜的黑 提交于 2019-12-01 09:45:51
问题 I am writing a C# barcode application. I have a EAN-13 regex to detect barcodes in "Form1_KeyPress" function. I have no mechanism to detect where the input comes from. Here is my problem: I have a reset button in the form which clears all fields and barcodes listed in a dataGridView. When I clicked on it, it gets focus as normal. When it has focus, if I read a barcode via barcode scanner, the newline at the end of each barcode reading causes this button to be clicked thus clearing all fields.

zbar sdk not working on iphone simulator by using camera simulator

半世苍凉 提交于 2019-12-01 09:25:57
问题 I have to support barcode scanning on my project. I'm using zbar sdk for that.I have integrated the code and run using iphone simulator. I'm using camera simulator for scanning barcode.Its opening the barcode image correctly.but barcode scanning not working. Anyone used this? 回答1: you can test bar code on iPhone Simulator, 1 - save the bar code to you simulator, open safari and drag drop the barcode image into safari and then long tap the image, I'll ask you to save the image. 2 - run

USB barcode reader in Qt4

北战南征 提交于 2019-12-01 07:39:37
I was wondering how could I integrate a USB barcode scanner into a Qt application, as well as a barcode printer. I looked for tutorials but didn't find anything interesting out there. Any ideas? Thanks in advance. Most barcode scanners, IIRC basically work like a keyboard from the point of view of your application. You just provide a text field and the barcode reader "types" what it reads. So you don't really need to worry about that, other than validating the input and maybe providing a hidden text field if you don't want the input shown. Or a modal dialog saying "scan item" with focus on a