CN106559581B - A method of improving communication speed when camera shooting graphic code communication - Google Patents

A method of improving communication speed when camera shooting graphic code communication Download PDF

Info

Publication number
CN106559581B
CN106559581B CN201611112315.0A CN201611112315A CN106559581B CN 106559581 B CN106559581 B CN 106559581B CN 201611112315 A CN201611112315 A CN 201611112315A CN 106559581 B CN106559581 B CN 106559581B
Authority
CN
China
Prior art keywords
color
intelligent terminal
graphic code
lump
color 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
CN201611112315.0A
Other languages
Chinese (zh)
Other versions
CN106559581A (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.)
Beijing Shake Intelligent Technology Co Ltd
Original Assignee
Beijing Shake Intelligent Technology Co Ltd
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 Beijing Shake Intelligent Technology Co Ltd filed Critical Beijing Shake Intelligent Technology Co Ltd
Priority to CN201611112315.0A priority Critical patent/CN106559581B/en
Publication of CN106559581A publication Critical patent/CN106559581A/en
Application granted granted Critical
Publication of CN106559581B publication Critical patent/CN106559581B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/06009Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Image Analysis (AREA)
  • Color Image Communication Systems (AREA)

Abstract

The present invention relates to a kind of methods of communication speed when raising camera shooting graphic code communication, it includes that the first intelligent terminal is communicated by graphic code shown by camera the second intelligent terminal of shooting, in communication process, according to the self performance of first intelligent terminal and second intelligent terminal, and/or the application scenarios that first intelligent terminal and second intelligent terminal are present when communicating, to select the selection color of the graphic code, the size of color lump, and/or the relevant parameters such as coding mode of color lump, to improve the communication speed between first intelligent terminal and second intelligent terminal.

Description

A method of improving communication speed when camera shooting graphic code communication
Technical field
It is the present invention relates to a kind of method for improving communication speed, in particular to a kind of to shoot other side's screen using camera When shown graphic code is communicated, the method that improves communication speed.
Background technique
Graphic code shown by the display screen of another intelligent terminal is acquired using the camera of a certain intelligent terminal to be led to Letter is a kind of novel and very easily communication mode.Graphic code herein refers to including bar code, two dimensional code and three-dimensional A variety of the pattern of useful information is contained including code.In daily life, people are communicated in the way of this, by More in usage scenario, frequency of use is high, intentionally gets good usage experience always, for user experience, how to improve Communication speed, the use time so as to shorten user is vital and those of skill in the art make great efforts always Target.However it is directed to its special usage scenario, current processing mode mainly has following several disadvantages:
1) camera of intelligent terminal and the performance difference of display screen are very big, for camera, from 300,000 pixels to 500 Ten thousand pixels have, then also difference is very big for the clarity for the image code that they take, however current scheme, do not have substantially Have and consider this difference, for example is communicated using scanning the two-dimensional code, typical such as " sweep and sweep " of wechat or Alipay, life At the size of size of each color lump of two dimensional code be not take into account that the performance of other side's camera, while in order to widely fit Ying Xing, it is necessary to yield to worst equipment (such as camera of above-mentioned 300,000 pixel), and is used uniformly the color lump of larger size, Large-sized color lump means that display area of the same area is only able to display less color lump, also means that every width graphic code only Less information can be transmitted, then in such a scenario, for high performance camera, will be unable to play its high performance excellent Gesture is a kind of waste.
2) specifically used scene is complicated and changeable, is unable to control, same two intelligent terminals, under different scenes, to figure The possible difference of the requirement of shape code is huge.A.) such as in two intelligent terminals, the shadow of the distance of camera and other side's display screen is studied It is found that distance is bigger when ringing, it is desirable that color lump size is comparatively also bigger, and shooting in this way can offer a clear explanation just now;B. it) studies It is found that can accurately distinguish the condition of color shown by display side's graphic code color lump in shooting side when the influence of bias light Under, when background light level is moderate, graphic code can choose more reference colors and be used as transmission color, the color category that can be transmitted More, i.e., the information that each color lump can transmit is more;Correspondingly, if under strong light and under dim light, even two same Intelligent terminal is communicated in the way of this, and the quantity that graphic code can choose be used for transmission the reference color of information has difference The reduction of degree.
In conjunction with above situation, it is seen then that current scheme is not also examined completely without the individual performance of consideration intelligent terminal completely Consider specific usage scenario, but that imposes uniformity without examining individual cases meets relatively broad applicability with lower performance.Although this mode Also many application scenarios of many small data quantity transmission are met, for example transmit the name of a network address or black and white using two dimensional code Piece information still also limits it and widely applies, for example to transmit a file, a picture, a publicity brochure, which I guess a colour name card.Thus, if transmission potential can be brought into play, transmission speed is improved, can not only improve user's body It tests, moreover it is possible to greatly expand market use scope, produce new application.
Further analysis the above problem there are the reason of mainly include two aspects that the size first, graphic code color lump, it is existing What technology considered is to participate in the minimum requirements of the entire intelligent terminal set of some application, and actual usage scenario is not intended to It seeks these equipment simultaneously and will be communicated with other all devices, but be based on demand, need to carry out between certain equipment Communication, and be usually to be communicated between any two, it is seen that traditional processing mode assumes excessively stringent constraint.Second, not having Have complicated and changeable in view of usage scenario, traditional approach is also to meet all application scenarios using by the way of single solution for diverse problems.With It is above all to cause for two specific intelligent terminals individuals, when some concrete application scene is communicated, Wu Fafa Communication potentiality are shot, are a kind of wastes to high-performance intelligent terminal ability to communicate.So that user experience is deteriorated, while also limiting More potential applications.
Therefore, for these defects in the prior art, it is necessary to make improvements by the present invention.
Summary of the invention
The present invention provides a kind of methods for improving communication speed, can be using shown by camera shooting other side's screen Graphic code when being communicated, the camera for increasing substantially an intelligent terminal acquires on another intelligent terminal display screen The communication speed of graphic code.
To achieve the purpose of the present invention, the technical solution adopted by the present invention is that: a kind of raising camera shooting graphic code is logical The method of communication speed when letter, comprising: the first intelligent terminal;Second intelligent terminal;First intelligent terminal passes through camera shooting Head shoots graphic code shown by second intelligent terminal and is communicated, in communication process, eventually according to first intelligence When the self performance, and/or first intelligent terminal of end and second intelligent terminal and second intelligent terminal communicate Present application scenarios, to select the relevant parameter of the graphic code, to improve first intelligent terminal and described Communication speed between two intelligent terminals.
Preferably, the self performance of first intelligent terminal and second intelligent terminal includes: first intelligence The recognition performance and/or first intelligent terminal of the camera of terminal and second intelligent terminal and second intelligence The imaging performance of the display unit of terminal.
Preferably, present application scenarios include: when first intelligent terminal and second intelligent terminal communicate The light background and/or first intelligent terminal of first intelligent terminal and the second intelligent terminal local environment and Mutual angle positional relationship between second intelligent terminal.
Preferably, the relevant parameter of the graphic code includes: that the color lump of the graphic code selects color, the size of color lump big Small, and/or color lump coding mode.
Preferably, the method for determination of the color lump color of the graphic code includes: to select X color measurement figures;Select Y face The test color lumps of color;The test color lumps of each color are different the location of in every color measurement figure;First intelligence Terminal reads the X color measurement figures of second intelligent terminal, obtains each color in the Y color described It is empty to be integrated into the color according to the color value of each color for color value set in the color space of first intelligent terminal Between in position, filter out several reference colors for meeting screening conditions.
Preferably, the screening conditions of the color lump color are as follows: in the set of the reference color being screened out, appoint Distance Rij of the two kinds of color i and color j in the color space of first camera that anticipate is greater than the error radius of two kinds of colors Ri, Rj and anti-eclipse guard space m's and, i.e. Rij > m+Ri+Rj.
Preferably, wherein the anti-eclipse guard space m is a constant or the ratio system of the error radius Ri and Rj Number.
Preferably, the screening include: according to each color in the Y color error radius from small arrival Sequentially, the screening conditions are verified one by one.
Preferably, the screening includes: that the error radius of the color in the Y color is less than the Y face first The color of the median of the error radius of color in color, according in the color space apart from first intelligent terminal The distance of any one in 8 vertex from closely to remote, if apart from the same, according to the error radius from the sequence of small arrival, by The one verifying screening conditions, wherein color of 8 vertex in the color space of first intelligent terminal is sat Mark is respectively (0,0,0), (0,0,255) (0,255,0) (255,0,0) (0,255,255) (255,0,255) (255,255,0) (255,255,255);Then, the face error radius of the color in the Y color being greater than or equal in the Y color The color of median in the error radius of color verifies the screening according to the error radius from the sequence of small arrival one by one Condition.
Preferably, the method for determination of the size of the color lump of the graphic code includes: first intelligent terminal from institute It states in multiple shown color lump size measuring figures of the second intelligent terminal, judges that first intelligent terminal can identify most Small color lump size, wherein second intelligent terminal shows multiple described color lump size measuring figures, every color lump ruler one by one Color lump size in very little test chart is consistent.
Preferably, the method for determination of the size of the color lump of the graphic code includes: first intelligent terminal from institute It states in multiple shown color lump size measuring figures of the second intelligent terminal, judges that first intelligent terminal can identify most Small color lump size, wherein second intelligent terminal shows multiple described color lump size measuring figures, every color lump ruler one by one Color lump size in very little test chart is inconsistent, and the full-size of color lump is less than previous in next color lump size measuring figure The minimum dimension of color lump in color lump size measuring figure, second intelligent terminal show the next color lump size measuring figure Condition are as follows: first intelligent terminal can correctly identify smallest size of color lump in the previous color lump size measuring figure.
Preferably, the coding mode of the color lump of the graphic code is combined coding using 2,4 or 8 color lumps.
The present invention is mainly shot the second intelligent terminal and shown by following three aspects to improve using the first camera Communication speed when graphic code on screen is communicated:
First, suitable color is filtered out from the test chart of the second intelligent terminal, as the second intelligent terminal later The reference color of graphic code, for formal communication later
Suitable color is selected to be used as the reference color of second graph code depending on the site environment, by the of the first intelligent terminal The identification of one camera.Reference color selection requirement be allow the first camera of the first intelligent terminal accurately distinguish and Judgement identifies these colors.
Color space is also referred to as color space or color space, there is RGB color, YIQ color space etc..Here for Facilitate explanation, illustrated with RGB color, it refers to using tri- color components of Red, Green, Blue as three-dimensional cartesian coordinate system The space of xyz axis.In the space, each color has corresponding coordinate.For convenience of explanation, the present invention with 8bit wide be 0 ~ The color spaces of 255 color ranges illustrates.YIQ color space and other color spaces can be converted into RGB color and carry out again Processing, can also directly be handled in its color space with similar method.
Second intelligent terminal display screen successively shows several (such as 64 width) graphic code test charts, sees Fig. 1 and Fig. 2, every width figure 64 color lumps are contained in the test color lumps part of shape code, and each test color lumps correspond to a kind of color, the R of these colors, G, B value difference It is composed by 0,85,170,255, totally 64 kinds of colors.The solid colour that different width test charts herein are included, but every width The position of color is different in test patterns, and its purpose is to take into account different location bring error.Detailed process point Specific embodiment is shown in analysis.Graphic code, can also be usual containing negotiation and feedback areas, the region other than test color lumps part It is made of the color lump of black and white, outer frame part as shown in Figure 1, Figure 2.
First intelligent terminal obtains the test chart that several the second intelligent terminal display screens are shown by camera, from taking Image in read corresponding color value.Due to the presence of various deviations, the color value repeatedly obtained has certain difference, repeatedly After shooting, for a certain color, its color average measurement value and error radius in shooting photo is calculated.Herein Color average measurement value refer to a color multiframe be taken the color value that is shown in image camera color space In average value.Average value herein can be but not limited to: the density center of each color value, i.e., each color value component addition is asked It is average;Or the geometric center of each color value, that is, the maximum value and minimum value of each color component are found out, geometric center is exactly each face The average value of maximum value and minimum value in colouring component.
The color space of camera is color lump for showing in the second intelligent terminal in first intelligent terminal herein Corresponding color development is generated in image taken by camera, for example, the display color lump in the second intelligent terminal is shown Two kinds of colors be respectively (170,0,0) and (255,0,0), and the color value of the color lump that actually the first camera is read can It can be respectively (212,90,64) and (253,121,77) that we arrange, and color (170,0,0) (theoretical color value) is taken the photograph first As head color space in be located at (212,90,64) (actual color value) at, similarly, color (255,0,0) is in the first camera Color space in be located at (253,121,77) at.
Error radius herein refers to that a color is taken the color value shown in image in the first camera in multiframe Color space in maximum value with average actual measured value distance.It is clear to, the color that a color is shown in multiple image Value is all located at using average actual measured value as the centre of sphere, using error radius as in the ball (referred to as distribution of color ball) of radius.
Anti-eclipse guard space m in setpoint color space between color.The qualified reference color filtered out, need to expire The following condition of foot: the distance Rij of any two kinds of colors i and j in color space be greater than error radius Ri, Rj of two kinds of colors with The sum of m, i.e. Rij > m+Ri+Rj.Here, distance refers in certain color space between color, the length of two color coordinate points lines Degree.When each color has multiple measurement data, distance refers to the length of the average measurement value line of two colors between color.Face herein Anti-eclipse guard space m between color refers to the protection allowance for allowing camera to provide when can distinguish reference color, in camera face It is the minimum range allowed between each display color in the colour space, i.e., the minimum range between the distribution ball ball surface of two colors.
Anti-eclipse guard space m can be a constant c, i.e. m=c(is for example, c=32), screening conditions inequality is at this time Rij > Ri+Rj+c.In addition, anti-eclipse guard space is also possible to a set of proportionality coefficient, i.e. m=Ri × ki+Rj × kj is sieved at this time Selecting conditional inquality is Rij > (Ri+Rj)+Ri × ki+Rj × kj=(1+ ki) × Ri+ (1+ kj) × Rj.According to practical feelings The needs of condition select setting means proper in aforementioned the two as anti-eclipse guard space.
The method of screening color includes following method but is not limited to these methods:
Screen A, find out each color (R, G, B be respectively 0,85,170,255 4 color range be composed 4 × 4 × 4= 64 kinds of colors) average measurement value and error radius after, various colors is sorted from small to large according to error radius, by error half The smallest color of diameter is put into set { M }, and by color, according to error radius sequence detection from small to large, whether the color meets sieve It selects condition: all meeting Rij > m+Ri+Rj with color all other in set { M }, if eligible, which is put into Gather in { M }, leaves out if not meeting.Until traversing an all colours.
Screen B, find out each color (R, G, B be respectively 0,85,170,255 4 color range be composed 4 × 4 × 4= 64 kinds of colors) average measurement value and error radius after, first delete error radius be more than median more than reference color, will remain Under various colors according to 8 vertex of distance ((0,0,0), (0,0,255), (0,255,0), (255,0,0), (0,255, 255), (255,0,255), (255,255,0), (255,255,255)) from closely to remote sequence, (this distance refers to some ginseng Color is examined with a distance from the nearest vertex in this 8 vertex), if being arranged from small to large apart from equally according to error radius Sequence, first color is put into set { M } after sequence, detects whether that the color meets screening conditions in order: with institute in set { M } There is color all to meet Rij > m+Ri+Rj, and error radius is less than the median of error radius in all colours, if eligible, The color is then put into set { M }, does not meet, leaves out.Until traversing an all colours.Then, error radius is greater than institute There is the color of the median of error radius in color to carry out one-time detection again (referring to screening A, from small to large according to error radius Sequentially), if meeting screening conditions: all meeting Rij > m+Ri+Rj with all colours in set { M }, which is put into set { M }, does not meet, and leaves out.
The purpose that an error radius median is arranged herein is to avoid the premature introducing error radius in set larger Color, more preferably selected in order to avoid the presence of the color has repelled other.
Under normal conditions, the work for screening color completed by the first intelligent terminal, and the first intelligent terminal is screening Reference color informs the second intelligent terminal by certain mode, for example, for two aspectant placements of intelligent terminal, and pass through In the case of camera-screen is to feedback information is carried out, the first intelligent terminal generates the graphic code of the colouring information comprising screening, by The camera of second intelligent terminal is read.In special circumstances, the work for screening color can also be completed by the second intelligent terminal, i.e., The reference color read is returned to the second intelligent terminal by the first intelligent terminal as former state, and the second intelligent terminal comes according to return Reference color come judge the first intelligent terminal whether correctly judgement identify relevant reference color, then the second intelligent terminal sieve The reference color elected informs the first intelligent terminal by certain mode, for example, the graphic code generated is divided into two parts, tests Color part and information feed back interactive portion, and the selection result is informed the first intelligent terminal in information feedback interactive portion.
If there are also the color lumps of extra margin other than test color lumps for test chart shape code, it can be transmitted and be sieved with the part color lump Select result information to other side, especially when two intelligent terminal twocoueses negotiate test color;If test chart is only by testing Color lump composition, then can be after both sides have screened color, and respectively display includes the black and white block graphics code of the standard of filter information It reads for other side, is either interacted by the bluetooth or wireless network of two intelligent terminals.
Second, when graphic code generates, coding is combined to c color lump, when decoding is corresponding
Since the number of color that can be used as transmission reference color chosen is not necessarily 2 factorial, if that often A color lump is separately encoded, then is likely to result in the waste of reference color number, for example reference color number is 7, then a color lump It can only indicate 2bit data, there is the transmittability of 3 kinds of colors to waste, in response to this, c color lump can be combined together Coding, for a color lump, if there is N kind display color, when with binary coding representation data, can indicate log2N bit Data can only indicate the data of floor (log2N) if log2N is not integer, and floor is the meaning for retaining integer part.
In order to efficiently use all colours, efficiency of transmission is improved, the method for polychrome block assembly coding is used.The combination of polychrome block The method of coding refers to, in graphic code, is combined coding to the color lump that number is c.Specifically, number of color lump c, number of colours Mesh N, then c color lump can indicate that N^c kind state, every kind of state correspond to specific data altogether, it can indicate floor (log2 (N^ C)) the information of bit, this length can be greater than c × floor (log2N).Such as number of color is 7, when monochromatic block coding, 4 color lumps 2bit × 4=8bit data can only be transmitted, if 4 color lump assembly codings can be combined into the color combination of 7^4=2401, i.e., Log22401=11.22 can be transmitted to be rounded the data for being 11bit, the volume of transmitted data of the picture of same number of color lump improves 37.5%, it has been correspondingly improved communication speed.
The quantity of number of color lump c can be good with both sides' offered, and reservation partial region can also be arranged in graphic code (can It is determined as single color lump coding with this region) it is used for transmission number of color lump c.
Following table be optional number of colours be 2 ~ 16 when compiled in collaboration with without assembly coding, two color lump assembly codings, four color lump groups Under three kinds of situations of code, the analysis of number of colours utilization efficiency is compared.There it can be seen that color waste percentage obtains after combination Different degrees of reduction.
Table 1
Third negotiates the size of the color lump of graphic code
First intelligent terminal and the second intelligent terminal need to negotiate the size of color lump in graphic code, to ensure recipient Under the premise of can effectively recognizing, so that color lump is smaller, to reach higher communication speed.On the one hand, color lump is smaller, and second More color lumps, the data that an assistant figure code can transmit can be shown in intelligent terminal in the graphic code region of certain area It measures bigger.On the other hand, correct identification of the too small camera that will affect the first intelligent terminal of color lump to color lump.So target Be, the size of the display color lump of the second intelligent terminal need to select in the range of the first intelligent terminal camera can identify and It is smaller.
Preferable color lump size can be obtained using the following two kinds negotiation mode:
Negotiate I: interacting the preparation stage before starting, the second intelligent terminal shows the color lump for containing a certain size The test chart for the format that the both sides of composition consult.First intelligent terminal reads the figure information and judges whether to receive correctly, and Judgement conclusion is informed the second intelligent terminal, the first intelligent terminal is properly received if learning, the second intelligent terminal shows one The slightly smaller color lump test chart of more previous test chart color lump size of color lump size, repeats the above process, until learning the first intelligence Stopping or the minimum color lump size until system setting after end-error receives.To which the second intelligent terminal could be aware that the first intelligence The minimum value for the color lump size that energy terminal can receive, and the graphic code for being used to show when interacting after being determined according to this information The size of color lump.
Negotiate II: interacting the preparation stage before starting, the second intelligent terminal shows a different size containing there are many Color lump composition the test chart of format that consults of both sides, in the figure color lump group of same size in a row with a column.First Intelligent terminal reads the figure information and successively judges whether to receive correctly from big to small according to color lump size, and judgement conclusion (the smallest color lump dimension information) informs the second intelligent terminal, if the second intelligent terminal learns that the size information is not above-mentioned Minimum dimension in test chart, then, the second intelligent terminal could be aware that the color lump size that the first intelligent terminal can receive Minimum value;If the second intelligent terminal learns that the size information is the minimum dimension in above-mentioned test chart, the second intelligence is eventually Display more previous test chart of one color lump size slightly smaller color lump test chart in end is (before the full test color lump ratio specifically shown The minimum test color lumps size once shown wants small No.1);It repeats the above process, until the second intelligent terminal could be aware that first The minimum value for the color lump size that intelligent terminal can be properly received, and the figure for being used to show when interacting after being determined according to this information The size of shape code color lump.Negotiation II, which can substantially regard as, disposably performs multiple circulations of multiple above-mentioned negotiation I, mentions High efficiency, accelerates speed.
Above-mentioned described " size of graphic code color lump when root determines therefrom that formal communication ", might not be exactly to use The color lump size used when the minimum dimension that can be properly received is as formal interaction, and may be to ensure certain allowance, choosing The color lump size of slightly larger No.1 or No. two color lump sizes as formal interaction when is selected, but the foundation of decision is in minimum color lump It is made on size basis.
If there are also additional color lumps other than the color lump of test size for test chart, judging result can be transmitted with the part color lump Information is to other side, especially when two intelligent terminal twocoueses negotiate test color.In addition, the group in aforementioned " second " is compiled in collaboration with Code mode information can also be transmitted together in additional color lump here, to reduce the first intelligent terminal and the second intelligence eventually Interaction times between end.
Using method of the present invention, it can increase substantially and acquire another equipment using the camera of an equipment Communication speed when being communicated of the graphic code of display screen.
Detailed description of the invention
Fig. 1 shows the schematic diagram of first color test chart of the invention.
Fig. 2 shows the schematic diagram of second color test chart of the invention.
Fig. 3 shows the position of the theoretical color value and actual color value of five kinds of typical colors of the invention in color space Comparison schematic diagram.
Fig. 4 shows position signal of the collection result of color test chart color value data of the present invention in color space Figure.
Fig. 5 shows position view of color of the present invention after screening A method screening in color space.
Fig. 6 shows position view of color of the present invention after screening B method screening in color space.
Fig. 7 shows the schematic diagram of test chart one of the color lump size of the present invention using negotiation I when.
Fig. 8 shows the schematic diagram of test chart two of the color lump size of the present invention using negotiation I when.
Fig. 9 shows the schematic diagram of test chart of the color lump size of the present invention using negotiation II when.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention Embodiment be described in detail.It should be noted that in the absence of conflict, in the embodiment and embodiment in the application Feature can mutual any combination.
In the present embodiment, using camera shooting other side's screen shown by graphic code communicate when, mainly by with Communication speed is improved in terms of lower three:
The selection of the first, the second intelligent terminal display color
In the present embodiment, the second intelligent terminal display screen shows the test chart for the 8x8 color lump that several are made of 64 kinds of colors If (physical condition allows, and number of color lump can be double, such as 16x16, and each color is present in test chart in piece image at this time Many places, that is, shooting once can be multiple to a color samples, effectively reduces the width number of test chart, saves the time), these face Color is composed of 0,85,170,255 4 color range, and position of the same color in different test charts is different, so that should Color can respectively appear in many places in test chart, will take into account because of position difference bring error.
The test chart used in real process is as shown in Figure 1 and Figure 2, wherein the digital number in each color lump represents one kind Color, below it is corresponding be color scheme, authentic testing figure is colored.Fig. 1 is first test chart, and Fig. 2 is second Test chart, Fig. 2 are that mobile exchange has been done in color lump position on the basis of Fig. 1, and one shares 64 test charts in the present embodiment, allows Each color lump traverses one time in all positions, to obtain because of position difference bring error size.The outline border of test chart It is made of the color lump of black and white, for negotiating and feedback color information and coding rule between two intelligent terminals.
In Fig. 1 and Fig. 2, the color of serial number 1 ~ 64 is 4 × 4 × 4=64 kinds that 0,85,170,255 4 color range is composed Color, corresponding specific theoretical color value are shown in Table 3.
First intelligent terminal obtains these test charts shown on the second intelligent terminal by camera, reads from test chart Take actual value of (acquisition) each display color in the camera color space of the first intelligent terminal.Each color is calculated Average actual measured value and error radius.
Fig. 3 shows in a certain actual scene, the theoretical color value (left side) and actual color value of typical 5 kinds of colors The position of (the right) in color space is compared, specifically ,+be (85,85,85), be (85,85,170), zero for (170, 85,85), ※ is (170,170,170), × it is (85,170,85), table 2 is 64 measured values of color (85,85,85), is passed through Table 2 can find out its average actual measured value and error radius.
Table 2
Average actual measured value can be acquired using density center method, i.e., by the number of some color obtained in multiple pictures It is averaging to obtain according to each color component, can also be acquired using geometrical center method, that is, find out each color in the data of some color The maximum value and minimum value of component, maximum value and minimum value are averaging to obtain.The error radius that density center method acquires is general It is more slightly larger than the error radius that geometrical center method acquires.
Obtained data can indicate that the average actual measured value of each color corresponds to the centre of sphere with table 3 and corresponding Fig. 4, Error radius is the radius of the distribution of color ball.
Table 3
Anti-eclipse guard space uses constant m=32 in embodiment, i.e., between the ball surface of the selected color of any two Distance has to be larger than 32, specifically uses when filtering out the communication of two intelligent terminals according to the average actual measured value and m of each color Reference color.The color being screened out meets following condition: the distance Rij of any two kinds of colors i and j in color space is greater than Error radius Ri, Rj of two kinds of colors and 32 and, i.e. Rij > 32+Ri+Rj.
The method of screening color includes following method but is not limited to these methods:
A is screened, after the average actual measured value and error radius for finding out each color, by various colors according to error radius It sorts from small to large, the smallest color of radius is put into set { M }, color is detected whether from small to large according to error radius The color meets screening conditions: all meet Rij > m+Ri+Rj with all colours in set { M }, it, should if meeting the condition Color is put into set { M }, does not meet, leaves out.Until traversing all color.
The result screened through screening A has picked out 13 kinds of colors as shown in table 4 and corresponding Fig. 5, these colors Color serial number are as follows: 64,4,10,18,19,22,57,11,23,50,1,35,25.
Table 4
B is screened, after the average actual measured value and error radius for finding out each color, by various colors according to apart from color 8 vertex in space ((0,0,0), (0,0,255), (0,255,0), (255,0,0), (0,255,255), (255,0,255), (255,255,0), (255,255,255)) from closely sorting to remote, if sorting from small to large apart from the same according to error radius, First color is put into set { M } after sequence, detects whether that the color meets screening conditions in order: owning with set { M } Color all meets Rij > 32+Ri+Rj, and error radius is less than the median of error radius in all colours, if eligible, The color is then put into set { M }, does not meet, leaves out.Until traversing an all colours.Then, error radius is greater than institute There is the color of the median of error radius in color to carry out one-time detection again (referring to screening A, from small to large according to error radius Sequentially), if meeting screening conditions: all meeting Rij > 32+Ri+Rj with all colours in set { M }, which is put into collection It closes { M }, does not meet, leave out.
The result screened through screening B as shown in table 5 and fig. 6, picks out 14 kinds of colors, the color serial number of these colors Are as follows: 64,4,49,1,36,51,12,19,10,58,43,23,27,32.
Table 5
Second, the assembly coding of color
When being 14 kinds of above-mentioned colors for number of color, if monochromatic block absolute coding, a color lump can only indicate 3 Bit data have the transmittability of 6 kinds of colors to waste;When using monochromatic block absolute coding, 4 color lumps can only transmit 3bit × 4= 12bit data, according to 4 color lump assembly coding modes, then 4 color lumps can indicate 14^4=38416 kind state, it can pass Defeated log22401=15.2, are rounded as 15bit data, and the volume of transmitted data of the picture of same number of color lump improves 25%.
Table 6 be optional number of color be 2 ~ 15 when compiled in collaboration with without assembly coding, two color lump assembly codings, four color lump groups The theory analysis of three kinds of situations of code compares.
Table 6
The test of third, color lump size determines
As Figure 7-9, color lump chequered with black and white in figure is not necessarily referring to practical color lump color, is intended merely to visual representation.
Use one of the following two kinds negotiation mode:
Negotiate in I: Fig. 7 and Fig. 8, test chart intermediate region is used for test color lumps size, and outer region is used for transmission other Data such as negotiation data and feedback data, first the second intelligent terminal show test chart shown in Fig. 7, and the first intelligent terminal is read should Test chart information simultaneously judges whether to receive correctly, if correctly, the second intelligent terminal continues to show test chart shown in Fig. 8, so anti- Repetition measurement examination, until receiving mistake or reaching minimum dimension.
Negotiate in II: Fig. 9, test chart intermediate region is used for test color lumps size, and outer region is used for transmission other data Such as negotiation data and feedback data, there are 6 kinds of different size of color lumps to be selected for test inside test chart.First intelligent terminal is read The figure information simultaneously successively judges whether to receive correctly, if the second intelligent terminal learns that the size is big according to color lump size from big to small Small information is not the minimum dimension in above-mentioned test chart, then, the second intelligent terminal could be aware that the first intelligent terminal can connect The minimum value of the color lump size of receipts;If the second intelligent terminal learns that the size information is the minimum ruler in above-mentioned test chart Very little, then the second intelligent terminal shows that the slightly smaller color lump test chart of more previous test chart of a color lump size (is specifically shown Full test color lump No.1 smaller than the preceding minimum test color lumps size once shown);It repeats the above process.This test chart will Data transmission and color lump size are tested while being carried out, it is possible to reduce the friendship between first intelligent terminal and the second functional terminal Mutually, reduce the time of customer transaction.
In addition, it should be noted that, the color in color lump chooses process, a.) the mobile concrete mode exchanged in color lump position It can not have to the mode completely as the present embodiment to exchange to move;B. 64 transpositions) are also not necessarily required, for example can simplify It replaces for 16 positions, than as shown in figure 1, after certain color lump occurs in current 1 color lump present position, being just no longer present in color lump 2,9, Position where 10, with the parameter of other three adjacent positions of the acquisition parameter approximate substitution of 1 position.
Shown by the present invention, being shot by the camera of the first intelligent terminal on the display screen of the second intelligent terminal Graphic code carries out information transmission, and it is (i.e. intelligent from second in contrast to above-mentioned first intelligent terminal to need to use reversed data channel Terminal obtains information by graphic code, but data are sent to the second intelligent terminal from the first intelligent terminal), this transmission It on direction, can be transmitted by another pair camera and graphic code, that is, pass through the camera shooting first of the second intelligent terminal Graphic code on intelligent terminal is realized, relevant information can also be transmitted from the first intelligent terminal by other data channel To the second intelligent terminal, what the present invention focused on to illustrate is the second intelligence of camera shooting how improved using the first intelligent terminal Communication speed when graphic code in terminal is communicated, if also communicated using this communication mode on opposite reversed, Its principle be it is the same, do not illustrate separately.
The present invention, which can be greatly improved, acquires another equipment (using the camera of an equipment (the first intelligent terminal) Two intelligent terminals) communication speed when being communicated of the graphic code of display screen: negotiate color lump size using according to special scenes Method, if the size dimension of color lump can reduce half, open ended color lump quantity conservative estimation will on unit area It can become original 4 times;It is used for transmission color using a variety of reference colors, as in the embodiment of the present invention, single color lump can be with Transmission 3.75bit, rather than original 1bit;Therefore total transmission speed conservative estimation can reach the 4*3.75 of traditional scheme= 15 times.
Although disclosed herein embodiment it is as above, the content is only to facilitate understanding the present invention and adopting Embodiment is not intended to limit the invention.Any those skilled in the art to which this invention pertains are not departing from this Under the premise of the disclosed spirit and scope of invention, any modification and change can be made in the implementing form and in details, But it should all fall in the protection domain of the application.

Claims (6)

1. a kind of method for improving communication speed when camera shooting graphic code communicates characterized by comprising
First intelligent terminal;
Second intelligent terminal;
First intelligent terminal shoots graphic code shown by second intelligent terminal by camera and is communicated, logical During letter, eventually according to the self performance, and/or first intelligence of first intelligent terminal and second intelligent terminal Present application scenarios when end and second intelligent terminal communication, to select the relevant parameter of the graphic code, to mention Communication speed between high first intelligent terminal and second intelligent terminal;
The relevant parameter of the graphic code includes: that the color lump of the graphic code selects color, the size of color lump, and/or color The coding mode of block;
The method of determination of the color lump color of the graphic code includes: to select X color measurement figures;Select the test color of Y color Block;The test color lumps of each color are different the location of in every color measurement figure;First intelligence is eventually The X color measurement figures of second intelligent terminal are read at end, obtain each color in the Y color described the Color value set in the color space of one intelligent terminal is integrated into the color space according to the color value of each color In position, filter out several reference colors for meeting screening conditions;
The screening conditions of the color lump color are as follows: in the set of the reference color being screened out, any two kinds of color i It is greater than error radius Ri, Rj of two kinds of colors with distance Rij of the color j in the color space of the camera and anti-eclipse is protected Protect the sum of distance m, i.e. Rij > m+Ri+Rj;
Wherein, the anti-eclipse guard space m is a constant or the proportionality coefficient of the error radius Ri and Rj;
The screening includes: according to the sequence from small arrival of the error radius of each color in the Y color, Mei Geyan Color verifies the screening conditions one by one;
The screening includes: the color being first less than the error radius of the color in the Y color in the Y color The color of the median of error radius is appointed according in 8 vertex in the color space apart from first intelligent terminal The distance of meaning one is from closely to remote, if, according to the error radius from the sequence of small arrival, each color is tested one by one apart from the same Demonstrate,prove the screening conditions, wherein color coordinates of 8 vertex in the color space of first intelligent terminal point Not Wei (0,0,0), (0,0,255), (0,255,0), (255,0,0), (0,255,255), (255,0,255), (255,255, 0), (255,255,255);Then, the error radius of the color in the Y color is greater than or equal in the Y color Color error radius in median color, according to the error radius from the sequence of small arrival, one by one described in verifying Screening conditions.
2. the method according to claim 1 for improving communication speed when camera shooting graphic code communicates, feature exist In the self performance of first intelligent terminal and second intelligent terminal includes:
The recognition performance of the camera of first intelligent terminal and second intelligent terminal and/or first intelligence are eventually The imaging performance of the display unit of end and second intelligent terminal.
3. the side of the communication speed described in any one of -2 when raising camera shooting graphic code communication according to claim 1 Method, which is characterized in that present application scenarios include: when first intelligent terminal and second intelligent terminal communication
The light background and/or first intelligence of first intelligent terminal and the second intelligent terminal local environment are eventually Mutual angle positional relationship between end and second intelligent terminal.
4. the method according to claim 1 for improving communication speed when camera shooting graphic code communicates, feature exist In the method for determination of the size of the color lump of the graphic code includes:
First intelligent terminal is from multiple shown color lump size measuring figures of second intelligent terminal, described in judgement The minimum color lump size that first intelligent terminal can identify, wherein second intelligent terminal shows multiple described color lumps one by one Size measuring figure, the color lump size in every color lump size measuring figure are consistent.
5. the method according to claim 1 for improving communication speed when camera shooting graphic code communicates, feature exist In the method for determination of the size of the color lump of the graphic code includes:
First intelligent terminal is from multiple shown color lump size measuring figures of second intelligent terminal, described in judgement The minimum color lump size that first intelligent terminal can identify, wherein second intelligent terminal shows multiple described color lumps one by one Size measuring figure, the color lump size in every color lump size measuring figure is inconsistent, latter color lump size measuring figure The full-size of middle color lump is less than the minimum dimension of color lump in previous color lump size measuring figure, and second intelligent terminal is shown The condition of the latter color lump size measuring figure are as follows: first intelligent terminal can correctly identify the previous color lump ruler Smallest size of color lump in very little test chart.
6. the method according to claim 1 for improving communication speed when camera shooting graphic code communicates, feature exist In the coding mode of the color lump of the graphic code is combined coding using 2,4 or 8 color lumps.
CN201611112315.0A 2016-12-07 2016-12-07 A method of improving communication speed when camera shooting graphic code communication Active CN106559581B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611112315.0A CN106559581B (en) 2016-12-07 2016-12-07 A method of improving communication speed when camera shooting graphic code communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611112315.0A CN106559581B (en) 2016-12-07 2016-12-07 A method of improving communication speed when camera shooting graphic code communication

Publications (2)

Publication Number Publication Date
CN106559581A CN106559581A (en) 2017-04-05
CN106559581B true CN106559581B (en) 2019-08-23

Family

ID=58445179

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611112315.0A Active CN106559581B (en) 2016-12-07 2016-12-07 A method of improving communication speed when camera shooting graphic code communication

Country Status (1)

Country Link
CN (1) CN106559581B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101993512B1 (en) * 2017-04-21 2019-09-30 성균관대학교산학협력단 An apparatus of presenting encryption code for screen-to-camera communication, and method thereof
CN109800837B (en) * 2019-01-10 2022-03-22 深圳市雄帝科技股份有限公司 Data communication method, device and storage medium

Citations (3)

* 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
CN102289653A (en) * 2011-08-29 2011-12-21 我查查信息技术(上海)有限公司 Method for increasing identification rate of optical identifier and optical identifier
CN106056021A (en) * 2016-06-13 2016-10-26 上海交通大学 Hue-based volume-flexible color two-dimensional code stream data communication method and system

Patent Citations (3)

* 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
CN102289653A (en) * 2011-08-29 2011-12-21 我查查信息技术(上海)有限公司 Method for increasing identification rate of optical identifier and optical identifier
CN106056021A (en) * 2016-06-13 2016-10-26 上海交通大学 Hue-based volume-flexible color two-dimensional code stream data communication method and system

Also Published As

Publication number Publication date
CN106559581A (en) 2017-04-05

Similar Documents

Publication Publication Date Title
CN107534735B (en) Image processing method, device and the terminal of terminal
CN109661666B (en) Optical communication device and system, and corresponding information transmission and reception method
CN108718405B (en) Auto white balance system and method
CN103177279B (en) Four-dimensional color bar code for high capacity data encoding and decoding
CN102273208B (en) Image processing device and image processing method
CN105430361B (en) Imaging method, imaging sensor, imaging device and electronic installation
CN109978111A (en) Matrix two-dimensional code, its generation, coding/decoding method and its equipment
CN106056021B (en) Volume-variable color 2 D bit stream data communication means and system based on form and aspect
CN110300294A (en) Projection control, method for controlling projection and storage medium
CN105578006B (en) Imaging method, imaging device and electronic installation
CN102843186A (en) Information transmission system, information sending device, information receiving device, information transmission method, information sending method and information receiving method
CN104335227A (en) Anchors for location-based navigation and augmented reality applications
CN107210815A (en) System and method for providing optical encoding information
CN106559581B (en) A method of improving communication speed when camera shooting graphic code communication
CN105611125B (en) Imaging method, imaging device and electronic installation
CN109564462A (en) Electronic tracking equipment, Third-party Logistics and electronic tracking method
WO2021098486A1 (en) Garment color recognition processing method, device, apparatus, and storage medium
CN105611257B (en) Imaging method, imaging sensor, imaging device and electronic device
CN1972274A (en) System and method for processing facial image change based on Internet and mobile application
CN107454351A (en) Imaging communication system and method based on multicolor visible light technology
CN110493583A (en) Image processing method, device, electronic equipment and computer readable storage medium
CN104636779A (en) Annular code identifier recognition system
CN106791734A (en) The method of device, electronic installation and IMAQ for IMAQ
CN105578080A (en) Imaging method, image sensor, imaging device and electronic device
CN108053438A (en) Depth of field acquisition methods, device and equipment

Legal Events

Date Code Title Description
PB01 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