Questions tagged [barcode]

This tag should be used for questions on how to generate, decode, or use barcodes in programs.

A barcode is an optical machine-readable representation of data, which shows data about the object to which it attaches.Originally, barcodes represented data by varying the widths and spacings of parallel lines, and may be referred to as linear or 1 dimensional (1D). Later they evolved into rectangles, dots, hexagons and other geometric patterns in 2 dimensions (2D). Although 2D systems use a variety of symbols, they are generally referred to as barcodes as well. Barcodes originally were scanned by special optical scanners called barcode readers, scanners and interpretive software are available on devices including desktop printers and smartphones.

(source http://en.wikipedia.org/wiki/Barcode)

enter image description here

2814 questions
190
votes
20 answers

How can I scan barcodes on iOS?

How can I simply scan barcodes on iPhone and/or iPad?
Stefan
  • 28,004
  • 14
  • 62
  • 76
167
votes
12 answers

NSCameraUsageDescription in iOS 10.0 runtime crash?

Using iOS 10.0 last beta. I had tried to use Camera to scan barcode in my app, and it crashed with this runtime error. This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist…
user3069232
  • 7,063
  • 6
  • 36
  • 61
165
votes
7 answers

Using ZXing to create an Android barcode scanning app

I've been searching for how to add a barcode scanner to my app. Are there any examples or how can I do this easily?
wajiw
  • 11,780
  • 17
  • 50
  • 73
157
votes
28 answers

Package doesn't exist error in intelliJ

I'm trying to use the barbecue barcode printing library. I have successfully added the library to IntelliJ through project structure add library. Then I imported the packages and wrote the methods, which gave me no error. The packages were…
Tika
  • 1,623
  • 2
  • 10
  • 9
144
votes
17 answers

Integrating the ZXing library directly into my Android application

I'm writing this in mere desperation :) I've been assigned to make a standalone barcode scanner (as a proof of concept) to an Android 1.6 phone. For this i've discovered the ZXing library. I've googled, read related topics here on StackOverflow used…
AppDev
  • 2,839
  • 4
  • 15
  • 15
74
votes
12 answers

How can I lookup data about a book from its barcode number?

I'm building the world's simplest library application. All I want to be able to do is scan in a book's UPC (barcode) using a typical scanner (which just types the numbers of the barcode into a field) and then use it to look up data about the book...…
Joel Spolsky
  • 32,422
  • 17
  • 82
  • 101
60
votes
3 answers

Free Barcode API for .NET

Is there a decent free API/component for printing barcodes in C#?
Vaccano
  • 70,257
  • 127
  • 405
  • 747
57
votes
5 answers

BarCode Image Generator in Java

How can I create a barcode image in Java? I need something that will allow me to enter a number and produce the corresponding barcode image. Is there a free library available for this type of task?
om.
  • 3,891
  • 11
  • 35
  • 36
45
votes
4 answers

Generate barcode image in Android application

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?
Leonidas
  • 573
  • 1
  • 5
  • 13
44
votes
4 answers

Barcode on swift 4

I'm trying to upgrade mi app to swift 4, but the barcode reader is not working. I have isolated the barcode reader code, and still not working. The camera works but it does not detect the barcode. The code worked just fine on swift 3 iOS 10. This is…
Dx_
  • 1,506
  • 1
  • 16
  • 17
43
votes
1 answer

reading barcode from an image using javascript

I need a javascript code that will read/ extract barcode from an image. for example, the image may be embedded in a web page and i wan to pass the image to the Javascript function. The function should read/parse the image and extract the barcode…
santubangalore
  • 711
  • 1
  • 10
  • 24
43
votes
9 answers

QR code (2D barcode) coding and decoding algorithms?

Looking for free/opensource code or description of algorithms to code (simple) and decode (hard) the 2D barcode QR code. It doesn't seem like a trivial problem, but it's so popular in Japan that there must be something already available...
Adam Davis
  • 87,598
  • 55
  • 254
  • 328
38
votes
6 answers

QR Code encoding and decoding using zxing

Okay, so I'm going to take the off chance that someone here has used zxing before. I'm developing a Java application, and one of the things it needs to do is encode a byte array of data into a QR Code and then decode it at a later time. Here's an…
LandonSchropp
  • 9,020
  • 16
  • 75
  • 143
35
votes
9 answers

How to read barcodes with the camera on Android?

I want my application to recognize barcodes taken by camera. Is it possible using Android SDK? Something like this: Barcode Scanner
peter.o
  • 2,910
  • 6
  • 47
  • 73
34
votes
4 answers

How can I generate a barcode from a string in Swift?

I am a new iOS developer. I was wondering how can I generate a barcode in Swift. I have the code already, there are multiple resources from where to learn how to read a barcode, but I didn't find any that talks about generating one from a…
Andrei Dobrin
  • 1,035
  • 4
  • 15
  • 31
1
2 3
99 100