CN101359360A - Graphics context fused electronic ticket coding/decoding method - Google Patents
Graphics context fused electronic ticket coding/decoding method Download PDFInfo
- Publication number
- CN101359360A CN101359360A CNA200810134805XA CN200810134805A CN101359360A CN 101359360 A CN101359360 A CN 101359360A CN A200810134805X A CNA200810134805X A CN A200810134805XA CN 200810134805 A CN200810134805 A CN 200810134805A CN 101359360 A CN101359360 A CN 101359360A
- Authority
- CN
- China
- Prior art keywords
- electronic ticket
- text
- image
- coding
- decoding method
- 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.)
- Pending
Links
Images
Landscapes
- Image Processing (AREA)
Abstract
The invention discloses a graph-text electronic ticket encode-decode method. The invention includes: the graph-text electronic ticket encode-decode method includes that firstly, the system dynamically encodes the ticket information to generate the binary region with the encryption information and embeds the binary information into the periphery of the graph-text, so as to generate the graph-text electronic ticket; a read-identify device is used for decoding the information in the image of the electronic ticket. The invention adopts the error correction coding to prevent the image fouling and distortion and uses a camera to position and decode the electronic ticket through the dynamic capturing technology; the graph-text electronic ticket encode-decode method adopts the margin-corner information embedding method to enable the electronic ticket to have visual and anti-counterfeiting properties under the situation that the subject graph-text of the ticket is not influenced.
Description
Technical field
The present invention relates to electronic bill and digital image processing techniques.
Background technology
The electronic bill technology is because its safety, environmental protection, and portable characteristic is progressively replacing the traditionally on paper ticket.Especially along with the increasing rapidly of cellphone subscriber, the two-dimension code ticket that with the mobile phone is carrier is at film, and preliminary success has been obtained in the performance field.The user only need show the two-dimensional code electronic ticket in the mobile phone, can admission watch after decoding is confirmed.
But the two-dimensional code electronic ticket is made up of chequered with black and white grid, and is directly perceived inadequately, is difficult to differentiate when holding many electronic ticket.Especially be applied to film, can't reflect the content of its corresponding directory in the time of show ticket, place, temporal information.To make electronic ticket have the load-bearing capacity of precise information and the picture and text expressive ability of traditionally on paper ticket concurrently organically blending of binary message and graph text information.Electronic ticket among the present invention can be passed through multimedia message, WAP, and modes such as Web are sent to mobile phone, also printable use.
The synthesis system of a kind of two-dimension code and sign and method (200610078994.4) disclose a kind of by identifying the method with existing two-dimension code simple superposition.This method hides the part two-dimension code with sign, and both are united two into one, and cost is an error correcting capability of having destroyed two-dimension code.The sign area that is superposeed is very little, and its present position and the big or small restriction that is subjected to decoding device.The present invention is not based on existing two-dimensional sign indicating number technology, thereby is not subjected to the restriction of its error correcting capability, and picture and text partly account for the theme of electronic ticket, has characteristics and stronger visual information load-bearing capacity intuitively.Owing to adopted 128 bitmasks and 24 scrambler encryptions at random, security is higher than two-dimension code simultaneously.
Summary of the invention
At the deficiencies in the prior art and defective, the present invention proposes a kind of brand-new electronic ticket coding/decoding method, under the situation that does not influence electronic ticket theme outward appearance, around pictograph, inlay the binary message coding and generate electronic ticket, and take motion capture and geometry correction technology that electronic ticket is decoded.
In order to realize above-mentioned feature, the present invention takes following technical scheme:
The electronic ticket coding/decoding method that a kind of picture and text merge comprises: the coding method that graph text information and binary message merge.This coding method is mounted to binary message around the theme picture and text, and dynamic coding generates the electronic ticket that contains enciphered message; Adopt reading device with the information decoding in the electronic ticket image, this reading device is caught the image of electronic ticket by camera, proofread and correct geometric distortion and accurate location, will extract binary message after the picture contrast enhancing, and error correction information and deciphering to extracting.
In the cataloged procedure binary message be mounted to the theme picture and text around, the position of inlaying of binary message is included in theme the picture and text any limit in the four edges or two limits or three limits or four edges up and down.Comprising dynamic image district and literal field in the theme picture and text, can be that every nominal value generates different image and literal as required.Coding adopts 128 bitmasks and 24 scrambler encryptions at random, and adopts error-correcting code technique in order to resist image fault and to misread.Nominal value can stretch, and rotation changes size to adapt to different printings, demonstration demand.Reading device adopts motion capture technology accurate localized electron ticket image and proofreaies and correct geometry deformation, and it is eclipsed to adopt the antagonism of self-adaptation contrast enhancement technique to print, cut and illumination variation.The method of reading device by the non-linear projection conversion proofreaied and correct geometry deformation, and nominal value need not be over against also decodable code of camera.Reading device at first obtains the position of electronic ticket frame by rim detection, and then calculates the coordinate on four summits, if four summits all in image range then electronic ticket is described by complete seizure, thereby further decoding.
The present invention is organically merged binary message and graph text information, makes electronic ticket have the load-bearing capacity of precise information and the picture and text expressive ability of traditionally on paper ticket concurrently.
Description of drawings
Fig. 1 is the process flow diagram that carries out the electronic ticket coding according to the present invention;
Fig. 2 is the electronic ticket sample behind the coding;
Fig. 3 is the process flow diagram of decoding according to the present invention;
Fig. 4 is the synoptic diagram of projection coordinate's conversion.
Embodiment
Below in conjunction with accompanying drawing the present invention is further elaborated.
Coding method:
The present invention at first provides a kind of electronic ticket coding method with binary message and graph text information fusion.Its electronic ticket is made up of benchmark tickets sample, dynamic graphics and text and binary message.The benchmark tickets sample can be performance or film poster, title, any images such as movie theatre sign.The dynamic graphics and text district is in order to identify information such as every pairing performance content of ticket, play, seat, when and where.The binary message district is made up of 128 effective informations and 24 interfere informations.128 effective informations comprise the numbering (ID) of 64 word lengths and the Error Correction of Coding of 64 word lengths.24 interfere information positions are unfixing, and content is a random number, is used to prevent to crack and reverse engineering.64 Error Corrections of Coding adopt the Reed-Solomon coding, can realize 4 bytes (32) error correction.Information such as the performance content of electronic ticket correspondence, play, seat, when and where are set up index by 64 bit numbers (ID) in database.As shown in Figure 1, the process that generates electronic ticket is begun by the benchmark tickets sample, inserts performance content, play, seat, time, place and place sign and constitute nominal value in the dynamic graphics and text district.Ticket information with this electronic ticket deposits database in and obtains unique number (ID) simultaneously, and this ID is carried out Error Correction of Coding and generates the binary message district.Binary message district parameter is as shown in table 1.At last electronic ticket of generation is merged in binary message district and nominal value.
Table 1 binary message district correlation parameter
Outline is wide | 320 pixels |
The outline height | 240 pixels |
Interior profile is wide | 280 pixels |
Interior profile height | 220 pixels |
The cell width | 10 pixels |
The cell height | 10 pixels |
Total cell number | 152 |
The coding word length | 64 |
The error correcting code word length | 64 |
Random information position sum | 24 |
Above fusion process is finished automatically by computer program, and the content in benchmark tickets sample and dynamic graphics and text district and position can be by artificial customizations.Its wide high proportion can be regulated as required after electronic ticket generated, and nominal value can stretch, rotation.
Coding/decoding method:
At the electronic ticket coding method among the present invention, the image that its corresponding decoding device adopts camera to catch electronic ticket is also decoded simultaneously.Camera can be caught some two field pictures general p.s., during decoding each two field picture is all attempted decoding, up to a certain frame is successfully decoded.Decode procedure specifically is divided into the location, geometry correction, and contrast strengthens, and binary message is extracted, deciphering and six steps of error correction.Need consider during decoding that the electronic ticket that camera captures is through the image after the plane projection conversion, and may be owing to the stained error code that causes.Decoding process is as shown in Figure 3:
(1) location: to each two field picture of camera collection, at first by rim detection obtain electronic ticket dark border the position so that calculate the coordinate of four angle points.If any one angle point is not within image then illustrate that the electronic ticket image does not have complete appearance, abandons this frame; Otherwise carry out geometry correction
(2) geometry correction: (X1, Y1) (X2, Y2) (X3, Y3) (X4 Y4) solves projective transformation matrix by following equation by the coordinate at four angles in the image
More than
Be 9 dimensional vectors of the projective transformation matrix of 3x3 distortion gained, just the target that will find the solution when n=4, can solve exact solution H.As shown in Figure 4, (X1, Y1) (X2, Y2) (X3, Y3) (X4 Y4) is the coordinate (location algorithm of dark border will further be set forth) on four summits of dark border in the image that captures in algorithm 1.1.(x1, y1), (x2, y2), (x3, y3), (x4 y4) is the coordinate on four summits in the original image, can get according to table 1: (x1, y1)=(0,0), (x2, y2)=(32,0), (x3, y3)=(32,24), (x4, y4)=(0,24). because stretching and rotation belong to the special circumstances in the projective transformation, can unify to proofread and correct by the projective transformation battle array, thereby needn't special processing.Can calculate after projective transformation matrix is determined each cell in image coordinate and obtain its gray-scale value.Carry out for the electronic ticket zone in the image of having located
(3) contrast strengthens: the algorithm that contrast strengthens will further be set forth in algorithm 1.2.
(4) according to each the cell coordinate that calculates in (2), from the black white image that contrast has strengthened, extract 152 (table 1) binary messages wherein, 0: black, 1: white.
(5) deciphering: from 152 binary messages that extracted, with the effective information and the mask XOR of remaining 128 (tables 1), obtain to contain wrong 128 and treat error correcting code after 24 interfere informations are removed.
(6) judging 128, to treat whether error correcting code contains wrong, if wrongly then carry out the Reed-Solomon error correction, if do not have mistake or error correction success then decode successfully, the ID of output encoder decodes to next frame otherwise abandon this frame.
Decoding device has three kinds of specific embodiments:
(1) based on software side's decoding case of PC, is video collector, decodes that this method has stronger versatility, be applicable to the application scenario that to dispose PC and have network to connect by the software that operates on the PC with the USB camera;
(2) shooting mobile phone scheme, with the camera mobile phone cam is video collector, and by operating in the software program decoding on the mobile phone, decoding program connects database by cell phone network, this method has stronger maneuverability and portable characteristics, is applicable to that mobile decoding maybe can't dispose the application of PC;
(3) hardware decoding scheme by being solidificated in the camera decoding of decoding program in the decoding chip and customization, connects database by the exclusive data link, and this method confidentiality is stronger, and decoding speed is faster, is fit to enterprise-level application.
Algorithm 1.1: frame location algorithm
The frame location algorithm is for motion capture and accurate localized electron ticket, and then distinguishes the black and white color value of each information point and design.According to the ultimate principle of projective geometry, straight line still is straight line after projective transformation, that is this algorithm target that will detect.At first with the following image convolution of edge detection operator matrix to capturing,
In order to detect four black surrounds up and down, the maximum position of convolution response is candidate's a frame pixel respectively for a, b, c, four matrixes of d.Add up the candidate pixel on every limit and estimate the slope and the intercept of every black surround by the Hough conversion.Article four, after the position of dark border was determined, the apposition on adjacent both sides was the coordinate on four summits under homogeneous coordinates, and rectangle can become arbitrary quadrilateral after projective transformation, thereby these four summits may be arranged in the optional position (as Fig. 4) of image.
Algorithm 1.2: self-adaptation contrast enhancement algorithms
The electronic ticket image shows on distinct device or prints, and takes through camera again, is subjected to the influence of ambient lighting inevitably decrease of contrast can take place.For decoding device, decrease of contrast can cause obscuring of monochrome informatio point.The method that this algorithm adopts dynamic threshold to set in the electronic ticket zone of having located strengthens its contrast, and then distinguishes the black and white colouring information of each point.The dynamic threshold algorithm is as follows:
1. count 256 grades of grey level histograms in the coded message district
2. set minimum gradation value on the average G0=histogram, maximum gradation value on the G1=histogram
With all pixels according to its gray-scale value and G0, the gap of G1 is classified as two class H0, H1 nearby
For the arbitrary pixel in the H0, its gray-scale value U satisfies | U-G0|<| U-G1|
For the arbitrary pixel in the H1, its gray-scale value V satisfies | V-G0| 〉=| V-G1|
4. calculate the average and the assignment of all pixels in the H0 and give G0, calculate the average and the assignment of all pixels in the H1 and give G1
5. if G0, the value of G1 no longer changes and then forwards 6 to, otherwise goes back to 3
6. get threshold value T=(G0+G1)/2
7. all pixels in the block of information are higher than T as if its gray-scale value and then it are changed to white (255), otherwise be changed to black (0)
This algorithm is in the integral image deepening, and brightening or printing to recover the original black and white color in ground in the block of information under the eclipsed situation
Claims (11)
1. the electronic ticket coding/decoding method that merges of picture and text is characterized in that comprising:
The coding method that graph text information and binary message merge.This coding method is mounted to binary message around the theme picture and text, and dynamic coding generates the electronic ticket that contains enciphered message;
Adopt reading device with the information decoding in the electronic ticket image, this reading device is caught the image of electronic ticket by camera, proofread and correct geometric distortion and accurate location, will extract binary message after the picture contrast enhancing, and error correction information and deciphering to extracting.
2. according to claims 1 described decoding method, it is characterized in that: in the cataloged procedure binary message be mounted to the theme picture and text around.
3. according to claims 1 described decoding method, it is characterized in that: the position of inlaying of binary message is included in theme the picture and text any limit in the four edges or two limits or three limits or four edges up and down.
4. according to claims 1 to 3 described decoding method, it is characterized in that: comprising dynamic image district and literal field in the theme picture and text, can be that every nominal value generates different image and literal as required.
5. according to claims 1 described decoding method, it is characterized in that: coding adopts 128 bitmasks and 24 scrambler encryptions at random.
6. according to claims 1 described decoding method, it is characterized in that: coding adopts error-correcting code technique in order to resist image fault and to misread.
7. according to claims 1 described decoding method, it is characterized in that: nominal value can stretch, and rotation changes size to adapt to different printings, demonstration demand.
8. according to claims 1 described decoding method, it is characterized in that: reading device adopts motion capture technology accurate localized electron ticket image and proofreaies and correct geometry deformation.
9. according to claims 1 and 8 described decoding methods, it is characterized in that: it is eclipsed that reading device also adopts the antagonism of self-adaptation contrast enhancement technique to print, cut and illumination variation.
10. according to claims 8 described decoding methods, it is characterized in that: the method for reading device by the non-linear projection conversion proofreaied and correct geometry deformation, and nominal value need not be over against also decodable code of camera.
11. according to claims 8 described decoding methods, it is characterized in that: reading device at first obtains the position of electronic ticket frame by rim detection, and then calculate the coordinate on four summits, if four summits are all in image range then electronic ticket is described by complete seizure, thereby further decoding.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA200810134805XA CN101359360A (en) | 2008-07-31 | 2008-07-31 | Graphics context fused electronic ticket coding/decoding method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA200810134805XA CN101359360A (en) | 2008-07-31 | 2008-07-31 | Graphics context fused electronic ticket coding/decoding method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101359360A true CN101359360A (en) | 2009-02-04 |
Family
ID=40331806
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNA200810134805XA Pending CN101359360A (en) | 2008-07-31 | 2008-07-31 | Graphics context fused electronic ticket coding/decoding method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101359360A (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103093267A (en) * | 2012-12-11 | 2013-05-08 | 关秀清 | Coding method based on graph |
CN104778491A (en) * | 2014-10-13 | 2015-07-15 | 刘整 | Image code applied to information processing, as well as device and method for generating and analyzing image code |
CN104820817A (en) * | 2014-08-19 | 2015-08-05 | 崔明 | Four-dimensional code, image identification system and method as well as retrieval system and method based on four-dimensional code |
CN107767141A (en) * | 2016-08-15 | 2018-03-06 | 张健 | A kind of System and method for based on cell phone application inquiry commodity true and false |
CN108038406A (en) * | 2017-12-07 | 2018-05-15 | 王群 | Ammeter shows projection correction's method and system of image |
CN110580730A (en) * | 2018-06-11 | 2019-12-17 | 北京搜狗科技发展有限公司 | picture processing method and device |
CN114819025A (en) * | 2022-06-28 | 2022-07-29 | 深圳市国人光速科技有限公司 | Ink jet image generating method, device and computer containing multiple variable information |
CN115320258A (en) * | 2022-08-09 | 2022-11-11 | 深圳市国人光速科技有限公司 | Method and system for simultaneously spraying and printing circuit board identification characters and variable dynamic two-dimensional codes |
CN109815465B (en) * | 2018-12-19 | 2023-11-17 | 平安科技(深圳)有限公司 | Deep learning-based poster generation method and device and computer equipment |
CN118214813A (en) * | 2024-05-16 | 2024-06-18 | 中电科大数据研究院有限公司 | Data security transmission method and system based on intelligent pipe network |
-
2008
- 2008-07-31 CN CNA200810134805XA patent/CN101359360A/en active Pending
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103093267B (en) * | 2012-12-11 | 2018-07-17 | 关秀清 | Coding method based on figure |
CN103093267A (en) * | 2012-12-11 | 2013-05-08 | 关秀清 | Coding method based on graph |
CN104820817B (en) * | 2014-08-19 | 2019-07-05 | 崔明 | A kind of four-dimension code, image identification system and method based on the four-dimension code |
CN104820817A (en) * | 2014-08-19 | 2015-08-05 | 崔明 | Four-dimensional code, image identification system and method as well as retrieval system and method based on four-dimensional code |
CN104778491B (en) * | 2014-10-13 | 2017-11-07 | 刘整 | For the image code of information processing and generation with parsing its apparatus and method |
CN104778491A (en) * | 2014-10-13 | 2015-07-15 | 刘整 | Image code applied to information processing, as well as device and method for generating and analyzing image code |
CN107767141A (en) * | 2016-08-15 | 2018-03-06 | 张健 | A kind of System and method for based on cell phone application inquiry commodity true and false |
CN108038406A (en) * | 2017-12-07 | 2018-05-15 | 王群 | Ammeter shows projection correction's method and system of image |
CN110580730A (en) * | 2018-06-11 | 2019-12-17 | 北京搜狗科技发展有限公司 | picture processing method and device |
CN110580730B (en) * | 2018-06-11 | 2024-03-26 | 北京搜狗科技发展有限公司 | Picture processing method and device |
CN109815465B (en) * | 2018-12-19 | 2023-11-17 | 平安科技(深圳)有限公司 | Deep learning-based poster generation method and device and computer equipment |
CN114819025A (en) * | 2022-06-28 | 2022-07-29 | 深圳市国人光速科技有限公司 | Ink jet image generating method, device and computer containing multiple variable information |
CN114819025B (en) * | 2022-06-28 | 2022-09-13 | 深圳市国人光速科技有限公司 | Ink jet image generating method and device containing multiple variable information and computer |
CN115320258A (en) * | 2022-08-09 | 2022-11-11 | 深圳市国人光速科技有限公司 | Method and system for simultaneously spraying and printing circuit board identification characters and variable dynamic two-dimensional codes |
CN118214813A (en) * | 2024-05-16 | 2024-06-18 | 中电科大数据研究院有限公司 | Data security transmission method and system based on intelligent pipe network |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101359360A (en) | Graphics context fused electronic ticket coding/decoding method | |
Fang et al. | Screen-shooting resilient watermarking | |
EP3066612B1 (en) | Two dimensional barcode and method of authentication of such barcode | |
CN106778996B (en) | It is embedded with the generation system and method for the two dimensional code of visual pattern and reads system | |
CN101273367B (en) | Covert and robust mark for media identification | |
US6782116B1 (en) | Apparatus and methods for improving detection of watermarks in content that has undergone a lossy transformation | |
Fang et al. | A camera shooting resilient watermarking scheme for underpainting documents | |
US8175329B2 (en) | Authentication of physical and electronic media objects using digital watermarks | |
CN110766594B (en) | Information hiding method and device, detection method and device and anti-counterfeiting tracing method | |
KR102235215B1 (en) | Augmenting barcodes with secondary encoding for anti-counterfeiting | |
US20080170746A1 (en) | Authentication of Objects Using Steganography | |
US20050135656A1 (en) | Authentication of physical and electronic media objects using digital watermarks | |
CN109960957A (en) | Incomplete two dimensional code and its generation, reparation and recognition methods, apparatus and system | |
GB2375421A (en) | Document printed with graphical symbols which encode information | |
Nakamura et al. | Fast watermark detection scheme for camera-equipped cellular phone | |
CN110796586B (en) | Blind watermarking method and system based on digital dot matrix and readable storage medium | |
Zhang et al. | Aesthetic QR codes based on two-stage image blending | |
Fang et al. | An optimization model for aesthetic two-dimensional barcodes | |
CN109840574B (en) | Two-dimensional code information hiding method and device, electronic equipment and storage medium | |
CN114330621A (en) | Two-dimensional code anti-counterfeiting method and device based on identification information and storage medium | |
CN110189241B (en) | Block mean value-based anti-printing noise image watermarking method | |
Mantoro et al. | Real-time printed document authentication using watermarked qr code | |
CN109784454A (en) | A kind of information concealing method based on two dimensional code, device and electronic equipment | |
Pramila | Reading watermarks with a camera phone from printed images | |
Zhang et al. | A robust secret sharing QR code via texture pattern design |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Open date: 20090204 |