CN106056021B - Volume-variable color 2 D bit stream data communication means and system based on form and aspect - Google Patents

Volume-variable color 2 D bit stream data communication means and system based on form and aspect Download PDF

Info

Publication number
CN106056021B
CN106056021B CN201610410669.7A CN201610410669A CN106056021B CN 106056021 B CN106056021 B CN 106056021B CN 201610410669 A CN201610410669 A CN 201610410669A CN 106056021 B CN106056021 B CN 106056021B
Authority
CN
China
Prior art keywords
color
code
data
frame
lump
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610410669.7A
Other languages
Chinese (zh)
Other versions
CN106056021A (en
Inventor
朱思宇
张晔
赵性雅
王新兵
甘小莺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Jiaotong University
Original Assignee
Shanghai Jiaotong University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Jiaotong University filed Critical Shanghai Jiaotong University
Priority to CN201610410669.7A priority Critical patent/CN106056021B/en
Publication of CN106056021A publication Critical patent/CN106056021A/en
Application granted granted Critical
Publication of CN106056021B publication Critical patent/CN106056021B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10544Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum
    • G06K7/10712Fixed beam scanning
    • G06K7/10722Photodetector array or CCD scanning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/14172D bar codes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/146Methods for optical code recognition the method including quality enhancement steps
    • G06K7/1478Methods for optical code recognition the method including quality enhancement steps adapting the threshold for pixels in a CMOS or CCD pixel sensor for black and white recognition

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Toxicology (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Optical Communication System (AREA)
  • Color Image Communication Systems (AREA)

Abstract

The present invention provides a kind of volume-variable color 2 D bit stream data communication means and system based on form and aspect, obtains the color discrimination of photograph taking equipment, and finds out the number of colors that two dimensional code capacity can be maximized in the equipment;Check bit and mask are segmented and added to initial data according to selected optimal number of colors, are carried out color mapping followed by the color set and data found out by color generating algorithm, are generated color 2 D code;The registration pattern that two dimensional code is found in each photo positions each color lump, then carries out color identification according to the colour table in code, finally maps the corresponding data of the color of identification, obtains the data transmitted by verifying and going after mask.The invention proposes color generating algorithms, improve color recognition rate, improve the capacity of conventional two-dimensional code, and transmit data between devices for two-dimentional code stream as a kind of communication mode, efficiency of transmission is high.

Description

Volume-variable color 2 D bit stream data communication means and system based on form and aspect
Technical field
The present invention relates to two dimensional code and related communications technologies, and in particular, to a kind of volume-variable based on form and aspect is colored Two-dimentional bit stream data communication means and system.
Background technique
Communicated between screen and camera (Screen to camera communication, SCC) be it is a kind of in recent years very Popular short distance point-to-point communication mode.In SCC, the file of transmission is encoded into two-dimentional code stream, and is shown in transmitting terminal Screen on, receiving device by constantly shoot transmitting terminal screen and decoding, with receive send file.This communication mode Independent of hardware device special on mobile phone, and due to that must shoot transmitting terminal screen, SCC also have safety well and Privacy characteristic.
Nowadays, two dimensional code is widely used in daily life, there is barcode scanning software in 2014 years on certain Android platform Nearly 100,000,000 download.However, conventional two-dimensional code limited capacity limit its further develop.Widely used QR code is only capable of By increasing color lump quantity in code, store most 2953 bytes, but code block size can strongly reduce, be decoded into power also can under Drop.In addition, each color lump is only capable of storage 1bit information in traditional black and white two dimensional code.It is main to pass through two kinds in existing research Mode improves the transmission rate of two-dimentional code stream: color 2 D code and two-dimentional code stream.Using the form of two-dimentional code stream, can pass through Faster frame rate (rate of transformation two dimensional code frame) improves transmission rate.However, as asynchronous individual event transmission mode, Can cause serious frame Aliasing Problem using excessively high frame rate in SCC so that be in the photo that receiving end receives multiple two The aliasing for tieing up code, can not decode.
Other research work promote the capacity of each color lump by introducing color in traditional black and white two dimensional code.Assuming that N kind color is used in two dimensional code, each color lump then can store log2The information of N bit.Although having in existing research Two dimensional code has used 4 kinds or even 8 kinds of colors carry out data transmission, but these researchs do not illustrate that they select the original of color Cause, there are also the influences for selecting different colours caused to transmission.There is which potential factor to influence whether the face in shooting photo Color identification was not also considered in existing research.Although have referred in article color selection it is important in two dimensional code Property, but the algorithm there is no being furtherd investigate to this, more without proposing color selection and identification.In addition, the pole of color identification Limit is not investigated, if the use of more colors can be still a unknown problem in two dimensional code.
Summary of the invention
For the defects in the prior art, the object of the present invention is to provide a kind of volume-variable color 2 D based on form and aspect Bit stream data communication means and system.
The volume-variable color 2 D bit stream data communication means based on form and aspect provided according to the present invention, including walk as follows It is rapid:
Number of colours Optimization Steps: it is measured, is surveyed by the photographic quality that shooting test two dimensional code figure shoots equipment The color discrimination of the equipment is obtained, and finds out number of colors when can maximize two dimensional code capacity in equipment;
Color 2 D code generation step: transmitting terminal is segmented initial data according to selected optimal number of colors, and Check bit and mask are added, the data to be transmitted that obtains that treated, the color found out between color set and data to be transmitted is reflected Relationship is penetrated, the color 2 D code comprising data to be transmitted information is generated;
Color 2 D code identifies decoding procedure: determining for color 2 D code is found in each photo received in receiving end Bit patterns position each color lump in color 2 D code, and carry out color identification according to the colour table in color 2 D code, will The color conversion of identification is corresponding data, obtains the initial data transmitted by verifying and going after mask.
Preferably, the number of colours Optimization Steps include: by test two of the equipment shooting comprising different colours quantity Color 2 D code generated when code figure is tieed up, the color recognition correct rate under the equipment is obtained, obtains the optimal color of the equipment Quantity is denoted as N;The number of colors for including in the test two dimensional code figure is 2n, wherein n is the natural number more than or equal to 1, n= 1,2,…。
Preferably, the color 2 D code generation step includes:
Step A1: transmitting terminal is segmented according to the data that the capacity of every frame two dimensional code transmits needs, and adds verification Position, frame information and mask;
Step A2: the consistent color set of number of colors is obtained;
Step A3: the every frame data handled well are subjected to color mapping, generate color 2 D code.
Preferably, the color 2 D code identification decoding procedure includes:
Step B1: receiving end uninterruptedly shoots the screen of transmitting terminal using camera, in each photo taken The registration pattern of color 2 D code is found, and aliasing detection is carried out according to the registration pattern, is abandoned if aliasing;Otherwise step is executed Rapid B2;
Step B2: calibration row is found according to the position of registration pattern, according to calibration row to each color lump of color 2 D code It is positioned;
Step B3: it identifies the color of each color lump in every frame color 2 D code, is obtained according to the mapping relations of each color Obtain complete data;
Step B4: carrying out verification amendment to the data got, and remove mask, the initial data transmitted;It will solution Every segment data that code receives is integrated according to frame information, the file transmitted.
Preferably, the method divided equally in the number of colours Optimization Steps using form and aspect, generates the color set of different number It closes, is taken pictures using equipment and carry out color identification, obtain the color recognition rate of the equipment under different colours quantity;
Assuming that pnThe average recognition accuracy of equipment when to use n kind color contains m color lump, lieutenant colonel in one frame altogether Testing a proportion is α, wherein each RS checking symbol of 0 < α < 1 includes b bit, a frame information, which is successfully decoded, must satisfy mistake Symbol rate ReLower than the error correcting capability R of check code in a framec, wherein
One symbol comprising b bit occupiesA color lump, the expectation of the error symbol quantity received are as follows:
One frame data of Successful transmissions need to meet Rc≥E(Re), thereforeThe then capacity C of whole equipment Are as follows:
Preferably, the step A1 includes: to be verified using ReedSolomon code, each color lump after verification It added the number generated at random, i.e. mask on corresponding data, the mask is in transmitting terminal and receiving end all it is known that and every Frame information is added in one frame, the frame information includes: the data stored in the totalframes, this frame frame number and this frame for transmit file Length.
Preferably, the consistent color set of number of colors is obtained by color generating algorithm, find out color set with it is to be passed Color mapping relationship between transmission of data;The color generating algorithm refers to: assuming that needing to generate the set of N kind color, passing through Difference function is integrated, so that the integral of the difference function between adjacent form and aspect color is all the same;Wherein: the difference function The calculation formula of P (h) is as follows:
In formula: Δ E (h) indicates the color of photo form and aspect h and the difference of the form and aspect adjacent color, and δ (h) indicates all bats Take the photograph the standard deviation of form and aspect h in photo.
Preferably, the step B1 includes:
Step B1.1: black polarization is carried out to each frame image data that receiving end camera is got, i.e., using threshold value Mode is below the pixel of threshold value to tri- channels RGB, and all polarization is black;
Step B1.2: in the image data after the black that polarizes, by identifying that the pattern of registration pattern finds out two dimensional code Position;
Step B1.3: red green two kinds of colors are added in the non-black part of registration pattern and pass through knowledge in the photo of shooting The value in red green two channels is to determine whether aliasing in other non-black part colours, if the value in red green two channels is higher, Illustrate two frame aliasings, abandons the photo;Otherwise, step B2 is executed;
The step B2 includes:
Step B2.1: there are four color lump positioning reference lines, four color lumps positioning ginseng between adjacent registration pattern Examine line be chequered with black and white color lump and position it is parallel with the color lump of color 2 D code middle section, by registration pattern identification remarkably Block positions the position of each black and white color lump on reference line;
Step B2.2: the black and white color lump by connecting same row and same column obtains horizontal and vertical in the straight of color 2 D code Line, the center of a crosspoint i.e. color lump for each vertical and horizontal line;
The step B3 includes:
Step B3.1: the position positioning of each colour table is similar with the black and white color lump on color lump positioning reference line, by finding Registration pattern carry out line, and find out each color lump depending on the relative position on line;
Step B3.2: the interval range of any two colour table colors is fallen in by the hue value in comparison color lump, identifies and is shining Representative corresponding data in piece.
The volume-variable color 2 D bit stream data communication system based on form and aspect provided according to the present invention, comprising:
Test module: for testing the color discrimination of equipment in sending module, by shooting test two dimensional code figure to setting The photographic quality of standby shooting is measured, and measures the color discrimination of the equipment, and is found out and can be maximized two dimensional code in equipment Number of colors when capacity;
Color 2 D code generation module: initial data is segmented according to selected optimal number of colors, and adds school Position and mask are tested, obtain that treated data to be transmitted, the color set found out by color generating algorithm and data to be transmitted Between color mapping relationship, generate include data to be transmitted information color 2 D code;
Color 2 D code identifies decoding module: the registration pattern of color 2 D code is found in each photo received Each color lump in color 2 D code is positioned, and color identification is carried out according to the colour table in color 2 D code, by identification Color conversion is corresponding data, obtains the initial data transmitted by verifying and going after mask.
Compared with prior art, the present invention have it is following the utility model has the advantages that
1, the volume-variable color 2 D bit stream data communication means provided by the invention based on form and aspect, by various face The existing research of color table, proposes color generating algorithm, improves color recognition rate, improves the capacity of conventional two-dimensional code.
2, the volume-variable color 2 D bit stream data communication means provided by the invention based on form and aspect, two-dimentional code stream is made Data are transmitted between devices for a kind of communication mode, and efficiency of transmission is high.
Detailed description of the invention
Upon reading the detailed description of non-limiting embodiments with reference to the following drawings, other feature of the invention, Objects and advantages will become more apparent upon:
Fig. 1 is that the process of the volume-variable color 2 D bit stream data communication means provided by the invention based on form and aspect is illustrated Figure;
Fig. 2 is two-dimensional code data schematic diagram in the present invention;
Fig. 3 is the schematic diagram of two dimensional code registration pattern identification;
Fig. 4 is the schematic diagram of the volume-variable color 2 D bit stream data communication system provided by the invention based on form and aspect.
In figure:
1- registration pattern;
2- colour table;
3- positions reference line;
4- data portion;
The special registration pattern of 5-.
Specific embodiment
The present invention is described in detail combined with specific embodiments below.Following embodiment will be helpful to the technology of this field Personnel further understand the present invention, but the invention is not limited in any way.It should be pointed out that the ordinary skill of this field For personnel, without departing from the inventive concept of the premise, several changes and improvements can also be made.These belong to the present invention Protection scope.
In the present invention, the transmission rate of two-dimentional code stream is improved by following technology: 1) proposing color and generate and know Other algorithm learns the characteristic of different form and aspect colors by the difficulty identified to quantized color, and makes every kind of use by the algorithm Color identification difficulty it is identical, with improve color identification accuracy rate;2) special designing has been carried out to two-dimension code structure, has made face Color is generated to be applied in SCC system with recognizer.Including: optimal number of colors measurement, colored mask, frame information are deposited Storage, picture black polarization, registration pattern design, aliasing detection, colour table etc..
As shown in Figure 1, the present embodiment is achieved through the following technical solutions, the data sending terminal of the present embodiment includes such as Lower step:
Step A1: when using different colours quantity (2n, n=1,2 ...), two dimensional code generated is at this for measurement shooting Color recognition correct rate under equipment calculates the optimal number of colors N of the equipment.For different equipment, can shoot Photographic quality is not quite similar.Therefore, for a certain equipment, need to test its optimal number of colors in advance.In the present system, lead to The method divided equally using form and aspect is crossed, the color set of different number is generated, is taken pictures using equipment and carry out color identification, is obtained different Under number of colors, the color recognition rate of the equipment.Due to that can not learn that device identifying information, recognition accuracy are also simple at this moment Use the immediate color of form and aspect as identification color.In this way, one can be obtained with number of colors variation Equipment rate curve, it is overall that downward trend is presented.Color lump capacity can be improved using more colors, but discrimination can be reduced, Need to reduce the quantity of data color blocks in every frame using more check bit, it is therefore desirable to which the relationship for balancing the two is found out and reached The number of colors of maximum capacity.Notice that number of colors is necessary for 2n, color lump each in this way could store integer bit information.
Assuming that pnThe average recognition accuracy of equipment when to use n kind color contains m color lump, lieutenant colonel in one frame altogether Testing a proportion is α (0 < α < 1), and each RS checking symbol includes b bit.A frame information, which is successfully decoded, must satisfy error symbol Number rate ReLower than the error correcting capability R of check code in a framec, whereinNote that a symbol comprising b bit It occupiesA color lump.The expectation of the error symbol quantity received are as follows:
One frame data of Successful transmissions need to meet Rc≥E(Re), thereforeThe capacity C of whole system are as follows:
Therefore in this step, it would be desirable to reasonable number of colors is selected, it is maximum according to its corresponding color discrimination Change the capacity of whole system.Due to having measured pnCurve.It therefore can be according to pnSize select optimal number of colors N.
Step A2: be arranged according to the block number of the number of colors, every frame two dimensional code that use, check bit etc., it can calculate each How much is the data that can be transmitted in frame, and can be segmented with this to source data.Assuming that storing source data in every frame two dimensional code Block number be M, number of colors is N in two dimensional code, then the size of each section of source data segment is Mlog2N bit.Furthermore, it is necessary to Check bit is added to every one piece of data, the check code that the present invention uses is ReedSolomon code.Not due to source data frame length It is fixed, therefore every frame source data is segmented again according to regular length, and add check bit.The color lump of a certain color in order to prevent Excessively, it causes to identify a frame recognition failures caused by mistake because of monochrome, added on the corresponding data of each color lump after verification One number generated at random, i.e. mask.Notice that mask is transmitting-receiving both ends in advance it is known that can correctly remove in receiving end.Meanwhile Frame information can be also added in each frame, the totalframes including this document, the data length stored in this frame frame number and this frame. Frame information has been added to the side in two dimensional code, and considers the importance of frame information, itself and its check bit only use 4 Kind color indicates, does not change with the number of colors of use.
Step A3: empty in HSV, YUV, RGB etc. different colors under daily interior and nighttime conditions by test Between in, H (hue) dimension in only HSV not will receive the influence of different illumination condition and white balance in shooting photo.Cause This, the present invention is required to generate by changing the form and aspect (Hue) in HSV (Hue, Saturation, Value) color space Color set.The present invention is analyzed according to the performance to different form and aspect colors, proposes color generation and recognizer, so that The identification difficulty of color in two dimensional code equalizes, and improves the accuracy of color identification.
Step A3.1: it is taken pictures by using color of the different mobile phones to different form and aspect (0-359), investigates each The color of form and aspect shows, available mean value E (h) of certain form and aspect color in photo and change of the standard deviation δ (h) about form and aspect h Change curve.
Step A3.2: in order to quantify the difficulty that certain color is correctly validated, the invention proposes difference functions The concept of (Performance Index).Difference function P (h) is the discrepancy delta of the color color adjacent thereto of photo form and aspect h The quotient of the standard deviation δ (h) of the color in E (h), with all shooting photos, i.e.,
Step A3.2: in order to enable the identification difficulty between the color generated is identical and is maximized between adjacent color simultaneously Difference, the invention proposes a kind of color generating algorithms.Assuming that need to generate the set of N kind color, by difference function into Row integral, so that the integral of the difference function between adjacent form and aspect color is all the same.The color set generated in this way, can To divide equally the difficulty of color identification, the situation for avoiding certain color discrimination too low.Assuming that needing to select N kind color, form and aspect Respectively Hi, i=0,1,2 ..., n-1.Form and aspect H adjacent to every a pairiAnd Hi+1, need in [Hi,Hi+1] product of P (h) in section Split-phase is same, that is, for arbitrary i and j (i, j=0,1,2 ..., n-1),
Step A3.3: color recognizer.This system has used the method for colour table color to assist in identifying color, these colour tables Color is added to around two dimensional code, the identification of assisted color.It is similar with color generating algorithm, to the N kind color set of generation, A hue value is found in adjacent form and aspect, so that the two segment datas integral being separated out is identical.This method can equally obtain N kind face Color, i.e. colour table color, it defines the identification section of a certain color when identification color.
Form and aspect H adjacent to every a pairiAnd Hi+1, i=0,1,2 ..., n, judgement form and aspect among them are Ri, when identifying Form and aspect h < RiWhen, color is judged as Hi, otherwise it is judged as Hi+1.And RiIt needs to meet:
For the color R identifiedi-1< h < Ri, then it is assumed that the primary colors of h is Hi
Step A4: according to segmentation is completed and adds the data of check bit, frame information and mask, each color lump can be learnt The middle corresponding data for needing to indicate.It indicates that the capacity of data is related with the quantity N of color, i.e., every piece of color lump can indicate log2The information of N-bit.Meanwhile every one piece of data can be mapped to corresponding color, and be shown in color 2 D code It is transmitted, as shown in Figure 2.
The data receiver of the present embodiment includes the following steps:
Step B1: black polarization, and registration pattern identifies;
Step B1.1: black polarization, i.e., each frame image data got to receiving end camera need first to it In black polarize.Receiving end can constantly obtain the photo taken, the value that each pixel passes through RGB channel It is stored.This system is below the pixel of threshold value to tri- channels RGB by the way of threshold value, and all polarization is black. Others point is collectively referred to as non-black dot, retains its original color.
Step B1.2: registration pattern identification, i.e., in the image data after the black that polarizes, by the sample for identifying registration pattern Formula, to find out the position of two dimensional code.As shown in figure 3, using four registration patterns in the present invention, it is placed on four of two dimensional code Angle, one of them is smaller, with other three registration pattern differences.By identifying the special registration pattern, system can be automatic Identify the direction of the two dimensional code.Assuming that as shown in figure 3, certain point v black in picture, then along it, four direction is sought up and down A, tri- width of B, C are found out in the edge for looking for black and non-black, and (specific proportionate relationship is as schemed according to its length ratio relationship It is shown) judge that the registration pattern is plain edition or special type.
Step B1.3: aliasing detection devises the part of identification aliasing detection in registration pattern of the invention.This is It unites and adds red green two kinds of colors in the non-black part of registration pattern, and convert the color in adjacent two frames two dimensional code.It is clapping In the photo taken the photograph, by identifying the value in red green two channels in the part colours, if the value of the two is higher, illustrate that two frames are mixed It is folded, and the aliasing frame can be abandoned, save further identification.
Step B2: positioning color lump positions reference line;
Step B2.1: between adjacent registration pattern, there are four color lump positioning reference lines.Its pattern is chequered with black and white Color lump, position are parallel with the color lump of two dimensional code middle section.By registration pattern, system can identify that color lump positions reference line The position of each upper black and white color lump.
Step B2.2: cross bearing color lump.By connecting the black and white color lump with row and same column, can obtain horizontal and vertical In the straight line of two dimensional code.The crosspoint of each vertical and horizontal line is the center of a color lump.In this way, it can position Each color lump of two dimensional code middle section out, and wait further handled.
Step B3: colour table color is obtained;
Step B3.1: in the outside of longitudinal color lump positioning reference line, the color lump of row colour is arranged, these color lumps are It is the colour table color arranged according to its mapping order.The position positioning of each colour table and the black and white color lump class on color lump positioning reference line Seemingly, by the registration pattern found, line can be carried out and each color lump is found out according to its relative position on line.
Step B3.2: color lump color is identified according to colour table color.As described in step A3.3 color recognizer, colour table color table When having shown identification color, the right boundary of each color.The area of any two colour table colors is fallen in by the hue value in comparison color lump Between range, can identify its representative corresponding data in original photo.By using colour table color, can be shone to avoid shooting The deviation of color and script color in piece improves color recognition accuracy.
Step B4: data RS error correction removes mask, segment data integration;
Step B4.1:, the ReedSolomon code of use is verified, and color lump is identified as corresponding data in receiving end Afterwards, by ReedSolomon code error correction, the color mistake of partial error identification can be corrected, to improve the reliability of transmission.
Step B4.2: the pre-added mask array of transmitting terminal known to receiving end can directly subtract each other removal.
Step B4.3: each equal decodable code of frame color 2 D code goes out a segment file data.Pass through the frame number in frame information And data length, every segment file Data Integration can be got up, scrabble up complete transmission file.
Specific embodiments of the present invention are described above.It is to be appreciated that the invention is not limited to above-mentioned Particular implementation, those skilled in the art can make a variety of changes or modify within the scope of the claims, this not shadow Ring substantive content of the invention.In the absence of conflict, the feature in embodiments herein and embodiment can any phase Mutually combination.

Claims (9)

1. a kind of volume-variable color 2 D bit stream data communication means based on form and aspect, which comprises the steps of:
Number of colours Optimization Steps: it is measured by the photographic quality that shooting test two dimensional code figure shoots equipment, measures this The color discrimination of equipment, and find out number of colors when can maximize two dimensional code capacity in equipment;
Color 2 D code generation step: transmitting terminal is segmented initial data according to selected optimal number of colors, and adds Check bit and mask, the data to be transmitted that obtains that treated, the color mapping found out between color set and data to be transmitted are closed System generates the color 2 D code comprising data to be transmitted information;
Color 2 D code identifies decoding procedure: the positioning figure of color 2 D code is found in each photo received in receiving end Case positions each color lump in color 2 D code, and carries out color identification according to the colour table in color 2 D code, will identify Color conversion be corresponding data, by the initial data for verifying and going after mask to obtain transmission.
2. the volume-variable color 2 D bit stream data communication means according to claim 1 based on form and aspect, feature exist In the number of colours Optimization Steps include: to be given birth to when including the test two dimensional code figure of different colours quantity by equipment shooting At color 2 D code, obtain the color recognition correct rate under the equipment, obtain the optimal number of colors of the equipment, be denoted as N;Institute Stating the number of colors for including in test two dimensional code figure is 2n, wherein n is natural number more than or equal to 1, n=1,2 ....
3. the volume-variable color 2 D bit stream data communication means according to claim 1 based on form and aspect, feature exist In the color 2 D code generation step includes:
Step A1: transmitting terminal is segmented according to the data that the capacity of every frame two dimensional code transmits needs, and adds check bit, frame Information and mask;
Step A2: the consistent color set of number of colors is obtained;
Step A3: the every frame data handled well are subjected to color mapping, generate color 2 D code.
4. the volume-variable color 2 D bit stream data communication means according to claim 1 based on form and aspect, feature exist In the color 2 D code identification decoding procedure includes:
Step B1: receiving end uninterruptedly shoots the screen of transmitting terminal using camera, finds in each photo taken The registration pattern of color 2 D code, and aliasing detection is carried out according to the registration pattern, it is abandoned if aliasing;It is no to then follow the steps B2;
Step B2: finding calibration row according to the position of registration pattern, is carried out according to calibration row to each color lump of color 2 D code Positioning;
Step B3: it identifies the color of each color lump in every frame color 2 D code, has been obtained according to the mapping relations of each color Whole data;
Step B4: carrying out verification amendment to the data got, and remove mask, the initial data transmitted;Decoding is received To every segment data integrated according to frame information, the file transmitted.
5. the volume-variable color 2 D bit stream data communication means according to claim 1 or 2 based on form and aspect, feature It is, the method divided equally in the number of colours Optimization Steps using form and aspect is generated the color set of different number, uses equipment It takes pictures and carries out color identification, obtain the color recognition rate of the equipment under different colours quantity;
Assuming that pnThe average recognition accuracy of equipment when to use n kind color contains m color lump in one frame, wherein check bit institute altogether Accounting example is α, wherein each RS checking symbol of 0 < α < 1 includes b bit, a frame information, which is successfully decoded, must satisfy error sign ratio ReLower than the error correcting capability R of check code in a framec, wherein
One symbol comprising b bit occupiesA color lump, the expectation of the error symbol quantity received are as follows:
One frame data of Successful transmissions need to meet Rc≥E(Re), thereforeThe then capacity C of whole equipment are as follows:
6. the volume-variable color 2 D bit stream data communication means according to claim 3 based on form and aspect, feature exist In, the step A1 includes: to be verified using RS code, added on the corresponding data of each color lump after verification one with The number that machine generates, i.e. mask, the mask transmitting terminal and receiving end all it is known that and add frame information in each frame, it is described Frame information includes: the data length stored in the totalframes, this frame frame number and this frame for transmit file.
7. the volume-variable color 2 D bit stream data communication means according to claim 1 based on form and aspect, feature exist In obtaining the consistent color set of number of colors by color generating algorithm, find out between color set and data to be transmitted Color mapping relationship;The color generating algorithm refers to: assuming that need to generate the set of N kind color, by difference function into Row integral, so that the integral of the difference function between adjacent form and aspect color is all the same;Wherein: the calculating of the difference function P (h) is public Formula is as follows:
In formula: Δ E (h) indicates the color of photo form and aspect h and the difference of the form and aspect adjacent color, and δ (h) indicates that all shootings are shone The standard deviation of form and aspect h in piece.
8. the volume-variable color 2 D bit stream data communication means according to claim 4 based on form and aspect, feature exist In the step B1 includes:
Step B1.1: carrying out black polarization to each frame image data that receiving end camera is got, i.e., by the way of threshold value, Tri- channels RGB are below with the pixel of threshold value, all polarization is black;
Step B1.2: in the image data after the black that polarizes, by identifying that the pattern of registration pattern finds out the position of two dimensional code;
Step B1.3: adding red green two kinds of colors in the non-black part of registration pattern, non-by identifying in the photo of shooting The value in red green two channels is to determine whether aliasing illustrates if the value in red green two channels is higher in black portions color Two frame aliasings, abandon the photo;Otherwise, step B2 is executed;
The step B2 includes:
Step B2.1: having four color lump positioning reference lines between adjacent registration pattern, and four color lumps position reference line For chequered with black and white color lump and position it is parallel with the color lump of color 2 D code middle section, identify that color lump is fixed by registration pattern The position of each black and white color lump on the reference line of position;
Step B2.2: the horizontal and vertical straight line in color 2 D code is obtained with row and the black and white color lump of same column by connecting, often The center of a crosspoint i.e. color lump for a vertical and horizontal line;
The step B3 includes:
Step B3.1: the position positioning of each colour table is similar with the black and white color lump on color lump positioning reference line, is determined by what is found Bit patterns carry out line, and find out each color lump depending on the relative position on line;
Step B3.2: the interval range of any two colour table colors is fallen in by the hue value in comparison color lump, is identified in photo Representative corresponding data.
9. a kind of volume-variable color 2 D bit stream data communication system based on form and aspect characterized by comprising
Test module: for testing the color discrimination of equipment in sending module, equipment is clapped by shooting test two dimensional code figure The photographic quality taken the photograph is measured, and measures the color discrimination of the equipment, and is found out and can be maximized two dimensional code capacity in equipment When number of colors;
Color 2 D code generation module: initial data is segmented according to selected optimal number of colors, and adds check bit With mask, the data to be transmitted that obtains that treated, between the color set found out by color generating algorithm and data to be transmitted Color mapping relationship, generate include data to be transmitted information color 2 D code;
Color 2 D code identifies decoding module: the registration pattern of color 2 D code is found in each photo received to coloured silk Each color lump is positioned in color two dimensional code, and carries out color identification according to the colour table in color 2 D code, by the color of identification Corresponding data are converted into, obtain the initial data transmitted by verifying and going after mask.
CN201610410669.7A 2016-06-13 2016-06-13 Volume-variable color 2 D bit stream data communication means and system based on form and aspect Active CN106056021B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610410669.7A CN106056021B (en) 2016-06-13 2016-06-13 Volume-variable color 2 D bit stream data communication means and system based on form and aspect

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610410669.7A CN106056021B (en) 2016-06-13 2016-06-13 Volume-variable color 2 D bit stream data communication means and system based on form and aspect

Publications (2)

Publication Number Publication Date
CN106056021A CN106056021A (en) 2016-10-26
CN106056021B true CN106056021B (en) 2019-01-25

Family

ID=57170793

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610410669.7A Active CN106056021B (en) 2016-06-13 2016-06-13 Volume-variable color 2 D bit stream data communication means and system based on form and aspect

Country Status (1)

Country Link
CN (1) CN106056021B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106559581B (en) * 2016-12-07 2019-08-23 北京摇光智能科技有限公司 A method of improving communication speed when camera shooting graphic code communication
KR101993512B1 (en) * 2017-04-21 2019-09-30 성균관대학교산학협력단 An apparatus of presenting encryption code for screen-to-camera communication, and method thereof
CN107169540B (en) * 2017-05-11 2020-11-24 北京京东尚科信息技术有限公司 Information transmission system, method and device
CN109583548A (en) * 2017-07-23 2019-04-05 宁波亿诺维信息技术有限公司 A kind of anti-fake two-dimension code printing generation system
CN107392270B (en) * 2017-07-23 2020-07-28 吉林东电能源发展有限公司 Two-dimensional code generation method
CN109784451B (en) * 2017-11-13 2022-03-18 卓望数码技术(深圳)有限公司 Method and device for expanding two-dimensional code coding capacity by using multiple colors
CN108960382B (en) * 2018-05-07 2021-10-01 广东数相智能科技有限公司 Color bar code and color calibration method thereof
CN109063806A (en) * 2018-07-17 2018-12-21 深圳市零点零科技有限公司 A kind of strip small two-dimension code encoding method
CN109344944A (en) * 2018-10-10 2019-02-15 天津梓君能源科技发展有限公司 Colored marking code and its coding/decoding method
CN109919279B (en) * 2019-02-28 2020-12-08 尤尼泰克(嘉兴)信息技术有限公司 Two-dimensional code expansion method
CN110879593A (en) * 2019-11-11 2020-03-13 江苏理工学院 Positioning method, reading method, positioning system and positioning device
CN113743554B (en) * 2021-06-11 2023-08-22 北京大学 Information transfer system based on multiple dynamic spectrums
CN114268454B (en) * 2021-11-18 2023-12-22 南京国电南自维美德自动化有限公司 Data ferrying method for physical isolation environment
CN114430305B (en) * 2022-03-02 2023-06-09 烽火通信科技股份有限公司 Frame fixing method and system for fine-grained frames

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010031110A1 (en) * 2008-09-16 2010-03-25 Edith Cowan University Data storage device and encoding/decoding methods
CN102147873A (en) * 2011-03-21 2011-08-10 上海彩码信息科技有限公司 Method and system for generating color code as well as method and system for analyzing color code
CN102243712A (en) * 2010-05-14 2011-11-16 上海彩码信息科技有限公司 Generation method and system thereof for colored bar code, and analytic method and system thereof for colored bar code
CN104778440A (en) * 2015-05-06 2015-07-15 矽照光电(厦门)有限公司 Color two-dimension code recognition method and recognition device
CN104899630A (en) * 2015-06-18 2015-09-09 桂林电子科技大学 Method of encoding/decoding color QR code

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5136302B2 (en) * 2008-03-27 2013-02-06 株式会社デンソーウェーブ Two-dimensional code, two-dimensional code generation method, computer-readable program for displaying two-dimensional code, authentication method using two-dimensional code, and information providing method using two-dimensional code

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010031110A1 (en) * 2008-09-16 2010-03-25 Edith Cowan University Data storage device and encoding/decoding methods
CN102243712A (en) * 2010-05-14 2011-11-16 上海彩码信息科技有限公司 Generation method and system thereof for colored bar code, and analytic method and system thereof for colored bar code
CN102147873A (en) * 2011-03-21 2011-08-10 上海彩码信息科技有限公司 Method and system for generating color code as well as method and system for analyzing color code
CN104778440A (en) * 2015-05-06 2015-07-15 矽照光电(厦门)有限公司 Color two-dimension code recognition method and recognition device
CN104899630A (en) * 2015-06-18 2015-09-09 桂林电子科技大学 Method of encoding/decoding color QR code

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
COBRA: color barcode streaming for smartphone systems;Tian Hao, Ruogu Zhou, Guoliang Xing;《MobiSys "12 Proceedings of the 10th international conference on Mobile systems, applications, and services》;20120629;全文 *
基于新型彩码的信息生成、读取和加密系统设计;盛健等;《科技创新与应用》;20150908;全文 *

Also Published As

Publication number Publication date
CN106056021A (en) 2016-10-26

Similar Documents

Publication Publication Date Title
CN106056021B (en) Volume-variable color 2 D bit stream data communication means and system based on form and aspect
Cusano et al. Evaluating color texture descriptors under large variations of controlled lighting conditions
CN106211804B (en) Automatic white balance is carried out using to the colour measurement of raw image data
Querini et al. 2D Color Barcodes for Mobile Phones.
CN100390807C (en) Trilateral poly-dimensional bar code easy for omnibearing recognition and reading method thereof
GB2620512A (en) Optimizing detection of images in relation to targets based on colorspace transformation techniques
KR20210137483A (en) Target-related image detection based on color space conversion technology and UV utilization
CN103389162B (en) A kind of reflecting object color measurement instrument utilizing color digital camera
CN104052979B (en) For device and the technology of image processing
CN108960382B (en) Color bar code and color calibration method thereof
US7349588B2 (en) Automatic meter reading
CN105911508A (en) Ammeter defect intelligent detection device
MX2012010260A (en) Method for creating and method for decoding two-dimensional colour code.
CN107465903B (en) Image white balance method, device and computer readable storage medium
CN108564631A (en) Car light light guide acetes chinensis method, apparatus and computer readable storage medium
US9633294B2 (en) Optical code
JP2017091140A (en) Code transmission/reception system, code receiver, code transmitter, code reception method, code transmission method, and program
CN101047771A (en) Method for transmitting data form computer to hand mobile equipment with photo taking function
US20140193085A1 (en) Image manipulating system and method
US10251057B2 (en) Authentication for device connection using visible patterns
CN109214486A (en) Three-dimension code, the generation method of three-dimension code and device, recognition methods and device
CN102521635B (en) Decoding method for continuous multi-system bar code
JP4312185B2 (en) Game mat, card game system, image analysis apparatus, and image analysis method
JP4364186B2 (en) card
Badawi et al. COLOR QR CODE RECOGNITION UTILIZING NEURAL NETWORK AND FUZZY LOGIC TECHNIQUES.

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant