barcode

ZXing读写二维码,桌面和手机的不同用法

梦想与她 提交于 2019-11-30 06:50:00
虽然ZXing是用Java实现的Barcode开源库,但是并不代表桌面上实现的Barcode应用在手机上也可以直接使用。因为Android的Java接口有很多是不同的。这里分享下Java Barcode生成和读取的不同用法。 参考原文: How to Write and Read QR Code with ZXing in Java 作者: Desmond Shaw 翻译: yushulx 获取ZXing源码 之前ZXing是放在Google Code上的,现在已经全部移到了GitHub上。命令行获取: git clone https://github.com/zxing/zxing 在工程中添加ZXing 工程中导入ZXing有两方方法: 把ZXing编译成jar包,导入到工程中使用。比如在Android Studio中可以新建一个module,把ZXing源码导入之后就可以build出一个jar包。 直接使用ZXing源码。在工程属性中选择 Project Properties > Java Build Path > Source > Link Source 。确定输入正确的folder名称,不然会出现大量的package错误。 ZXing源码解析 要生成二维码,需要用到Writer类。搜索 implements Writer 可以看到所有ZXing支持的Barcode

Generate barcode image in Android application

*爱你&永不变心* 提交于 2019-11-30 05:52:11
问题 I need to generate 1D barcode image and set it to ImageView according to given 13-character code. Can anyone help me with this please? 回答1: You can use zxing library to generate barcode easily. first, locate core.jar under libs folder. libs/core.jar You can download ZXing-2.1.zip from here. http://repo1.maven.org/maven2/com/google/zxing/ (source) After unzipping the file, find the jar file. \ZXing-2.1\zxing-2.1\core\core.jar And then write your own code like below. import java.util.EnumMap;

How to read barcodes using Android Phonegap?

旧街凉风 提交于 2019-11-30 04:12:05
I want to scan barcodes using Android Phonegap. How can I do this ? Check out the PhoneGap barcode tutorial here . It will take you step by step to creating a sample app with zxing via the PhoneGap plugin from purplecabbage . You would have to build a Phonegap plugin which implements the zxing library . Or use the pre existing BarcodeScanner plugin which is MUCH easier. 来源: https://stackoverflow.com/questions/5840996/how-to-read-barcodes-using-android-phonegap

Web pages and barcode fonts

我与影子孤独终老i 提交于 2019-11-30 04:00:44
问题 I'm working on a small app where I can generate a list of barcodes. I have the correct fonts installed on my computer. Right now I am printing them directly to a webpage and it works properly in Chrome and IE 7, but not Firefox. Does anyone know what Firefox would be doing differently than IE and Chrome? Here is my code: <html> <head> <title>Barcode Font Test</title> <style type="text/css" media="screen"> .barcode { font-family: "wasp 39 m", verdana, calibri; font-size: 36pt; } </style> <

轻松使用OpenCV Python控制Webcam,读取Barcode

扶醉桌前 提交于 2019-11-30 03:01:02
虽然手机上Barcode应用已经非常流行,但是工作的时候还是用Webcam比较方便。比如需要检测Barcode,我只需要拿Webcam对着电脑屏幕或者纸张扫一下就可以了。今天分享下如何轻松使用OpenCV控制Webcam,以及如何获取一帧图像做Barcode检测。 参考原文: Reading Barcode with Webcam in OpenCV and Python 作者: Xiao Ling 翻译:yushulx 软件安装 Dynamsoft Barcode SDK: http://www.dynamsoft.com/Downloads/Dynamic-Barcode-Reader-Download.aspx Python: https://www.python.org/ftp/python/ NumPy: http://sourceforge.net/projects/numpy/files/NumPy/ SciPy: http://sourceforge.net/projects/scipy/files/scipy/ OpenCV: http://sourceforge.net/projects/opencvlibrary/files/opencv-win/ 控制Webcam,读取Barcode 基本步骤: 拷贝 <opencv_installation_dir>

How can I extract an AVMetadataObject from a UIImage?

£可爱£侵袭症+ 提交于 2019-11-30 02:14:00
I'd like to use iOS 7's new barcode scanning functionality with a UIImage instead of live capture from one of the device's camera. I already have the detection working fine with an AVCaptureDeviceInput . The best way I think to do this would be to create a concrete subclass of AVCaptureInput that provides media data to an AVCaptureSession from a UIImage . However, I can't find any documentation or examples on how to subclass AVCaptureInput , so I'm at a loss. An alternative would be to override the media stream from an existing AVCaptureDeviceInput , but since those API's are private and I'd

Reading status from Zebra Printer

孤者浪人 提交于 2019-11-30 01:48:15
问题 I'm working on a project where we need to use a Zebra Printer for barcode labels. We're using C#, and we're doing OK on the printing side of things, sending raw ZPL strings to the printer (using winspool.drv). However, we also need to read from the printer, and no luck there. We need to get the status from the printer, which is the output to the ZPL command "~HS", so we can tell how many labels are in memory waiting to be printed. The EnumJobs() from winspool.drv only has jobs on the windows

Enhanced iOS barcode scanner library?

徘徊边缘 提交于 2019-11-30 00:10:00
We're creating an iOS app that basically scans badges at events and collects contact info. We're looking for an iOS library that can read not only the number of the barcode, but also any additional information that's included (contact info). Does anyone have any library suggestions or will this have to be a custom library? Thanks in advance! Updated: Use AVCaptureMetaDataOutput in AVFoundation which works with minimum deployment target iOS 7. Previous Answer: Have been using ZBar SDK in most of our projects. Picks up barcode and scans very fast, easy to customize focus area from SDK. Tested on

Read data from Bar Code Scanner in .net (C#) windows application! [closed]

旧巷老猫 提交于 2019-11-29 21:56:01
How to read data from Bar Code Scanner in .net windows application? Can some one give the sequence of steps to be followed? I am very new to that. Quassnoi Look at the scanner jack. If it looks like this: , then it's a keyboard wedge scanner. It acts like a keyboard: just types your barcode into an edit field. If it looks like this: , it's a serial port scanner. You need to create an instance of System.IO.Ports.SerialPort and use it to communicate with the scanner. If it looks like this: (source: datapro.net ) , it's a USB scanner. From programmer's point of view, it can be either a keyboard

get ZPL Code From zebra designer?

自古美人都是妖i 提交于 2019-11-29 21:35:56
I'm using Zebra Designer 2.2.2 (Build 2728) Question Is there is a way of extracting the ZPL code from the zebradesigner i can't even export it to zpl file the only option i have is save it as .lbl You can add a new ZebraDesigner ZPL driver to the system and use a file as the port. Then when you "Print" the document, it will write the ZPL code to the file. Note that it might have some header information before the first ^XA which you might not need. UPDATE : (How to add local port on a driver) Go to Printer Properties Click on the Ports tab Click Add Port Select Local Port and click New port