The present invention relates to two-dimensional color code (3 bits
CCC). More particularly, the present invention relates to a method to obtain a multicolor and reduced cell which converts digital data into two-dimensional color code (3 bits CCC).
The innovation of various barcode designs functions are to record and store data information via Secured Printable Digital Data platform. The conventional 1-dimensional black-and-white code that are still being used widely can only store short numerical data. The 2-dimensional black and white code can improve data capacity but is limited to certain character-sets and cannot store larger electronic data such as image and video. Black and white code represents the binary bit for each grid.
To increase the density of data, the invention proposes to add colors with bit values for each cell. The present color code represents eight colors makes per cell which can store 3 bits data. There are existing patented technologies/prior arts relating to the Color Code, such as Information Code viewer under U.S. Patent No. US 2011/0110586 A1 and Method For Creating and Method for Decoding Two- Dimensional Color Code viewer under EP 2 544 128 A1.
The claim of this invention is that, the more colors are used, the higher the density. When sixteen colors are used, each cell carries 4 bits of information instead of 3 bits. The improvement of data density by this invention allows for more data not possible under the traditional black-and-white code.
The basic colors used are modeled using RGB color space. For sixteen colors, the color-separation is more complicated, the method of which has to be identified. An optimization method is therefore used to cluster each colors around RGB color space. Thus, the method can avoid the color mixing with others colors.
The present invention aims to obtain a multicolor and reduced cell which converts digital data into two-dimensional color code. The data conversion to digital data such as text, image, audio and video into 4 bits Color Code results in improved and enhanced data storage, presenting an advantage over the existing prior art. This therefore eliminates and overcomes the existing problems prevalent in the prior art that uses only a 2-dimensional 3-bit color code with limited size/storage capacity.
The size for each cell is fixed into 10×10 dot. But, it's better if the size for each cell is smaller than 10×10 pixel to store more data capacity as in the subject invention. The size of cells is determined based on digital-camera or smartphone-camera resolution for easier processing to decode the image of Color Code.
For generation of data Color Code, the input (compressed/encrypted/reed Solomon) bitstream are taken as 4 bits and translated to color. The colors for 4 bits Color Code are 16 colors which include red, blue, green lime, cyan, magenta, yellow, black, white, maroon, teal, green, navy blue, purple, silver, gray, and olive. Each color of cell carries data information containing error correction codes. The information is written in distributed fashion method inside the color grid to ensure that interruption in certain part cell does not affect the decode process. This generates precise and easy to read data records.
The invention will now be described in greater detail, by way of example, with reference to the drawings.
Referring to
Guide Code. Some of the attributes captured are the (compressed) source file length, its type, its file format, the code's cell size, the code's cell column count, encrypted and compressed markers, and number of bits per cell. A minimum of 26 colors including left most Black and right most Blue Positional Guide which is used for determining the rotation and flipping of the code during decoding. Thus, the rest of 24 colors represent the file attributes which consist of 16 bits (8 colors) for (compressed) source file Length, 4 bits (2 colors) for it's file type, 4 bits (2 colors) for its file format, 4 bits (2 colors) for cell size, 16 bits (8 colors) for cell column count, 2 bits (1 color) for encrypted & compressed markers, and 2 bits (1 color) for number of bits per color. Other colors beyond the 26 colors are simply paddings to ensure the total columns are as the same size as Data Color Code. Data color code consists of 4 bits actual bit-streams data (with compression and/or encryption and or Reed-Solomon error detection and recovert code applied as nessesary) represented as 16 different colors.
Since a raw source data may be producing bigger CCC image when encoded, it is best to compress the source data first to reduce the size of the bit-stream before conversion into Color Code (101). When desired, the input file can be compressed according to the best available method. In the same way, the input file can be encrypted with RC4, given a password. Source data file of type text and audio (MIDI) are compressed with Huffman Coding encryption method, while graphical images and short videos are down-sampled as JPEG and MP4 formats.
To allow users or service providers to restrict access to the decoded data, RC4 encryption is used (102). For the purposes of simplicity and fast-processing, simple symetrical encryption is used. RC4 with reasonably strong password is deemed enough to provide data hiding from unintended parties.
When CCC image is captured with a camera, resulting captured images are expected to have errors in the image reproduction, either due to technical limitations of the camera, or deliberate image distortions like spilled ketchup. With Error detection and correction mechanism (103), errors creeping from above scenario can be reduced. For this invention, Reed-Solomon (RS), with parameters RS(255, 223) is used.
For every 223 bytes of source (compressed or/and encrypted) data, 32 bytes of RS Error Detection and Correction codes is appended to the data to make a 255-byte RS system chunks.
Depending on the number of bits per color setting used during encoding, bits are taken from right to left of every byte and encoded into an RGB color (104). Since the the claim of this invention specifies 4-bits per cell, the code can be presented with 16 different colors. 4 bits sequence converts into 16 different color such as “0000=1=red”, “0001=2=green lime”, “0010=3 =blue”, “0011=4 =cyan”, “0100=5=magenta”, “0101=6=yellow”, “0110 =7 =black”, “0111=8 =white”, “1000=9=maroon”, “1001=10=teal”, “1010=11=green”, “1011=12=navy blue”, “1100=13=purple”, “1101=14=silver”, “1110=15=gray”, and “1111=16=olive”. The RGB color model values representing the color are:
After the conversion, the colored cell is written in a distributed fashion (
Number | Date | Country | Kind |
---|---|---|---|
PI 2015001560 | Jun 2015 | MY | national |