CN103632179B - Code And Decode method and the device of Three-Dimensional Bar Code - Google Patents
Code And Decode method and the device of Three-Dimensional Bar Code Download PDFInfo
- Publication number
- CN103632179B CN103632179B CN201210300830.7A CN201210300830A CN103632179B CN 103632179 B CN103632179 B CN 103632179B CN 201210300830 A CN201210300830 A CN 201210300830A CN 103632179 B CN103632179 B CN 103632179B
- Authority
- CN
- China
- Prior art keywords
- bar code
- dimensional bar
- dimensional
- module
- message digest
- 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
Links
Landscapes
- Image Processing (AREA)
Abstract
The present invention relates to Code And Decode method and the device of Three-Dimensional Bar Code, coding is by the fileinfo in anacom, by reading computer language, information is done to further compression, encryption, and being rearranged into the three-dimensional colour bar code that can identify for Three-Dimensional Bar Code recognition device, computerized information is varied to can photocopy three-dimensional colour bar code in the plane. Decoding is by the Three-Dimensional Bar Code label in acquisition plane, and do digital assay to gathering image, parse the useful data comprising in bar code, and data are carried out to reducing processing with the recognizer being pre-stored in label recognizer, solve the computerized information being included in Three-Dimensional Bar Code, and by the direct Display control computer information of recognition device. The present invention can make the information storage of Three-Dimensional Bar Code increase, and to improving the error correcting capability of bar code.
Description
Technical field
The present invention relates to information storage and safe practice field, particularly relate to a kind of Three-Dimensional Bar Code Code And Decode method andDevice.
Background technology
Along with the progress of information age, the function of computer is quite powerful, the demand of information storage is also constantly increased,Quick Response Code originally, because information storage is little, can not meet computer user and bar code user's demand, therefore in two dimensionOn the basis of code, increased a dimension again and obtained Three-Dimensional Bar Code, the data that Three-Dimensional Bar Code can represent are also just more, have moreMany information capacities, any point in space all can be described by the parameter of X-axis, Y-axis and Z axis respectively, by XOn the basis of the two dimensional surface code that axle and Y-axis determine, introduce the concept of Z axis floor height, carry thereby code capacity has been had significantlyHigh.
It is too high that current anti-counterfeiting technology ubiquity the technical costs that anti-counterfeiting performance is good, and false proof cost is imputed to consumptionPerson, increase consumer's burden. Or some anti-counterfeiting technologies are utilized technical leak by fake producer, continue to fake, causeTrue and false product is obscured. Common antiforge technology is easily forged, and for the digital code anti-false of query formulation, consumer is by beatingPhone, note, the technology of the true and false of internet checking digital label, fake producer directly provides false phone, false website mistakeLead consumer. After some bar code scans, in the database prestoring by the method for information deletion, also because commodity have streamThe general character needs the practical operation of Multiple-Scan bar code to use inconvenience to some extent, and is not widely used reality in the process of circulationOperation is inconvenience to some extent on using, and is not widely used.
In existing Three-Dimensional Bar Code, in order to the part of analysis of encoding graphical information, be conventionally listed in separately the outside of coded graphics,Analyze in advance the better simply part of this piece in when decoding, help to read out some useful informations when decoding. This wayBecause this piece is listed in separately the outside of coded graphics conventionally, and conventionally need to rely on the information that this part is deposited, one when decodingThis piece of dawn is received accurately sense data of pollution, and necessary acquisition of information can affect next step decoding time, causes decodingCannot complete.
Summary of the invention
Technical problem to be solved by this invention is to provide a kind of Code And Decode method and device of Three-Dimensional Bar Code, makes codingMemory space is large, and antifalsification is high, and production cost is low.
The technical solution adopted for the present invention to solve the technical problems is: a kind of coding method of Three-Dimensional Bar Code is provided, comprise withLower step:
(1) obtain the binary stream of fileinfo by Study document information;
(2) binary stream that compression obtains;
(3) binary stream after compression is carried out to RS checking algorithm and process acquisition coded message;
(4) will set in advance color lump data substitution coded message, form three-dimensional colour bar code graphics;
(5) coded message portion being made to two parts is hidden in respectively in described Three-Dimensional Bar Code figure and obtains Three-Dimensional Bar Code.
Described step (2) also comprises extracts message digest to fileinfo, and the message digest extracting is carried out to secret key encryptionStep.
Between described step (2) and step (3), also comprise the binary system after the message digest of secret key encryption and compression is flow toThe step of row public key encryption.
The three-dimensional colour bar code graphics forming in described step (4) includes 8 kinds of colors.
The technical solution adopted for the present invention to solve the technical problems is: a kind of coding/decoding method of Three-Dimensional Bar Code is provided, comprise withLower step:
(A) obtain Three-Dimensional Bar Code;
(B) Three-Dimensional Bar Code obtaining is carried out to digital assay and be reduced into three-dimensional colour bar code graphics;
(C) adopt RS checking algorithm reduction wrong data, obtain accurate data;
(D) accurate data obtaining is decompressed and is reduced into initial data;
(E) initial data be reduced into fileinfo and show.
In described step (B), digital assay comprises following sub-step: judge the apex coordinate of Three-Dimensional Bar Code figure, and reallyThe housing of fixed whole figure, is reduced into the figure of distortion with hough algorithm the geometric figure of facing, and by RGB tri-The principle of channel separation judges which kind of color the pixel in figure levels off to, and is sampled by central point, with 8 pixels aroundPoint judges approximation, if approximation error is greater than predefined threshold value, is judged to be boundary line, and all boundary lines are doneExtend and be partitioned into figure, figure is formed latticed, to each grid value and do mean value and judge the color of this color lump.
The accurate data that accurate data in described step (C) is public key encryption, described step (C) and step (D) itBetween also comprise by PKI and decipher the message digest that obtains compressing binary stream and secret key encryption.
Describedly also comprise employing key after deciphering by PKI the message digest step that obtains compressing binary stream and secret key encryptionDeciphering is decrypted message digest, and contrasts with original message digest, if mutually mated, enters step (E),Otherwise decision error.
The technical solution adopted for the present invention to solve the technical problems is: a kind of coded system of Three-Dimensional Bar Code is provided, comprises:Parsing module, obtains the binary stream of fileinfo for Study document information; Compression module, for compressing two entering of obtainingSystem stream; Coding module, carries out RS checking algorithm for the binary stream that compression is obtained and processes acquisition coded message; FigureForm module, for setting in advance color lump data substitution coded message, form three-dimensional colour bar code graphics; Bar code generates mouldPiece, is hidden in respectively described Three-Dimensional Bar Code figure and obtains Three-Dimensional Bar Code for partition encoding portion being made to two parts.
The coded system of described Three-Dimensional Bar Code also comprises: message digest extraction module, pluck for the message of extraction document informationWant; Cipher key encryption block, for carrying out secret key encryption to the message digest extracting.
The coded system of described Three-Dimensional Bar Code also comprises: public key encryption module, and for two after message digest and compression enteredStream processed carries out public key encryption.
The technical solution adopted for the present invention to solve the technical problems is: a kind of decode system of Three-Dimensional Bar Code is provided, comprises:Acquisition module, for obtaining Three-Dimensional Bar Code; Figure recovery module, for also carrying out digital assay to the Three-Dimensional Bar Code obtainingFormer one-tenth three-dimensional colour bar code graphics; Decoder module, adopts RS checking algorithm reduction wrong data, by three-dimensional colour bar code figureShape reverts to accurate data; Decompression module, for accurate data is decompressed, is reduced into initial data; Show mouldPiece, for being reduced into initial data fileinfo and showing.
Described figure recovery module comprises: housing is determined submodule, judges the apex coordinate of Three-Dimensional Bar Code figure, and determines wholeThe housing of individual figure; Hough algoritic module, is reduced into the figure of distortion with hough algorithm the geometric figure of facing; NetLattice are divided module, and the principle separating by RGB triple channel judges which kind of color the pixel in figure levels off to, and byHeart point sampling, judge approximation with 8 pixels around, if approximation error is greater than predefined threshold value, and judgementFor boundary line, all boundary lines are done to extend being partitioned into figure, figure is formed latticed; Color determination module, to each netLattice value is also done mean value and judges the color of this color lump.
The decode system of described Three-Dimensional Bar Code also comprises: PKI deciphering module, decipher for accurate data being carried out to PKITo the message digest of compression binary stream and secret key encryption.
The decode system of described Three-Dimensional Bar Code also comprises: cipher key decryption block, and for the message digest of secret key encryption is carried outSecret key decryption; Determination module, for comparing judgement by the message digest after original message summary and secret key decryption.Beneficial effect
Owing to having adopted above-mentioned technical scheme, the present invention compared with prior art, has following advantage and good effect:The present invention can make the ability of bar code storage information greatly strengthen, and can identify to computer the expanded range of storage informationAll message areas, so the present invention has not only retained the characteristic of two-dimensional bar code aspect bar-code identification, in addition due to letterBreath memory space is large, can carry out multi-faceted encryption to information, and the true or false of information can be guaranteed. The present invention usesCan really solve in anti-counterfeiting technology the defect that above all kinds of anti-counterfeiting technology exists, solve false proof practical problem, accomplish that cost is low,Repeatedly reading information, is easy to consumer's identification, the feature that counterfeiter cannot forge. Coding in three-dimensional colour bar code of the present inventionInformation area divides two parts to preserve respectively, chooses one or the other of these two, and the office causing along unfavourable balance because of light can prevent IMAQ timePortion pollutes by force, and this part is incorporated in coding, and the contaminated probability that can make to encode is discrete in whole coding, makes this partPollution rate reduces. The present invention has can store all kinds of breaths, and the feature such as memory space is large, and utilization scope is wide, can be forCertificate false proof marketing direction, market are popularized and popularization, ticket anti-pseudo, product false proof, talking book exploitation, logistic storage pipeReason and Commercial goods labels substitute etc., reduce entreprise cost, reduce environmental pollution, favourable protection of resources.
Brief description of the drawings
Fig. 1 is the flow chart of first embodiment of the invention;
Fig. 2 is the Three-Dimensional Bar Code schematic diagram that first embodiment of the invention forms;
Fig. 3 is the flow chart of second embodiment of the invention;
Fig. 4 is the block diagram of third embodiment of the invention;
Fig. 5 is the block diagram of four embodiment of the invention;
Fig. 6 is the block diagram of the another kind of embodiment of four embodiment of the invention.
Detailed description of the invention
Below in conjunction with specific embodiment, further set forth the present invention. Should be understood that these embodiment are only for illustrating the present inventionBe not used in and limit the scope of the invention. In addition should be understood that after having read the content of the present invention's instruction art technology peopleMember can make various changes or modifications the present invention, and these equivalent form of values fall within equally the application's appended claims and limitScope.
The first embodiment of the present invention relates to a kind of coding method of Three-Dimensional Bar Code, comprises the following steps: pass through Study documentInformation obtains the binary stream of fileinfo; The binary stream that compression obtains; Binary stream after compression is carried out to RS verificationAlgorithm process obtains coded message; To set in advance color lump data substitution coded message, form three-dimensional colour bar code graphics; WillCoded message portion makes two parts and is hidden in respectively in described Three-Dimensional Bar Code figure and obtains Three-Dimensional Bar Code. Its concrete steps are as Fig. 1Shown in.
Step 101, obtains the binary stream of fileinfo by Study document information. By the file letter in anacomBreath, by text message, image, image, the various information computer documents such as sound, for example, obtain after Computer AnalysisBinary stream be 000001010011.
Then enter step 102, the binary stream that compression obtains, that is to say, by reading computer language, to informationDo further compression and obtain new binary stream, taking the binary stream in step 101 as example, after compression, obtain new twoSystem stream is 011010001000.
In step 103, fileinfo is extracted to message digest, and the message digest extracting is carried out to secret key encryption, for exampleThe binary system obtaining is 000, and the message digest of secret key encryption is compressed.
Enter step 104, the new binary stream after compression and the message digest that carries out secret key encryption are carried out to public key encryption.The binary stream that carries out obtaining after public key encryption is 100110111101111.
As can be seen here, in information storing device, radio-frequency technique antifalsification is high, but production cost is high, and information read device is notPopularized, Quick Response Code cannot add Antiforge system because information storage is little, and the disposable information that efficiently solves of the present invention is depositedReserves are large, and anti-counterfeiting performance is good, the problem that production cost is low.
In step 105, the binary stream and the message digest that carried out public key encryption are carried out to RS coding processing acquisition codingInformation, that is to say, the binary stream obtaining after public key encryption is added to RS algorithm, forms one group of new binary stream 100110111101111000001010。
Then enter step 106, will set in advance color lump data substitution coded message, form three-dimensional colour bar code graphics. AlsoIn other words, by the one group of new binary stream 100110111101111000001010 forming above, by what establish in advanceThe substitution of color lump data, for example: 000 represents in vain, 001 expression powder, 010 represents green grass or young crops, and 011 represents indigo plant, and 100 expressions are red,101 represent Huang, and 110 expressions are green, and 111 expressions are black, and according to above-mentioned color lump data, new binary stream can be lined up red greenBlack and white pale blue, forms three-dimensional colour bar code graphics with this. The planar bar code technology having at present, as QR code, maximum version can be deposited8 information be 2953, the present invention uses 8 kinds of colors, maximum version can make to store 8 information in unpressed situationHave 50162.
Finally enter step 107, two parts are made to by coded message portion and be hidden in respectively in described Three-Dimensional Bar Code figure and obtain threeDimension bar-code, the Three-Dimensional Bar Code of formation can be printed by common color printer, completes the making of Three-Dimensional Bar Code label. The present inventionMiddle coded message part is not listed separately, and two parts are made to by this partition encoding portion and preserve respectively, the two is gotOne, can prevent IMAQ time, because polluting by force the part that light causes along unfavourable balance, and this portion is incorporated in coding, canThe contaminated probability that makes to encode is discrete in whole coding, and this part pollution rate is reduced.
Three-Dimensional Bar Code schematic diagram as shown in Figure 2, two, figure top 3*3 drift angle is orientation angle, shows respectively by red and bluenessShow, go up most with the most lower two row cells in deposit version information (being coded message portion), this version information comprises feature sizeVersion, verification grade version, pattern arrangement version and other version informations, totally 18 bit representations, all the other 36 bit checks, schoolTest rate 33.3%. Wherein, to arrange 18 lattice be version information copy, upper and lower owing to can occurring when the digital-to-analogue conversion for figureExposure is different, now upper and lower two coded message portions is chosen one or the other of these two and can be decoded and cannot gather version information. All the otherPart is information lattice and verification lattice, and ratio is determined according to verification grade is different, adopts RS check addition, by 4 lists when verificationUnit lattice totally 12 be data, adopt GF (212) territory carries out verification.
It should be noted that, in Fig. 2, functional graphic number of modules is the drift angle of two 3*3, and form and version information number of modules areThe cell of two group 18, gets one reading manner in order to two, and data capacity refers to the data of cell 12 of every 4 compositionsAfter, the GF (2 having12) data number. Module group refers in RS algorithm, and every group of data package size should be less than 212-1, when existingThere are data to exceed at 4095 o'clock, data are cut apart.
The second embodiment of the present invention relates to a kind of coding/decoding method of Three-Dimensional Bar Code, comprises the following steps: obtain Three-Dimensional Bar Code;The Three-Dimensional Bar Code obtaining is carried out to digital assay and be reduced into three-dimensional colour bar code graphics; Adopt RS checking algorithm reduction mistakeData, the compression accurate data obtaining; The compression accurate data obtaining is decompressed and is reduced into initial data; By originalData are reduced into fileinfo and show. Its concrete steps as shown in Figure 3.
Step 301, obtains Three-Dimensional Bar Code, specifically, by label recognizer, the Three-Dimensional Bar Code mark in acquisition planeSign, as taken the Three-Dimensional Bar Code on Three-Dimensional Bar Code label by camera.
Then enter step 302, the Three-Dimensional Bar Code obtaining is carried out to digital assay and be reduced into three-dimensional colour bar code graphics. ItsConcrete steps are as follows: judge the apex coordinate of Three-Dimensional Bar Code figure, and determine the housing of whole figure, use hough algorithm willThe figure of distortion is reduced into the geometric figure of facing, and the principle separating by RGB triple channel judges the pixel in figureLevel off to which kind of color, and sampled by central point, judge approximation with 8 pixels around, if approximation error is greater thanPredefined threshold value, is judged to be boundary line, all boundary lines is done to extend being partitioned into figure, figure is formed latticed,To each grid value and do mean value and judge the color of this color lump, then remove angle point and the partition encoding portion of location of being used forBe reduced into three-dimensional colour bar code graphics.
In step 303, adopt RS checking algorithm reduction wrong data, obtain compressing accurate data. That is to say profitWearing and tearing with RS checking algorithm reduction when the analog-to-digital conversion or when label uses and the wrong data that produces, the accurate number obtainingAccording to, as do not passed through RS error correction, represent that amount of error cannot reduce greatly. Taking the example in the first embodiment as example, thisTime the compression accurate data that obtains be 100110111101111.
In step 304, decipher the message digest that obtains compressing binary stream and secret key encryption by PKI, decipher by PKIObtain the message digest of compressed data stream and secret key encryption, the binary stream after deciphering is 011010000001000.
Then enter step 305, the compression accurate data obtaining decompressed and is reduced into initial data, that is to say,The message digest of the compressed data stream after PKI deciphering and secret key encryption is decompressed and obtains data flow and secret key encryptionMessage digest, the binary stream of data flow is 000001010011.
Finally enter step 306, initial data is reduced into fileinfo and shows, that is to say, when user uses commonWhen the software (being not connection data storehouse) of version, be directly presented at demonstration by restoring initial data after compressed information decompress(ion)On device, be reduced into original fileinfo by above-mentioned binary stream 000001010011 and be presented on display, as textInformation, image, image, the various information such as sound.
It is worth mentioning that, between step 305 and step 306, can also comprise step 307, adopt secret key decryption to reportDigest will be decrypted, and contrasts with original message digest, if mutually mated, enters step 306, otherwiseThe step of decision error. Specifically, if user adopt be server software (being connection server) time, can be by solutionThe initial data that is reduced into after compression is encrypted and is sent to server, by being pre-stored in secret key decryption in server to message digestBe decrypted, and the message digest that deciphering is obtained and the comparison of original information, if prove that the message digest after this deciphering isThe message digest that this file forms is shown to equipment by information; If different, determination information is for forging.
As can be seen here, the present invention is in the process of Three-Dimensional Bar Code forming label, according to different clients' needs, for it exists separatelyIn bar-code label, add key, and key information is pre-stored in the server of cloud computing center, be connected with cloud when user usesWhen computer center server, the information of collection can be done to prereduction processing, and result is transmitted back to cloud computing center serviceDevice, uses the key that is pre-stored in server to do further deciphering, and twice reduction result of comparison, and its true or false is done furtherJudgement.
The 3rd embodiment of the present invention relates to a kind of coded system of Three-Dimensional Bar Code, as shown in Figure 4, comprising: parsing module401, obtain the binary stream of fileinfo for Study document information; Compression module 402, for compressing the binary system obtainingStream; Coding module 403, carries out RS coding for the binary stream that compression is obtained and processes acquisition coded message; Figure formsModule 404, for setting in advance color lump data substitution coded message, forms three-dimensional colour bar code graphics; Bar code generates mouldPiece 405, is hidden in respectively described Three-Dimensional Bar Code figure and obtains Three-Dimensional Bar Code for partition encoding portion being made to two parts.
The coded system of described Three-Dimensional Bar Code also comprises: message digest extraction module 406, and for the report of extraction document informationDigest is wanted; Cipher key encryption block 407, for the message digest extracting is carried out to secret key encryption, the message digest after encryption sendEntering compression module compresses.
The coded system of described Three-Dimensional Bar Code also comprises: public key encryption module 408, for to compression after binary stream andMessage digest carries out public key encryption.
The 4th embodiment of the present invention relates to a kind of decode system of Three-Dimensional Bar Code, as shown in Figure 5, comprising: acquisition module501, for obtaining Three-Dimensional Bar Code; Figure recovery module 502, for carrying out digital assay reduction to the Three-Dimensional Bar Code obtainingBecome three-dimensional colour bar code graphics; Decoder module 503, adopts RS checking algorithm reduction wrong data, by three-dimensional colour bar code figureShape reverts to accurate data; Decompression module 504, for accurate data is decompressed, is reduced into initial data; AobviousShow module 505, for initial data being reduced into fileinfo and showing.
Described figure recovery module comprises: housing is determined submodule, judges the apex coordinate of Three-Dimensional Bar Code figure, and determines wholeThe housing of individual figure; Hough algoritic module, is reduced into the figure of distortion with hough algorithm the geometric figure of facing; NetLattice are divided module, and the principle separating by RGB triple channel judges which kind of color the pixel in figure levels off to, and byHeart point sampling, judge approximation with 8 pixels around, if approximation error is greater than predefined threshold value, and judgementFor boundary line, all boundary lines are done to extend being partitioned into figure, figure is formed latticed; Color determination module, to each netLattice value is also done mean value and judges the color of this color lump.
The decode system of described Three-Dimensional Bar Code also comprises: PKI deciphering module 506, and for accurate data is carried out to PKI solutionThe close message digest that obtains compressing binary stream and secret key encryption.
As shown in Figure 6, the decode system of above-mentioned Three-Dimensional Bar Code also comprises: cipher key decryption block 507, and for key is addedClose message digest carries out secret key decryption; Determination module 508, for plucking the message after original message summary and secret key decryptionCompare judgement, after judgement, have display module 505 to show result.
Be not difficult to find, the present invention can make the ability of bar code storage information greatly strengthen, and the expanded range of storage information is arrivedAll message areas that computer can be identified, so the present invention has not only retained the spy of two-dimensional bar code aspect bar-code identificationProperty, in addition because information storage is large, can carry out multi-faceted encryption to information, the true or false of information can be obtainedEnsure. The present invention can really solve for anti-counterfeiting technology the defect that above all kinds of anti-counterfeiting technology exists, and solves false proof practical problem,Accomplish that cost is low, repeatedly reading information, is easy to consumer's identification, the feature that counterfeiter cannot forge. Three-dimensional colour of the present inventionCoded message region in bar code divides two parts to preserve respectively, choose one or the other of these two, can prevent IMAQ time because light is suitablePollute by force the part that unfavourable balance causes, and this part is incorporated in coding, and the contaminated probability that can make to encode is discrete in whole volumeCode, reduces this part pollution rate. The present invention has can store all kinds of breaths, and memory space is large, and utilization scope extensively waits specialPoint, can for certificate false proof market direction, market universal with popularization, ticket anti-pseudo, product false proof, talking book exploitation,Logistic storage management and Commercial goods labels substitute etc., reduce entreprise cost, reduce environmental pollution, favourable protection of resources.
Claims (15)
1. a coding method for Three-Dimensional Bar Code, is characterized in that, comprises the following steps:
(1) obtain the binary stream of fileinfo by Study document information;
(2) binary stream that compression obtains;
(3) binary stream after compression is carried out to RS checking algorithm and process acquisition coded message;
(4) will set in advance color lump data substitution coded message, form three-dimensional colour bar code graphics;
(5) coded message portion being made to two parts is hidden in respectively in described Three-Dimensional Bar Code figure and obtains Three-Dimensional Bar Code.
2. the coding method of Three-Dimensional Bar Code according to claim 1, is characterized in that, it is right in described step (2), also to compriseFileinfo extracts message digest, and the step that the message digest extracting is carried out to secret key encryption.
3. the coding method of Three-Dimensional Bar Code according to claim 2, is characterized in that, described step (2) and step (3)Between also comprise the binary stream after the message digest of secret key encryption and compression carried out to the step of public key encryption.
4. the coding method of Three-Dimensional Bar Code according to claim 1, is characterized in that, three of the middle formation of described step (4)Dimension colour barcode graphics package contains 8 kinds of colors.
5. a coding/decoding method for Three-Dimensional Bar Code, is characterized in that, comprises the following steps:
(A) obtain Three-Dimensional Bar Code;
(B) Three-Dimensional Bar Code obtaining is carried out to digital assay and be reduced into three-dimensional colour bar code graphics;
(C) adopt RS checking algorithm reduction wrong data, obtain accurate data;
(D) accurate data obtaining is decompressed and is reduced into initial data;
(E) initial data be reduced into fileinfo and show.
6. the coding/decoding method of Three-Dimensional Bar Code according to claim 5, is characterized in that, in described step (B), digitlization dividesAnalyse and comprise following sub-step: judge the apex coordinate of Three-Dimensional Bar Code figure, and determine the housing of whole figure, use houghAlgorithm is reduced into the figure of distortion in the geometric figure of facing, and the principle separating by RGB triple channel judges in figurePixel level off to which kind of color, and sampled by central point, judge approximation with 8 pixels around, if nearSeemingly be worth error and be greater than predefined threshold value, be judged to be boundary line, all boundary lines are done to extend being partitioned into figure,Figure is formed latticed, to each grid value and do mean value and judge the color of the corresponding color lump of this grid.
7. the coding/decoding method of Three-Dimensional Bar Code according to claim 5, is characterized in that, the accurate number in described step (C)According to the accurate data that is public key encryption, between described step (C) and step (D), also comprise by PKI and decipher and obtainThe message digest of compression binary stream and secret key encryption.
8. the coding/decoding method of Three-Dimensional Bar Code according to claim 7, is characterized in that, is describedly deciphered and is pressed by PKIAfter the message digest step of contracting binary stream and secret key encryption, also comprise and adopt secret key decryption to be decrypted message digest,And contrast with original message digest, if mutually mated, enter step (E), otherwise decision error.
9. a coded system for Three-Dimensional Bar Code, is characterized in that, comprising: parsing module, obtains literary composition for Study document informationThe binary stream of part information; Compression module, for compressing the binary stream obtaining; Coding module, for to compressingTo binary stream carry out RS checking algorithm process obtain coded message; Figure forms module, for setting in advanceColor lump data substitution coded message, forms three-dimensional colour bar code graphics; Bar code generation module, for by partition encoding portionMaking two parts is hidden in respectively in described Three-Dimensional Bar Code figure and obtains Three-Dimensional Bar Code.
10. the coded system of Three-Dimensional Bar Code according to claim 9, is characterized in that, also comprises: message digest extracts mouldPiece, for the message digest of extraction document information; Cipher key encryption block, for carrying out key to the message digest extractingEncrypt.
The coded system of 11. Three-Dimensional Bar Codes according to claim 10, is characterized in that, also comprises: public key encryption module,For the binary stream after message digest and compression is carried out to public key encryption.
The decode system of 12. 1 kinds of Three-Dimensional Bar Codes, is characterized in that, comprising: acquisition module, for obtaining Three-Dimensional Bar Code; FigureRecovery module, is reduced into three-dimensional colour bar code graphics for the Three-Dimensional Bar Code obtaining is carried out to digital assay; Decoding mouldPiece, adopts RS checking algorithm reduction wrong data, and three-dimensional colour bar code graphics is reverted to accurate data; DecompressModule, for accurate data is decompressed, is reduced into initial data; Display module, for by initial data alsoFormer one-tenth fileinfo also shows.
The decode system of 13. Three-Dimensional Bar Codes according to claim 12, is characterized in that, described figure recovery module comprises:Housing is determined submodule, judges the apex coordinate of Three-Dimensional Bar Code figure, and determines the housing of whole figure; Hough calculatesMethod module, is reduced into the figure of distortion with hough algorithm the geometric figure of facing; Grid is divided module, passes through RGBThe principle that triple channel separates judges which kind of color pixel in figure levels off to, and is sampled by central point, with around 8Individual pixel judges approximation, if approximation error is greater than predefined threshold value, is judged to be boundary line, by instituteThere is boundary line to do prolongation and be partitioned into figure, figure is formed latticed; Color determination module, to each grid value and doMean value is judged the color of the corresponding color lump of this grid.
The decode system of 14. Three-Dimensional Bar Codes according to claim 12, is characterized in that, also comprises: PKI deciphering module,Obtain compressing the message digest of binary stream and secret key encryption for accurate data being carried out to PKI deciphering.
The decode system of 15. Three-Dimensional Bar Codes according to claim 13, is characterized in that, also comprises: cipher key decryption block,For the message digest of secret key encryption is carried out to secret key decryption; Determination module, for making a summary original message and key solutionMessage digest after close compares judgement.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210300830.7A CN103632179B (en) | 2012-08-22 | 2012-08-22 | Code And Decode method and the device of Three-Dimensional Bar Code |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210300830.7A CN103632179B (en) | 2012-08-22 | 2012-08-22 | Code And Decode method and the device of Three-Dimensional Bar Code |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103632179A CN103632179A (en) | 2014-03-12 |
CN103632179B true CN103632179B (en) | 2016-05-04 |
Family
ID=50213206
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210300830.7A Active CN103632179B (en) | 2012-08-22 | 2012-08-22 | Code And Decode method and the device of Three-Dimensional Bar Code |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103632179B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111832056B (en) * | 2014-09-28 | 2024-04-26 | 伊姆西Ip控股有限责任公司 | Method and system for generating two-dimensional code |
US10185906B2 (en) * | 2016-04-26 | 2019-01-22 | Hand Held Products, Inc. | Indicia reading device and methods for decoding decodable indicia employing stereoscopic imaging |
WO2018002944A1 (en) * | 2016-07-01 | 2018-01-04 | Hewlett-Packard Development Company, L.P. | Converting binary data to images |
CN108985128A (en) * | 2018-07-06 | 2018-12-11 | 刘崇森 | The methods, devices and systems of color code identification |
CN109784454A (en) * | 2019-01-16 | 2019-05-21 | 王诗会 | A kind of information concealing method based on two dimensional code, device and electronic equipment |
CN109933841A (en) * | 2019-01-18 | 2019-06-25 | 南京大学 | A kind of high density storage method based on 3D printing |
CN109919277B (en) * | 2019-01-25 | 2021-04-30 | 同济大学 | Enciphered colour triangular code coding and decoding method for commodity external package |
CN112561015B (en) * | 2020-12-22 | 2022-04-05 | 珠海格力电器股份有限公司 | Bar code encoding and decoding method, device, system, equipment and medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1959374A1 (en) * | 2007-02-19 | 2008-08-20 | Cronto Limited | Multi-dimensional bar code, apparatus and method for reading the same and method for generating the same |
CN101515335A (en) * | 2009-03-30 | 2009-08-26 | 浙江工业大学 | Color two dimension bar code with high compression ratio Chinese character coding capability and its coding and decoding method |
CN102034127A (en) * | 2009-09-28 | 2011-04-27 | 上海易悠通信息科技有限公司 | Novel high-capacity two-dimensional barcode and system, encoding and decoding methods and applications thereof |
US7997491B2 (en) * | 2008-08-15 | 2011-08-16 | International Business Machines Corporation | Thin film transistor liquid crystal display barcodes |
-
2012
- 2012-08-22 CN CN201210300830.7A patent/CN103632179B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1959374A1 (en) * | 2007-02-19 | 2008-08-20 | Cronto Limited | Multi-dimensional bar code, apparatus and method for reading the same and method for generating the same |
US7997491B2 (en) * | 2008-08-15 | 2011-08-16 | International Business Machines Corporation | Thin film transistor liquid crystal display barcodes |
CN101515335A (en) * | 2009-03-30 | 2009-08-26 | 浙江工业大学 | Color two dimension bar code with high compression ratio Chinese character coding capability and its coding and decoding method |
CN102034127A (en) * | 2009-09-28 | 2011-04-27 | 上海易悠通信息科技有限公司 | Novel high-capacity two-dimensional barcode and system, encoding and decoding methods and applications thereof |
Also Published As
Publication number | Publication date |
---|---|
CN103632179A (en) | 2014-03-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103632179B (en) | Code And Decode method and the device of Three-Dimensional Bar Code | |
CN105447546B (en) | The two dimensional code and its coding and decoding methods and equipment of embeddable large scale figure | |
JP4557866B2 (en) | Mixed code, mixed code generation method and apparatus, and recording medium | |
CN104657698B (en) | A kind of color 2 D code decoding method for carrying several black and white Quick Response Codes | |
EP1807796A1 (en) | Mixed code, and method and apparatus for generating the same, and method and appratus for decoding the same | |
US11501470B2 (en) | Geometric encoding of data | |
CN116978011B (en) | Image semantic communication method and system for intelligent target recognition | |
CN103259621A (en) | Encoding method and device of colorized three-dimensional codes and application method and system of colorized three-dimensional codes | |
CN101840499A (en) | Bar code decoding method and binarization method thereof | |
CN110069907A (en) | Big data source tracing method and system based on digital watermarking | |
CN110048847A (en) | A kind of quick barcode scanning endorsement method based on block chain technology | |
CN111507119A (en) | Identification code identification method and device, electronic equipment and computer readable storage medium | |
CN111368575B (en) | One-dimensional bar code encoding and decoding method and system | |
CN104573781A (en) | Encoding and decoding method of two-dimensional code | |
US20160189015A1 (en) | Data exchange methods, systems and apparatus using color images | |
CN109543803B (en) | Coding system and decoding system capable of editing primary-secondary color two-dimensional codes | |
Singh et al. | A novel approach for encoding and decoding of high storage capacity color QR code | |
CN201927035U (en) | Bar code decoding device and binaryzation device thereof | |
CN110175661A (en) | The generation method and device in two dimensional code sharing path | |
CN115700590A (en) | Commodity information representation method and system based on dot matrix image and application thereof | |
CN113935448A (en) | Double-channel color QR code encoding/decoding method | |
US20240242387A1 (en) | Methods and systems for encoding data using artificial fingerprints | |
US20240242532A1 (en) | Methods and systems for encoding data using artificial fingerprints | |
CN112163656A (en) | Multi-dimensional code generation method and device | |
CN113988243B (en) | Three-dimensional code generation and verification method, system, equipment and medium with verification code |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |