Input Devices - Barcode-QR Code
Input Devices - Barcode-QR Code
BARCODE READERS
• https://youtu.be/kcZIXGAxSuw
• Each digit has 2 dark lines and
two light lines.
• The width representing each digit
is the same.
• The digits on the left have an odd
number of dark elements and
always begin with a light bar;
• the digits on the right have an
even number of dark elements
and always begin with a dark bar.
• This arrangement allows a
barcode to be scanned in any
direction.
• The barcode is first read by a red laser or
red LED.
1 • Light is reflected back
• The dark areas reflect little or no light
• The white areas reflect a lot of light
Answers
• Barcode identifies a (Unique) product
• Barcode can be used to look up a product (In a database)
• Data about stock levels can be stored on a system
• Stock can be automatically deducted from the system
• Can check stock is below a certain level
• Automatic re-order
• Automatically update new stock level
• To locate if an item of stock is available in another location.
QR
CODES
QUICK RESPONSE CODES
STRUCTURE
• Made up of a matrix of filled-in dark squares
on a light background.
• Consists of a block of small squares (light
and dark) known as pixels.
• Can presently hold up to 4296 characters
(or up to 7089 digits)
• Allows internet addresses to be encoded
within the QR code. This compares to the 30
digits that is the maximum for a barcode.
The three large squares at the corners of the
• However, as more and more data is added, code function as a form of alignment; the
remaining small corner square is used to
the structure of the QR code becomes more ensure the correct size and correct angle of
complex. the camera shot when the QR code is read.
USE Advertising
Boarding passes
Access websites
What is different here?
Frame QR codes
-come with a ‘canvas area’ where it is possible to
include graphics or images inside the code itself
Homework
• How is QR code read and used?
• Advantages over barcodes
• Disadvantages over barcodes.
Question
• A square QR code contains 40 × 40 tiny squares (pixels) where each
tiny square represents a 0 or a 1. Calculate how many bytes of data
can be stored on the QR code
How well did you listen?
• Expand QR code
• What is the maximum number of digits that a barcode can represent?
• What is the maximum number of digits that a QR code can represent?