Tuesday 14 February 2012

Barcode reader


A barcode reader (or barcode scanner) is an electronic device for reading printed barcodes. Like a flatbed scanner, it consists of a light source, a lens and a light sensor translating optical impulses into electrical ones. Additionally, nearly all barcode readers contain decoder circuitry analyzing the barcode's image data provided by the sensor and sending the barcode's content to the scanner's output port.

Types of barcode readers






Methods
Types of technology
The reader types can be divided as follows:
Pen-type readers
Pen-type readers consist of a light source and photodiode that are placed next to each other in the tip of a pen or wand. To read a bar code, the person holding the pen must move the tip of it across the bars at a relatively uniform speed. The photodiode measures the intensity of the light reflected back from the light source as the tip crosses each bar and space in the printed code. The photodiode generates a waveform that is used to measure the widths of the bars and spaces in the bar code. Dark bars in the bar code absorb light and white spaces reflect light so that the voltage waveform generated by the photo diode is a representation of the bar and space pattern in the bar code. This waveform is decoded by the scanner in a manner similar to the way Morse code dots and dashes are decoded.
Laser scanners
Laser scanners work the same way as pen type readers except that they use a laser beam as the light source and typically employ either a reciprocating mirror or a rotating prism to scan the laser beam back and forth across the bar code. As with the pen type reader, a photodiode is used to measure the intensity of the light reflected back from the bar code. In both pen readers and laser scanners, the light emitted by the reader is rapidly varied in brightness with a data pattern and the photodiode receive circuitry is designed to detect only signals with the same modulated pattern.
CCD readers
CCD readers use an array of hundreds of tiny light sensors lined up in a row in the head of the reader. Each sensor measures the intensity of the light immediately in front of it. Each individual light sensor in the CCD reader is extremely small and because there are hundreds of sensors lined up in a row, a voltage pattern identical to the pattern in a bar code is generated in the reader by sequentially measuring the voltages across each sensor in the row. The important difference between a CCD reader and a pen or laser scanner is that the CCD reader is measuring emitted ambient light from the bar code whereas pen or laser scanners are measuring reflected light of a specific frequency originating from the scanner itself.
Camera-based readers
Two-dimensional imaging scanners are the fourth and newest type of bar code reader. They use a camera and image processing techniques to decode the bar code.
Video camera readers use small video cameras with the same CCD technology as in a CCD bar code reader except that instead of having a single row of sensors, a video camera has hundreds of rows of sensors arranged in a two dimensional array so that they can generate an image.
Large field-of-view readers use high resolution industrial cameras to capture multiple bar codes simultaneously. All the bar codes appearing in the photo are decoded instantly (ImageID patents [htww.ashberg.de/php-barcode/ Folke Ashberg: EAN-13 Image-Scanning] and code creation tools) or by use of plugins (e.g. the Barcodepedia uses a flash application and some web cam for querying a database), have been realized options for resolving the given tasks.
Omni-directional barcode scanners
Omni-directional scanning uses "series of straight or curved scanning lines of varying directions in the form of a starburst, a lissajous pattern, or other multiangle arrangement are projected at the symbol and one or more of them will be able to cross all of the symbol's bars and spaces, no matter what the orientation."[1]
Omni-directional scanners almost all use a laser. Unlike the simpler single-line laser scanners, they produce a pattern of beams in varying orientations allowing them to read barcodes presented to it at different angles. Most of them use a single rotating polygonal mirror and an arrangement of several fixed mirrors to generate their complex scan patterns.
Omni-directional scanners are most familiar through the horizontal scanners in supermarkets, where packages are slid across a glass or sapphire window. There are a range of different omni-directional units available which can be used for differing scanning applications, ranging from retail type applications with the barcodes read only a few centimetres away from the scanner to industrial conveyor scanning where the unit can be a couple of metres away or more from the code. Omni-directional scanners are also better at reading poorly printed, wrinkled, or even torn barcodes.
Cell phone cameras
While cell phone cameras without auto-focus are not ideal for reading some common barcode formats, there are 2D barcodes which are optimized for cell phones, as well as QR Codes and Data Matrix codes which can be read quickly and accurately with or without auto-focus. These open up a number of applications for consumers:
Movies: DVD/VHS movie catalogs
Music: CD catalogs, play MP3 when scanned
Book catalogs and device.
Groceries, nutrition information, making shopping lists when the last of an item is used, etc.
Personal Property inventory (for insurance and other purposes)ode scanned into personal finance software when entering. Later, scanned receipt images can then be automatically associated with the appropriate entries. Later, the bar codes can be used to rapidly weed out paper copies not required to be retained for tax or asset inventory purposes.
If retailers put barcodes on receipts that allowed downloading an electronic copy or encoded the entire receipt in a 2D barcode, consumers could easily import data into personal finance, property inventory, and grocery management software. Receipts scanned on a scanner could be automatically identified and associated with the appropriate entries in finance ad property inventory software.
Consumer tracking from the retailer perspective (for example, loyalty card programs that track consumers purchases at the point of sale by having them scan a QR code).
A number of enterprise applications using cell phones are appearing:
Access control (for example, ticket validation at venues), inventory reporting (for example, tracking deliveries), asset tracking (for example, anti-counterfeiting).
Smartphones
Smartphones can be used in Google's mobile Android operating system via both their own Google Goggles application or 3rd party barcode scanners like Scan[3]. Nokia's Symbian operating system features a barcode scanner which can scan barcodes,[4] while mbarcode[5] is a barcode reader for the Maemo operating system. In the Apple iOS, a barcode reader is not natively included but more than fifty paid and free apps are available with both scanning capabilities and hard-linking to URI. With BlackBerry devices, the App World application can natively scan barcodes. Windows Phone 7.5 is able to scan barodes through the Bing search app.
Housing types
The reader packaging can be distinguished as follows :
Handheld scanner
with a handle and typically a trigger button for switching on the light source.
Pen scanner (or wand scanner)
a pen-shaped scanner that is swiped.
Stationary scanner
wall- or table-mounted scanners that the barcode is passed under or beside. These are commonly found at the checkout counters of supermarkets and other retailers.
Fixed-position scanner
an industrial barcode reader used to identify products during manufacture or logistics. Often used on conveyor tracks to identify cartons or pallets which need to be routed to another process or shipping location. Another application joins holographic scanners with a checkweigher to read bar codes of any orientation or placement, and weighs the package. Systems like this are used in factory and farm automation for quality management and shipping.
PDA scanner (or Auto-ID PDA)
a PDA with a built-in barcode reader or attached barcode scanner.
Automatic reader
a back office equipment to read barcoded documents at high speed (50,000/hour).
Cordless scanner (or Wireless scanner)
a cordless barcode scanner is operated by a battery fitted inside it and is not connected to the electricity mains

Symbology Decoding Algorithm








The Symbology Decoding Algorithm for barcode scanners is the first symbology-based algorithm for decoding. The new technique utilizes information from the entire image to detect transitions in the signal, whereas the traditional algorithm relies on the maxima and minima. Traditional methods are prone to errors because the method relies on a derivative; they are also sensitive to noise and blurring. The Symbology Decoding Algorithm for Bar Code Scanners exhibited high resilience to blur and noise when tested on 1D Universal Product Codes. The algorithm can also be extended for use on 2D Universal Product Codes.

Scanners (barcode readers)





The earliest, and still the cheapest, barcode scanners are built from a fixed light and a single photosensor that is manually "scrubbed" across the barcode.
Barcode scanners can be classified into three categories based on their connection to the computer. The older type is the RS-232 barcode scanner. This type requires special programming for transferring the input data to the application program.
"Keyboard interface scanners" connect to a computer using a PS/2 or AT keyboard–compatible adaptor cable. The barcode's data is sent to the computer as if it had been typed on the keyboard.
Like the keyboard interface scanner, USB scanners are easy to install and do not need custom code for transferring input data to the application program.
Barcode scanners can be used in Google's mobile Android operating system via both their own Google Goggles application or 3rd party barcode scanners like Scan[15]. Nokia's Symbian operating system features a barcode scanner,[16] while mbarcode[17] is a QR code reader for the Maemo operating system. In the Apple iOS, a barcode reader is not natively included but more than fifty paid and free apps are available with both scanning capabilities and hard-linking to URI. With BlackBerry devices, the App World application can natively scan barcodes and load any recognized Web URLs on the device's Web browser. Windows Phone 7.5 is able to scan barcodes through the Bing search app.

Barcode






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 one-dimensional (1D). Later they evolved into rectangles, dots, hexagons and other geometric patterns in two 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; later, scanners and interpretive software became available on devices including desktop printers and smartphones.
The first use of barcodes was to label railroad cars, but they were not commercially successful until they were used to automate supermarket checkout systems, a task for which they have become almost universal. Their use has spread to many other tasks that are generically referred to as automatic identification and data capture (AIDC). The very first scanning of the now ubiquitous Universal Product Code (UPC) barcode was on a pack of Wrigley Company chewing gum in June 1974.[1]
Other systems have made inroads in the AIDC market, but the simplicity, universality and low cost of barcodes has limited the role of these other systems until the first decade of the 21st century, over 40 years after the introduction of the commercial barcode, with the introduction of technologies such as radio frequency identification, or RFID.

History


In 1948 Bernard Silver, a graduate student at Drexel Institute of Technology in Philadelphia, Pennsylvania, USA overheard the president of the local food chain, Food Fair, asking one of the deans to research a system to automatically read product information during checkout.[2] Silver told his friend Norman Joseph Woodland about the request, and they started working on a variety of systems. Their first working system used ultraviolet ink, but this proved too easy to fade and was fairly expensive.[3]
Convinced that the system was workable with further development, Woodland left Drexel, moved into his father's apartment in Florida, and continued working on the system. His next inspiration came from Morse code, and he formed his first barcode from sand on the beach. "I just extended the dots and dashes downwards and made narrow lines and wide lines out of them."[3] To read them, he adapted technology from optical soundtracks in movies, using a 500-watt light bulb shining through the paper onto an RCA935 photomultiplier tube (from a movie projector) on the far side. He later decided that the system would work better if it were printed as a circle instead of a line, allowing it to be scanned in any direction.
On 20 October 1949 Woodland and Silver filed a patent application for "Classifying Apparatus and Method", in which they described both the linear and bullseye printing patterns, as well as the mechanical and electronic systems needed to read the code. The patent was issued on 7 October 1952 as US Patent 2,612,994. In 1951, Woodland moved to IBM and continually tried to interest IBM in developing the system. The company eventually commissioned a report on the idea, which concluded that it was both feasible and interesting, but that processing the resulting information would require equipment that was some time off in the future.
In 1952 Philco purchased their patent, and then sold it to RCA the same year.

Collins at Sylvania


vDuring his time as an undergraduate, David Collins worked at the Pennsylvania Railroad and became aware of the need to automatically identify railroad cars. Immediately after receiving his master's degree from MIT in 1959, he started work at GTE Sylvania and began addressing the problem. He developed a system called KarTrak using blue and yellow reflective stripes attached to the side of the cars, encoding a six-digit company identifier and a four-digit car number.[3] Light reflected off the stripes was fed into one of two photomultipliers, filtered for blue or yellow.[citation needed]
The Boston and Maine Railroad tested the KarTrak system on their gravel cars in 1961. The tests continued until 1967, when the Association of American Railroads (AAR) selected it as a standard, Automatic Car Identification, across the entire North American fleet. The installations began on October 10, 1967. However, the economic downturn and rash of bankruptcies in the industry in the early 1970s greatly slowed the rollout, and it was not until 1974 that 95% of the fleet was labeled. To add to its woes, the system was found to be easily fooled by dirt in certain applications, and greatly affected accuracy. The AAR abandoned the system in the late 1970s, and it was not until the mid-1980s that they introduced a similar system, this time based on radio tags.
The railway project had failed, but a toll bridge in New Jersey requested a similar system so that it could quickly scan for cars that had purchased a monthly pass. Then the U.S. Post Office requested a system to track trucks entering and leaving their facilities. These applications required special retroreflector labels. Finally, Kal Kan asked the Sylvania team for a simpler (and cheaper) version which they could put on cases of pet food for inventory control. This, in turn, interested the grocery industry.

Computer Identics Corporation


In 1967, with the railway system maturing, Collins went to management looking for funding for a project to develop a black-and-white version of the code for other industries. They declined, saying that the railway project was large enough and they saw no need to branch out so quickly.
Collins then quit Sylvania and formed Computer Identics Corporation.[3] Computer Identics started working with helium-neon lasers in place of light bulbs, scanning with a mirror to locate the barcode anywhere up to several feet in front of the scanner. This made the entire process much simpler and more reliable, as well as allowing it to deal with damaged labels by reading the intact portions.
Computer Identics Corporation installed one of its first two scanning systems in the spring of 1969 at a General Motors (Buick) factory in Flint, Michigan.[3] The system was used to identify a dozen types of transmissions moving on an overhead conveyor from production to shipping. The other scanning system was installed at General Trading Company's distribution center in Carlsbad, New Jersey to direct shipments to the proper loading bay.

Universal Product Code


In 1966 the National Association of Food Chains (NAFC) held a meeting where they discussed the idea of automated checkout systems. RCA had purchased rights to the original Woodland patent, attended the meeting and initiated an internal project to develop a system based on the bullseye code. The Kroger grocery chain volunteered to test it.
In mid-1970, the NAFC established the U.S. Supermarket Ad Hoc Committee on a Uniform Grocery Product Code, which set guidelines for barcode development and created a symbol selection subcommittee to help standardize the approach. In cooperation with consulting firm McKinsey & Co., they developed a standardized 11-digit code to identify any product. The committee then sent out a contract tender to develop a barcode system to print and read the code. The request went to Singer, National Cash Register (NCR), Litton Industries, RCA, Pitney-Bowes, IBM and many others.[4] A wide variety of barcode approaches were studied, including linear codes, RCA's bullseye concentric circle code, starburst patterns and others.
In the spring of 1971 RCA demonstrated their bullseye code at another industry meeting. IBM executives at the meeting noticed the crowds at the RCA booth and immediately developed their own system. IBM marketing specialist Alec Jablonover remembered that the company still employed Woodland, and he established a new facility in North Carolina to lead development.
In July 1972 RCA began an eighteen-month test in a Kroger store in Cincinnati. Barcodes were printed on small pieces of adhesive paper, and attached by hand by store employees when they were adding price tags. The code proved to have a serious problem. During printing, presses sometimes smear ink in the direction the paper is running, rendering the code unreadable in most orientations. A linear code, like the one being developed by Woodland at IBM, however, was printed in the direction of the stripes, so extra ink simply makes the code "taller" while remaining readable, and on April 3, 1973 the IBM UPC was selected by NAFC as their standard. IBM had designed five versions of the UPC symbology for future industry requirements: UPC A, B, C, D, and E.[5]
NCR installed a testbed system at Marsh's Supermarket in Troy, Ohio, USA near the factory that was producing the equipment. On June 26, 1974, Clyde Dawson pulled a 10-pack of Wrigley's Juicy Fruit gum out of his basket and it was scanned by Sharon Buchanan at 8:01 am. The pack of gum and the receipt are now on display in the Smithsonian Institution. It was the first commercial appearance of the UPC.[6]
In 1971 IBM had assembled a team for an intensive planning session, day after day, 12 to 18 hours a day, to hash out how the whole system might operate and to schedule a rollout plan. By 1973 they were meeting with grocery manufacturers to introduce the symbol that would need to be printed on all of their products. There were no cost savings for a grocery to use it unless at least 70% of the grocery's products had the barcode printed on the product by the manufacturer. IBM was projecting that 75% would be needed in 1975. Even though that was achieved, there still were scanning machines in fewer than 200 grocery stores by 1977.[7]
Economic studies conducted for the grocery industry committee projected over $40 million in savings to the industry from scanning by the mid-1970s. Those numbers were not achieved in that timeframe and some predicted the demise of barcode scanning.[who?] The usefulness of the barcode required the adoption of expensive scanners by a critical mass of retailers while manufacturers simultaneously adopted barcode labels. Neither wanted to move first and results were not promising for the first couple of years, with Business Week proclaiming "The Supermarket Scanner That Failed."
Experience with barcode scanning in those stores revealed additional benefits. The detailed sales information acquired by the new systems allowed greater responsiveness to customer needs. This was reflected in the fact that about 5 weeks after installing barcode scanners, sales in grocery stores typically started climbing and eventually leveled off at a 10-12% increase in sales that never dropped off. There also was a 1–2% decrease in operating cost for the stores that enabled them to lower prices to increase market share. It was shown in the field that the return on investment for a barcode scanner was 41.5%. By 1980, 8,000 stores per year were converting.
The global public launch of the barcode was greeted with minor skepticism from conspiracy theorists, who considered barcodes to be an intrusive surveillance technology, and from some Christians who thought the codes hid the number 666, representing the number of the beast.[8] Television host Phil Donahue described barcodes as a "corporate plot against consumers".

Uses

Barcodes such as the UPC have become a ubiquitous element of modern civilization, as evidenced by their enthusiastic adoption by stores around the world; almost every item other than fresh produce from a grocery store, department store, and mass merchandiser has a UPC barcode on it.[citation needed] This helps track items and also reduces instances of shoplifting involving price tag swapping, although shoplifters can now print their own barcodes.[11] In addition, retail chain membership cards (issued mostly by grocery stores and specialty "big box" retail stores such as sporting equipment, office supply, or pet stores) use bar codes to uniquely identify consumers, allowing for customized marketing and greater understanding of individual consumer shopping patterns. At the point of sale, shoppers can get product discounts or special marketing offers through the address or e-mail address provided at registration.


Barcodes can allow for the organization of large amounts of data. They are widely used in the healthcare and hospital settings, ranging from patient identification (to access patient data, including medical history, drug allergies, etc.) to medication management. They are also used to facilitate the separation and indexing of documents that have been imaged in batch scanning applications, track the organization of species in biology,[12] and integrate with in-motion checkweighers to identify the item being weighed in a conveyor line for data collection.
They can also be used to keep track of objects and people; they are used to keep track of rental cars, airline luggage, nuclear waste, registered mail, express mail and parcels. Barcoded tickets allow the holder to enter sports arenas, cinemas, theatres, fairgrounds, and transportation, and are used to record the arrival and departure of vehicles from rental facilities etc. This can allow proprietors to identify duplicate or fraudulent tickets more easily. Barcodes are widely used in shop floor control applications software where employees can scan work orders and track the time spent on a job.


Some 2D barcodes embed a hyperlink to a web page. A capable cellphone might be used to read the pattern and browse the linked website, which can help a shopper find the best price for an item in the vicinity. Since 2005, airlines use an IATA-standard 2D barcode on boarding passes (BCBP), and since 2008 2D barcodes sent to mobile phones enable electronic boarding passes.[13]
Some applications for barcodes have fallen out of use; In the 1970s and 1980s, software source code was occasionally encoded in a barcode and printed on paper( Cauzin Softstrip and Paperbyte[14] are barcode symbologies specifically designed for this application.), and the 1991 Barcode Battler computer game system used any standard barcode to generate combat statistics.
In the 21st century many artists have started using barcodes in art, such as Scott Blake's Barcode Jesus, as part of the post-modernism movement.

Symbologie


The mapping between messages and barcodes is called a symbology. The specification of a symbology includes the encoding of the single digits/characters of the message as well as the start and stop markers into bars and space, the size of the quiet zone required to be before and after the barcode as well as the computation of a checksum.
Linear symbologies can be classified mainly by two properties:
Continuous vs. discrete: Characters in continuous symbologies usually abut, with one character ending with a space and the next beginning with a bar, or vice versa. Characters in discrete symbologies begin and end with bars; the intercharacter space is ignored, as long as it is not wide enough to look like the code ends.
Two-width vs. many-width: Bars and spaces in two-width symbologies are wide or narrow; the exact width of a wide bar has no significance as long as the symbology requirements for wide bars are adhered to (usually two to three times wider than a narrow bar). Bars and spaces in many-width symbologies are all multiples of a basic width called the module; most such codes use four widths of 1, 2, 3 and 4 modules.
Some symbologies use interleaving. The first character is encoded using black bars of varying width. The second character is then encoded, by varying the width of the white spaces between these bars. Thus characters are encoded in pairs over the same section of the barcode. Interleaved 2 of 5 is an example of this.
Stacked symbologies repeat a given linear symbology vertically.
The most common among the many 2D symbologies are matrix codes, which feature square or dot-shaped modules arranged on a grid pattern. 2-D symbologies also come in circular and other patterns and may employ steganography, hiding modules within an image (for example, DataGlyphs).
Linear symbologies are optimized for laser scanners, which sweep a light beam across the barcode in a straight line, reading a slice of the barcode light-dark patterns. Stacked symbologies are also optimized for laser scanning, with the laser making multiple passes across the barcode.
In the 1990s development of charge coupled device (CCD) imagers to read barcodes was pioneered by Welch Allyn. Imaging does not require moving parts, as a laser scanner does. In 2007, linear imaging had begun to supplant laser scanning as the preferred scan engine for its performance and durability.
2-D symbologies cannot be read by a laser as there is typically no sweep pattern that can encompass the entire symbol. They must be scanned by an image-based scanner employing a CCD or other digital camera sensor technology.