WO2012022086A1 - Electronic entrance ticket process method and device thereof - Google Patents

Electronic entrance ticket process method and device thereof Download PDF

Info

Publication number
WO2012022086A1
WO2012022086A1 PCT/CN2010/079109 CN2010079109W WO2012022086A1 WO 2012022086 A1 WO2012022086 A1 WO 2012022086A1 CN 2010079109 W CN2010079109 W CN 2010079109W WO 2012022086 A1 WO2012022086 A1 WO 2012022086A1
Authority
WO
WIPO (PCT)
Prior art keywords
watermark
electronic ticket
ticket
mobile terminal
image
Prior art date
Application number
PCT/CN2010/079109
Other languages
French (fr)
Chinese (zh)
Inventor
曹妍
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2012022086A1 publication Critical patent/WO2012022086A1/en

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07BTICKET-ISSUING APPARATUS; FARE-REGISTERING APPARATUS; FRANKING APPARATUS
    • G07B15/00Arrangements or apparatus for collecting fares, tolls or entrance fees at one or more control points
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/04Payment circuits
    • G06Q20/045Payment circuits using payment protocols involving tickets
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F7/00Mechanisms actuated by objects other than coins to free or to actuate vending, hiring, coin or paper currency dispensing or refunding apparatus
    • G07F7/08Mechanisms actuated by objects other than coins to free or to actuate vending, hiring, coin or paper currency dispensing or refunding apparatus by coded identity card or credit card or other personal identification means
    • G07F7/12Card verification
    • G07F7/127Card verification in which both online and offline card verification can take place

Definitions

  • the present invention relates to the field of mobile communications, and more particularly to an electronic ticket processing method and apparatus. Background technique
  • Digital watermarking is an effective digital image anti-counterfeiting algorithm.
  • a watermark is a pattern or mark that is embedded in a medium (such as an image) according to a certain algorithm to distinguish between authenticity and falsehood.
  • digital watermarking refers to the embedding of hidden marks in digitized multimedia data by means of signal processing. Such marks are usually invisible and can only be extracted by a dedicated detector or reader.
  • the embedded watermark can be any form of data, such as a paragraph of text, logo, serial number, and the like.
  • a good watermarking algorithm can guarantee the imperceptibility, robustness and certainty of the watermark.
  • artificial neural networks have been widely used in the implementation of various algorithms due to their fast processing speed and strong self-learning adaptive ability.
  • the image embedded in the digital watermark is used as the electronic ticket for the mobile terminal, and the user cannot prove the legality of the electronic ticket by simply using the mobile terminal, for example: If the electronic ticket is inspected, It is necessary to have the support of the RF scanning device on site; if the user wants to withdraw the electronic ticket or transfer the electronic ticket, the mobile terminal needs to send the short message to the operator side device, and after the verification of the operator side device, the electronic ticket can be refunded or transferred. The process is very complicated. Summary of the invention
  • the technical problem to be solved by the present invention is to address the defects of the prior art, and to provide an electronic ticket processing method and apparatus for verifying the legitimacy of an electronic ticket by the mobile terminal alone.
  • the present invention provides an electronic ticket processing method, including: a mobile terminal reading a recorded first watermark identifier;
  • the mobile terminal processes the electronic ticket to obtain an original ticket image and a watermark image including the second watermark identifier
  • the mobile terminal compares whether the first watermark identifier and the second watermark identifier are the same; if they are the same, it indicates that the electronic ticket is a legitimate ticket.
  • the first watermark identifier and the second watermark identifier are information that uniquely identifies the mobile terminal, and include: a mobile terminal number and/or a mobile terminal identifier.
  • the method further includes: the mobile terminal outputting an indication that the electronic ticket is valid, or the mobile terminal refunds or transfers the electronic ticket;
  • the method further includes: if it is compared that the first watermark identifier and the second watermark identifier are different, the mobile terminal outputs a prompt that the electronic ticket is invalid.
  • the mobile terminal performing the refund process on the electronic ticket includes: the mobile terminal sends a refunding short message to the operator side device; and the mobile terminal receives the returning short message returned by the operator side device;
  • the mobile terminal performing the transfer process of the electronic ticket includes: the mobile terminal receiving the third watermark identifier input by the user; according to the preset watermark embedding algorithm, the mobile terminal embedding the third watermark identifier in the original ticket image to obtain a new
  • the electronic terminal sends the new electronic ticket to the target mobile terminal corresponding to the third watermark identifier; the mobile terminal sends the notification message of the electronic ticket transfer to the operator side device.
  • the electronic ticket includes a definition or a signal-to-noise ratio of the original ticket image; and according to the preset watermark extraction algorithm, the mobile terminal processes the electronic ticket to obtain an original ticket image and a watermark image including the second watermark identifier include:
  • the search target is the first An energy function is minimized to obtain an original ticket image
  • the watermark image is obtained based on the electronic ticket and the original ticket image.
  • the embedding the third watermark identifier in the original ticket image by the mobile terminal according to the preset watermark embedding algorithm includes:
  • the invention also provides an electronic ticket processing device, comprising:
  • a reading module configured to read the first watermark identifier of the record
  • An extraction module configured to process the electronic ticket according to a preset watermark extraction algorithm, to obtain an original ticket image and a watermark image including the second watermark identifier;
  • a comparison module configured to compare whether the first watermark identifier and the second watermark identifier are the same; if they are the same, the electronic ticket is a legal ticket.
  • the first watermark identifier and the second watermark identifier are information that uniquely identifies the mobile terminal, and include: a mobile terminal number and/or a mobile terminal identifier.
  • the comparison module is further configured to compare the first watermark identifier and the second watermark identifier to send a first trigger signal; compare the first watermark identifier with the second watermark identifier, and issue a second Trigger signal
  • the device also includes:
  • a processing module configured to: when the first trigger signal is received, output a prompt that the electronic ticket is valid, or perform a refund or transfer process on the electronic ticket;
  • an output module configured to output a prompt that the electronic ticket is invalid when the second trigger signal is received.
  • the processing module includes: a first sending unit, configured to send a refunding short message to the operator side device; and a first receiving unit, configured to receive a returning short message returned by the operator side device;
  • the processing module includes: an input unit, configured to receive a third watermark identifier input by the user; and an embedding unit, configured to embed the third watermark identifier in the original ticket image according to a preset watermark embedding algorithm, Obtaining a new electronic ticket; a second sending unit, configured to send the new electronic ticket to the target mobile terminal corresponding to the third watermark identifier; and a third sending unit, configured to send the electronic ticket transfer notification to the operator side device SMS.
  • the electronic ticket includes a sharpness or a signal to noise ratio of the original ticket image; the extracting module includes:
  • the original ticket image obtaining unit is configured to use the difference between the sharpness or the signal-to-noise ratio of the electronic ticket and the sharpness or the signal-to-noise ratio of the original ticket image as a first energy function, and use a variable-scale transient chaotic neural network search An algorithm, the search target is the first energy function being the smallest, and the original ticket image is obtained;
  • a watermark image obtaining unit configured to obtain the watermark image according to the electronic ticket and the original ticket image.
  • the embedded unit includes:
  • a decomposition unit configured to perform L-layer wavelet decomposition on the original ticket image to obtain a plurality of matrices
  • a calculation unit configured to separately calculate a JD value of each wavelet coefficient point in each matrix
  • a search unit configured to use the variable-scale transient chaotic neural network to search for the third water The best embedding strength of the printed logo, the optimal embedding strength being less than or equal to the JD value of the wavelet coefficient point.
  • the mobile terminal checks whether the electronic ticket is valid by comparing whether the first watermark identifier and the second watermark identifier are the same, and realizes that the validity of the electronic ticket can be proved only by the mobile terminal.
  • FIG. 1A is a schematic diagram of a first level main menu of a mobile phone operation interface according to the present invention.
  • FIG. 1B is a schematic diagram of a secondary sub-menu of a mobile phone operation interface according to the present invention.
  • FIG. 2 is a schematic flowchart of Embodiment 1 of an electronic ticket processing method according to the present invention
  • FIG. 3 is a schematic flowchart of Embodiment 2 of an electronic ticket processing method provided by the present invention
  • Figure 5 is a schematic diagram of three-layer wavelet decomposition of the present invention
  • FIG. 6 is a schematic structural diagram of an embodiment of an electronic ticket processing apparatus provided by the present invention. detailed description
  • the core idea of the present invention is: adding a function module for managing electronic ticket ticketing in the mobile terminal, the function module enabling the mobile terminal to have the following functions:
  • the mobile terminal reads the record therein.
  • the first watermark identification according to the preset watermark extraction algorithm, the mobile terminal processes the electronic ticket to obtain the original ticket image and the watermark image including the second watermark identifier; the mobile terminal compares whether the first watermark identifier and the second watermark identifier are the same If the same, it indicates that the electronic ticket is a legitimate ticket. Further, the mobile terminal may output a valid prompt for the electronic ticket, or the mobile terminal may refund or transfer the electronic ticket.
  • the invention realizes that the legality of the electronic ticket can be proved only by the mobile terminal.
  • a mobile phone is taken as a mobile terminal as an example for description.
  • the present invention is not limited thereto, and the mobile terminal may also be a personal digital assistant, a notebook, or the like.
  • the mobile phone electronic ticket ordering relationship mainly includes: a manufacturer, an operator, and a mobile phone user (ie, a user who has a subscription requirement) having a ticket sales demand.
  • the operator will issue electronic tickets with anti-counterfeiting information according to the requirements of the ticket sales vendors.
  • the mobile phone terminal manufacturers can develop corresponding functional modules in the mobile phone software system, corresponding to the encrypted anti-counterfeiting electronic tickets issued by the operators, and effectively manage the mobile phones.
  • Electronic tickets An effective digital watermarking algorithm based on chaotic neural network is an effective management method for electronic gates between maintenance operators and mobile phone terminal manufacturers. Watermark embedding algorithm or watermark extraction algorithm is preset in both software systems for encrypting and anti-counterfeiting electronic tickets.
  • the operator adds unique anti-counterfeiting information, that is, watermark identification, according to the watermark embedding algorithm in the original ticket image provided by the manufacturer.
  • the electronic ticket of the present invention may be a determined binary image, and may also be a determined grayscale image or an RGB (Red Green Blue) image.
  • the watermark information that the user cannot perceive can be embedded in the electronic ticket, so that the user looks like an electronic ticket of the same pattern to the naked eye
  • the graphic content can be information such as an introduction of an exhibition or an event, and has certain
  • the visual effect not only affects the image effect of the electronic ticket, but also effectively plays the role of ticket anti-counterfeiting, and is more in line with the user's habit of using paper tickets in the past, and is more humanized.
  • the watermark identifier embedded in the original ticket image may be a mobile terminal number (such as a mobile phone number) and/or a mobile terminal identifier (such as an IMEI (International Mobile Equipment Identity) of the mobile phone).
  • the IMEI is a unique identification number that distinguishes the mobile phone terminal. If the IMEI is used as the watermark identifier alone, there are some drawbacks. For example, after the user replaces the SIM card, anyone can use the mobile phone to use the electronic ticket.
  • the electronic ticket with the MMS as the carrier can be stored in the SIM card, and the IMEI and the mobile phone number are collectively used as the watermark identifier, and embedded in the electronic ticket to play the role of anti-counterfeiting.
  • the mobile phone number is taken as an example of the watermark identification, but the present invention is not limited thereto.
  • FIG. 1A and FIG. 1B respectively, schematic diagrams of the first-level main menu and the second-level sub-menu of the mobile phone operation interface are shown.
  • a ticket management function is added to the operation interface of the mobile phone, and the user can select ticket management to enter the secondary sub-menu.
  • the second sub-menu of the mobile phone operation interface provides four functions of electronic ticket ordering, electronic ticket inspection, electronic ticket transfer and refund.
  • the electronic ticket ordering process can be entered. Users can choose to order one or more e-tickets for this unit, or they can choose to order one or more e-tickets for other mobile users.
  • the mobile phone sends the number of the ordered number and the code of the electronic ticket to be ordered to the operator-side device; the operator-side device adds the electronic ticket to the mobile phone number according to the watermark embedding algorithm in the original ticket image provided by the manufacturer. , send the corresponding number of electronic tickets to the mobile phone.
  • the user When ordering tickets for other mobile phone users, the user needs to send the mobile phone number (also called the target mobile phone number) with the ticket ordering requirement, the number of sheets to be ordered, and the ticket code to the operator side device; the carrier side device is provided by the manufacturer.
  • the electronic ticket is obtained by adding the target mobile phone number according to the watermark embedding algorithm, and the corresponding number of electronic tickets are sent to the mobile phone user who has the ticket ordering requirement, instead of being sent to the mobile phone user who initiates the ordering request.
  • the electronic ticket inspection process can be entered.
  • the first embodiment of the electronic ticket processing method provided by the present invention is an electronic ticket checking process, which includes the following steps:
  • Step 101 The mobile phone receives a confirmation check message input by the user to start an electronic ticket verification process.
  • the mobile phone receives the confirmation check message generated by the selection to start the electronic ticket inspection process.
  • Step 102 The mobile phone sends an instruction to read the SIM card (Subscriber Identity Module, The user identifies the module side information to obtain the recorded first mobile phone number, which is the user's mobile phone number.
  • SIM card Subscriber Identity Module
  • Step 103 According to a preset watermark extraction algorithm, the mobile phone processes the electronic ticket to obtain an original ticket image and a watermark image including the second mobile phone number.
  • the watermark extraction algorithm is pre-configured in the mobile phone, and the watermark extraction algorithm corresponds to the watermark embedding algorithm of the operator side device, which is the inverse process.
  • the mobile phone initiates the watermark extraction algorithm to obtain an original ticket image and a watermark image including the second mobile number.
  • Step 104 The mobile phone deletes the electronic ticket.
  • the mobile phone can delete the electronic ticket, and retain the original ticket image and the watermark image obtained after executing the watermark extraction algorithm.
  • the embodiment of the present invention can follow the following rules: As long as the watermark extraction algorithm is started, the mobile phone will actively delete the electronic ticket to prevent the electronic ticket from being reused and maintain the legitimate rights and interests of the ticket seller. Except in the case where electronic tickets can be reused.
  • Step 105 The mobile phone compares whether the first mobile phone number and the second mobile phone number are the same. If yes, step 106 is performed; otherwise, step 109 is performed.
  • Step 106 The mobile phone outputs an effective prompt for the electronic ticket.
  • the mobile phone If the first mobile phone number and the second mobile phone number are the same, indicating that the electronic ticket is true, the mobile phone outputs a valid prompt for the electronic ticket, and the ticket inspecting party confirms that the electronic ticket is true according to the prompt.
  • Step 107 The mobile phone can delete the separated original ticket image and the watermark image. This step is an optional step.
  • Step 108 The mobile phone may send a short message to the operator side device to confirm that the electronic ticket has been used normally, and the process ends. This step is an optional step.
  • Step 109 The mobile phone outputs an indication that the electronic ticket is invalid, and the process ends.
  • the difference between the first mobile phone number and the second mobile phone number indicates that the electronic ticket is false, and the mobile phone outputs a prompt that the electronic ticket is invalid, and the ticket inspecting party confirms that the electronic ticket is false according to the prompt.
  • the user can check the electronic ticket by the mobile phone only, specifically, the user Select the electronic ticket test in the second sub-menu, the mobile phone will output the prompt of valid or invalid electronic ticket, realize the electronic ticket inspection function with one button only, the inspection process is completed in the mobile phone instantaneously, and only the inspection process and inspection are required. The results are presented to the ticket inspector, eliminating the need to configure the RF scanning device on site.
  • the second embodiment of the electronic ticket processing method is provided by the present invention.
  • the embodiment is specifically a refund process, and includes the following steps:
  • Step 201 The mobile phone receives a confirmation refund message input by the user to start the electronic ticket refund process.
  • the mobile phone receives the confirmation refund message generated by the selection to start the electronic ticket refund process.
  • Step 202 The mobile phone sends an instruction to read the SIM card side information to obtain the recorded first mobile phone number, where the first mobile phone number is the mobile phone number of the user.
  • Step 203 According to a preset watermark extraction algorithm, the mobile phone processes the electronic ticket to obtain an original ticket image and a watermark image including the second mobile phone number.
  • the watermark extraction algorithm is pre-configured in the mobile phone, and the watermark extraction algorithm corresponds to the watermark embedding algorithm of the operator side device, which is the inverse process.
  • the mobile phone initiates the watermark extraction algorithm to obtain an original ticket image and a watermark image including the second mobile number.
  • Step 204 The mobile phone deletes the electronic ticket.
  • the mobile phone can delete the electronic ticket, and retain the original ticket image and the watermark image obtained after executing the watermark extraction algorithm.
  • the embodiment of the present invention can follow the following rules: As long as the watermark extraction algorithm is started, the mobile phone will actively delete the electronic ticket to prevent the electronic ticket from being reused and maintain the legitimate rights and interests of the ticket seller.
  • Step 205 The mobile phone compares whether the first mobile phone number and the second mobile phone number are the same. Then step 206 is performed; otherwise, step 209 is performed.
  • Step 206 The mobile phone confirms the refund, and sends a refund message to the operator side device.
  • the mobile phone If the first mobile phone number and the second mobile phone number are the same, indicating that the electronic ticket is true, it is confirmed that the mobile phone has the right to refund the ticket, and the mobile phone sends a refunding short message to the operator-side device, and notifies the operator of the refund.
  • Step 207 The mobile phone may delete the separated original ticket image and the watermark image. This step is an optional step.
  • Step 208 The mobile phone receives the receipt message returned by the operator side device, and the process ends.
  • Step 209 The mobile phone outputs an indication that the electronic ticket is invalid, and the process ends.
  • the user can confirm that the user has the right to refund the electronic ticket by using the mobile phone. Specifically, the user selects the refund in the second sub-menu. After the mobile phone is verified, if the electronic ticket is true, the user can directly refund the ticket. Processing; If the electronic ticket is false, the prompt for invalid electronic ticket is directly output. The refund of the electronic ticket starts the inspection function. Only after the verification is passed, the electronic ticket can be refunded, and the service is more detailed and comprehensive.
  • FIG. 4 it is a third embodiment of the electronic ticket processing method provided by the present invention.
  • the embodiment is specifically an electronic ticket transfer process, and includes the following steps:
  • Step 301 The mobile phone receives a confirmation transfer message input by the user to start the electronic ticket transfer process.
  • the mobile phone receives the confirmation transfer message generated by the selection to start the electronic ticket transfer process.
  • Step 302 The mobile phone sends an instruction to read the SIM card side information to obtain the recorded first mobile phone number, where the first mobile phone number is the mobile phone number of the user.
  • Step 303 According to a preset watermark extraction algorithm, the mobile phone processes the electronic ticket, and obtains The original ticket image and the watermark image including the second mobile phone number.
  • the watermark extraction algorithm is pre-configured in the mobile phone, and the watermark extraction algorithm corresponds to the watermark embedding algorithm of the operator side device, which is the inverse process.
  • the mobile phone initiates the watermark extraction algorithm to obtain an original ticket image and a watermark image including the second mobile number.
  • Step 304 The mobile phone deletes the electronic ticket.
  • the mobile phone can delete the electronic ticket, and retain the original ticket image and the watermark image obtained after executing the watermark extraction algorithm.
  • the embodiment of the present invention can follow the following rules: As long as the watermark extraction algorithm is started, the mobile phone will actively delete the electronic ticket to prevent the electronic ticket from being reused and maintain the legitimate rights and interests of the ticket seller.
  • Step 305 The mobile phone compares whether the first mobile phone number and the second mobile phone number are the same. If they are the same, go to step 306; otherwise, go to step 311.
  • Step 306 The mobile phone receives a third mobile phone number input by the user.
  • the mobile phone number of the user to be transferred that is, the third mobile phone number.
  • Step 307 According to the preset watermark embedding algorithm, the mobile phone embeds the third mobile phone number in the original ticket image to obtain a new electronic ticket.
  • a watermark embedding algorithm is pre-configured in the mobile phone, and the watermark embedding algorithm is the same as the watermark embedding algorithm of the operator side device.
  • the mobile phone initiates the watermark embedding algorithm, embedding the third mobile phone number in the original ticket image to obtain a new electronic ticket.
  • Step 308 The mobile phone may delete the watermark image including the second mobile phone number. This step is an optional step.
  • Step 309 The mobile phone sends the new electronic ticket to the target mobile phone corresponding to the third mobile phone number.
  • the target mobile phone is the mobile phone of the user to be transferred.
  • Step 310 The mobile phone sends a notification message of the electronic ticket transfer to the operator side device, and the transfer will be transferred. The situation is notified to the operator and the process ends.
  • Step 311 The mobile phone outputs an prompt that the electronic ticket is invalid, and the process ends.
  • the user can confirm that the user has the right to transfer the electronic ticket by using the mobile phone. Specifically, the user selects the electronic ticket transfer in the second-level sub-menu. After the mobile phone is verified, if the electronic ticket is true, the user can directly Do the transfer processing; if the electronic ticket is false, directly output the prompt that the electronic ticket is invalid.
  • the transfer of electronic tickets starts the inspection function, and only after the verification is passed, the electronic ticket can be transferred, and the service is more detailed and comprehensive.
  • the invention also provides an intelligent digital watermark embedding algorithm based on chaotic neural network, which can be applied to the above various embodiments, and the specific description is as follows:
  • the original ticket image is subjected to L-layer wavelet decomposition.
  • the image is a two-dimensional signal.
  • the basic idea of wavelet transform for image analysis is to decompose the image into multiple resolutions and decompose the image into sub-images of different spatial and different frequencies.
  • the image is divided into four frequency bands after wavelet transform: horizontal, vertical, diagonal and low frequency, and the low frequency part can continue to decompose.
  • the low frequency portion may be referred to as a luminance image, and the horizontal, vertical, and diagonal portions may be referred to as detailed images.
  • the wavelet transform constitutes a multi-scale time-frequency decomposition of it.
  • HL3 is the detail information retained by the high-pass and vertical low-pass filtering in the horizontal direction.
  • the LH3 block is the horizontal low-pass and vertical high-pass filtering, and the HH2 block is horizontal and vertical.
  • LL3 is the low-pass filtered detail information in both horizontal and vertical directions.
  • the JD (Just Noticeable Difference) values of each wavelet coefficient point in each matrix are respectively calculated.
  • a point with a large JD value allows for more embedded watermark information, and the corresponding robustness of the watermarked image is better.
  • the point where the wavelet coefficient values are arranged in the order of large to small is embedded in the point where the JD value of the host image is large, so that sufficient watermark information can be embedded in the host image.
  • the frequency masking factor of the HVS (Human Vision System) image is:
  • ⁇ ( ⁇ , >) represents the point ( ⁇ , and the neighborhood of the point. After defining the neighborhood, the following formula is used to estimate the brightness masking factor, specifically:
  • the variance factor for the low frequency coefficients is defined as:
  • the texture information and edge information of the image are stored in the high frequency coefficients (LH, HL, ⁇ ).
  • the energy factor of the high frequency coefficient defined by the present invention is:
  • the JD estimate for each wavelet coefficient is:
  • ", ⁇ , ⁇ are the weights of the brightness masking factor, the variance factor, and the energy factor, respectively, «e [0.5,0.7] , ⁇ e [0.06,0.08] , ye [0 ⁇ 08,0 ⁇ 1].
  • the J D value calculated by the formula is the limit value of the embedded watermark intensity, which is the maximum embedding strength (MAX ) that the human eye cannot clearly observe the existence of the watermark.
  • MAX maximum embedding strength
  • the present invention designs the chaotic neural network in the interval [0, MAX]. Look for the best insertion strength to maintain good transparency.
  • the watermark embedding strength is determined by a variable-scale transient chaotic neural network capable of intelligently adjusting its value.
  • the combination of chaotic neural network and watermark embedding strength lies in the determination of the energy function of chaotic neural network.
  • the present invention sets the second energy function of the chaotic neural network to a negative value of the spatial frequency within the region of the watermarked image.
  • the spatial frequency is defined as follows:
  • RF is the line frequency and CF is the column frequency.
  • M*N is the size of the region
  • ⁇ , ⁇ ) is the wavelet coefficient value of the ( , _/ ⁇ ) point.
  • Chaotic neural network searches for self-suppression on a certain fractal structure in a chaotic manner in phase space.
  • the search target has the second energy function minimum, that is, the search minimizes the second energy function of the chaotic neural network.
  • the point is output, which in turn gives the best embedding strength for that point.
  • the second energy function is the smallest, the negative of the spatial frequency is the smallest, and the spatial frequency is maximized.
  • Spatial frequency is a common indicator for objectively evaluating image quality. The larger the spatial frequency, the better the quality of the image, and the better the visual effect of the human eye.
  • the watermark extraction algorithm is the inverse of the watermark embedding algorithm.
  • the operator side device calculates the sharpness or signal to noise ratio of the original ticket image, and the original ticket image is an image without any information, so the resolution or the signal to noise ratio is the largest. of.
  • the resolution or signal-to-noise ratio of the original ticket image is written into the electronic ticket, for example, the resolution or the signal-to-noise ratio is sent to the user as the pixel value of the bottom right corner of the electronic ticket. A change in the pixel value at the bottom right corner does not affect the visual effect of the image. Because operators and handset manufacturers are a cooperative relationship, handset manufacturers know this convention.
  • the watermark extraction algorithm executed includes: using the difference between the clarity or the signal-to-noise ratio of the electronic ticket and the clarity or signal-to-noise ratio of the original ticket image as the first energy function, using the variable-scale transient
  • the chaotic neural network search algorithm searches for the first energy function to obtain the original ticket image. According to the electronic ticket and the original ticket image, the watermark image is obtained.
  • the watermark extraction algorithm belongs to a semi-blind watermark extraction algorithm. Watermark extraction algorithm.
  • an embodiment of an electronic ticket processing apparatus may be a function module of a mobile terminal or a mobile terminal, and specifically includes: a reading module 11, an extracting module 12, and a comparison module. 13.
  • the reading module 11 is configured to read the recorded first watermark identifier; the extracting module 12 is configured to process the electronic ticket according to a preset watermark extraction algorithm, to obtain an original ticket image and a watermark image including the second watermark identifier;
  • the comparison module 13 is configured to compare whether the first watermark identifier and the second watermark identifier are the same. If they are the same, the electronic ticket is a legal ticket.
  • the first watermark identifier and the second watermark identifier are a mobile terminal number and/or a mobile terminal identifier.
  • the comparison module 13 is further configured to compare that the first watermark identifier and the second watermark identifier are the same, and issue a first trigger signal; comparing the first watermark identifier and the second watermark identifier, A second trigger signal is issued.
  • the device may further include: a processing module 14 configured to: when receiving the first trigger signal, output a prompt that the electronic ticket is valid, or perform a refund or transfer process on the electronic ticket; and the output module 16 is configured to receive the second trigger Signal, output prompt for invalid electronic tickets.
  • the embodiment may further include: a deleting module 15 for deleting the electronic ticket.
  • the device provided in this embodiment can implement the function of electronic ticket inspection. Specifically, the comparison module 13 compares whether the first watermark identifier and the second watermark identifier are the same. If they are the same, the first trigger signal is sent. If different, the second trigger signal is sent. After receiving the first trigger signal, the processing module 14 outputs The electronic ticket is valid prompt; after receiving the second trigger signal, the output module 16 outputs a prompt that the electronic ticket is invalid. Thereby the function of electronic ticket inspection is realized.
  • the device provided in this embodiment can also implement the refund function.
  • the processing module 14 may include: a first sending unit 17 and a first receiving unit 18, where the first sending unit 17 is configured to send a refunding short message to the operator side device; the first receiving unit 18 is configured to receive the operator side. A receipt message returned by the device.
  • the comparison module 13 compares whether the first watermark identifier and the second watermark identifier are the same. If they are the same, the first trigger signal is sent, and if not, the second trigger signal is sent; after the first sending unit 17 receives the first trigger signal, And sending the refunding short message to the operator side device.
  • the first receiving unit 18 receives the returning short message returned by the operator side device; after receiving the second triggering signal, the output module 16 outputs the prompt that the electronic ticket is invalid. Thereby, the electronic ticket refund function is realized.
  • the device provided in this embodiment can also implement an electronic ticket transfer function.
  • the processing module 14 may include: an input unit, an embedding unit, a second sending unit, and a third sending unit, where the input unit is configured to receive a third watermark identifier input by the user; the embedding unit is configured to embed according to the preset watermark The algorithm, the third watermark identifier is embedded in the original ticket image to obtain a new electronic ticket; the second sending unit is configured to send the new electronic ticket to the target mobile terminal corresponding to the third watermark identifier; and the third sending unit is configured to the operator side
  • the device sends a notification SMS for the transfer of electronic tickets.
  • the comparison module compares whether the first watermark identifier and the second watermark identifier are the same.
  • the input unit receives the third watermark identifier input by the user; the embedded unit is receiving After the first trigger signal, according to the preset watermark embedding algorithm, the third watermark identifier is embedded in the original ticket image to obtain a new electronic ticket; the second sending unit sends the new electronic ticket to the target mobile terminal corresponding to the third watermark identifier.
  • the third sending unit sends the notification message of the electronic ticket transfer to the operator side device; after receiving the second trigger signal, the output module outputs a prompt that the electronic ticket is invalid. Thereby the function of electronic ticket transfer is realized.
  • the electronic ticket includes the clarity or the signal-to-noise ratio of the original ticket image
  • the extracting module 12 may include:
  • the original ticket image obtaining unit is configured to use the difference between the clarity or the signal-to-noise ratio of the electronic ticket and the clarity or the signal-to-noise ratio of the original ticket image as the first energy function, and use the variable-scale transient chaotic neural network search algorithm.
  • the search target is the first energy function is the smallest, and the original ticket image is obtained;
  • the watermark image obtaining unit is configured to obtain the watermark image according to the electronic ticket and the original ticket image.
  • the above embedded unit may include:
  • a decomposing unit configured to perform L-layer wavelet decomposition on the original ticket image to obtain a plurality of matrices; a calculating unit, configured to respectively calculate a JD value of each wavelet coefficient point in each matrix; and a searching unit, configured to use the variable-scale transient
  • the chaotic neural network searches for the best embedding strength of the third watermark identifier, and the optimal embedding strength is less than or equal to the JD value of the wavelet coefficient point.
  • the electronic ticket processing method and apparatus enable the user to check the electronic ticket by the mobile terminal alone, or the user can confirm that the user has refunded or transferred the electronic ticket by simply using the mobile terminal. Permissions; if the ordering, inspection, refund and transfer functions are integrated, the mobile terminal has a complete set of ticket management functions.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Image Processing (AREA)
  • Devices For Checking Fares Or Tickets At Control Points (AREA)

Abstract

An electronic entrance ticket processing method and a device thereof are provided. The method involves the following steps. A recorded first watermark identifier is read by a mobile terminal. An electronic entrance ticket is processed by the mobile terminal according to a preset watermark extracting algorithm, so as to obtain an original entrance ticket image and a watermark image comprising a second watermark identifier. The first watermark identifier is compared with the second watermark identifier by the mobile terminal to determine they are the same or not, and the entrance ticket is validated as a legal entrance ticket if the watermark identifiers are same. The electronic entrance ticket processing method and the device thereof achieve the purpose that the validity of the electronic entrance ticket is proved by the mobile terminal only.

Description

电子门票处理方法及装置 技术领域  Electronic ticket processing method and device
本发明涉及移动通信领域, 更具体地说, 涉及一种电子门票处理方法 及装置。 背景技术  The present invention relates to the field of mobile communications, and more particularly to an electronic ticket processing method and apparatus. Background technique
随着科技的发展, 电子化已经成为一种趋势, 门票的电子化也逐步在 人们的日常生活中得到广泛应用。 北京奥运、 各种赛会、 展会, 甚至是动 物园都已经有了电子门票, 人们可以足不出户, 更不用排队, 借助运营商 发送的彩信, 就得到自己想要的门票。 电子门票除了方便快捷, 更有比纸 质门票环保的优势, 因此, 电子门票势必逐渐取代纸质门票, 而移动终端 (如手机) 电子门票将会是人们使用起来最简单, 应用最广泛的电子门票。 传统的移动终端电子门票多是二维防伪码, 对用户来说, 这种门票不是十 分美观, 不容易辨识。  With the development of science and technology, electronicization has become a trend, and the electronicization of tickets has gradually been widely used in people's daily life. The Beijing Olympics, various competitions, exhibitions, and even animal parks already have electronic tickets. People can stay at home, not to queue, and get the tickets they want with the MMS sent by the operators. In addition to being convenient and fast, electronic tickets have the advantage of being environmentally friendly than paper tickets. Therefore, electronic tickets are bound to gradually replace paper tickets, and mobile terminals (such as mobile phones) will be the easiest and most widely used electronic tickets. Tickets. Traditional mobile terminal electronic tickets are mostly two-dimensional security codes. For users, such tickets are not aesthetically pleasing and are not easily identifiable.
数字水印是有效的数字图像防伪算法。 水印是一种图案或标记, 根据 一定的算法嵌入在某种媒介(如图像) 中, 用来辨别真伪。 具体地, 数字 水印技术是指用信号处理的方法在数字化的多媒体数据中嵌入隐藏的标 记, 这种标记通常是不可见的, 只有通过专用的检测器或阅读器才能提取。 这种被嵌入的水印可以是任何形式数据, 如一段文字、 标识、 序列号等。 好的水印算法能够保证水印的不可感知性、 鲁棒性和确定性。 近年来, 人 工神经网络由于其快速的处理速度和较强的自学习自适应能力而被大量用 于各种算法的实现上。  Digital watermarking is an effective digital image anti-counterfeiting algorithm. A watermark is a pattern or mark that is embedded in a medium (such as an image) according to a certain algorithm to distinguish between authenticity and falsehood. Specifically, digital watermarking refers to the embedding of hidden marks in digitized multimedia data by means of signal processing. Such marks are usually invisible and can only be extracted by a dedicated detector or reader. The embedded watermark can be any form of data, such as a paragraph of text, logo, serial number, and the like. A good watermarking algorithm can guarantee the imperceptibility, robustness and certainty of the watermark. In recent years, artificial neural networks have been widely used in the implementation of various algorithms due to their fast processing speed and strong self-learning adaptive ability.
目前, 釆用嵌入数字水印的图像作为移动终端电子门票, 用户无法仅 凭移动终端就能证明电子门票的合法性, 例如: 若对电子门票进行检验, 需要现场有射频扫描设备的支持; 若用户希望退掉电子门票或转让电子门 票, 移动终端需要向运营商侧设备发送短信, 经过运营商侧设备的验证, 才能对电子门票进行退票或转让, 处理流程十分复杂。 发明内容 At present, the image embedded in the digital watermark is used as the electronic ticket for the mobile terminal, and the user cannot prove the legality of the electronic ticket by simply using the mobile terminal, for example: If the electronic ticket is inspected, It is necessary to have the support of the RF scanning device on site; if the user wants to withdraw the electronic ticket or transfer the electronic ticket, the mobile terminal needs to send the short message to the operator side device, and after the verification of the operator side device, the electronic ticket can be refunded or transferred. The process is very complicated. Summary of the invention
本发明所要解决的技术问题是针对现有技术的缺陷, 提出一种电子门 票处理方法及装置, 用以仅凭移动终端就能证明电子门票的合法性。  The technical problem to be solved by the present invention is to address the defects of the prior art, and to provide an electronic ticket processing method and apparatus for verifying the legitimacy of an electronic ticket by the mobile terminal alone.
为了解决上述技术问题, 本发明提供了一种电子门票处理方法, 包括: 移动终端读取记录的第一水印标识;  In order to solve the above technical problem, the present invention provides an electronic ticket processing method, including: a mobile terminal reading a recorded first watermark identifier;
根据预设的水印提取算法, 移动终端对电子门票进行处理, 得到原始 门票图像和包括第二水印标识的水印图像;  According to the preset watermark extraction algorithm, the mobile terminal processes the electronic ticket to obtain an original ticket image and a watermark image including the second watermark identifier;
移动终端比较所述第一水印标识和所述第二水印标识是否相同; 若相 同, 则表明所述电子门票为合法的门票。  The mobile terminal compares whether the first watermark identifier and the second watermark identifier are the same; if they are the same, it indicates that the electronic ticket is a legitimate ticket.
所述第一水印标识和第二水印标识为唯一标识移动终端的信息, 包括: 移动终端号码和 /或移动终端标识。  The first watermark identifier and the second watermark identifier are information that uniquely identifies the mobile terminal, and include: a mobile terminal number and/or a mobile terminal identifier.
在表明所述电子门票为合法的门票之后, 还包括: 移动终端输出电子 门票有效的提示, 或者, 移动终端对电子门票进行退票或转让处理;  After indicating that the electronic ticket is a valid ticket, the method further includes: the mobile terminal outputting an indication that the electronic ticket is valid, or the mobile terminal refunds or transfers the electronic ticket;
所述方法还包括: 若比较出所述第一水印标识和所述第二水印标识不 相同, 则移动终端输出电子门票无效的提示。  The method further includes: if it is compared that the first watermark identifier and the second watermark identifier are different, the mobile terminal outputs a prompt that the electronic ticket is invalid.
所述移动终端对电子门票进行退票处理包括: 移动终端向运营商侧设 备发送退票短信; 移动终端接收运营商侧设备返回的回执短信;  The mobile terminal performing the refund process on the electronic ticket includes: the mobile terminal sends a refunding short message to the operator side device; and the mobile terminal receives the returning short message returned by the operator side device;
所述移动终端对电子门票进行转让处理包括: 移动终端接收用户输入 的第三水印标识; 根据预设的水印嵌入算法, 移动终端在所述原始门票图 像中嵌入所述第三水印标识, 得到新电子门票; 移动终端将所述新电子门 票发送给所述第三水印标识对应的目标移动终端; 移动终端向运营商侧设 备发送电子门票转让的通知短信。 所述电子门票中包括所述原始门票图像的清晰度或信噪比; 所述根据 预设的水印提取算法, 移动终端对电子门票进行处理, 得到原始门票图像 和包括第二水印标识的水印图像包括: The mobile terminal performing the transfer process of the electronic ticket includes: the mobile terminal receiving the third watermark identifier input by the user; according to the preset watermark embedding algorithm, the mobile terminal embedding the third watermark identifier in the original ticket image to obtain a new The electronic terminal sends the new electronic ticket to the target mobile terminal corresponding to the third watermark identifier; the mobile terminal sends the notification message of the electronic ticket transfer to the operator side device. The electronic ticket includes a definition or a signal-to-noise ratio of the original ticket image; and according to the preset watermark extraction algorithm, the mobile terminal processes the electronic ticket to obtain an original ticket image and a watermark image including the second watermark identifier include:
将电子门票的清晰度或信噪比与所述原始门票图像的清晰度或信噪比 的差值作为第一能量函数, 釆用变尺度暂态混沌神经网络搜索算法, 搜索 目标为所述第一能量函数最小, 得到原始门票图像;  Taking the difference between the definition or the signal-to-noise ratio of the electronic ticket and the clarity or signal-to-noise ratio of the original ticket image as a first energy function, using a variable-scale transient chaotic neural network search algorithm, the search target is the first An energy function is minimized to obtain an original ticket image;
根据所述电子门票和所述原始门票图像, 得到所述水印图像。  The watermark image is obtained based on the electronic ticket and the original ticket image.
所述根据预设的水印嵌入算法, 移动终端在所述原始门票图像中嵌入 所述第三水印标识包括:  The embedding the third watermark identifier in the original ticket image by the mobile terminal according to the preset watermark embedding algorithm includes:
对所述原始门票图像进行 L层小波分解, 得到多个矩阵;  Performing L-layer wavelet decomposition on the original ticket image to obtain a plurality of matrices;
分别计算每个矩阵中各小波系数点的最小可觉差 (J D )值; 将空间频率的负值作为第二能量函数, 釆用变尺度暂态混沌神经网络 搜索算法, 搜索目标为第二能量函数最小, 得到所述第三水印标识的最佳 嵌入强度, 所述最佳嵌入强度小于或等于小波系数点的 J D值。  Calculate the minimum sensible difference (JD) value of each wavelet coefficient point in each matrix; use the negative value of the spatial frequency as the second energy function, and use the variable-scale transient chaotic neural network search algorithm to search for the second energy The function is minimal, and the optimal embedding strength of the third watermark identifier is obtained, and the optimal embedding strength is less than or equal to the JD value of the wavelet coefficient point.
本发明还提供了一种电子门票处理装置, 包括:  The invention also provides an electronic ticket processing device, comprising:
读取模块, 用于读取记录的第一水印标识;  a reading module, configured to read the first watermark identifier of the record;
提取模块, 用于根据预设的水印提取算法, 对电子门票进行处理, 得 到原始门票图像和包括第二水印标识的水印图像;  An extraction module, configured to process the electronic ticket according to a preset watermark extraction algorithm, to obtain an original ticket image and a watermark image including the second watermark identifier;
比较模块, 用于比较所述第一水印标识和所述第二水印标识是否相同; 若相同, 则表明所述电子门票为合法的门票。  And a comparison module, configured to compare whether the first watermark identifier and the second watermark identifier are the same; if they are the same, the electronic ticket is a legal ticket.
所述第一水印标识和第二水印标识为唯一标识移动终端的信息, 包括: 移动终端号码和 /或移动终端标识。  The first watermark identifier and the second watermark identifier are information that uniquely identifies the mobile terminal, and include: a mobile terminal number and/or a mobile terminal identifier.
所述比较模块还用于比较出所述第一水印标识和所述第二水印标识相 同, 发出第一触发信号; 比较出所述第一水印标识和所述第二水印标识不 同, 发出第二触发信号; 所述装置还包括: The comparison module is further configured to compare the first watermark identifier and the second watermark identifier to send a first trigger signal; compare the first watermark identifier with the second watermark identifier, and issue a second Trigger signal The device also includes:
处理模块, 用于当接收到所述第一触发信号时, 输出电子门票有效的 提示, 或者, 对电子门票进行退票或转让处理;  a processing module, configured to: when the first trigger signal is received, output a prompt that the electronic ticket is valid, or perform a refund or transfer process on the electronic ticket;
输出模块, 用于当接收到所述第二触发信号时, 输出电子门票无效的 提示。  And an output module, configured to output a prompt that the electronic ticket is invalid when the second trigger signal is received.
所述处理模块包括: 第一发送单元, 用于向运营商侧设备发送退票短 信; 第一接收单元, 用于接收运营商侧设备返回的回执短信;  The processing module includes: a first sending unit, configured to send a refunding short message to the operator side device; and a first receiving unit, configured to receive a returning short message returned by the operator side device;
或者, 所述处理模块包括: 输入单元, 用于接收用户输入的第三水印 标识; 嵌入单元, 用于根据预设的水印嵌入算法, 在所述原始门票图像中 嵌入所述第三水印标识, 得到新电子门票; 第二发送单元, 用于将所述新 电子门票发送给所述第三水印标识对应的目标移动终端; 第三发送单元, 用于向运营商侧设备发送电子门票转让的通知短信。  Or the processing module includes: an input unit, configured to receive a third watermark identifier input by the user; and an embedding unit, configured to embed the third watermark identifier in the original ticket image according to a preset watermark embedding algorithm, Obtaining a new electronic ticket; a second sending unit, configured to send the new electronic ticket to the target mobile terminal corresponding to the third watermark identifier; and a third sending unit, configured to send the electronic ticket transfer notification to the operator side device SMS.
所述电子门票中包括所述原始门票图像的清晰度或信噪比; 所述提取 模块包括:  The electronic ticket includes a sharpness or a signal to noise ratio of the original ticket image; the extracting module includes:
原始门票图像获取单元, 用于将电子门票的清晰度或信噪比与所述原 始门票图像的清晰度或信噪比的差值作为第一能量函数, 釆用变尺度暂态 混沌神经网络搜索算法, 搜索目标为所述第一能量函数最小, 得到原始门 票图像;  The original ticket image obtaining unit is configured to use the difference between the sharpness or the signal-to-noise ratio of the electronic ticket and the sharpness or the signal-to-noise ratio of the original ticket image as a first energy function, and use a variable-scale transient chaotic neural network search An algorithm, the search target is the first energy function being the smallest, and the original ticket image is obtained;
水印图像获取单元, 用于根据所述电子门票和所述原始门票图像, 得 到所述水印图像。  And a watermark image obtaining unit, configured to obtain the watermark image according to the electronic ticket and the original ticket image.
所述嵌入单元包括:  The embedded unit includes:
分解单元, 用于对所述原始门票图像进行 L层小波分解, 得到多个矩 阵;  a decomposition unit, configured to perform L-layer wavelet decomposition on the original ticket image to obtain a plurality of matrices;
计算单元, 用于分别计算每个矩阵中各小波系数点的 J D值; 搜索单元, 用于釆用变尺度暂态混沌神经网络, 搜索得到所述第三水 印标识的最佳嵌入强度, 所述最佳嵌入强度小于或等于小波系数点的 J D 值。 a calculation unit, configured to separately calculate a JD value of each wavelet coefficient point in each matrix; a search unit, configured to use the variable-scale transient chaotic neural network to search for the third water The best embedding strength of the printed logo, the optimal embedding strength being less than or equal to the JD value of the wavelet coefficient point.
本发明提供的电子门票处理方法及装置, 移动终端通过比较第一水印 标识和第二水印标识是否相同来检验电子门票是否有效, 实现了仅凭移动 终端就能证明电子门票的合法性。 附图说明  The electronic ticket processing method and apparatus provided by the present invention, the mobile terminal checks whether the electronic ticket is valid by comparing whether the first watermark identifier and the second watermark identifier are the same, and realizes that the validity of the electronic ticket can be proved only by the mobile terminal. DRAWINGS
图 1A为本发明手机操作界面一级主菜单的示意图;  1A is a schematic diagram of a first level main menu of a mobile phone operation interface according to the present invention;
图 1B为本发明手机操作界面二级子菜单的示意图;  1B is a schematic diagram of a secondary sub-menu of a mobile phone operation interface according to the present invention;
图 2为本发明提供的电子门票处理方法实施例一的流程示意图; 图 3为本发明提供的电子门票处理方法实施例二的流程示意图; 图 4为本发明提供的电子门票处理方法实施例三的流程示意图; 图 5为本发明三层小波分解示意图;  FIG. 2 is a schematic flowchart of Embodiment 1 of an electronic ticket processing method according to the present invention; FIG. 3 is a schematic flowchart of Embodiment 2 of an electronic ticket processing method provided by the present invention; FIG. Schematic diagram of the flow; Figure 5 is a schematic diagram of three-layer wavelet decomposition of the present invention;
图 6为本发明提供的电子门票处理装置的实施例的结构示意图。 具体实施方式  FIG. 6 is a schematic structural diagram of an embodiment of an electronic ticket processing apparatus provided by the present invention. detailed description
本发明的核心思想是: 在移动终端中增加一个用于管理电子门票票务 的功能模块, 该功能模块使得移动终端具有以下功能: 在用户选择相应的 电子门票管理菜单时, 移动终端读取其中记录的第一水印标识; 根据预设 的水印提取算法, 移动终端对电子门票进行处理, 得到原始门票图像和包 括第二水印标识的水印图像; 移动终端比较第一水印标识和第二水印标识 是否相同; 若相同, 则表明该电子门票为合法的门票, 进一步的, 移动终 端可以输出电子门票有效的提示, 或者, 移动终端对电子门票进行退票或 转让处理。 本发明实现了仅凭移动终端就能证明电子门票的合法性。  The core idea of the present invention is: adding a function module for managing electronic ticket ticketing in the mobile terminal, the function module enabling the mobile terminal to have the following functions: When the user selects the corresponding electronic ticket management menu, the mobile terminal reads the record therein. The first watermark identification; according to the preset watermark extraction algorithm, the mobile terminal processes the electronic ticket to obtain the original ticket image and the watermark image including the second watermark identifier; the mobile terminal compares whether the first watermark identifier and the second watermark identifier are the same If the same, it indicates that the electronic ticket is a legitimate ticket. Further, the mobile terminal may output a valid prompt for the electronic ticket, or the mobile terminal may refund or transfer the electronic ticket. The invention realizes that the legality of the electronic ticket can be proved only by the mobile terminal.
下面结合附图及优选实施方式对本发明技术方案进行详细说明。  The technical solution of the present invention will be described in detail below with reference to the accompanying drawings and preferred embodiments.
在本发明以下各个具体实施例中, 以手机作为移动终端为例进行说明。 当然本发明不仅限于此, 移动终端也可以为个人数字助理、 笔记本等其他 移动设备。 In the following specific embodiments of the present invention, a mobile phone is taken as a mobile terminal as an example for description. Of course, the present invention is not limited thereto, and the mobile terminal may also be a personal digital assistant, a notebook, or the like.
本发明中, 手机电子门票订购关系主要包括: 有门票发售需求的厂商、 运营商、 手机用户 (即有订购需求的用户)。 运营商根据门票发售厂商的要 求, 来发售带有防伪信息的电子门票, 手机终端制造厂商可以在手机软件 系统中开拓出相应功能模块, 与运营商发售的加密防伪电子门票对应, 有 效地管理手机电子门票。 而维系运营商和手机终端制造厂商之间对电子门 票进行有效管理的是一种基于混沌神经网络的智能型数字水印算法。 双方 的软件系统中都预设了水印嵌入算法或水印提取算法, 用于对电子门票进 行加密防伪, 而对算法未知的第三方, 是无法从电子门票中提取出有用信 息证明电子门票真伪的。 运营商根据厂商的需求, 在厂商提供的原始门票 图像中按照水印嵌入算法加入唯一的防伪信息, 即水印标识。  In the present invention, the mobile phone electronic ticket ordering relationship mainly includes: a manufacturer, an operator, and a mobile phone user (ie, a user who has a subscription requirement) having a ticket sales demand. The operator will issue electronic tickets with anti-counterfeiting information according to the requirements of the ticket sales vendors. The mobile phone terminal manufacturers can develop corresponding functional modules in the mobile phone software system, corresponding to the encrypted anti-counterfeiting electronic tickets issued by the operators, and effectively manage the mobile phones. Electronic tickets. An effective digital watermarking algorithm based on chaotic neural network is an effective management method for electronic gates between maintenance operators and mobile phone terminal manufacturers. Watermark embedding algorithm or watermark extraction algorithm is preset in both software systems for encrypting and anti-counterfeiting electronic tickets. For third parties whose algorithm is unknown, it is impossible to extract useful information from electronic tickets to prove the authenticity of electronic tickets. . According to the needs of the manufacturer, the operator adds unique anti-counterfeiting information, that is, watermark identification, according to the watermark embedding algorithm in the original ticket image provided by the manufacturer.
本发明的电子门票可以是确定的二值图像, 同时也可以是确定的灰度 图像或 RGB ( Red Green Blue, 红绿蓝) 图像。 无论是上述哪种图像, 都能 在电子门票中嵌入用户无法感知到的水印信息, 使得用户肉眼看上去都是 相同图案的电子门票, 图案内容可以是展会或赛事的介绍等信息, 具有一 定的视觉效果, 既不影响电子门票的图像效果, 又能有效地起到门票防伪 的作用, 更符合以往用户对纸质门票的使用习惯, 更加人性化。  The electronic ticket of the present invention may be a determined binary image, and may also be a determined grayscale image or an RGB (Red Green Blue) image. Regardless of which of the above images, the watermark information that the user cannot perceive can be embedded in the electronic ticket, so that the user looks like an electronic ticket of the same pattern to the naked eye, and the graphic content can be information such as an introduction of an exhibition or an event, and has certain The visual effect not only affects the image effect of the electronic ticket, but also effectively plays the role of ticket anti-counterfeiting, and is more in line with the user's habit of using paper tickets in the past, and is more humanized.
本发明中,在原始门票图像中嵌入的水印标识可以为移动终端号码(如 手机号码) 和 /或移动终端标识 (如手机的 IMEI ( International Mobile Equipment Identity, 国际移动设备身份码 )等)。 IMEI是区分手机终端的唯 一标识号码, 如果单独以 IMEI为水印标识具有一些弊端, 例如在用户更换 SIM卡后, 任何人都可以使用该手机, 从而使用电子门票。 如果 SIM卡存 储容量较大, 可以将以彩信为载体的电子门票存储到 SIM卡中, 将 IMEI 和手机号码共同作为水印标识, 嵌入到电子门票中, 起到防伪的作用。 在 以下实施例中, 以手机号码作为水印标识为例进行说明, 但本发明不仅限 于此。 In the present invention, the watermark identifier embedded in the original ticket image may be a mobile terminal number (such as a mobile phone number) and/or a mobile terminal identifier (such as an IMEI (International Mobile Equipment Identity) of the mobile phone). The IMEI is a unique identification number that distinguishes the mobile phone terminal. If the IMEI is used as the watermark identifier alone, there are some drawbacks. For example, after the user replaces the SIM card, anyone can use the mobile phone to use the electronic ticket. If the SIM card has a large storage capacity, the electronic ticket with the MMS as the carrier can be stored in the SIM card, and the IMEI and the mobile phone number are collectively used as the watermark identifier, and embedded in the electronic ticket to play the role of anti-counterfeiting. In In the following embodiments, the mobile phone number is taken as an example of the watermark identification, but the present invention is not limited thereto.
参照图 1A和图 1B所示, 分别为手机操作界面一级主菜单和二级子菜 单的示意图。 如图 1A所示, 手机操作界面上增加了票务管理功能, 用户可 以选择票务管理进入二级子菜单。 如图 1B所示, 手机操作界面二级子菜单 中提供了电子门票订购、 电子门票检验、 电子门票转让和退票四种功能。  Referring to FIG. 1A and FIG. 1B, respectively, schematic diagrams of the first-level main menu and the second-level sub-menu of the mobile phone operation interface are shown. As shown in FIG. 1A, a ticket management function is added to the operation interface of the mobile phone, and the user can select ticket management to enter the secondary sub-menu. As shown in FIG. 1B, the second sub-menu of the mobile phone operation interface provides four functions of electronic ticket ordering, electronic ticket inspection, electronic ticket transfer and refund.
当用户选择电子门票订购时, 即可进入电子门票订购流程。 用户可以 选择为本机订购一张或多张电子门票, 也可以选择为其他手机用户订购一 张或多张电子门票。 当为本机订购时, 手机将订购的张数及所要订购的电 子门票的代码发送给运营商侧设备; 运营商侧设备在厂商提供的原始门票 图像中按照水印嵌入算法加入手机号码得到电子门票, 将相应张数的电子 门票发送给手机。 当为其他手机用户订购门票时, 则用户需要将有门票订 购需求的手机号码(也称目标手机号码)、 需要订购的张数以及门票代码发 送给运营商侧设备; 运营商侧设备在厂商提供的原始门票图像中按照水印 嵌入算法加入目标手机号码得到电子门票, 将相应张数的电子门票发送到 有门票订购需求的手机用户手中, 而不是发送到发起订购需求的手机用户。  When the user selects an electronic ticket order, the electronic ticket ordering process can be entered. Users can choose to order one or more e-tickets for this unit, or they can choose to order one or more e-tickets for other mobile users. When ordering for the machine, the mobile phone sends the number of the ordered number and the code of the electronic ticket to be ordered to the operator-side device; the operator-side device adds the electronic ticket to the mobile phone number according to the watermark embedding algorithm in the original ticket image provided by the manufacturer. , send the corresponding number of electronic tickets to the mobile phone. When ordering tickets for other mobile phone users, the user needs to send the mobile phone number (also called the target mobile phone number) with the ticket ordering requirement, the number of sheets to be ordered, and the ticket code to the operator side device; the carrier side device is provided by the manufacturer. In the original ticket image, the electronic ticket is obtained by adding the target mobile phone number according to the watermark embedding algorithm, and the corresponding number of electronic tickets are sent to the mobile phone user who has the ticket ordering requirement, instead of being sent to the mobile phone user who initiates the ordering request.
当用户选择电子门票检验时, 即可进入电子门票检验流程。 参照图 2 所示, 为本发明提供的电子门票处理方法实施例一, 该实施例具体为电子 门票检验流程, 包括以下步骤:  When the user selects the electronic ticket inspection, the electronic ticket inspection process can be entered. Referring to FIG. 2, the first embodiment of the electronic ticket processing method provided by the present invention is an electronic ticket checking process, which includes the following steps:
步骤 101、手机接收用户输入的确认检验消息, 以启动电子门票检验流 程。  Step 101: The mobile phone receives a confirmation check message input by the user to start an electronic ticket verification process.
若用户选择图 1B 所示二级子菜单的电子门票检验, 进入门票浏览界 面, 用户选择需要检验的电子门票后, 则手机接收到由该选择产生的确认 检验消息, 以启动电子门票检验流程。  If the user selects the electronic ticket check of the second-level sub-menu shown in FIG. 1B and enters the ticket browsing interface, after the user selects the electronic ticket to be inspected, the mobile phone receives the confirmation check message generated by the selection to start the electronic ticket inspection process.
步骤 102、 手机下发指令读取 SIM卡( Subscriber Identity Module, 用 户识别模块)侧信息, 以获得记录的第一手机号码, 该第一手机号码即为 用户的手机号码。 Step 102: The mobile phone sends an instruction to read the SIM card (Subscriber Identity Module, The user identifies the module side information to obtain the recorded first mobile phone number, which is the user's mobile phone number.
步骤 103、 根据预设的水印提取算法, 手机对电子门票进行处理, 得到 原始门票图像和包括第二手机号码的水印图像。  Step 103: According to a preset watermark extraction algorithm, the mobile phone processes the electronic ticket to obtain an original ticket image and a watermark image including the second mobile phone number.
手机中预设有水印提取算法, 该水印提取算法与运营商侧设备的水印 嵌入算法相对应, 是其逆过程。 手机启动该水印提取算法, 得到原始门票 图像和包括第二手机号码的水印图像。  The watermark extraction algorithm is pre-configured in the mobile phone, and the watermark extraction algorithm corresponds to the watermark embedding algorithm of the operator side device, which is the inverse process. The mobile phone initiates the watermark extraction algorithm to obtain an original ticket image and a watermark image including the second mobile number.
步骤 104、 手机删除电子门票。  Step 104: The mobile phone deletes the electronic ticket.
此时, 手机可以删除电子门票, 保留执行水印提取算法后得到的原始 门票图像和水印图像。 本发明实施例可以遵循如下规则: 只要启动一次水 印提取算法, 手机将主动删除电子门票, 以防止电子门票重复利用, 维护 门票发售厂商的合法权益。 但电子门票可以重复利用的情况除外。  At this time, the mobile phone can delete the electronic ticket, and retain the original ticket image and the watermark image obtained after executing the watermark extraction algorithm. The embodiment of the present invention can follow the following rules: As long as the watermark extraction algorithm is started, the mobile phone will actively delete the electronic ticket to prevent the electronic ticket from being reused and maintain the legitimate rights and interests of the ticket seller. Except in the case where electronic tickets can be reused.
步骤 105、 手机比较第一手机号码和第二手机号码是否相同, 若相同, 则执行步骤 106; 否则执行步骤 109。  Step 105: The mobile phone compares whether the first mobile phone number and the second mobile phone number are the same. If yes, step 106 is performed; otherwise, step 109 is performed.
步骤 106、 手机输出电子门票有效的提示。  Step 106: The mobile phone outputs an effective prompt for the electronic ticket.
第一手机号码和第二手机号码相同表明电子门票为真, 则手机输出电 子门票有效的提示, 验票人员根据该提示确认电子门票为真。  If the first mobile phone number and the second mobile phone number are the same, indicating that the electronic ticket is true, the mobile phone outputs a valid prompt for the electronic ticket, and the ticket inspecting party confirms that the electronic ticket is true according to the prompt.
步骤 107、手机可以删除分离后的原始门票图像和水印图像, 本步骤为 可选步骤。  Step 107: The mobile phone can delete the separated original ticket image and the watermark image. This step is an optional step.
步骤 108、手机可以向运营商侧设备发送短信, 确认电子门票已正常使 用, 流程结束。 本步骤为可选步骤。  Step 108: The mobile phone may send a short message to the operator side device to confirm that the electronic ticket has been used normally, and the process ends. This step is an optional step.
步骤 109、 手机输出电子门票无效的提示, 流程结束。  Step 109: The mobile phone outputs an indication that the electronic ticket is invalid, and the process ends.
第一手机号码和第二手机号码不同表明电子门票为假, 则手机输出电 子门票无效的提示, 验票人员根据该提示确认电子门票为假。  The difference between the first mobile phone number and the second mobile phone number indicates that the electronic ticket is false, and the mobile phone outputs a prompt that the electronic ticket is invalid, and the ticket inspecting party confirms that the electronic ticket is false according to the prompt.
本实施例中, 用户仅凭手机就能对电子门票进行检验, 具体地, 用户 选择二级子菜单中的电子门票检验, 手机就会输出电子门票有效或无效的 提示, 实现了只需一键启动电子门票检验功能, 检验过程在手机内瞬间完 成, 只需将检验过程和检验结果出示给验票人员即可, 无需现场配置射频 扫描设备。 In this embodiment, the user can check the electronic ticket by the mobile phone only, specifically, the user Select the electronic ticket test in the second sub-menu, the mobile phone will output the prompt of valid or invalid electronic ticket, realize the electronic ticket inspection function with one button only, the inspection process is completed in the mobile phone instantaneously, and only the inspection process and inspection are required. The results are presented to the ticket inspector, eliminating the need to configure the RF scanning device on site.
当用户选择退票时, 即可进入退票流程。 参照图 3 所示, 为本发明提 供的电子门票处理方法实施例二, 该实施例具体为退票流程, 包括以下步 骤:  When the user chooses to refund, they can enter the refund process. Referring to FIG. 3, the second embodiment of the electronic ticket processing method is provided by the present invention. The embodiment is specifically a refund process, and includes the following steps:
步骤 201、手机接收用户输入的确认退票消息, 以启动电子门票退票流 程。  Step 201: The mobile phone receives a confirmation refund message input by the user to start the electronic ticket refund process.
若用户选择图 1B所示二级子菜单的退票, 进入门票浏览界面, 用户选 择需要退票的电子门票后, 则手机接收到由该选择产生的确认退票消息, 以启动电子门票退票流程。  If the user selects the refund of the second-level sub-menu shown in FIG. 1B and enters the ticket browsing interface, and the user selects the electronic ticket that needs to be refunded, the mobile phone receives the confirmation refund message generated by the selection to start the electronic ticket refund process.
步骤 202、 手机下发指令读取 SIM卡侧信息, 以获得记录的第一手机 号码, 该第一手机号码即为用户的手机号码。  Step 202: The mobile phone sends an instruction to read the SIM card side information to obtain the recorded first mobile phone number, where the first mobile phone number is the mobile phone number of the user.
步骤 203、 根据预设的水印提取算法, 手机对电子门票进行处理, 得到 原始门票图像和包括第二手机号码的水印图像。  Step 203: According to a preset watermark extraction algorithm, the mobile phone processes the electronic ticket to obtain an original ticket image and a watermark image including the second mobile phone number.
手机中预设有水印提取算法, 该水印提取算法与运营商侧设备的水印 嵌入算法相对应, 是其逆过程。 手机启动该水印提取算法, 得到原始门票 图像和包括第二手机号码的水印图像。  The watermark extraction algorithm is pre-configured in the mobile phone, and the watermark extraction algorithm corresponds to the watermark embedding algorithm of the operator side device, which is the inverse process. The mobile phone initiates the watermark extraction algorithm to obtain an original ticket image and a watermark image including the second mobile number.
步骤 204、 手机删除电子门票。  Step 204: The mobile phone deletes the electronic ticket.
此时, 手机可以删除电子门票, 保留执行水印提取算法后得到的原始 门票图像和水印图像。 本发明实施例可以遵循如下规则: 只要启动一次水 印提取算法, 手机将主动删除电子门票, 以防止电子门票重复利用, 维护 门票发售厂商的合法权益。  At this time, the mobile phone can delete the electronic ticket, and retain the original ticket image and the watermark image obtained after executing the watermark extraction algorithm. The embodiment of the present invention can follow the following rules: As long as the watermark extraction algorithm is started, the mobile phone will actively delete the electronic ticket to prevent the electronic ticket from being reused and maintain the legitimate rights and interests of the ticket seller.
步骤 205、 手机比较第一手机号码和第二手机号码是否相同, 若相同, 则执行步骤 206; 否则执行步骤 209。 Step 205: The mobile phone compares whether the first mobile phone number and the second mobile phone number are the same. Then step 206 is performed; otherwise, step 209 is performed.
步骤 206、 手机确认退票, 向运营商侧设备发送退票短信。  Step 206: The mobile phone confirms the refund, and sends a refund message to the operator side device.
第一手机号码和第二手机号码相同表明电子门票为真, 则确认手机具 有退票的权限, 手机向运营商侧设备发送退票短信, 将退票情况通知给运 营商。  If the first mobile phone number and the second mobile phone number are the same, indicating that the electronic ticket is true, it is confirmed that the mobile phone has the right to refund the ticket, and the mobile phone sends a refunding short message to the operator-side device, and notifies the operator of the refund.
步骤 207、手机可以删除分离后的原始门票图像和水印图像, 本步骤为 可选步骤。  Step 207: The mobile phone may delete the separated original ticket image and the watermark image. This step is an optional step.
步骤 208、 手机接收运营商侧设备返回的回执短信, 流程结束。  Step 208: The mobile phone receives the receipt message returned by the operator side device, and the process ends.
步骤 209、 手机输出电子门票无效的提示, 流程结束。  Step 209: The mobile phone outputs an indication that the electronic ticket is invalid, and the process ends.
本实施例中, 用户仅凭手机就能确认具有对电子门票做退票的权限, 具体地, 用户选择二级子菜单中的退票, 手机经过验证后, 若电子门票为 真, 则可以直接做退票处理; 若电子门票为假, 则直接输出电子门票无效 的提示。 电子门票的退票启动检验功能, 只有验证通过后电子门票才可以 退票, 服务更加细致全面。  In this embodiment, the user can confirm that the user has the right to refund the electronic ticket by using the mobile phone. Specifically, the user selects the refund in the second sub-menu. After the mobile phone is verified, if the electronic ticket is true, the user can directly refund the ticket. Processing; If the electronic ticket is false, the prompt for invalid electronic ticket is directly output. The refund of the electronic ticket starts the inspection function. Only after the verification is passed, the electronic ticket can be refunded, and the service is more detailed and comprehensive.
当用户选择电子门票转让时, 即可进入电子门票转让流程。 参照图 4 所示, 为本发明提供的电子门票处理方法实施例三, 该实施例具体为电子 门票转让流程, 包括以下步骤:  When the user selects the electronic ticket transfer, the electronic ticket transfer process can be entered. Referring to FIG. 4, it is a third embodiment of the electronic ticket processing method provided by the present invention. The embodiment is specifically an electronic ticket transfer process, and includes the following steps:
步骤 301、手机接收用户输入的确认转让消息, 以启动电子门票转让流 程。  Step 301: The mobile phone receives a confirmation transfer message input by the user to start the electronic ticket transfer process.
若用户选择图 1B 所示二级子菜单的电子门票转让, 进入门票浏览界 面, 用户选择需要转让的电子门票后, 则手机接收到由该选择产生的确认 转让消息, 以启动电子门票转让流程。  If the user selects the electronic ticket transfer of the second-level sub-menu shown in FIG. 1B and enters the ticket browsing interface, after the user selects the electronic ticket to be transferred, the mobile phone receives the confirmation transfer message generated by the selection to start the electronic ticket transfer process.
步骤 302、 手机下发指令读取 SIM卡侧信息, 以获得记录的第一手机 号码, 该第一手机号码即为用户的手机号码。  Step 302: The mobile phone sends an instruction to read the SIM card side information to obtain the recorded first mobile phone number, where the first mobile phone number is the mobile phone number of the user.
步骤 303、 根据预设的水印提取算法, 手机对电子门票进行处理, 得到 原始门票图像和包括第二手机号码的水印图像。 Step 303: According to a preset watermark extraction algorithm, the mobile phone processes the electronic ticket, and obtains The original ticket image and the watermark image including the second mobile phone number.
手机中预设有水印提取算法, 该水印提取算法与运营商侧设备的水印 嵌入算法相对应, 是其逆过程。 手机启动该水印提取算法, 得到原始门票 图像和包括第二手机号码的水印图像。  The watermark extraction algorithm is pre-configured in the mobile phone, and the watermark extraction algorithm corresponds to the watermark embedding algorithm of the operator side device, which is the inverse process. The mobile phone initiates the watermark extraction algorithm to obtain an original ticket image and a watermark image including the second mobile number.
步骤 304、 手机删除电子门票。  Step 304: The mobile phone deletes the electronic ticket.
此时, 手机可以删除电子门票, 保留执行水印提取算法后得到的原始 门票图像和水印图像。 本发明实施例可以遵循如下规则: 只要启动一次水 印提取算法, 手机将主动删除电子门票, 以防止电子门票重复利用, 维护 门票发售厂商的合法权益。  At this time, the mobile phone can delete the electronic ticket, and retain the original ticket image and the watermark image obtained after executing the watermark extraction algorithm. The embodiment of the present invention can follow the following rules: As long as the watermark extraction algorithm is started, the mobile phone will actively delete the electronic ticket to prevent the electronic ticket from being reused and maintain the legitimate rights and interests of the ticket seller.
步骤 305、 手机比较第一手机号码和第二手机号码是否相同, 若相同, 则执行步骤 306; 否则执行步骤 311。  Step 305: The mobile phone compares whether the first mobile phone number and the second mobile phone number are the same. If they are the same, go to step 306; otherwise, go to step 311.
步骤 306、 手机接收用户输入的第三手机号码。  Step 306: The mobile phone receives a third mobile phone number input by the user.
第一手机号码和第二手机号码相同表明电子门票为真, 则确认手机具 有转让电子门票的权限。 用户输入待转让用户的手机号码, 即第三手机号 码。  If the first mobile phone number and the second mobile phone number are the same, indicating that the electronic ticket is true, it is confirmed that the mobile phone has the right to transfer the electronic ticket. The user inputs the mobile phone number of the user to be transferred, that is, the third mobile phone number.
步骤 307、根据预设的水印嵌入算法, 手机在原始门票图像中嵌入第三 手机号码, 得到新电子门票。  Step 307: According to the preset watermark embedding algorithm, the mobile phone embeds the third mobile phone number in the original ticket image to obtain a new electronic ticket.
手机中预设有水印嵌入算法, 该水印嵌入算法与运营商侧设备的水印 嵌入算法相同。 手机启动该水印嵌入算法, 在原始门票图像中嵌入第三手 机号码, 得到一新电子门票。  A watermark embedding algorithm is pre-configured in the mobile phone, and the watermark embedding algorithm is the same as the watermark embedding algorithm of the operator side device. The mobile phone initiates the watermark embedding algorithm, embedding the third mobile phone number in the original ticket image to obtain a new electronic ticket.
步骤 308、手机可以删除包括第二手机号码的水印图像, 本步骤为可选 步骤。  Step 308: The mobile phone may delete the watermark image including the second mobile phone number. This step is an optional step.
步骤 309、 手机将新电子门票发送给第三手机号码对应的目标手机。 该目标手机即待转让用户的手机。  Step 309: The mobile phone sends the new electronic ticket to the target mobile phone corresponding to the third mobile phone number. The target mobile phone is the mobile phone of the user to be transferred.
步骤 310、手机向运营商侧设备发送电子门票转让的通知短信, 将转让 情况通知给运营商, 流程结束。 Step 310: The mobile phone sends a notification message of the electronic ticket transfer to the operator side device, and the transfer will be transferred. The situation is notified to the operator and the process ends.
步骤 311、 手机输出电子门票无效的提示, 流程结束。  Step 311: The mobile phone outputs an prompt that the electronic ticket is invalid, and the process ends.
本实施例中, 用户仅凭手机就能确认具有对电子门票做转让的权限, 具体地, 用户选择二级子菜单中的电子门票转让, 手机经过验证后, 若电 子门票为真, 则可以直接做转让处理; 若电子门票为假, 则直接输出电子 门票无效的提示。 电子门票的转让启动检验功能, 只有验证通过后电子门 票才可以转让, 服务更加细致全面。  In this embodiment, the user can confirm that the user has the right to transfer the electronic ticket by using the mobile phone. Specifically, the user selects the electronic ticket transfer in the second-level sub-menu. After the mobile phone is verified, if the electronic ticket is true, the user can directly Do the transfer processing; if the electronic ticket is false, directly output the prompt that the electronic ticket is invalid. The transfer of electronic tickets starts the inspection function, and only after the verification is passed, the electronic ticket can be transferred, and the service is more detailed and comprehensive.
本发明还提供了一种基于混沌神经网络的智能型数字水印嵌入算法, 可以应用于上述各个实施例中, 具体说明如下:  The invention also provides an intelligent digital watermark embedding algorithm based on chaotic neural network, which can be applied to the above various embodiments, and the specific description is as follows:
首先, 为了确定水印的嵌入位置, 对原始门票图像进行 L层小波分解。 图像是二维信号, 小波变换用于图像分析的基本思想就是将图像进行 多分辨率分解, 将图像分解成不同空间、 不同频率的子图像。 图像经过小 波变换后被分割成四个频带: 水平、 垂直、 对角线和低频, 其中低频部分 还可以继续分解。 低频部分可以称作亮度图像, 水平、 垂直和对角线部分 可以称作细节图像。 对一幅图像来说, 小波变换构成了对它的多尺度时频 分解。  First, in order to determine the embedding position of the watermark, the original ticket image is subjected to L-layer wavelet decomposition. The image is a two-dimensional signal. The basic idea of wavelet transform for image analysis is to decompose the image into multiple resolutions and decompose the image into sub-images of different spatial and different frequencies. The image is divided into four frequency bands after wavelet transform: horizontal, vertical, diagonal and low frequency, and the low frequency part can continue to decompose. The low frequency portion may be referred to as a luminance image, and the horizontal, vertical, and diagonal portions may be referred to as detailed images. For an image, the wavelet transform constitutes a multi-scale time-frequency decomposition of it.
以三层小波分解为例, 参照图 5 所示, 为三层小波分解示意图, 第三 层的各部分分量分别为 LL3、 LH3、 HL3和 HH3 , 各部分分量都构成一矩 阵。 同级分辨率下, HL3 块为水平方向高通、 垂直方向低通滤波后所保留 的细节信息, LH3 块为水平方向低通、 垂直方向高通滤波后所得的细节信 息, HH2块为水平和垂直方向都经过高通滤波后的细节信息, LL3为水平 和垂直方向都经过低通滤波后的细节信息。  Taking three-layer wavelet decomposition as an example, as shown in Fig. 5, it is a three-layer wavelet decomposition diagram. The components of the third layer are LL3, LH3, HL3 and HH3, and each component forms a matrix. At the same level resolution, the HL3 block is the detail information retained by the high-pass and vertical low-pass filtering in the horizontal direction. The LH3 block is the horizontal low-pass and vertical high-pass filtering, and the HH2 block is horizontal and vertical. After high-pass filtering, LL3 is the low-pass filtered detail information in both horizontal and vertical directions.
其次, 对于经过 L层小波分解后得到的多个矩阵, 分别计算每个矩阵 中各小波系数点的 J D ( Just Noticeable Difference, 最小可觉差)值。 J D 值大的点允许嵌入的水印信息就多, 相应的含水印图像的鲁棒性就越好。 对于待嵌入的水印图像按照小波系数值由大到小的顺序进行排列嵌入宿主 图像 J D值大的点, 能保证足够多的水印信息可以嵌入到宿主图像中。 Secondly, for a plurality of matrices obtained by L-layer wavelet decomposition, the JD (Just Noticeable Difference) values of each wavelet coefficient point in each matrix are respectively calculated. A point with a large JD value allows for more embedded watermark information, and the corresponding robustness of the watermarked image is better. For the watermark image to be embedded, the point where the wavelet coefficient values are arranged in the order of large to small is embedded in the point where the JD value of the host image is large, so that sufficient watermark information can be embedded in the host image.
对原始门票图像进行 L层小波分解后,则 HVS ( Human Vision System , 人类视觉系统)对图像的频率掩蔽因子为:
Figure imgf000015_0001
After the L-layer wavelet decomposition of the original ticket image, the frequency masking factor of the HVS (Human Vision System) image is:
Figure imgf000015_0001
其中, /re e«<y(/, 表示第 /个频带上, 方向为 s的频率敏感度, {LL,HL,LH,HH} .  Where /re e«<y(/, represents the frequency sensitivity of the direction s on the /th frequency band, {LL, HL, LH, HH}.
设 (x, 为小波系数值,其中 /表示小波变换层数, /e {0,1,2...}, 示小波系数变换的方向, (x,_y)表示小波 s系数的位置。 定义 Ω(χ, >)表示点 (χ, 以及该点的邻域, 在定义邻域以后, 釆用下式来估算亮度掩蔽因子, 具体为:
Figure imgf000015_0002
Let (x, be the wavelet coefficient value, where / denotes the wavelet transform layer number, /e {0,1,2...}, show the direction of the wavelet coefficient transform, and (x,_y) denote the position of the wavelet s coefficient. Ω(χ, >) represents the point (χ, and the neighborhood of the point. After defining the neighborhood, the following formula is used to estimate the brightness masking factor, specifically:
Figure imgf000015_0002
其中, 表示 Ω(χ, >)中小波系数的个数。 在亮度上加上 1.5是为了防止 因亮度太小而使该点的值趋于 0。  Where is the number of wavelet coefficients in Ω(χ, >). The addition of 1.5 to the brightness is to prevent the value of the point from going to zero because the brightness is too small.
作为 HVS模型中紋理掩蔽因子的一部分,低频系数的方差因子定义为:
Figure imgf000015_0003
As part of the texture masking factor in the HVS model, the variance factor for the low frequency coefficients is defined as:
Figure imgf000015_0003
通过小波变换, 图像的紋理信息和边缘信息都保存在高频系数(LH, HL, ΗΗ)中。 小波系数点的能量因子越大, 说明此系数点所包含的紋理信 息和边缘信息越多, 认为该点的紋理很复杂或者存在边缘。 本发明定义的 高频系数的能量因子为:  Through the wavelet transform, the texture information and edge information of the image are stored in the high frequency coefficients (LH, HL, ΗΗ). The larger the energy factor of the wavelet coefficient point, the more texture information and edge information is included in the coefficient point, and the texture of the point is considered to be complex or has edges. The energy factor of the high frequency coefficient defined by the present invention is:
Energy = ∑
Figure imgf000015_0004
+ 2l~k (y - 1 综合以上的分析, 得到每个小波系数的 J D估计值为: 其中, 为强度调节因子, 《、 β、 ^分别为亮度掩蔽因子、 方差因子 和能量因子的权重, 仂 ύ选地, « e [0.5,0.7] , ^ e [0.06,0.08] , ye [0·08,0·1]。
Energy = ∑
Figure imgf000015_0004
+ 2 l ~ k (y - 1 combined with the above analysis, the JD estimate for each wavelet coefficient is: Where, for the intensity adjustment factor, ", β, ^ are the weights of the brightness masking factor, the variance factor, and the energy factor, respectively, «e [0.5,0.7] , ^ e [0.06,0.08] , ye [0 ·08,0·1].
实际上, 由公式计算得到的 J D值是嵌入水印强度的极限值, 是人眼 不能明显观察到水印存在的最大嵌入强度(MAX )。 当然, 从鲁棒性的角度 考虑, 嵌入的水印强度越大越好, 但是为了兼顾良好的透明性, 不能一味 的追求高的水印强度, 因此本发明设计让混沌神经网络在区间 [0 , MAX]之 间寻找能保持良好透明性的最佳的嵌入强度。  In fact, the J D value calculated by the formula is the limit value of the embedded watermark intensity, which is the maximum embedding strength (MAX ) that the human eye cannot clearly observe the existence of the watermark. Of course, from the perspective of robustness, the greater the intensity of the embedded watermark, the better, but in order to achieve good transparency, the high watermark intensity cannot be pursued blindly. Therefore, the present invention designs the chaotic neural network in the interval [0, MAX]. Look for the best insertion strength to maintain good transparency.
水印嵌入强度釆用能够智能调节其值大小的变尺度暂态混沌神经网络 来确定。 混沌神经网络和水印嵌入强度的结合点就在于混沌神经网络能量 函数的确定。 为达到良好的视觉效果, 本发明将混沌神经网络的第二能量 函数设置为含水印图像区域内的空间频率的负值。 空间频率定义如下:  The watermark embedding strength is determined by a variable-scale transient chaotic neural network capable of intelligently adjusting its value. The combination of chaotic neural network and watermark embedding strength lies in the determination of the energy function of chaotic neural network. In order to achieve a good visual effect, the present invention sets the second energy function of the chaotic neural network to a negative value of the spatial frequency within the region of the watermarked image. The spatial frequency is defined as follows:
SF = ^RF2 + CF SF = ^RF 2 + CF
其中, RF为行频率, CF为列频率。  Where RF is the line frequency and CF is the column frequency.
Figure imgf000016_0001
Figure imgf000016_0001
其中, M*N为区域的大小, ^·, ·)为 ( ,_/·)点的小波系数值。  Where M*N is the size of the region, and ^·, ·) is the wavelet coefficient value of the ( , _/·) point.
混沌神经网络是在相空间内以混沌的方式在一定的分形结构上进行 "自抑制" 搜索, 搜索目标为第二能量函数最小, 即搜索使混沌神经网络 的第二能量函数达到最小的最佳输出点, 进而得到该点的最佳嵌入强度。 第二能量函数最小, 空间频率的负值就最小, 空间频率就达到最大。 空间 频率是客观评价图像质量的常见指标, 空间频率越大, 图像的质量越好, 人眼看起来的视觉效果越好。 水印提取算法是水印嵌入算法的逆过程。 首先, 在运营商侧执行水印 嵌入算法时, 运营商侧设备计算原始门票图像的清晰度或信噪比, 原始门 票图像是没有掺杂任何信息的图像, 因此清晰度或信噪比都是最大的。 将 原始门票图像的清晰度或信噪比写入电子门票中, 例如将清晰度或信噪比 作为电子门票最右下角的像素值, 发送给用户。 最右下角的像素值发生变 化不会对图像的视觉效果造成影响。 因为运营商和手机制造厂商是一种合 作关系, 因此手机制造厂商知道这种约定。 手机在得到电子门票后, 执行 的水印提取算法包括: 将电子门票的清晰度或信噪比与原始门票图像的清 晰度或信噪比的差值作为第一能量函数, 釆用变尺度暂态混沌神经网络搜 索算法, 搜索目标为第一能量函数最小, 得到原始门票图像; 根据电子门 票和原始门票图像, 得到水印图像。 该水印提取算法属于半盲水印提取算 法。 水印提取算法。 Chaotic neural network searches for self-suppression on a certain fractal structure in a chaotic manner in phase space. The search target has the second energy function minimum, that is, the search minimizes the second energy function of the chaotic neural network. The point is output, which in turn gives the best embedding strength for that point. The second energy function is the smallest, the negative of the spatial frequency is the smallest, and the spatial frequency is maximized. Spatial frequency is a common indicator for objectively evaluating image quality. The larger the spatial frequency, the better the quality of the image, and the better the visual effect of the human eye. The watermark extraction algorithm is the inverse of the watermark embedding algorithm. First, when the watermark embedding algorithm is executed on the operator side, the operator side device calculates the sharpness or signal to noise ratio of the original ticket image, and the original ticket image is an image without any information, so the resolution or the signal to noise ratio is the largest. of. The resolution or signal-to-noise ratio of the original ticket image is written into the electronic ticket, for example, the resolution or the signal-to-noise ratio is sent to the user as the pixel value of the bottom right corner of the electronic ticket. A change in the pixel value at the bottom right corner does not affect the visual effect of the image. Because operators and handset manufacturers are a cooperative relationship, handset manufacturers know this convention. After the mobile phone obtains the electronic ticket, the watermark extraction algorithm executed includes: using the difference between the clarity or the signal-to-noise ratio of the electronic ticket and the clarity or signal-to-noise ratio of the original ticket image as the first energy function, using the variable-scale transient The chaotic neural network search algorithm searches for the first energy function to obtain the original ticket image. According to the electronic ticket and the original ticket image, the watermark image is obtained. The watermark extraction algorithm belongs to a semi-blind watermark extraction algorithm. Watermark extraction algorithm.
参照图 6所示, 为本发明提供的电子门票处理装置的实施例, 该电子 门票处理装置可以为移动终端或移动终端内部的功能模块, 具体包括: 读 取模块 11、 提取模块 12和比较模块 13。  Referring to FIG. 6, an embodiment of an electronic ticket processing apparatus provided by the present invention may be a function module of a mobile terminal or a mobile terminal, and specifically includes: a reading module 11, an extracting module 12, and a comparison module. 13.
其中, 读取模块 11用于读取记录的第一水印标识; 提取模块 12用于 根据预设的水印提取算法, 对电子门票进行处理, 得到原始门票图像和包 括第二水印标识的水印图像; 比较模块 13用于比较第一水印标识和第二水 印标识是否相同, 若相同, 则表明该电子门票为合法的门票。  The reading module 11 is configured to read the recorded first watermark identifier; the extracting module 12 is configured to process the electronic ticket according to a preset watermark extraction algorithm, to obtain an original ticket image and a watermark image including the second watermark identifier; The comparison module 13 is configured to compare whether the first watermark identifier and the second watermark identifier are the same. If they are the same, the electronic ticket is a legal ticket.
本实施例中, 第一水印标识和第二水印标识为移动终端号码和 /或移动 终端标识。  In this embodiment, the first watermark identifier and the second watermark identifier are a mobile terminal number and/or a mobile terminal identifier.
进一步的, 上述比较模块 13还用于比较出第一水印标识和第二水印标 识相同, 发出第一触发信号; 比较出第一水印标识和第二水印标识不同, 发出第二触发信号。 该装置还可以包括: 处理模块 14, 用于当接收到第一 触发信号, 输出电子门票有效的提示, 或者, 对电子门票进行退票或转让 处理; 输出模块 16, 用于当接收到第二触发信号, 输出电子门票无效的提 示。 Further, the comparison module 13 is further configured to compare that the first watermark identifier and the second watermark identifier are the same, and issue a first trigger signal; comparing the first watermark identifier and the second watermark identifier, A second trigger signal is issued. The device may further include: a processing module 14 configured to: when receiving the first trigger signal, output a prompt that the electronic ticket is valid, or perform a refund or transfer process on the electronic ticket; and the output module 16 is configured to receive the second trigger Signal, output prompt for invalid electronic tickets.
进一步的, 本实施例还可以包括: 删除模块 15 , 用于删除电子门票。 本实施例提供的装置可以实现电子门票检验的功能。 具体地说, 比较 模块 13比较第一水印标识和第二水印标识是否相同, 若相同, 发出第一触 发信号,若不同,发出第二触发信号; 处理模块 14接收到第一触发信号后, 输出电子门票有效的提示; 输出模块 16接收到第二触发信号后, 输出电子 门票无效的提示。 从而实现了电子门票检验的功能。  Further, the embodiment may further include: a deleting module 15 for deleting the electronic ticket. The device provided in this embodiment can implement the function of electronic ticket inspection. Specifically, the comparison module 13 compares whether the first watermark identifier and the second watermark identifier are the same. If they are the same, the first trigger signal is sent. If different, the second trigger signal is sent. After receiving the first trigger signal, the processing module 14 outputs The electronic ticket is valid prompt; after receiving the second trigger signal, the output module 16 outputs a prompt that the electronic ticket is invalid. Thereby the function of electronic ticket inspection is realized.
本实施例提供的装置也可以实现退票功能。 此时, 处理模块 14可以包 括: 第一发送单元 17和第一接收单元 18, 其中, 第一发送单元 17用于向 运营商侧设备发送退票短信; 第一接收单元 18用于接收运营商侧设备返回 的回执短信。 具体地说, 比较模块 13比较第一水印标识和第二水印标识是 否相同, 若相同, 发出第一触发信号, 若不同, 发出第二触发信号; 第一 发送单元 17接收到第一触发信号后, 向运营商侧设备发送退票短信, 等待 一段时间后, 第一接收单元 18接收运营商侧设备返回的回执短信; 输出模 块 16接收到第二触发信号后, 输出电子门票无效的提示。 从而实现了电子 门票退票功能。  The device provided in this embodiment can also implement the refund function. At this time, the processing module 14 may include: a first sending unit 17 and a first receiving unit 18, where the first sending unit 17 is configured to send a refunding short message to the operator side device; the first receiving unit 18 is configured to receive the operator side. A receipt message returned by the device. Specifically, the comparison module 13 compares whether the first watermark identifier and the second watermark identifier are the same. If they are the same, the first trigger signal is sent, and if not, the second trigger signal is sent; after the first sending unit 17 receives the first trigger signal, And sending the refunding short message to the operator side device. After waiting for a period of time, the first receiving unit 18 receives the returning short message returned by the operator side device; after receiving the second triggering signal, the output module 16 outputs the prompt that the electronic ticket is invalid. Thereby, the electronic ticket refund function is realized.
本实施例提供的装置还可以实现电子门票转让功能。 此时, 处理模块 14可以包括: 输入单元、 嵌入单元、 第二发送单元和第三发送单元, 其中, 输入单元用于接收用户输入的第三水印标识; 嵌入单元用于根据预设的水 印嵌入算法, 在原始门票图像中嵌入第三水印标识, 得到新电子门票; 第 二发送单元用于将新电子门票发送给第三水印标识对应的目标移动终端; 第三发送单元用于向运营商侧设备发送电子门票转让的通知短信。 具体地 说, 比较模块比较第一水印标识和第二水印标识是否相同, 若相同, 发出 第一触发信号, 若不同, 发出第二触发信号; 输入单元接收用户输入的第 三水印标识; 嵌入单元在接收到第一触发信号后, 根据预设的水印嵌入算 法, 在原始门票图像中嵌入第三水印标识, 得到新电子门票; 第二发送单 元将新电子门票发送给第三水印标识对应的目标移动终端; 第三发送单元 向运营商侧设备发送电子门票转让的通知短信; 输出模块接收到第二触发 信号后, 输出电子门票无效的提示。 从而实现了电子门票转让的功能。 The device provided in this embodiment can also implement an electronic ticket transfer function. At this time, the processing module 14 may include: an input unit, an embedding unit, a second sending unit, and a third sending unit, where the input unit is configured to receive a third watermark identifier input by the user; the embedding unit is configured to embed according to the preset watermark The algorithm, the third watermark identifier is embedded in the original ticket image to obtain a new electronic ticket; the second sending unit is configured to send the new electronic ticket to the target mobile terminal corresponding to the third watermark identifier; and the third sending unit is configured to the operator side The device sends a notification SMS for the transfer of electronic tickets. specifically The comparison module compares whether the first watermark identifier and the second watermark identifier are the same. If the same, the first trigger signal is sent, if not, the second trigger signal is sent; the input unit receives the third watermark identifier input by the user; the embedded unit is receiving After the first trigger signal, according to the preset watermark embedding algorithm, the third watermark identifier is embedded in the original ticket image to obtain a new electronic ticket; the second sending unit sends the new electronic ticket to the target mobile terminal corresponding to the third watermark identifier. The third sending unit sends the notification message of the electronic ticket transfer to the operator side device; after receiving the second trigger signal, the output module outputs a prompt that the electronic ticket is invalid. Thereby the function of electronic ticket transfer is realized.
进一步的, 上述电子门票中包括原始门票图像的清晰度或信噪比, 上 述提取模块 12可以包括:  Further, the electronic ticket includes the clarity or the signal-to-noise ratio of the original ticket image, and the extracting module 12 may include:
原始门票图像获取单元, 用于将电子门票的清晰度或信噪比与原始门 票图像的清晰度或信噪比的差值作为第一能量函数, 釆用变尺度暂态混沌 神经网络搜索算法, 搜索目标为第一能量函数最小, 得到原始门票图像; 水印图像获取单元, 用于根据电子门票和原始门票图像, 得到水印图 像。  The original ticket image obtaining unit is configured to use the difference between the clarity or the signal-to-noise ratio of the electronic ticket and the clarity or the signal-to-noise ratio of the original ticket image as the first energy function, and use the variable-scale transient chaotic neural network search algorithm. The search target is the first energy function is the smallest, and the original ticket image is obtained; the watermark image obtaining unit is configured to obtain the watermark image according to the electronic ticket and the original ticket image.
上述嵌入单元可以包括:  The above embedded unit may include:
分解单元, 用于对原始门票图像进行 L层小波分解, 得到多个矩阵; 计算单元, 用于分别计算每个矩阵中各小波系数点的 J D值; 搜索单元, 用于釆用变尺度暂态混沌神经网络, 搜索得到第三水印标 识的最佳嵌入强度, 该最佳嵌入强度小于或等于小波系数点的 J D值。  a decomposing unit, configured to perform L-layer wavelet decomposition on the original ticket image to obtain a plurality of matrices; a calculating unit, configured to respectively calculate a JD value of each wavelet coefficient point in each matrix; and a searching unit, configured to use the variable-scale transient The chaotic neural network searches for the best embedding strength of the third watermark identifier, and the optimal embedding strength is less than or equal to the JD value of the wavelet coefficient point.
综上所述, 本发明提供的电子门票处理方法及装置实现了用户仅凭移 动终端就能对电子门票进行检验, 或者, 用户仅凭移动终端就能确认用户 具有对电子门票做退票或转让的权限; 如果将订购、 检验、 退票和转让功 能都集成在一起, 能够使移动终端具有一套完整的票务管理功能。  In summary, the electronic ticket processing method and apparatus provided by the present invention enable the user to check the electronic ticket by the mobile terminal alone, or the user can confirm that the user has refunded or transferred the electronic ticket by simply using the mobile terminal. Permissions; if the ordering, inspection, refund and transfer functions are integrated, the mobile terminal has a complete set of ticket management functions.
最后, 需要注意的是: 以上列举的仅是本发明的具体实施例子, 当然 本领域的技术人员可以对本发明进行改动和变型, 倘若这些修改和变型属 于本发明权利要求及其等同技术的范围之内, 均应认为是本发明的保护范 围。 Finally, it should be noted that the above list is only specific embodiments of the present invention, and those skilled in the art can change and modify the present invention, provided that these modifications and variations are Within the scope of the claims of the present invention and its equivalents, it should be considered as the scope of the present invention.

Claims

权利要求书 Claim
1、 一种电子门票处理方法, 其特征在于, 包括:  1. An electronic ticket processing method, characterized in that:
移动终端读取记录的第一水印标识;  The mobile terminal reads the recorded first watermark identifier;
根据预设的水印提取算法, 移动终端对电子门票进行处理, 得到原始 门票图像和包括第二水印标识的水印图像;  According to the preset watermark extraction algorithm, the mobile terminal processes the electronic ticket to obtain an original ticket image and a watermark image including the second watermark identifier;
移动终端比较所述第一水印标识和所述第二水印标识是否相同; 若相 同, 则表明所述电子门票为合法的门票。  The mobile terminal compares whether the first watermark identifier and the second watermark identifier are the same; if they are the same, it indicates that the electronic ticket is a legitimate ticket.
2、 根据权利要求 1所述的方法, 其特征在于, 所述第一水印标识和第 二水印标识为唯一标识移动终端的信息, 包括: 移动终端号码和 /或移动终 端标识;  The method according to claim 1, wherein the first watermark identifier and the second watermark identifier are information that uniquely identifies the mobile terminal, and includes: a mobile terminal number and/or a mobile terminal identifier;
在表明所述电子门票为合法的门票之后, 还包括: 移动终端输出电子 门票有效的提示, 或者, 移动终端对电子门票进行退票或转让处理;  After indicating that the electronic ticket is a valid ticket, the method further includes: the mobile terminal outputting an indication that the electronic ticket is valid, or the mobile terminal refunds or transfers the electronic ticket;
所述方法还包括: 若比较出所述第一水印标识和所述第二水印标识不 相同, 则移动终端输出电子门票无效的提示。  The method further includes: if it is compared that the first watermark identifier and the second watermark identifier are different, the mobile terminal outputs a prompt that the electronic ticket is invalid.
3、 根据权利要求 2所述的方法, 其特征在于, 所述移动终端对电子门 票进行退票处理包括: 移动终端向运营商侧设备发送退票短信; 移动终端 接收运营商侧设备返回的回执短信。  The method according to claim 2, wherein the mobile terminal performs a refund process on the electronic ticket: the mobile terminal sends a refund message to the operator side device; and the mobile terminal receives the return message returned by the operator side device.
4、 根据权利要求 2所述的方法, 其特征在于, 所述移动终端对电子门 票进行转让处理包括: 移动终端接收用户输入的第三水印标识; 根据预设 的水印嵌入算法, 移动终端在所述原始门票图像中嵌入所述第三水印标识 , 得到新电子门票; 移动终端将所述新电子门票发送给所述第三水印标识对 应的目标移动终端; 移动终端向运营商侧设备发送电子门票转让的通知短 信。  The method according to claim 2, wherein the transferring processing of the electronic ticket by the mobile terminal comprises: receiving, by the mobile terminal, a third watermark identifier input by the user; according to the preset watermark embedding algorithm, the mobile terminal is in the Embedding the third watermark identifier in the original ticket image to obtain a new electronic ticket; the mobile terminal transmitting the new electronic ticket to the target mobile terminal corresponding to the third watermark identifier; the mobile terminal sending the electronic ticket to the operator side device Transfer notification SMS.
5、 根据权利要求 1、 2、 3或 4所述的方法, 其特征在于, 所述电子门 票中包括所述原始门票图像的清晰度或信噪比; 所述根据预设的水印提取 算法, 移动终端对电子门票进行处理, 得到原始门票图像和包括第二水印 标识的水印图像包括: The method according to claim 1, 2, 3 or 4, wherein the electronic ticket includes a sharpness or a signal to noise ratio of the original ticket image; the extracting according to a preset watermark The algorithm, the mobile terminal processes the electronic ticket, and obtains the original ticket image and the watermark image including the second watermark identifier, including:
将电子门票的清晰度或信噪比与所述原始门票图像的清晰度或信噪比 的差值作为第一能量函数, 釆用变尺度暂态混沌神经网络搜索算法, 搜索 目标为所述第一能量函数最小, 得到原始门票图像;  Taking the difference between the definition or the signal-to-noise ratio of the electronic ticket and the clarity or signal-to-noise ratio of the original ticket image as a first energy function, using a variable-scale transient chaotic neural network search algorithm, the search target is the first An energy function is minimized to obtain an original ticket image;
根据所述电子门票和所述原始门票图像, 得到所述水印图像。  The watermark image is obtained based on the electronic ticket and the original ticket image.
6、 根据权利要求 4所述的方法, 其特征在于, 所述根据预设的水印嵌 入算法, 移动终端在所述原始门票图像中嵌入所述第三水印标识包括: 对所述原始门票图像进行 L层小波分解, 得到多个矩阵;  The method according to claim 4, wherein the embedding the third watermark identifier in the original ticket image by the mobile terminal according to the preset watermark embedding algorithm comprises: performing the original ticket image L-layer wavelet decomposition, resulting in multiple matrices;
分别计算每个矩阵中各小波系数点的最小可觉差 (J D )值; 将空间频率的负值作为第二能量函数, 釆用变尺度暂态混沌神经网络 搜索算法, 搜索目标为第二能量函数最小, 得到所述第三水印标识的最佳 嵌入强度, 所述最佳嵌入强度小于或等于小波系数点的 J D值。  Calculate the minimum sensible difference (JD) value of each wavelet coefficient point in each matrix; use the negative value of the spatial frequency as the second energy function, and use the variable-scale transient chaotic neural network search algorithm to search for the second energy The function is minimal, and the optimal embedding strength of the third watermark identifier is obtained, and the optimal embedding strength is less than or equal to the JD value of the wavelet coefficient point.
7、 一种电子门票处理装置, 其特征在于, 包括:  7. An electronic ticket processing device, comprising:
读取模块, 用于读取记录的第一水印标识;  a reading module, configured to read the first watermark identifier of the record;
提取模块, 用于根据预设的水印提取算法, 对电子门票进行处理, 得 到原始门票图像和包括第二水印标识的水印图像;  An extraction module, configured to process the electronic ticket according to a preset watermark extraction algorithm, to obtain an original ticket image and a watermark image including the second watermark identifier;
比较模块, 用于比较所述第一水印标识和所述第二水印标识是否相同; 若相同, 则表明所述电子门票为合法的门票。  And a comparison module, configured to compare whether the first watermark identifier and the second watermark identifier are the same; if they are the same, the electronic ticket is a legal ticket.
8、 根据权利要求 7所述的装置, 其特征在于, 所述第一水印标识和第 二水印标识为唯一标识移动终端的信息, 包括: 移动终端号码和 /或移动终 端标识;  The device according to claim 7, wherein the first watermark identifier and the second watermark identifier are information that uniquely identifies the mobile terminal, and includes: a mobile terminal number and/or a mobile terminal identifier;
所述比较模块还用于比较出所述第一水印标识和所述第二水印标识相 同, 发出第一触发信号; 比较出所述第一水印标识和所述第二水印标识不 同, 发出第二触发信号; 所述装置还包括: The comparison module is further configured to compare the first watermark identifier and the second watermark identifier to send a first trigger signal; compare the first watermark identifier with the second watermark identifier, and issue a second Trigger signal The device also includes:
处理模块, 用于当接收到所述第一触发信号时, 输出电子门票有效的 提示, 或者, 对电子门票进行退票或转让处理;  a processing module, configured to: when the first trigger signal is received, output a prompt that the electronic ticket is valid, or perform a refund or transfer process on the electronic ticket;
输出模块, 用于当接收到所述第二触发信号时, 输出电子门票无效的 提示。  And an output module, configured to output a prompt that the electronic ticket is invalid when the second trigger signal is received.
9、 根据权利要求 8所述的装置, 其特征在于, 所述处理模块包括: 第一发送单元, 用于向运营商侧设备发送退票短信;  The device according to claim 8, wherein the processing module comprises: a first sending unit, configured to send a refunding short message to the operator side device;
第一接收单元, 用于接收运营商侧设备返回的回执短信。  The first receiving unit is configured to receive a return receipt message returned by the operator side device.
10、 根据权利要求 8所述的装置, 其特征在于, 所述处理模块包括: 输入单元, 用于接收用户输入的第三水印标识;  The device according to claim 8, wherein the processing module comprises: an input unit, configured to receive a third watermark identifier input by a user;
嵌入单元, 用于根据预设的水印嵌入算法, 在所述原始门票图像中嵌 入所述第三水印标识, 得到新电子门票;  An embedding unit, configured to embed the third watermark identifier in the original ticket image according to a preset watermark embedding algorithm to obtain a new e-ticket;
第二发送单元, 用于将所述新电子门票发送给所述第三水印标识对应 的目标移动终端;  a second sending unit, configured to send the new electronic ticket to the target mobile terminal corresponding to the third watermark identifier;
第三发送单元, 用于向运营商侧设备发送电子门票转让的通知短信。 The third sending unit is configured to send a notification short message of the electronic ticket transfer to the operator side device.
11、 根据权利要求 7、 8、 9或 10所述的装置, 其特征在于, 所述电子 门票中包括所述原始门票图像的清晰度或信噪比; 所述提取模块包括: 原始门票图像获取单元, 用于将电子门票的清晰度或信噪比与所述原 始门票图像的清晰度或信噪比的差值作为第一能量函数, 釆用变尺度暂态 混沌神经网络搜索算法, 搜索目标为所述第一能量函数最小, 得到原始门 票图像; The apparatus according to claim 7, 8, 9 or 10, wherein the electronic ticket includes a sharpness or a signal to noise ratio of the original ticket image; the extracting module comprises: an original ticket image acquisition a unit, configured to use a difference between a sharpness or a signal-to-noise ratio of the electronic ticket and a sharpness or a signal-to-noise ratio of the original ticket image as a first energy function, using a variable-scale transient chaotic neural network search algorithm, searching for a target Obtaining the original ticket image for the first energy function to be minimum;
水印图像获取单元, 用于根据所述电子门票和所述原始门票图像, 得 到所述水印图像。  And a watermark image obtaining unit, configured to obtain the watermark image according to the electronic ticket and the original ticket image.
12、 根据权利要求 10所述的装置, 其特征在于, 所述嵌入单元包括: 分解单元, 用于对所述原始门票图像进行 L层小波分解, 得到多个矩 阵; The apparatus according to claim 10, wherein the embedding unit comprises: a decomposing unit, configured to perform L-layer wavelet decomposition on the original ticket image to obtain a plurality of moments Array
计算单元, 用于分别计算每个矩阵中各小波系数点的 J D值; 搜索单元, 用于釆用变尺度暂态混沌神经网络, 搜索得到所述第三水 印标识的最佳嵌入强度, 所述最佳嵌入强度小于或等于小波系数点的 J D 值。  a calculation unit, configured to separately calculate a JD value of each wavelet coefficient point in each matrix; a search unit, configured to use a variable-scale transient chaotic neural network, to search for an optimal embedding strength of the third watermark identifier, The best embedding strength is less than or equal to the JD value of the wavelet coefficient point.
PCT/CN2010/079109 2010-08-16 2010-11-25 Electronic entrance ticket process method and device thereof WO2012022086A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010257149.X 2010-08-16
CN201010257149.XA CN101923733B (en) 2010-08-16 2010-08-16 Method and device for processing electronic entrance ticket

Publications (1)

Publication Number Publication Date
WO2012022086A1 true WO2012022086A1 (en) 2012-02-23

Family

ID=43338640

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/079109 WO2012022086A1 (en) 2010-08-16 2010-11-25 Electronic entrance ticket process method and device thereof

Country Status (2)

Country Link
CN (1) CN101923733B (en)
WO (1) WO2012022086A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109102451A (en) * 2018-07-24 2018-12-28 齐鲁工业大学 A kind of anti-fake halftoning intelligent digital watermarking method of paper media's output

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104112201B (en) * 2013-04-22 2018-05-18 中国银联股份有限公司 The method of sending and receiving and equipment of electronic bill data
CN103400418B (en) * 2013-07-26 2016-02-03 电子科技大学 A kind of electronic bill ticketing based on NFC mobile terminal and ticket checking method
CN103841120A (en) * 2014-03-28 2014-06-04 北京网秦天下科技有限公司 Data security management method, mobile terminal and system based on digital watermarking
CN104579831A (en) * 2014-12-26 2015-04-29 北京网秦天下科技有限公司 Data transmission processing method and device
CN105913248B (en) * 2016-04-08 2020-07-14 四川省和信源创劳务有限公司 Online payment system based on mobile internet service application
CN113205446A (en) * 2018-06-29 2021-08-03 北京奇虎科技有限公司 Method and device for identifying semitransparent watermark in video and electronic equipment
CN111415226B (en) * 2020-03-30 2023-10-20 杭州差旅共翔网络科技有限公司 Efficient transfer system for electronic ticketing and working method thereof

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1455912A (en) * 2001-01-12 2003-11-12 密刻爱你有限公司 Apparatus and method for issuing and authenticating securities, etc. using digital water marking
CN1538287A (en) * 2003-04-14 2004-10-20 中国科学院自动化研究所 Radio electronic bill generating and deteeting method
JP2005198198A (en) * 2004-01-09 2005-07-21 Nippon Telegraph & Telephone East Corp Information providing system using electronic watermark image, its method, program and program recording medium
JP2005352786A (en) * 2004-06-10 2005-12-22 Nippon Telegr & Teleph Corp <Ntt> Electronic ticket vending method, electronic ticket vending/transferring method, server device, client device, program, and recording medium
JP2007122143A (en) * 2005-10-25 2007-05-17 Kddi Corp Electronic ticket distribution method, mobile terminal, server, system and program
CN101377837A (en) * 2007-08-29 2009-03-04 北京方维银通科技有限公司 Method for generating and checking electronic check two-dimension code credence

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102004033992A1 (en) * 2003-07-24 2005-03-10 Pantech Co Methods and systems for watermarking multimedia data using mobile communication terminals
KR20050118002A (en) * 2004-06-12 2005-12-15 엘지전자 주식회사 Image managing method for mobile communication terminal
CN1750033A (en) * 2004-09-17 2006-03-22 王键 Electronic bill transaction system based on cell phone and its mobile communication network
CN1614615A (en) * 2004-12-07 2005-05-11 北京邮电大学 Method and system for buying valuable bills by mobile telecommunicating terminal
CN1997185A (en) * 2005-12-31 2007-07-11 北京华旗数码影像技术研究院有限责任公司 Mobile communication terminal for receiving the watermark information and its system and watermark embedding method
US8300877B2 (en) * 2007-02-20 2012-10-30 Sony Mobile Communications Ab Copy protected information distribution
CN101393664A (en) * 2007-09-21 2009-03-25 乐金电子(中国)研究开发中心有限公司 Mobile communication terminal having money checking function and money checking method thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1455912A (en) * 2001-01-12 2003-11-12 密刻爱你有限公司 Apparatus and method for issuing and authenticating securities, etc. using digital water marking
CN1538287A (en) * 2003-04-14 2004-10-20 中国科学院自动化研究所 Radio electronic bill generating and deteeting method
JP2005198198A (en) * 2004-01-09 2005-07-21 Nippon Telegraph & Telephone East Corp Information providing system using electronic watermark image, its method, program and program recording medium
JP2005352786A (en) * 2004-06-10 2005-12-22 Nippon Telegr & Teleph Corp <Ntt> Electronic ticket vending method, electronic ticket vending/transferring method, server device, client device, program, and recording medium
JP2007122143A (en) * 2005-10-25 2007-05-17 Kddi Corp Electronic ticket distribution method, mobile terminal, server, system and program
CN101377837A (en) * 2007-08-29 2009-03-04 北京方维银通科技有限公司 Method for generating and checking electronic check two-dimension code credence

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109102451A (en) * 2018-07-24 2018-12-28 齐鲁工业大学 A kind of anti-fake halftoning intelligent digital watermarking method of paper media's output
CN109102451B (en) * 2018-07-24 2023-03-21 齐鲁工业大学 Anti-counterfeiting halftone intelligent digital watermark manufacturing method for paper media output

Also Published As

Publication number Publication date
CN101923733B (en) 2015-04-01
CN101923733A (en) 2010-12-22

Similar Documents

Publication Publication Date Title
WO2012022086A1 (en) Electronic entrance ticket process method and device thereof
US20210350497A1 (en) Methods and systems for signal processing
Peng et al. A complete passive blind image copy-move forensics scheme based on compound statistics features
Verma et al. An overview of robust digital image watermarking
Tian et al. An integrated visual saliency-based watermarking approach for synchronous image authentication and copyright protection
CN1710577A (en) Digit water-mark certificate anti-fake method based on mobile communication network
CN107103577A (en) Half fragile uniqueness image watermark insertion and extracting method for integrity protection
AU2010313974A1 (en) Image providing system and method
WO2022161397A1 (en) Face image verification method and apparatus, electronic device and storage medium
Liao et al. Content‐adaptive steganalysis for color images
JP2007257491A (en) Counterfeit bill detection system and portable communication terminal
US20040169892A1 (en) Device and method for generating a print, device and method for detecting information, and program for causing a computer to execute the information detecting method
CN102063659B (en) Method, server and system for collecting and making electronic photo
CN103593645A (en) Method for identifying source camera of cutout image
JP3394988B2 (en) Image processing system
CN102694936B (en) Control method and apparatus for composite scanning device and composite scanning system
Kim et al. The watermark evaluation testbed (WET)
CN116645258A (en) Watermark embedding, watermark extraction, watermark identification model construction method and electronic equipment
JP2006013980A (en) Portable electronic equipment and functional restriction system of portable electronic equipment
Kang et al. Enhancing ROC performance of trustworthy camera source identification
CN104050434A (en) Technology of reading printed digital watermark by handset
Jamali et al. Adaptive image watermarking using human perception based fuzzy inference system
JP2004159219A (en) Image photographing device, image copying machine, image editing device, photographed image managing method, copied image managing method and edited image managing method
KR100973302B1 (en) A watermarking method of the mobile terminal for multimedia forensic
Soppari et al. Study of digital watermarking algorithms for digital rights management and their attacks

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 10856084

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 10856084

Country of ref document: EP

Kind code of ref document: A1