barcode

How to generate a EAN13 barcode?

荒凉一梦 提交于 2019-12-07 10:08:59
问题 I'm trying to create a simple EAN13 image to show a barcode from a String. I tried with this code but it can only generate a code128. What can I use to generate a EAN13? class Barcode { class func fromString(string : String) -> UIImage? { let data = string.dataUsingEncoding(NSASCIIStringEncoding) let filter = CIFilter(name: "CICode128BarcodeGenerator") filter.setValue(data, forKey: "inputMessage") return UIImage(CIImage: filter.outputImage) } } let img = Barcode.fromString("1234567890123")

2d Barcode vs 1d barcode - speed, accuracy, size

回眸只為那壹抹淺笑 提交于 2019-12-07 06:04:35
问题 I wanted to implement barcode for one of my mobile project requirements. The amount of data that is to be stored is very little (<25 alpha-numeric). I want to know if its wiser to implement a 1d barcode or a 2d barcode (Qr code particularly) for this project. I would be really glad if someone could educate me on the following aspects from a 1d vs 2d perspective: scanning speed size (minimum display size that is needed, for the mobile camera to recognize -- this is more crucual) accuracy

Android. Howto read Aztec Codes from within my App? [closed]

坚强是说给别人听的谎言 提交于 2019-12-07 06:03:00
问题 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 3 years ago . I would like to embed an Aztec Code reader into my app. I need control over the GUI to place some buttons around the camera view, while reading the code to be able to switch the camera on / off (to save the battery) What I found was ZXing - which is not reliable yet. Apps with an own SDK like neoreader, which do

AVCaptureSession barcode scan

元气小坏坏 提交于 2019-12-07 02:17:19
问题 I'm currently working with AVCaptureSession and AVCaptureMetadataOutput . It works perfectly, but I just want to know how to indicate to scan and analyze metadata objects only on a specific region of the AVCaptureVideoPreviewLayer ? 回答1: Here is a sample of code from a project I have that may help you on the right track // where 'self.session' is previously setup AVCaptureSession // setup metadata capture AVCaptureMetadataOutput *metadataOutput = [[AVCaptureMetadataOutput alloc] init]; [self

How to fill-in two input[text] in an HTML form using a barcode reader?

删除回忆录丶 提交于 2019-12-06 23:14:26
I have a web page with one input text for the barcode content and a select for the barcode type. So using the database, it is possible to generate the barcode in the good format. A normal final user don't know which barcode as which type, but the barcode reader knows and can send this type as a keyboard input. The problem is that I don't know how to change from the input to the select. If I use, the \t , it prints a tabulation in the input instead of switching from a input to the other. If I use a \n it submit the form. Do you have any idea of how I can do it so that my form can be use with or

How to install the barcode scanning library without a google account?

可紊 提交于 2019-12-06 19:46:01
问题 I would like to install the android-vision portion of google play services on devices that are not allowed to have a google account signed in. Traditionally, the android-vision library is downloaded through the play store as an update to google play services. According to this, the package name should be com.google.android.gms.vision.barcode. I used adb to list all packages installed on my rooted nexus device that has the barcode scanning library downloaded and the package was not in the list

Generating GS1 DataMatrix using ZXing.Net

那年仲夏 提交于 2019-12-06 14:37:54
问题 What I need Is to generate a working GS1 DataMatrix, using this test content: (240)1234567890(10)AA12345(11)123456(21)1(96)1234567 Steps I've downloaded the nuget package from here: and I've created a console app that uses this code: private static void DoGs1DataMatrixStuff() { var writer = new BarcodeWriter { Format = BarcodeFormat.DATA_MATRIX }; writer .Write("(240)1234567890(10)AA12345(11)123456(21)1(96)1234567") .Save(@"C:\Temp\barcode.png"); } There's no obvious specific GS1_DataMatrix

Efficient compression and representation of key value pairs to be read from 1D barcodes

◇◆丶佛笑我妖孽 提交于 2019-12-06 13:24:12
I'm currently writing an application for Windows Mobile which needs to be able to pick up key value pairs from 1D barcodes (configuration settings). The less barcodes need to be scanned, the better. Sample input: ------------------------------ | Key | Value | ------------------------------ | 12 | Söme UTF-8 Strîng | | 9 | & another string | ------------------------------ I thought of the following algorithm: 1. Concat the key value pairs and encode the values with Base64 So we would get something like 12=U8O2bWUgVVRGLTggU3Ryw65uZw==&9=JiBhbm90aGVyIHN0cmluZw== 2. Use Huffman encoding to

Create barcode with text image (not pdf) using itextsharp

僤鯓⒐⒋嵵緔 提交于 2019-12-06 11:49:51
I am able to create barcode using itextsharp CreateDrawingImage method. But I want to include the actual text into the image. How do I do that? or How do I use CreateImageWithBarcode method to save as image (Jpeg/Png)? Thanks Facing the same problem and after looking in iTextSharp sources it appears you can't. Besides with CreateDrawingImage() I had problems with image resizing, it was fuzzy and unreadable. I ended up using this library (very cool): http://www.codeproject.com/KB/graphics/BarcodeLibrary.aspx Code for EAN13: System.Drawing.Image imageBarcode = BarcodeLib.Barcode.DoEncode

Two way communication with Barcode reader via HID POS

大憨熊 提交于 2019-12-06 04:42:02
问题 I wish to develop an application which implements two-way communication with a barcode reader where the application sends back an accept/reject signal to the barcode reader to indicate success or failure and the barcode reader interprets with a different beep, red bulb or whatever (depending on the brand). For this reason using the Keyboard Wedge or one-way communication does not suit this scenario (this use case will have people away from the computer with wireless handheld barcode scanners,