CN104680217B - A kind of product information dot matrix coding/decoding system application process - Google Patents

A kind of product information dot matrix coding/decoding system application process Download PDF

Info

Publication number
CN104680217B
CN104680217B CN201510045275.1A CN201510045275A CN104680217B CN 104680217 B CN104680217 B CN 104680217B CN 201510045275 A CN201510045275 A CN 201510045275A CN 104680217 B CN104680217 B CN 104680217B
Authority
CN
China
Prior art keywords
dot matrix
product
coding
product information
product packaging
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
CN201510045275.1A
Other languages
Chinese (zh)
Other versions
CN104680217A (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.)
Nanjing Xinzhike Information Technology Co., Ltd.
Original Assignee
NANJING HUANYIN ANTI-COUNTERFEITING 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 NANJING HUANYIN ANTI-COUNTERFEITING TECHNOLOGY Co Ltd filed Critical NANJING HUANYIN ANTI-COUNTERFEITING TECHNOLOGY Co Ltd
Priority to CN201510045275.1A priority Critical patent/CN104680217B/en
Publication of CN104680217A publication Critical patent/CN104680217A/en
Application granted granted Critical
Publication of CN104680217B publication Critical patent/CN104680217B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

The present invention relates to a kind of product information dot matrix coding/decoding system application process,Based on printing image lattice coding techniques,Product information is switched into image lattice coded format to incorporate in the middle of product packaging,The coding corresponding to product information is realized i.e. on product packaging electronic chart,The product packaging encoded with dot matrix is obtained by printing,Herein on basis,With reference to network service,Upload server end of taking pictures is carried out to product packaging by the client,Obtained by server end,And decoded for coding,Obtain corresponding product information,Return to the inquiry that correspondence client realizes being directed to product information,Compared to prior art,Product packaging printing zone is taken without special,Coding is hidden in the middle of product packaging,Product appearance is not influenceed not only,And the leakage of product information can be prevented effectively from,Can effectively be combined with digital watermark anti-fake technology,Product is avoided to fake.

Description

A kind of product information dot matrix coding/decoding system application process
Technical field
The present invention relates to a kind of product information dot matrix coding/decoding system application process.
Background technology
For existing product, product information coding is mainly the information of bar code and Quick Response Code, bar code and Quick Response Code Capacity has the upper limit, and needs certain region for taking product packaging to be printed, and can influence the attractive in appearance of commodity packaging, in addition the volume Code technology has stricter technical specification, is difficult to be combined with the existing anti-counterfeiting technology such as digital watermarking, it is easy to be imitated.
The content of the invention
For above-mentioned technical problem, the technical problems to be solved by the invention are to provide a kind of based on printing image lattice volume Code technology, switchs to product information coded format and incorporates in the middle of product packaging, and combines network service, realizes product information intelligence The product information dot matrix coding/decoding system application process of inquiry.
In order to solve the above-mentioned technical problem the present invention uses following technical scheme:The present invention devises a kind of product information point Battle array coding/decoding system application process, product information dot matrix coding/decoding system includes with the addition of the product packaging of dot matrix coding, is used for Obtain the client of product packaging image, and the server end being in communication with each other with client;Client obtains product bag Dress image uploads onto the server end, and server end carries out dot matrix decoding, obtains the product according to the product packaging image for receiving Information;Application process includes that dot matrix encodes adding method, comprises the following steps:
The product that step A01. encodes dot matrix to be added generates unique index data string, stores in server end, and Product information with the product is corresponded;
Step A02. is encoded according to pre-arranged code method, the index data string for the product, obtains the product Coded data string;Then according to preset data system, the coded data string of the product is converted into m binary datas, the m system numbers According to the dot matrix coded data as the product, m is the integer more than zero;
In pre-arranged code regions of the step A03. on product packaging electronic chart, K is chosen according to predeterminated position selection rule Individual l × n dot matrix, the numerical value in dot matrix coded data according to the product, and numerical order, by default dot matrix coded data Corresponding relation between middle numerical value and l × n dot matrix coding sites, sequentially for each l × n dot matrix on product packaging electronic chart point Image attribute data renewal is not carried out, realizes the addition of dot matrix coding on the product packaging electronic chart, wherein, K is the product The digit of dot matrix coded data, m≤(l × n), K, l, m, n are the integer more than zero, and each m in dot matrix coded data enters Numerical value processed is corresponded with each l × n dot matrix respectively, and different m binary values are corresponded in each l × n dot matrix not respectively The position of same point;
Step A04. is printed according to the product packaging electronic chart for being added with dot matrix coding, is obtained with corresponding product letter The product packaging of the dot matrix coding of breath.
As a preferred technical solution of the present invention:In the step A01, the dot matrix encodes corresponding product information Purchasing of raw materials link information, production link information including product, storage link information, logistics links information and sales section letter Breath.
As a preferred technical solution of the present invention:In the step A02, the pre-arranged code method is Bose-Chaudhuri-Hocquenghem Code, By Bose-Chaudhuri-Hocquenghem Code, the index data string for the product carries out Error Correction of Coding, obtains the coded data string of the product.
As a preferred technical solution of the present invention:In the step A02, according to Bose-Chaudhuri-Hocquenghem Code, for the rope of the product Drawing serial data carries out Error Correction of Coding twice, obtains the coded data string of the product.
As a preferred technical solution of the present invention:In the step A03, the predeterminated position selection rule is advance Specified location, i.e., position of the described K l × n dot matrix in pre-arranged code region on product packaging electronic chart is predesignated Position, and the pre-specified position is stored in the server end.
As a preferred technical solution of the present invention:In the step A03, the predeterminated position selection rule is first place Put predesignated, i.e., in described K l × n dot matrix, first l × n dot matrix of numerical value is being produced in the correspondence dot matrix coded data Position on product packaging electronic chart in pre-arranged code region is predesignated, and l × n dot matrix position, it is and sequentially each Spacing distance between individual l × n dot matrix is stored in the server end.
As a preferred technical solution of the present invention:It is described for each on product packaging electronic chart in the step A03 Individual l × n dot matrix carry out the process of image attribute data renewal respectively, as follows respectively:
First detection obtain l × n dot matrix in maximum gradation value Hmax, then according in the dot matrix coded data with should The corresponding numerical value of l × n dot matrix, updates the gray value of corresponding points in l × n dot matrix for Hmax+a, realizes being directed to l × n points The image attribute data of battle array updates, wherein, a is default grey scale change value.
As a preferred technical solution of the present invention:It is described for each on product packaging electronic chart in the step A03 Individual l × n dot matrix carry out the process of image attribute data renewal respectively, as follows respectively:
First detection obtain l × n dot matrix in minimum gradation value Hmin, then according in the dot matrix coded data with should The corresponding numerical value of l × n dot matrix, updates the gray value of corresponding points in l × n dot matrix for Hmin-a, realizes being directed to l × n points The image attribute data of battle array updates, wherein, a is default grey scale change value.
As a preferred technical solution of the present invention:In the step A03, the correspondence on the product packaging electronic chart The corner location in the pre-arranged code region sets telltale mark pattern.
As a preferred technical solution of the present invention:The application process also includes lattice decoding method, including as follows Step:
Step B01. obtains the product packaging image of product to be tested by the client, first to product packaging image It is corrected, is then uploaded to the server end;
Telltale mark pattern of the server end described in step B02. in product packaging image, obtains product packaging image In pre-arranged code region;
Step B03. server ends sequentially obtain each l × n according to predeterminated position selection rule from pre-arranged code region Dot matrix;
The method that step B04. server ends carry out image attribute data renewal according to l × n dot matrix in step A03, sequentially The m binary values corresponding to each l × n dot matrix are obtained, and sequentially constitutes dot matrix coded data;
Pre-arranged code method and preset data system of the step B05. server ends in step A02, dot matrix is encoded Data convert is the index data string of product;
Step B06. server ends inquire about corresponding product information according to index data string, and the product information is sent back to The client.
A kind of product information dot matrix coding/decoding system application process of the present invention uses above technical scheme and existing skill Art is compared, with following technique effect:
(1) the product information dot matrix coding/decoding system application process of present invention design, based on printing image lattice coding skill Art, switchs to product information image lattice coded format and incorporates in the middle of product packaging, i.e., it is right to be realized on product packaging electronic chart The product packaging encoded with dot matrix should be obtained by printing in the coding of product information, it is logical with reference to network herein on basis Letter, upload server end of taking pictures is carried out by the client to product packaging, is obtained by server end and is carried out for coding Decoding, obtains corresponding product information, returns to the inquiry that correspondence client is realized for product information, compared to prior art, no Product packaging printing zone is taken with special, coding is hidden in the middle of product packaging, product appearance, Er Qieneng are not influenceed not only The leakage of product information is enough prevented effectively from, can effectively be combined with digital watermark anti-fake technology, it is to avoid product is faked;
(2) in the product information dot matrix coding/decoding system application process of present invention design, for product information, specific design Including the much information related to product, can realize more comprehensively obtaining for product information, energy in actual applications Enough greatly improve the operating efficiency of deisgn product information dot matrix coding/decoding system application process of the present invention;
(3) in the product information dot matrix coding/decoding system application process of present invention design, for product information numeric data Coded system, specific design using Bose-Chaudhuri-Hocquenghem Code realize for the product index data string Error Correction of Coding, can effectively ensure that Stability in follow-up dot matrix decoding process, and further specific design carries out Error Correction of Coding twice using Bose-Chaudhuri-Hocquenghem Code, can Further greatly improve the stability in follow-up dot matrix decoding process
(4) in the product information dot matrix coding/decoding system application process of present invention design, in product packaging electronic chart The mode of l × n dot matrix is chosen in upper pre-arranged code region, specific design pre-specified position and first place put predesignated two kinds Mode so that the present invention can realize more flexile practical application, and practical ranges are more extensive;
(5) in the product information dot matrix coding/decoding system application process of present invention design, on product packaging electronic chart Each l × n dot matrix carries out the process of image attribute data renewal, has carried out specific design, the gray value basis based on dot matrix On, two kinds of image attribute data update modes are devised, first, design increases default grey scale change on maximum gradation value Hmax Value a, realizes that the image attribute data of corresponding points in dot matrix updates;Second, subtracting default gray scale on design minimum gradation value Hmin Changing value a, realizes that the image attribute data of corresponding points in dot matrix updates;So design of various ways, can further improve The diversity and stability of the process practical application;
(6) in the product information dot matrix coding/decoding system application process of present invention design, on product packaging electronic chart Pre-arranged code region, its corner location set telltale mark pattern, server end from product packaging figure can be effectively improved Obtain the speed and accuracy rate in pre-arranged code region as in, and and then effectively increase the speed for subsequently obtaining each l × n dot matrix Rate and accuracy rate, have been effectively ensured the operating efficiency and accuracy rate of lattice decoding method in design of the present invention;
(7) in the product information dot matrix coding/decoding system application process of present invention design, the product bag based on dot matrix coding Dress, client, the structure of server end, the dot matrix coding adding method with design are corresponding, devise brand-new dot matrix decoding Method, it is corresponding with dot matrix coding adding method, corresponding product in being stored in server end is obtained by the way of the inverse transformation Product information, whole procedure clear logic, adding method is same has the advantages that efficient stable with dot matrix coding, effectively carries Client high obtains the accuracy and promptness of product information.
Brief description of the drawings
Fig. 1 is the frame diagram of deisgn product information dot matrix coding/decoding system application process of the present invention;
Fig. 2 to Figure 17 is successively showing to numerical value F of numerical value 0 in 4 × 4 dot matrix correspondence, 16 systems in design embodiments of the present invention It is intended to;Figure 18 to Figure 21 is that telltale mark pattern is set at the corner location in pre-arranged code region in design embodiments of the present invention Schematic diagram.
Wherein, 1. pre-arranged code region, 2. black and white matts pattern telltale mark pattern, 3. square frame pattern telltale mark figure Case, 4.L pattern telltale mark patterns, 5. cross pattern telltale mark pattern.
Specific embodiment
Specific embodiment of the invention is described in further detail with reference to Figure of description.
As shown in figure 1, a kind of product information dot matrix coding/decoding system application process of present invention design, product information dot matrix volume Solution code system includes with the addition of the product packaging of dot matrix coding, the client for obtaining product packaging image, and and client The server end that end is in communication with each other;Client obtains product packaging image and uploads onto the server end, and server end is according to connecing The product packaging image for receiving carries out dot matrix decoding, obtains the product information;Application process includes that dot matrix encodes adding method, bag Include following steps:
The product that step A01. encodes dot matrix to be added generates unique index data string, stores in server end, and Product information with the product is corresponded;
Step A02. is encoded according to pre-arranged code method, the index data string for the product, obtains the product Coded data string;Then according to preset data system, the coded data string of the product is converted into m binary datas, the m system numbers According to the dot matrix coded data as the product, m is the integer more than zero;
In pre-arranged code regions of the step A03. on product packaging electronic chart, K is chosen according to predeterminated position selection rule Individual l × n dot matrix, the numerical value in dot matrix coded data according to the product, and numerical order, by default dot matrix coded data Corresponding relation between middle numerical value and l × n dot matrix coding sites, sequentially for each l × n dot matrix on product packaging electronic chart point Image attribute data renewal is not carried out, realizes the addition of dot matrix coding on the product packaging electronic chart, wherein, K is the product The digit of dot matrix coded data, m≤(l × n), K, l, m, n are the integer more than zero, and each m in dot matrix coded data enters Numerical value processed is corresponded with each l × n dot matrix respectively, and different m binary values are corresponded in each l × n dot matrix not respectively The position of same point;
Step A04. is printed according to the product packaging electronic chart for being added with dot matrix coding, is obtained with corresponding product letter The product packaging of the dot matrix coding of breath.
The product information dot matrix coding/decoding system application process of above-mentioned technical proposal design, based on printing image lattice coding Technology, switchs to product information image lattice coded format and incorporates in the middle of product packaging, i.e., realized on product packaging electronic chart Corresponding to the coding of product information, the product packaging encoded with dot matrix is obtained by printing, herein on basis, with reference to network Communication, upload server end of taking pictures is carried out to product packaging by the client, by server end obtain and for encode into Row decoding, obtains corresponding product information, and return correspondence client realizes the inquiry for product information, compared to prior art, Product packaging printing zone is taken without special, coding is hidden in the middle of product packaging, product appearance is not influenceed not only, and The leakage of product information can be prevented effectively from, can effectively be combined with digital watermark anti-fake technology, it is to avoid product is faked.
On basis based on above-mentioned deisgn product information dot matrix coding/decoding system application process technical scheme, pin of the present invention Following optimal technical scheme is also further devised to above-mentioned technical proposal:In the step A01, the dot matrix coding is corresponding Product information includes purchasing of raw materials link information, production link information, storage link information, logistics links information and the pin of product Sell link information, above-mentioned for product information, specific design, can be in practical application including the much information related to product In, realization is more comprehensively obtained for product information, can greatly improve deisgn product information dot matrix encoding and decoding system of the present invention The operating efficiency of system application process;Also for the pre-arranged code method in the step A02, design uses Bose-Chaudhuri-Hocquenghem Code, according to Bose-Chaudhuri-Hocquenghem Code, the index data string for the product carries out Error Correction of Coding, obtains the coded data string of the product, can effectively protect The stability in follow-up dot matrix decoding process is demonstrate,proved, and further specific design carries out Error Correction of Coding twice, energy using Bose-Chaudhuri-Hocquenghem Code The enough stability further greatly improved in follow-up dot matrix decoding process;Moreover, for the default position in the step A03 Putting selection rule has carried out specific design, and such as predeterminated position selection rule is pre-specified position, i.e., described K l × n dot matrix exist Position on product packaging electronic chart in pre-arranged code region is pre-specified position, and the pre-specified position is stored in In the server end;Or position preassigns headed by predeterminated position selection rule, i.e., in described K l × n dot matrix, correspondence The position of first l × n dot matrix of numerical value in pre-arranged code region on product packaging electronic chart in the dot matrix coded data Be predesignated, and l × n dot matrix position, and sequentially the spacing distance between each l × n dot matrix be stored in it is described It is above-mentioned for the mode that l × n dot matrix are chosen in pre-arranged code region on product packaging electronic chart in server end, specifically set Predesignated two ways is put in the pre-specified position of meter and first place so that the present invention can realize more flexile reality Using, and practical ranges are more extensive;And present invention is alternatively directed in step A03, l × n on product packaging electronic chart Dot matrix carries out the process of image attribute data renewal, has carried out specific design, such as first in detection acquisition l × n dot matrix most High-gray level value Hmax, then according to numerical value corresponding with l × n dot matrix in the dot matrix coded data, updates l × n points The gray value of corresponding points is Hmax+a in battle array, realizes being updated for the image attribute data of l × n dot matrix, wherein, a is default Grey scale change value;Or detection obtains the minimum gradation value Hmin in l × n dot matrix first, then according to the dot matrix coded number The numerical value corresponding with l × n dot matrix in, updates the gray value of corresponding points in l × n dot matrix for Hmin-a, realizes being directed to The image attribute data of l × n dot matrix updates, on the above-mentioned gray value basis based on dot matrix, two kinds of image attributes of design Data refresh mode, increases default grey scale change value a on maximum gradation value Hmax, realizes the image attributes of corresponding points in dot matrix Data update;Or default grey scale change value a is subtracted on minimum gradation value Hmin, realize the image attributes of corresponding points in dot matrix Data update;So design of various ways, can further improve the diversity and stability of the process practical application;Also Have, for the pre-arranged code region on product packaging electronic chart, telltale mark pattern is set in its corner location, can effectively carry Server end high obtains the speed and accuracy rate in pre-arranged code region from product packaging image, and and then after effectively increasing The continuous speed and accuracy rate for obtaining each l × n dot matrix, has been effectively ensured the operating efficiency of lattice decoding method in design of the present invention And accuracy rate.
Corresponding with above-mentioned design dot matrix coding adding method, the present invention also further devises brand-new digital dot array solution Code method, comprises the following steps:
Step B01. obtains the product packaging image of product to be tested by the client, first to product packaging image It is corrected, is then uploaded to the server end;
Telltale mark pattern of the server end described in step B02. in product packaging image, obtains product packaging image In pre-arranged code region;
Step B03. server ends sequentially obtain each l × n according to predeterminated position selection rule from pre-arranged code region Dot matrix;
The method that step B04. server ends carry out image attribute data renewal according to l × n dot matrix in step A03, sequentially The m binary values corresponding to each l × n dot matrix are obtained, and sequentially constitutes dot matrix coded data;
Pre-arranged code method and preset data system of the step B05. server ends in step A02, dot matrix is encoded Data convert is the index data string of product;
Step B06. server ends inquire about corresponding product information according to index data string, and the product information is sent back to The client.
The technical scheme of above-mentioned design lattice decoding method, it is corresponding with dot matrix coding adding method, using inverse transformation Mode obtains the product information for being stored in corresponding product in server end, and whole procedure clear logic adds with dot matrix coding Adding method equally has the advantages that efficient stable, effectively increases accuracy and promptness that client obtains product information.
To sum up, the product information dot matrix coding/decoding system application process of present invention design has in the middle of actual application Body is referred to that step execution is implemented as follows, and is first dot matrix coding adding method, step specific as follows:
The product that step A01. encodes dot matrix to be added generates unique index data string, stores in server end, and Product information with the product is corresponded.
Wherein, dot matrix encodes corresponding product information includes purchasing of raw materials link information, production link information, the storehouse of product Storage link information, logistics links information and sales section information.
First according to Bose-Chaudhuri-Hocquenghem Code, the index data string for the product carries out Error Correction of Coding twice, is somebody's turn to do step A02. The coded data string of product, is specifically referred to following practical application among these:
Coding parameter includes:(G, H, T), wherein G are the length of Error Correction of Coding, and H is the length of effective information, and T is maximum Error correction length, herein for the index data string of the product, has carried out Error Correction of Coding twice, then coding parameter by Bose-Chaudhuri-Hocquenghem Code It is successively:(31,21,2) and (31,6,7), precoding process can be deformed according to practical application condition to index data string, Mend 0, Bose-Chaudhuri-Hocquenghem Code;Such as:Raw information is 60bit, and raw information first is divided into 3 groups, becomes 20bit*3, and every group end is mended 0, it is changed into:21bit*3, Error Correction of Coding is carried out using coding parameter (31,21,2), the Error Correction of Coding 1 of 31bit*3 is obtained, to it Carry out end and mend 0, obtain the array of 32bit*3, it is carried out to deform the array for obtaining 6bit*16, recycle coding parameter (31,6,7) carry out secondary Error Correction of Coding, obtain the Error Correction of Coding 2 of 31bit*16, finally pass through the coding information of 31bit*16 Mend the 0 coded data string for being changed into 32bit*16, the i.e. product.
Then according to preset data system, the coded data string of the product is converted into 16 binary datas, obtains 8*16's 16 binary data numbers, 16 binary data as the product dot matrix coded data.
Step A03. corner locations in correspondence pre-arranged code region first on product packaging electronic chart set telltale mark Pattern, telltale mark pattern can be designed as such as matrix pattern anchor point, square frame anchor point, L-type anchor point, cross anchor point Deng as shown in Figure 18 to Figure 21.
Then in the pre-arranged code region on product packaging electronic chart, according to predeterminated position selection rule choose K 4 × 4 dot matrix, wherein, predeterminated position selection rule can be designed as two ways, can optional one in practical application:
First, predeterminated position selection rule is pre-specified position, i.e., described K 4 × 4 dot matrix are in product packaging electronic chart Position in upper pre-arranged code region is pre-specified position, and the pre-specified position is stored in the server end In;
Second, position preassigns headed by predeterminated position selection rule, i.e., in described K 4 × 4 dot matrix, the correspondence point The position of first 4 × 4 dot matrix of numerical value in pre-arranged code region on product packaging electronic chart is advance in battle array coded data Specify, and 4 × 4 dot matrix position, and sequentially the spacing distance between each 4 × 4 dot matrix is stored in the server In end.
Finally according to the numerical value in the dot matrix coded data of the product, and numerical order, by default dot matrix coded number According to middle numerical value correspondence l × n dot matrix coding site relations, sequentially carried out respectively for each 4 × 4 dot matrix on product packaging electronic chart Image attribute data updates, and realizes the addition of dot matrix coding on the product packaging electronic chart, wherein, K is that the dot matrix of the product is compiled The digit of code data, each numerical value in dot matrix coded data is corresponded with each 4 × 4 dot matrix respectively, and different numbers Value corresponds to different point in each 4 × 4 dot matrix respectively, as shown in Fig. 2 to Figure 17;It is above-mentioned on product packaging electronic chart each 4 × 4 dot matrix carry out the process of image attribute data renewal respectively, the following two kinds mode can be designed specifically to, in practical application Can optional one:
First, detection obtains the maximum gradation value Hmax in 4 × 4 dot matrix first, then according to the dot matrix coded data In the numerical value corresponding with 4 × 4 dot matrix, update the gray value of corresponding points in 4 × 4 dot matrix for Hmax+a, realize for this 4 The image attribute data of × 4 dot matrix updates, wherein, a is default grey scale change value.
Second, detection obtains the minimum gradation value Hmin in 4 × 4 dot matrix first, then according to the dot matrix coded data In the numerical value corresponding with 4 × 4 dot matrix, update the gray value of corresponding points in 4 × 4 dot matrix for Hmin-a, realize for this 4 The image attribute data of × 4 dot matrix updates, wherein, a is default grey scale change value.
Step A04. is printed according to the product packaging electronic chart for being added with dot matrix coding, is obtained with corresponding product letter The product packaging of the dot matrix coding of breath.
The lattice decoding method corresponding with dot matrix coding adding method, it is equally corresponding with above method step, specifically Comprise the following steps:
Step B01. obtains the product packaging image of product to be tested by the client, first to product packaging image It is corrected, is then uploaded to the server end.
Telltale mark pattern of the server end described in step B02. in product packaging image, obtains product packaging image In pre-arranged code region.
Step B03. server ends sequentially obtain each l × n according to predeterminated position selection rule from pre-arranged code region Dot matrix.
The method that step B04. server ends carry out image attribute data renewal according to 4 × 4 dot matrix in step A03, sequentially The numerical value corresponding to each 4 × 4 dot matrix is obtained, sequentially for each 4 × 4 dot matrix, maximum gray scale in dot matrix is found (or minimum Gray scale) corresponding position, so as to obtain 16 binary datas, i.e. dot matrix coded data.
Pre-arranged code method and preset data system of the step B05. server ends in step A02, dot matrix is encoded Data convert is the index data string of product, here in practical application, i.e., with reference to being carried out by Bose-Chaudhuri-Hocquenghem Code in above-mentioned steps A02 Error Correction of Coding twice, it is actual following to perform, be reduced to the index data string of product:
It is successively using coding parameter successively:(31,6,7), (31,21,2), wherein, dot matrix coded data is converted first It is 2 systems, obtains the binary system array of 32bit*16, removes last and mend 0 binary system array for obtaining 31bit*16, profit The binary system array that decoding obtains 6bit*16 is carried out with coding parameter (31,6,7), deformation obtains 32bit*3 two are carried out to it System array, it is the binary system array for being changed into 31bit*3 to remove last and mend 0, recycles coding parameter (31,21,2) to carry out Decoding obtains the binary system array of 21bit*3, removes last and mends 0 binary system array for obtaining 20bit*3, finally deforms Obtain the index data string of 60bit raw informations, i.e. product.
Step B06. server ends inquire about corresponding product information according to index data string, and the product information is sent back to The client.
In the product information dot matrix coding/decoding system application process of present invention design, the role of authorized user is also designed, should Authorized user can by smart mobile phone as client real time modifying server end in corresponding product product information.
Embodiments of the present invention are explained in detail above in conjunction with accompanying drawing, but the present invention is not limited to above-mentioned implementation Mode, in the ken that those of ordinary skill in the art possess, can also be on the premise of present inventive concept not be departed from Make a variety of changes.

Claims (10)

1. a kind of product information dot matrix coding/decoding system application process, it is characterised in that:Product information dot matrix coding/decoding system bag The product packaging that with the addition of dot matrix coding, the client for obtaining product packaging image are included, and is carried out mutually with client The server end of communication;Client obtains product packaging image and uploads onto the server end, and server end is according to the product for receiving Packaging image carries out dot matrix decoding, obtains the product information;Application process includes that dot matrix encodes adding method, including following step Suddenly:Product that step A01. encodes dot matrix to be added generates unique index data string, stores in server end, and with the product The product information of product is corresponded;
Step A02. is encoded according to pre-arranged code method, the index data string for the product, obtains the coding of the product Serial data;Then according to preset data system, the coded data string of the product is converted into m binary datas, the m binary datas are made It is the dot matrix coded data of the product, m is the integer more than zero;
In pre-arranged code regions of the step A03. on product packaging electronic chart, according to predeterminated position selection rule choose K l × N dot matrix, the numerical value in dot matrix coded data according to the product, and numerical order, by number in default dot matrix coded data Corresponding relation between value and l × n dot matrix coding sites, sequentially enters respectively for each l × n dot matrix on product packaging electronic chart Row image attribute data updates, and realizes the addition of dot matrix coding on the product packaging electronic chart, wherein, K is the dot matrix of the product The digit of coded data, m≤(l × n), K, l, m, n are the integer more than zero, each m system number in dot matrix coded data Value is corresponded with each l × n dot matrix respectively, and different m binary values correspond to respectively it is different in each l × n dot matrix The position of point;
Step A04. is printed according to the product packaging electronic chart for being added with dot matrix coding, is obtained with corresponding product information The product packaging of dot matrix coding.
2. a kind of product information dot matrix coding/decoding system application process according to claim 1, it is characterised in that:The step In A01, the dot matrix encodes corresponding product information includes purchasing of raw materials link information, production link information, the storage of product Link information, logistics links information and sales section information.
3. a kind of product information dot matrix coding/decoding system application process according to claim 1, it is characterised in that:The step In A02, the pre-arranged code method is Bose-Chaudhuri-Hocquenghem Code, and by Bose-Chaudhuri-Hocquenghem Code, the index data string for the product carries out error correction volume Code, obtains the coded data string of the product.
4. a kind of product information dot matrix coding/decoding system application process according to claim 3, it is characterised in that:The step In A02, according to Bose-Chaudhuri-Hocquenghem Code, the index data string for the product carries out Error Correction of Coding twice, obtains the coded data of the product String.
5. a kind of product information dot matrix coding/decoding system application process according to claim 1, it is characterised in that:The step In A03, the predeterminated position selection rule is pre-specified position, i.e., described K l × n dot matrix are on product packaging electronic chart Position in pre-arranged code region is pre-specified position, and the pre-specified position is stored in the server end.
6. a kind of product information dot matrix coding/decoding system application process according to claim 1, it is characterised in that:The step In A03, position is preassigned headed by the predeterminated position selection rule, i.e., in described K l × n dot matrix, the correspondence dot matrix is compiled In code data the position of first l × n dot matrix of numerical value in pre-arranged code region on product packaging electronic chart be it is predesignated, And the position of l × n dot matrix, and sequentially the spacing distance between each l × n dot matrix is stored in the server end.
7. a kind of product information dot matrix coding/decoding system application process according to claim 1, it is characterised in that:The step In A03, the process for carrying out image attribute data renewal respectively for each l × n dot matrix on product packaging electronic chart, respectively It is as follows:
First detection obtain l × n dot matrix in maximum gradation value Hmax, then according in the dot matrix coded data with the l × n The corresponding numerical value of dot matrix, updates the gray value of corresponding points in l × n dot matrix for Hmax+a, realizes for l × n dot matrix Image attribute data updates, wherein, a is default grey scale change value.
8. a kind of product information dot matrix coding/decoding system application process according to claim 1, it is characterised in that:The step In A03, the process for carrying out image attribute data renewal respectively for each l × n dot matrix on product packaging electronic chart, respectively It is as follows:
First detection obtain l × n dot matrix in minimum gradation value Hmin, then according in the dot matrix coded data with the l × n The corresponding numerical value of dot matrix, updates the gray value of corresponding points in l × n dot matrix for Hmin-a, realizes for l × n dot matrix Image attribute data updates, wherein, a is default grey scale change value.
9. a kind of product information dot matrix coding/decoding system application process according to claim 1, it is characterised in that:The step In A03, the corner location in the correspondence pre-arranged code region sets telltale mark pattern on the product packaging electronic chart.
10. a kind of product information dot matrix coding/decoding system application process according to claim 9, it is characterised in that:It is described to answer Also include lattice decoding method with method, comprise the following steps:
Step B01. obtains the product packaging image of product to be tested by the client, and product packaging image is carried out first Correction, is then uploaded to the server end;
Telltale mark pattern of the server end described in step B02. in product packaging image, in acquisition product packaging image Pre-arranged code region;
Step B03. server ends sequentially obtain each l × n point according to predeterminated position selection rule from pre-arranged code region Battle array;
The method that step B04. server ends carry out image attribute data renewal according to l × n dot matrix in step A03, sequentially obtains M binary values corresponding to each l × n dot matrix, and sequentially constitute dot matrix coded data;
Pre-arranged code method and preset data system of the step B05. server ends in step A02, by dot matrix coded data It is reduced to the index data string of product;
Step B06. server ends inquire about corresponding product information according to index data string, and the product information are sent back to described Client.
CN201510045275.1A 2015-01-28 2015-01-28 A kind of product information dot matrix coding/decoding system application process Active CN104680217B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510045275.1A CN104680217B (en) 2015-01-28 2015-01-28 A kind of product information dot matrix coding/decoding system application process

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510045275.1A CN104680217B (en) 2015-01-28 2015-01-28 A kind of product information dot matrix coding/decoding system application process

Publications (2)

Publication Number Publication Date
CN104680217A CN104680217A (en) 2015-06-03
CN104680217B true CN104680217B (en) 2017-07-07

Family

ID=53315232

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510045275.1A Active CN104680217B (en) 2015-01-28 2015-01-28 A kind of product information dot matrix coding/decoding system application process

Country Status (1)

Country Link
CN (1) CN104680217B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105243551B (en) * 2015-10-12 2019-02-15 上海应用技术学院 It is adapted to the anti-fake dot pattern decoding method of commodity packaging
CN108664534A (en) * 2017-04-02 2018-10-16 田雪松 The acquisition methods and system of application service data
CN107798372B (en) * 2017-11-24 2021-05-11 深圳市裕同包装科技股份有限公司 Encoding method, decoding method and decoding system of product information dot matrix image
CN109242509B (en) * 2018-08-20 2021-09-14 同济大学 Lattice character information coding and decoding method for commodity outer package
CN110609985A (en) * 2019-09-24 2019-12-24 南京环印防伪科技有限公司 Character sequence-based coding method
CN113822091B (en) * 2021-11-23 2022-03-15 北京紫光青藤微系统有限公司 Method and device for correcting errors of two-dimensional code pattern, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014115965A (en) * 2012-12-10 2014-06-26 Satoshi Mizoguchi Two-dimensional code reading method, and recording medium recording two-dimensional code reading method
CN103927572A (en) * 2014-04-15 2014-07-16 立德高科(北京)数码科技有限责任公司 Encoding graph block and method and device for forming lattice graph through encoding graph block

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014115965A (en) * 2012-12-10 2014-06-26 Satoshi Mizoguchi Two-dimensional code reading method, and recording medium recording two-dimensional code reading method
CN103927572A (en) * 2014-04-15 2014-07-16 立德高科(北京)数码科技有限责任公司 Encoding graph block and method and device for forming lattice graph through encoding graph block

Also Published As

Publication number Publication date
CN104680217A (en) 2015-06-03

Similar Documents

Publication Publication Date Title
CN104680217B (en) A kind of product information dot matrix coding/decoding system application process
CN105095935B (en) A kind of low-density having merged Chaos Encryption Technology, high coding capacity dot matrix Quick Response Code
US10832110B2 (en) Method to store a secret QR code into a colored secure QR code
CN105447546B (en) The two dimensional code and its coding and decoding methods and equipment of embeddable large scale figure
CN102184380B (en) Color-superposition two-dimension code system and application method thereof
CN1604647B (en) Watermarking scheme for digital video
CN104680218A (en) Multi-space two-dimensional code, and generation method and decoding method of multi-space two-dimensional code
CN105426945B (en) Intelligent graphic identifies the coded system and method, decoding system and method for two dimensional code
CN104794987A (en) Two-dimension code anti-counterfeit label
CN108073966A (en) A kind of conversion method of Quick Response Code and hole horizontal and vertical parity check code
CN110276428A (en) A kind of four-dimension code encoding and decoding method
CN103927572A (en) Encoding graph block and method and device for forming lattice graph through encoding graph block
CN106488244A (en) Image encoder, image decoder and image transmission
CN107798372A (en) Coding method, application process and the solution code system of product information dot matrix image
CN109919277B (en) Enciphered colour triangular code coding and decoding method for commodity external package
CN117057385A (en) Anti-interference color lattice information encoding and decoding method for commodity outer package
CN110738293B (en) Wide-adaptability bar code and encoding method thereof
CN112418374B (en) Information code generation method
CN113938685B (en) Cognitive software adjustable image coding device for large-scale image storage
CN109902242A (en) A kind of picture storage method in two dimensional code
CN104608469A (en) Offset plate, manufacturing method of offset plate, and method for applying one-dimensional barcodes
Jiao et al. Image steganography with visual illusion
CN107247984A (en) A kind of coding method for visualizing Quick Response Code
CN106709544A (en) Encoding system and method, and decoding system and method for graphic quick identification IQ code
CN114254719B (en) Anti-counterfeiting two-dimensional code generation method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20191129

Address after: No. 300 Zhihui Road, Kirin Science and Technology Innovation Park, Nanjing, Jiangsu Province, 211100

Patentee after: Nanjing Xinzhike Information Technology Co., Ltd.

Address before: 25 12-08 room, Maple Garden, South Garden, Jiangning District, Jiangsu, Nanjing 211100, China

Co-patentee before: NANJING HUANYIN ANTI-COUNTERFEITING TECHNOLOGY CO., LTD.

Patentee before: Fu Qiang

TR01 Transfer of patent right