Embodiments of this invention will now be described with the reference to the accompanying drawings in which:
An embodiment, in which the present invention is applied to a method and system for the implementation of utilizing fabric as storage medium based on weave code, will be described with the reference to the accompanying drawing. The present invention is not limited to the implementation of utilizing fabric as storage medium based on weave code but applicable to product development for the purpose of identification, quality control, tracing, authorization, copyright protection, etc.
Woven fabric is a flexible sheet interlaced by two sets of yarn: warp and weft. The mechanism of yarn interlacing can be regarded as one of binary system for information representing and recording in the field of information technology. The weaving machine-loom and its product-fabric can be considered as the original prototype of computer and two-dimensional binary system.
The concept of weave code that means information can be represented, logically operated and transferred by the interlacing style of warp and weft. There are two crossing status mentioned here: warp on the weft and weft on the warp, these two statuses can be formatted in binary system. In the present invention, a principle for coding is defined, which is 1 represents warp on the weft and 0 represents weft on the warp. Therefore, the surface of one piece of fabric is a matrix of weave points. According to the principle, these weave points present a binary code matrix. And this binary code matrix can be used for storing and transmitting information including text, visual signal and audio signal.
Some examples of weave code unit and its mechanism are described in table 1. Weave pattern can be represented as one binary matrix, which is the combination of these basic weave code unit.
Supposing the yarn number in one weave unit is N, then the number of yarn interlacing style will be 2N×N. When N is equal to 6, then the number of weave patterns could reach 226=68719476736. The yarn thickness could be the scale of millimeter, thus one unit of weave pattern can occupy a small area, and however, the memory capability of it is enough for containing all kinds of information, including text, number, figure and music etc.
The color of yarn can also be used to represent information, and applied in the design of weave code, in this case, the number of pattern in one weave unit could reach 2N×N·224N·224N, it provides a very huge capacity for the information recording and transmitting.
As illustrated in
Briefly explained the method would start by the input of information including text, visual signals (image or photo or picture etc.) and audio signals (music or sounds). Text can be input through the keyboard of computer; visual and audio signals can be digitalized using some available digital facilities, which can convert the analog signals into digital signals, such as digital camera, scanner, recorder and other digital facilities.
Almost every type of machine used its own file format for text, image and audio data, some file formats have been standardized, and in general it is possible to define conversions between almost any pair of file formats. In this case, we only describe the mechanism of converting raw data into weave code.
Text is a combination of characters “A-Z, 0-9, and etc.”, which can be represented using binary codes, such as ASCII, as shown in table 2. Let X=[x1, x2, x3, . . . , x8] and
Image is a matrix of pixels, with the gray level varying from 0-255, which can be represented using 8-bit format as shown in table 2. Let Pm,n=[p1 p2, . . . , p8] is one pixel, Wm,n is its corresponding weave code unit, then
Audio signal is a stream of audio data, which can be 8 bits unsigned. Let Sm,n[=s1 s2, . . . , s8] is one pixel, Wm,n is its corresponding weave code unit, then
Weave code look-up table is the database of those weave elements corresponding to information: characters, number, pixel value, etc., so the raw data could be translated into a new weave code file based on this look-up table. Before the translating, encrypted process could be added to protect the information. Our weave code system is compatible with any other coding technologies, so weave code products can be encoded or decoded based on any other coding system; it is still in the field of our invention.
left boundary 32 is one column of 2/1 twill weave
right boundary 33 is one column of 1/2 twill weave
lower boundary 35 is designed to be one row of weave
other designs could also used to identify these four boundaries from coding region. Code matrix region contains the codes of information. It contains a header, information that describes the attributes of weave code, followed by the raw data that represents text, visual and audio signals. The head structure could be defined as:
The hardware part of weave code system is composed of weaving machine 11 (weave code manufacturing), image digitization facility of weave code (code scanner 12), and computer 13 (information management), inputting facilities 14 (keyboard, camera, scanner, etc.) and output facilities 15 (displaying and printing of weave code) as shown in
As shown in
The algorithms of code analysis module 23 for the weave code system are based on grid-driven model together with dual side scanning and matching techniques. Grid-driven model means that the yarn alignment in fabric is modeled as grid, and then the yarn tracing style in fabric could be identified along its central grid according to matching information of dual side images; dual side scanning means scanning both sides of one piece of fabric simultaneously; dual side matching means finding the corresponding pixels of both side images at the same position; thus the image analysis module has the function of identify the yarn interlacing status of fabric (weave code matrix). The code scanning module 22, code analysis module 23 and decoding module 24 have been disclosed in a China Patent Application, the application number is CN 200610067478.1.