Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

USE OF COLOUR SENSORS IN COLOUR CELLS TECHNOLOGY:

A NEW APPROACH FOR CODING


Anand Vedula
VEDA IIT, Hyderabad
anand.vedula@gmail.com
Ph: 9949055417

Abstract To make coding more efficient we here


use a new format of coding technique which is
The coding formats available today like more efficient than the available coding formats.
the barcodes have proved to be successful
because of their various applications like coding The new technique presented in this
of products by a manufacturer, coding of books paper is the color cell technology which greatly
by a publisher, etc. improves the coding of information and gives far
The continuous advancement in the more applications.
sensors technology can provide advancement in
the coding format. The future of the coding techniques
The improvement in color sensors shows that we may get a code which is just the
technology can give rise to a better and efficient size of a small dot and it can store all the
coding technique. One such method is the color required information.
cells technology which is proposed and
described in this thesis. Color sensors technology
Due to its advantages like the
compactness, security, and efficiency, this code The important aspect for any coding
is well suited to be used as a substitute for all technique is its ability to store and retrieve
available codes like the barcodes. information quickly and correctly. The basic
In this paper, the designing of the color process involved in formation of a coding
cells encoding technology and its decoding using technology is the encoding and the decoding
the color sensors is studied. process based on which the efficiency of any
code can be determined.
Introduction
Size and shape of color cell
The increasing demand for storing
information in an encoded format has given rise In this paper the color cells of
to various encoding techniques. One of the first dimensions 4mmX4mm is used, which basically
successful encoding techniques is the barcodes. results in a square cell pattern.
A barcode stores information in the widths and
spacing of printed parallel lines, which is most Encoding
widely used today.

The demand for a more efficient coding The color cells technology basically
technique gave rise to other coding formats like uses the different intensities of the basic colours
that of PDF417, 2D barcode etc. these codes are (red, green and blue) for its encoding process.
mainly used to encode the various items from a Any color can be obtained by mixing these
manufacturer, books published by a publishing primary colors Red, Green and Blue in different
company, etc. quantities and can be represented uniquely.
The innumerable applications of the Hence by using different colors, different
coding techniques triggered the necessity for a characters can be encoded which can be used for
more efficient coding technique. coding.
In the color cell technology, 6 bits are
used to encode each color, i.e., apportioned with
8 bits each for red, green and blue, giving a
range of 4 possible values, or intensities, for each “01 10 10” (0.25-0.5 intensity red, 0.5-0.75
hue. With this system, 64 (43 or 26) discrete intensity Green, 0.25-0.75 intensity Blue) for ‘Z’
combinations of hue and intensity can be
specified. The lower case characters are
represented using the binary sequences:
Each basic color can have 4 different
intensities; let the intensities be 0.25, 0.5, 0.75, “01 10 11” (0.25-0.5 intensity red, 0.5-0.75
and 1.0, assuming the intensity 1.0 indicates full intensity Green, 0.75-1.0 intensity Blue) for ‘a’
saturation (or full intensity). to “11 01 00” (0.75-1.0 intensity red, 0.25-0.5
intensity Green, 0-0.25 intensity Blue) for ‘z’.
The intensities can be represented in
digital format by assigning The 10 decimal digits can be
represented using the binary sequence
00 to the intensity 0-0.25,
01 to the intensity 0.25-0.50, “11 01 01” (0.75-1.0 intensity red, 0.25-0.5
10 to the intensity 0.50-0.75, intensity Green, 0.25-0.5 intensity Blue) for ‘0’
11 to the intensity 0.75-1.00. to “11 11 10” (0.75-1.0 intensity red, 0.75-1.0
intensity Green, 0.5-0.75 intensity Blue) for ‘9’.
The remaining two binary sequences are “00 00
00” and “11 11 11”.

These are special purpose colors.

0 0.25 0.5 0.75 1 “00 00 00” (0-0.25 intensity red, 0-0.25


intensity Green, 0-0.25 intensity Blue), this is an
Hence taking the digital coding exceptional case where we use “zero” intensities
sequence as RGB: of each color.
Intensity of red (2 bits)
Intensity of green (2 bits) Hence the binary code “00 00 00”, (0
Intensity of blue (2 bits) intensity red, 0 intensity green and 0 intensity
The digital form of any color consists of blue), corresponds to color BLACK which is
6 bits as “RRGGBB”, where each letter ‘R’,’G’ used for starting and ending bits.
and ‘B’ takes the value either ‘0’ or ‘1’.
“11 11 11” is another exceptional case
where only the fully saturated colors are used.
Description of colors for characters
Hence the binary code “11 11 11” (‘1’ intensity
red, ‘1’ intensity green and ‘1’ intensity blue),
By using a 6 bit code, a total of 64
corresponds to color WHITE, which is another
different characters can be specified. The most
special purpose code used for spacing between
common characters which can be used
two colors.
effectively are letters from the English alphabet
and the decimal digits. In this code we use 26
upper case letters and 26 lower case letters of Description of the code
English alphabet and 10 digits, which make a
total of 62 characters which can be used to Another important aspect required for
encode 62 of the 64 codes. The remaining 2 coding is to define the coding pattern. The color
codes are reserved for special purpose. cells technology as proposed uses the following
format for coding.
The colors and the corresponding binary
sequence can be used for encoding. The first and the last cells are BLACK
cells or “00 00 00” cells.
The upper case characters are
represented using the binary sequences: Any sequence starts and ends with a
“00 00 01” (0-0.25 intensity red, 0-0.25 intensity BLACK cell, the first encountered Black cell
Green, 0.25-0.5 intensity Blue) for ‘A’ to represents the start of the coding sequence and
the last Black cell represents the end of coding An example code
sequence.

All the cells in between the BLACK


cells are coding cells, i.e., they represent a code.

A white cell is placed between each and


every cell to denote the end of each cell and start To calculate the error bit
of next cell.
(12*1) + (3*2) + (48*3) + (60*4) + (15*5) +
Handling errors in the code (51*6) = 783.

Hence parity cell should have digital


Any code is prone to errors due to lack equivalent of 17(01 00 01) i.e. 0.5 red and 0.5
of high precision devices and due to noise and blue.
fading effects. To handle the errors properly the
following measures are taken during the coding
process. Memory space requirements
1) The cell dimensions are made such that
each cell consists of 16 sub cells in the The amount of memory, in bits, can be
form of a 4X4 matrix. During decoding found by multiplying the number of bits/cell
each cell is scanned at all the 16 with the total number of cells present. A 64 cell
different sub-cells and the code which is pattern each of size 6 bits occupies 6 X 64 bits of
in majority is chosen. memory space. This equals 384 bits to store the
2) Error correction: To detect when an details of all cells.
error occurs an extra bit is used at the
end of the coding cells and before the
ending black cell. The following
Decoding the color cells
procedure is adopted to choose the color The color cells can be decoded in a
of the last cell. number of ways by using color sensors,
scanners, cameras, etc.
Each cell is multiplied by n, where ‘n’ is the
corresponding location from the starting
black cell, (the first cell after the start black Use of Color sensor
cell will have the location ‘1’ and second Color sensor can be very effectively
cell will have location ‘2’, etc.), which and used for the decoding of the color cells in all
all such available values are added up to get general applications like that of a supermarket,
a certain value, the last cell is chosen such etc.
that the total added value of all the cells is a
multiple of 50.
Color sensor circuit and its operation
By using this type of correction, occurrence
of errors can be easily determined by just
using one parity cell. The use of
multiplication factor n ensures that a
positive error form one cell is not cancelled
by the negative error from another cell. The
use of 50 as the multiple for the total sum
ensures that the use of Black cell can be
avoided as the parity cell.
A light to analog-voltage-color sensor
comprises an array of photodiodes behind color The color cells technology can be used
filters and an integrated current-to-voltage to replace the existing barcode technology to
conversion circuit (usually a transimpedence encode the different items of a supermarket
amplifier). Light falling on each of the and in other applications where barcodes are
photodiodes is converted into a photocurrent, the used; this application is discussed in detail
magnitude of which is dependent on both the later in this thesis.
brightness wavelength (wavelength due to the
color filter) of the incident light. The red, green 2) Encoding automobiles:
and blue transmissive color filters will reshape
and optimize the photodiode’s spectral response. The color cells can be used to encode
Properly designed filters will result in a spectral automobiles which help in easy
response for the filtered photodiode array that identification of automobiles especially
mimics that of the human eye. The photocurrents during crimes, since the color cells cannot
from each of the three photodiodes are converted be easily tampered; it gives good
to VRout, VGout, VBout using a current-to-voltage information about the vehicles crossing a
converter. Thus we get three output voltage particular area.
levels for a single color. Each output depends on
the intensity or hue of respective color. The 3) Use in cellular phones:
maximum possible output voltage is given the
value 3 on scale and the whole length is divided Color codes can be used in cellular
into 4 equal parts (pixel length). Though output phones to encode all the cell phones
is analog, we are considering it as digital i.e. step available with a different code, this helps in
function of a value is considered. For example, finding the cell phone easily during thefts.
the range of 3.01 to 3.99 is considered as 3.
Thus, the output of our sensor is exactly
computer representation and can be directly fed
4) Encoding ASCII:
into computer using interfacing circuits
(multiplier). Color cells technology can also be used
for encoding all ASCII characters with a
different color cell. The use of 9 bits code (3
Color sensing bits for each color) can be used to obtain
512 different color cells and hence can be
easily used to encode all the characters of
ASCII, which has only 128 characters.

5) Application in Military And High


Security Areas:
The use of very high bit encoded
sequence of colors finds use in sending a
highly secure data especially in the printed
form. By using up to 24 bits of information,
apportioned with 8 bits each for red, green
A light source and an object are kept
and blue, giving a range of 256 possible
very near to each other. Light reflects on the
values, or intensities, for each hue. With this
object and falls on the sensor’s lenses. Then
system, 16,777,216 (2563 or 224) discrete
sensor operation takes place and three output
combinations of hue and intensity can be
voltages are obtained for Red, Blue and Green
specified .Normally; people cannot
respectively.
distinguish more than a few hundred hues.
Hence by using this, high security for
The main areas of application of color the data can be achieved since the decoding
cells process requires a very high precision
scanner and the colors cannot be detected by
the human eye.
1) Replacing bar code technology
6) Encoding all the English words encoding the manufacturer’s details and the
The use of color cells technology items produced by the manufacturer. The
enables us to encode all the words in the following procedure can be used.
English language. By using 30 bits of
information apportioned with 10 bits each The number of color cells used for this
for red, green and blue, giving a range of purpose is 7 (excluding the start and end cells).
1024 possible intensities for each hue. With The first 3 cells gives the information of the
this, 1,073,741,824 (10243 or 230 ) different manufacturer’s identity and the next 3 cells gives
color cells can be formed. This enables the the information about the product identity and
encoding of all the English words into the the last cell is used for error checking. To make
color cells format. the code more free from errors, the
corresponding character is used below the
Hence by using this technology a highly corresponding cell which enables the product
encoded language can be produced which identification in case of unpredictable errors.
can be used for security purposes.

This encoding mainly requires the use Advantages of replacement of color cell
of very high quality scanners which are not technology as a replacement for bar
yet available. The technology of the future codes:
ensures the use of this type of coding.
1) SPACE REQUIREMENT: The space
required to represent a color cell code is
2D and skating of color cells: far less that the commercially available
barcode.
In order to encrypt more data 2D color
cells or staking of cells can be used. 2) Larger number of products can be
encoded: the use of color cells
In the 2D color cells technology, the technology enables us to identify
code is organized in the form of an mXn matrix. 238,328 companies and 238328
products of each company which is far
In 2D color cell technology two BLCK grater than the 12 digit bar code which
cells are used as starting and ending cells instead encodes only 99,999 companies and
of single BLACK cell which differentiated this 99,999 products of each company.
code from the conventional 1D type of color cell
coding.
Conclusion:
Each row of the 2D color cell have their
own start and stop cells( 1 Black cell), which can
be decoded in the sane format as that of the 1D The use of color cells technology reduces
color cell decoding. the size of the code to a good extent and a very
large number of products can be coded using a
Hence the starting of the first row and small code sequence, and this code being less
the ending of the last row consists of 2 Black prone to errors, is highly efficient. The
cells which indicate the beginning and ending availability of color sensors technology makes
and single black cells indicate the starting and the decoding process very efficient. Hence, due
ending of rows of the 2D color cell code. to these advantages, the color cells technology
can be used effectively in its application areas.

References
Color cells as a replacement for bar
codes: [1] Sensors Handbook by: Soloman and Sabrie
[2] The Bar Code Manual - Eugene F. Brighan
The color cells technology can be [3] http://www.keyence.com/products/sensors
effectively used as a substitute for barcodes. For
[4] http://www.bartronicsindia.com/

You might also like