barcode-scanner

How to Check if User input is from Barcode Scanner or Keyboard?

不打扰是莪最后的温柔 提交于 2019-11-28 06:06:55
I am now creating p.o.s application for company cafeteria which the cashier scan employee id and show its information for their transaction. My Problem is the cashier can also use their keyboard for their input(Employeeid) which is very risky. if employee(true) show employee information then add orders else Exception Currently i just hide textbox to the UI.. click New Button then cusror focus on it. then cashier scans employeeid. <---------------in this part(The cashier can also type via keyboard) and continue transaction. What is the best way to handle this scenario? The rule is only barcode

How to integrate barcode scanner into an ASP.NET Web application?

匆匆过客 提交于 2019-11-28 05:19:16
问题 How to integrate barcode scanner into an ASP.NET Web application? Any open source library for doing it? 回答1: If you need the barcode written into a textbox, you'll not need extra work to do. Barcode scanners simulate keypress event. Even you can handle window.keypress event to hook the preamble and postamble characters. That way the client do not need to focus on the specific textbox. Or else the reader uses a hardware driver (? don't know such vendors exists ?) , then you'll need an ActiveX

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

Phonegap 3.0.0: BarcodeScanner Plugin

佐手、 提交于 2019-11-28 05:02:34
currently I'm trying to install the BarcodeScanner Plugin for Phonegap Version 3.0.0 . I can't find any working documentation on how to install it correctly and I didn't figure it out myself. So I would really appreciate any help! Thank you in advance! Best regards, Andreas Actually there are a couple of discussions about this issue on the github page of the plugin here and here . I managed to have a version working in iOS and Android, you can check it here . There is another fork that has made a pull request to the original with changes for 3.0.0 even I am not quite sure that the plugin works

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

Embedding ZXing in android app

一世执手 提交于 2019-11-28 03:36:13
So I'm another unlucky android development beginner who needs to have ZXing barcode scanner embedded in his app. There is plenty of questions asking how to do this here on stackoverflow but none of them has an answer that is really understandable and explanatory for a beginner. All the answers say something like "all you have to do is build the core lib of ZXing project, reference it your project and then copy some code from the ZXing's android/directory to your app and you're done". But this is not very helpful for a noob. I have ZXings core library referenced in my project. I have the

Accessing AutoFocus/Flash with Google Vision BarCode Reader

こ雲淡風輕ζ 提交于 2019-11-28 03:33:47
问题 I am playing with the original example of BarCode scanner here: https://github.com/googlesamples/android-vision/blob/master/visionSamples/barcode-reader/app/src/main/java/com/google/android/gms/samples/vision/barcodereader/BarcodeCaptureActivity.java They are able to start the AutoFocus/Flash within the camera factory like this: // Creates and starts the camera. Note that this uses a higher resolution in comparison // to other detection examples to enable the barcode detector to detect small

How do I tell if keyboard input is coming from a barcode scanner?

早过忘川 提交于 2019-11-28 03:00:42
问题 On one computer I have both a regular keyboard and a barcode scanner which emulates a keyboard. When my app gets keyboard input, how can I determine whether that input is coming from the barcode scanner or the real keyboard? 回答1: You'll get input from both. Not simultaneously , of course. It will all be placed into a queue, but Windows will process key events from both keyboards. Don't be helpless, though. As David Heffernan suggests, you can easily figure this out yourself by plugging in

how to scan barcode using phonegap

浪子不回头ぞ 提交于 2019-11-28 02:44:47
I need to scan a barcode using phonegap in Android and iPhone. Is there a way to do this? This link leads you to a page where you can learn how to implement the PhoneGap Barcode Scanner plugin in your application Kris Erickson is correct, the Zxing & Phonegap projects has already taken care of the heavy lifting for you. (My current SO reputation disallows me from commenting, but I would have.) I've just made an Phonegap/Android app that scans a QR barcode using the plugin here . Follow the instructions and you should be successful. It's possible that the plugin has been written since Kris's

Swift: Unable to detect linear type Barcodes

大兔子大兔子 提交于 2019-11-28 02:11:01
I am writing a barcode reader app but I am unable to detect linear type barcodes, ie code 128. I have no issues with Qr codes, EAN13 types and ISBN types. My code is pretty straightforward: func metadataOutput(_ output: AVCaptureMetadataOutput, didOutput metadataObjects: [AVMetadataObject], from connection: AVCaptureConnection) { if metadataObjects.count != 0 { if let object = metadataObjects[0] as? AVMetadataMachineReadableCodeObject { if object.type == AVMetadataObject.ObjectType.qr { if let text = object.stringValue { print(text) session.stopRunning() let alertVC = UIAlertController(title: