barcode-scanner

Reading barcodes with android

与世无争的帅哥 提交于 2019-11-29 18:57:31
Hi I am developing an application for the android htc hero. I am looking into ways of using the inbuilt camer to read 2D barcodes and extract the string returned from the barcode. I have only recently begun working with the android sdk but I do have a programming background from working on projects with java. I am curious to know what the best way to read the 2D barcode would be. I have some sample applications that read the barcode but they are all .apk files and have no source or library that i can work with. to give you a better idea of what i am trying to accomplish this site allows the

Xcode AVCapturesession scan Barcode in specific frame (rectOfInterest is not working)

荒凉一梦 提交于 2019-11-29 15:59:26
I am trying to design a barcode scanner for an App i am currently working on. I want the scanner preview to fill the whole screen of the device and provide a smaller frame to point at barcodes. All is working how i want it but i can not get the frame of interest to work. Here is the Implementation of the barcode scanner: #import "GEScannerViewController.h" @import AVFoundation; @interface GEScannerViewController () <AVCaptureMetadataOutputObjectsDelegate> { AVCaptureSession *_session; AVCaptureDevice *_device; AVCaptureDeviceInput *_input; AVCaptureMetadataOutput *_output;

Send data to a barcode scanner over RS232 serial port

时光怂恿深爱的人放手 提交于 2019-11-29 15:47:12
I have a bar-code scanner which is connecting through RS232 serial port. I need to write a program to connect this device with the PC and transmit data. I already wrote some basic methods to initialize a communication link and tried to test by sending a BEEP command to the device but it is not beeping as expected. So I think there is something wrong with my source code. Please somebody help me complete the source code. Below is the written source code 01)DeviceRS232.h #ifndef DEVICERS232_H #define DEVICERS232_H extern "C" { #include <stdio.h> #include <string.h> #include <termios.h> #include

Scan barcode into a specific textbox

这一生的挚爱 提交于 2019-11-29 12:51:17
问题 I am working on bar-code scanners. The bar-code scanner that I am using is a plug-n-play type and scans the code automatically wherever you place the cursor. But what i want is that whether i can scan it to a specific text-box on a web page everytime my scanner reads a code For eg, if my form looks like this <input type="text" name="txtItem" id="txtItem" class="m-wrap w-120" tabindex="6"> <input type="text" name="itemId" id="itemId" class="m-wrap w-120" tabindex="6"> <input type="text" name=

Android - Barcode scanner

让人想犯罪 __ 提交于 2019-11-29 12:35:45
I need to create an app that one of the feature will have an barcode scanner. I was searching for some code examples to make an barcode scanner but i haven't found any full example code. Only thing that I found was an code example that works with Zxing app. But I don't want execute any secondary app. I want to have all-in-one. Anyone knows some example? Thanks. ZXing is open source! If you realy want to implement your own barcode scanner then have a look in the source. You can browse the code online here , it is licensed as Apache Licence 2.0. Zxing has a great Intent-based API, and is

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

百般思念 提交于 2019-11-29 12:02:04
How to integrate barcode scanner into an ASP.NET Web application? Any open source library for doing it? You (probably) will not have a barcode scanner into your server, but on user computers. A barcode scanner typically reads a barcode, understand it, and to make that read data to be understood by your computer as entered by keyboard. So you'll just need to send that data to server to be processed. EDIT: I don't have experience on reading barcodes, by you can look into this link to find how to create them: C# Barcode Generator WebService . Maybe you should buy one component for both tasks. If

ZXing Barcode Scanner Intent: set DecodeHintType.ASSUME_GS1

允我心安 提交于 2019-11-29 11:55:25
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/browse/trunk/core/src/main/java/com/google/zxing/oned/Code128Reader.java boolean convertFNC1 = hints !=

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

半城伤御伤魂 提交于 2019-11-29 09:20:21
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? Cody Gray 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 both keyboards to your computer, opening up Notepad, and typing random characters to see which one

zxing camera portrait mode and landscape on android

你说的曾经没有我的故事 提交于 2019-11-29 07:42:27
I have already integrated zxing library in my application. Now i want that zxing camera will work on both mode landscape as well as on portrait mode. now it is working on one mode only. Can somebody help me out how to do this? I used compyutech 's answer, but there were some things missing. So, I'm putting everything required, here. 1. CameraConfigurationManager : inside initFromCameraParameters method : if (context.getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) { camera.setDisplayOrientation(90); } also remove this code from same method : if (width <

android: zxing barcode scan successful but not returning from activity

蓝咒 提交于 2019-11-29 06:12:38
I am successfully using zxing to scan codes, by calling the installed barcode reader's intent, but when it beeps and indicates a good scan I expect the zxing activity would return control so I can process the result, but it sits there and tries to scan again. I have to press the back button and then it returns and I can do the next step. Is there some obvious flag I'm missing when I call the scanner? Any advice gratefully received. Many thanks. Here's my code: public boolean onTouchEvent(final MotionEvent event) { Intent intent = new Intent("com.google.zxing.client.android.SCAN"); intent