Академический Документы
Профессиональный Документы
Культура Документы
Residence : College :
Vedula House, VEDA Institute of Information
H no 6-16/1, Technology Pvt. Ltd., (VEDA IIT)
Savarkar Nagar, Annapurna Studios lane,
Nacharam X Roads, Plot No. 90, Road No 2,
Hyderabad 500076. Banjara Hills,
Hyderabad - 500 034
Abstract: Introduction:
The coding formats available today like Color is the result of interaction between
the barcodes have proved to be a light source, an object and an observer.
successful because of their various In case of reflected light, the light falling
applications like coding of products by a on an object will be reflected or
manufacturer, coding of books by a absorbed depending on the surface
publisher, etc. The continuous characteristics such as reflectance and
advancement in the sensors technology transmittance. For example, red paper
can provide advancement in the coding will absorb most of the greenish and
format. The improvement in color bluish part of the spectrum while
sensors technology can give rise to a reflecting the reddish part, making it
better and efficient coding technique. appear red to the observer.
One such method “color code
technology”, is proposed and described Any color is the combination of three
in this thesis. primary colors Red, Green and Blue in
fixed quantities. A color is stored in a
Due to its advantages like the computer in form of three numbers
compactness, security, and efficiency, representing the quantities of Red, Green
this code is well suited to be used as a and Blue respectively. This
substitute for all available codes like the representation is called RGB
barcode. representation which is used in
computers to store images in BMP,
In this paper, we provide some insight JPEG and PDF formats. Here each pixel
into color perception, measurement, is represented as values for Red, Green
specification, and look at couple of ways and Blue.
on how data can be produced by a color
sensor. Then we study the designing of Thus any color can be uniquely
the color code encoding technology and represented in the three dimensional
its decoding using color sensor and a RGB cube as values of Red, Green and
method to compress data using colors. Blue.
3
Color sensor circuit and operation: Thus we get three output voltage levels
for a single color. Each output depends
on the intensity or hue of respective
color. The maximum possible output
voltage is given the value 255 on scale
and the whole length is divided into 256
equal parts (pixel length). Though output
is analog, we are considering it as digital
i.e. step function of a value is
considered. For example, the range of
A light to analog-voltage-color sensor 123.01 to 123.99 is considered as 123.
comprises an array of photodiodes Thus, the output of our sensor is exactly
behind color filters and an integrated computer representation and can be
current-to-voltage conversion circuit directly fed into computer using
(usually a transimpedence amplifier). interfacing circuits (multiplier).
Light falling on each of the photodiodes
is converted into a photocurrent, the Color sensing:
Bar coder readers decodes a bar code by There are two basic advantages to
scanning across the bar code and barcode over manual data entry: Speed,
measuring the intensity of the light and Accuracy. For 12 characters of data,
reflected back. The light variation is keyboard entry takes 6 seconds.
converted into digital signal. Due to Scanning a 12 character barcode takes
barcode design, it does not matter we 0.3 seconds. The error rate for typing is
scan from the left to right or from the one substitution error in every 300
right to left. characters types. Error rated for barcode
range from 1 substitution error in every
15,000 to 36 trillion characters scanned
(depending on the type of barcode). Data
is coded easily using some coding
softwares before printing barcode label
and decoded using corresponding
A barcode reader contains two parts. The decoding software. Thus barcode
first part is the scanner that scans the represented data is secured.
image and coverts into digital
representation (01111000). It consists of Disadvantages:
Disadvantages with barcode can be Data printed using color code can be
rectified using rainbow code. Color code made secured by using an encoding
defines more numbers than barcode. A technique. Key (X, Y, Z) can be used for
small circle is enough to represent any encoding purpose. For example, if we
number. Since we won’t be using more have to print a color representing (R, G,
than 1 lakh on barcode, we can even B), then instead of printing that color
represent last two digits as paisa. E.g. (R+X, G+Y, B+Z) can be printed. X, Y,
256 can be taken as 2.56, 16777216 as Z values can be positive or negative
167772.16 etc. Even if the label is integers. The person who knows the key
crumpled, the color won’t change. Thus can move back and get to the original
data in color code is more reliable. The cell. Thus the data printed using color
sensor need not be placed horizontally. It code technology is highly reliable and
can be focused on the circle from any secured. Confidential data can be
angle. Data scanning time is also less transmitted using this “Key” concept.
because only a small dot needs to be
Data Encoding and Compression
sensed and output voltages will be
using ASCII:
available in no time (propagation delay
from input to output is very less). Since
American Standard Code for
we are already representing colors using
Information Interchange (ASCII) is a
256 color mode in a computer, data can
character encoding based on the English
be fed into computer very easily. An
alphabet. ASCII codes represent text in
ordinary inkjet printer can print all these
computers, communications equipment,
colors.
and other devices that work with text.
Using ASCII, 128 characters are
Barcodes are being used widely because
encoded. Each character is represented
they have many advantages and very few
by 7 bits.
disadvantages. If we can rectify those
few disadvantages using color codes,
they will easily replace barcodes in all
applications.
8
Data encoding:
We use first sub cube (1) to define all • We can use a key as defined
the characters in ASCII table. The first earlier and send different colors
128 parts of each color are used to representing the data. The
denote a character in the ASCII table. receiver can recover the original
For convenience, we use the same order. data only if he knows the key.
Since a color is defined by three
coordinates, three different characters Data compression:
transmitting secured and confidential word (Including all fonts and formats).
data, the following methods can be used. We can make a database where each
color (from these remaining seven sub
• We can shuffle the order and cubes) represents a word. Then any word
maintain a database of shuffled which has more than 3 letters (or
order. Three different databases characters) can be defined by a color
can be maintained for Red, Green which requires three 8 bit numbers to be
and Blue for more security. Thus represented. The words which are not in
characters are shuffled before the dictionary (names, places etc) are not
transmission and after reception; compressed and are represented by
the receiver can retrieve original colors in first quadrant.
data by using same set of
databases.
10