WO2017088430A1 - Processing method and system for removing two-dimensional code scanning interference - Google Patents

Processing method and system for removing two-dimensional code scanning interference Download PDF

Info

Publication number
WO2017088430A1
WO2017088430A1 PCT/CN2016/084313 CN2016084313W WO2017088430A1 WO 2017088430 A1 WO2017088430 A1 WO 2017088430A1 CN 2016084313 W CN2016084313 W CN 2016084313W WO 2017088430 A1 WO2017088430 A1 WO 2017088430A1
Authority
WO
WIPO (PCT)
Prior art keywords
dimensional code
code value
value
dimensional
television
Prior art date
Application number
PCT/CN2016/084313
Other languages
French (fr)
Chinese (zh)
Inventor
焦新旺
王云华
Original Assignee
深圳Tcl数字技术有限公司
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 深圳Tcl数字技术有限公司 filed Critical 深圳Tcl数字技术有限公司
Publication of WO2017088430A1 publication Critical patent/WO2017088430A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/14172D bar codes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1439Methods for optical code recognition including a method step for retrieval of the optical code
    • G06K7/1447Methods for optical code recognition including a method step for retrieval of the optical code extracting optical codes from image or text carrying said optical code

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a processing method and system for removing scanning interference of a two-dimensional code.
  • the QR code can also be displayed in various applications running on the smart TV, so that the user can quickly access the related application after scanning by using the smart phone, for example, using a mobile phone to scan the video. Chat or go to a web page.
  • the main object of the present invention is to provide a processing method and system for removing two-dimensional code scanning interference, which aims to solve the technical problem of two-dimensional code recognition error caused by interference factors in two-dimensional code scanning.
  • the present invention provides a processing method for removing scanning interference of a two-dimensional code, and the processing method for removing scanning interference of a two-dimensional code includes:
  • the television decodes all the two-dimensional codes displayed on the current television screen to obtain a corresponding first two-dimensional code value; the television according to the ASCII code comparison table, from all the Extracting a first two-dimensional code value corresponding to the set character string in a two-dimensional code value and transmitting the value to the mobile terminal;
  • the mobile terminal scans the two-dimensional code displayed on the television screen, the mobile terminal decodes the scanned two-dimensional code and obtains a corresponding second two-dimensional code value; or, when the mobile terminal scans the displayed on the television screen In the two-dimensional code, the mobile terminal sends the scanned two-dimensional code to the cloud server for decoding and receives the second two-dimensional code value returned by the cloud server;
  • the mobile terminal compares the second two-dimensional code value with the first two-dimensional code value sent by the television according to the preset two-dimensional code comparison check rule, and performs corresponding processing according to the comparison check result. And removing the two-dimensional code scanning interference, wherein when the comparison verification result is that the two-dimensional code scanning interference exists, determining a first two-dimensional code value having the highest similarity with the second two-dimensional code value to replace the second two-dimensional code value Code value.
  • the mobile terminal compares the second two-dimensional code value with the first two-dimensional code value sent by the television according to the preset two-dimensional code comparison check rule, and compares the data according to the comparison.
  • the test results are processed accordingly to remove the QR code scan interference including:
  • the mobile terminal sequentially corresponds the ASCII code value corresponding to each character in the second two-dimensional code value to the ASCII code value corresponding to each character in the first two-dimensional code value sent by the television according to the ASCII code comparison table. Perform a difference operation;
  • the second two-dimensional code value is replaced by the first two-dimensional code value of the first two-dimensional code value sent by the television with the highest similarity to the second two-dimensional code value, including:
  • each ASCII code difference value is compared with each character in the checksum. The ratio of the number of zeros of the ASCII code difference to the total number of characters in the second two-dimensional code value to determine the similarity between the second two-dimensional code value and the first two-dimensional code value corresponding to the comparison check ;
  • the second two-dimensional code value is replaced with a first two-dimensional code value having the highest similarity with the second two-dimensional code value among the first two-dimensional code values sent by the television.
  • the present invention further provides a processing method for removing scanning interference of a two-dimensional code, and the processing method for removing scanning interference of a two-dimensional code includes:
  • the television decodes all the two-dimensional codes displayed on the current television screen to obtain corresponding first two-dimensional code values and some or all of the first two-dimensional code values. Send to the mobile terminal;
  • the mobile terminal scans the two-dimensional code displayed on the television screen, the mobile terminal decodes the scanned two-dimensional code and obtains a corresponding second two-dimensional code value;
  • the mobile terminal scans the two-dimensional code displayed on the screen of the television, the mobile terminal sends the scanned two-dimensional code to the cloud server for decoding and receives the second two-dimensional code value returned by the cloud server;
  • the mobile terminal compares the second two-dimensional code value with the first two-dimensional code value sent by the television according to the preset two-dimensional code comparison check rule, and performs corresponding processing according to the comparison check result. And removing the two-dimensional code scanning interference, wherein when the comparison verification result is that the two-dimensional code scanning interference exists, determining a first two-dimensional code value having the highest similarity with the second two-dimensional code value to replace the second two-dimensional code value Code value.
  • the television decodes all the two-dimensional codes displayed on the current television screen to obtain a corresponding first two-dimensional code value and a part of the first two-dimensional code.
  • Sending the code value to the mobile terminal includes:
  • the television decodes all the two-dimensional codes displayed on the current television screen to obtain a corresponding first two-dimensional code value
  • the television screen filters the first two-dimensional code values according to the set two-dimensional code value screening rule, and sends some of the first two-dimensional code values obtained after the screening to the mobile terminal.
  • the television set according to the set two-dimensional code value screening rule, and correspondingly screening all the first two-dimensional code values and transmitting the obtained partial first two-dimensional code values to the mobile terminal comprises:
  • the television screen selects a first two-dimensional code value corresponding to the set character string from all the first two-dimensional code values according to the ASCII code comparison table and transmits the same to the mobile terminal.
  • the mobile terminal compares the second two-dimensional code value with the first two-dimensional code value sent by the television according to the preset two-dimensional code comparison check rule, and compares the data according to the comparison.
  • the test results are processed accordingly to remove the QR code scan interference including:
  • the mobile terminal sequentially corresponds the ASCII code value corresponding to each character in the second two-dimensional code value to the ASCII code value corresponding to each character in the first two-dimensional code value sent by the television according to the ASCII code comparison table. Perform a difference operation;
  • the second two-dimensional code value is replaced by the first two-dimensional code value of the first two-dimensional code value sent by the television with the highest similarity to the second two-dimensional code value, including:
  • each ASCII code difference value is compared with each character in the checksum. The ratio of the number of zeros of the ASCII code difference to the total number of characters in the second two-dimensional code value to determine the similarity between the second two-dimensional code value and the first two-dimensional code value corresponding to the comparison check ;
  • the second two-dimensional code value is replaced with a first two-dimensional code value having the highest similarity with the second two-dimensional code value among the first two-dimensional code values sent by the television.
  • the present invention further provides a processing system for removing two-dimensional code scanning interference, and the processing system for removing two-dimensional code scanning interference includes at least a television set, a mobile terminal, or a cloud server;
  • the television set is configured to decode all two-dimensional codes displayed on the current television screen when a plurality of two-dimensional codes are displayed on the television screen, to obtain a corresponding first two-dimensional code value and to partially Or all of the first two-dimensional code values are sent to the mobile terminal;
  • the mobile terminal is configured to decode the scanned two-dimensional code and obtain a corresponding second two-dimensional code value when scanning the two-dimensional code displayed on the television screen;
  • the mobile terminal is further configured to: when scanning the two-dimensional code displayed on the screen of the television, send the scanned two-dimensional code to the cloud server for decoding and receive the second returned by the cloud server a two-dimensional code value, wherein the cloud server is configured to decode a two-dimensional code sent by the mobile terminal and return a second two-dimensional code value;
  • the mobile terminal is further configured to compare the second two-dimensional code value with the first two-dimensional code value sent by the television according to the preset two-dimensional code comparison check rule, and according to The comparison check result is correspondingly processed to remove the two-dimensional code scan interference, wherein when the comparison check result is that the two-dimensional code scan interference exists, the first two-dimensional code having the highest similarity with the second two-dimensional code value is determined. A value to replace the second two-dimensional code value.
  • the invention decodes the two-dimensional code displayed on the screen of the television through the television, thereby obtaining the correct two-dimensional code value corresponding to the two-dimensional code displayed on the television screen.
  • the mobile terminal scans the two-dimensional code, in order to avoid the influence of the interference factor, it is necessary to check the two-dimensional code value corresponding to the two-dimensional code scanned by each mobile terminal, specifically the second decoded by the television set.
  • the dimension code is used as a comparison benchmark at the time of verification, and correspondingly processed according to the comparison verification result to remove the two-dimensional code scanning interference.
  • the invention solves the problem that the two-dimensional code recognition error is caused by the influence of the interference factor when the two-dimensional code is scanned, reduces the error rate of the two-dimensional code scanning, and improves the user experience.
  • FIG. 1 is a schematic flow chart of an embodiment of a method for processing a two-dimensional code scanning interference according to the present invention
  • FIG. 2 is a schematic diagram of a refinement process of step S10 in FIG. 1;
  • step S30 in FIG. 1 is a schematic diagram of a refinement process of step S30 in FIG. 1;
  • step S303 in FIG. 3 is a schematic diagram of a refinement process of step S303 in FIG. 3;
  • FIG. 5 is a schematic diagram of functional blocks of an embodiment of a processing system for removing scanning interference of a two-dimensional code according to the present invention
  • FIG. 6 is a schematic diagram of functional modules of another embodiment of a processing system for removing two-dimensional code scanning interference according to the present invention.
  • FIG. 7 is a schematic diagram of a refinement function module of the television set of FIG. 5.
  • FIG. 1 is a schematic flowchart of an embodiment of a method for processing a two-dimensional code scanning interference according to an embodiment of the present invention.
  • the processing method for removing the scanning error of the two-dimensional code includes:
  • Step S10 when a plurality of two-dimensional codes are displayed on the television screen, the television decodes all the two-dimensional codes displayed on the current television screen, and obtains corresponding first two-dimensional code values and some or all of the first two
  • the dimension code value is sent to the mobile terminal;
  • the television in order to obtain the correct two-dimensional code value of the two-dimensional code displayed on the screen of the television, when a plurality of two-dimensional codes are displayed on the television screen, the television itself directly displays on the current television screen. All the two-dimensional codes are decoded, so as to avoid the occurrence of a data error after decoding by acquiring the two-dimensional code with interference.
  • the process of removing the two-dimensional code scanning interference is mainly performed on the mobile terminal. Therefore, after the television set obtains the correct two-dimensional code value by decoding, the obtained first two-dimensional code value needs to be sent to the mobile terminal.
  • the manner of transmitting the first two-dimensional code value is not limited, and is specifically set according to actual needs.
  • the television set is actively sent to the mobile terminal after decoding the two-dimensional code, or is sent by the mobile terminal to the mobile terminal after sending the acquisition request.
  • the number of the first two-dimensional code values to be transmitted is not limited, and may be a partial first two-dimensional code value that satisfies the relevant condition, or may be all two-dimensional code values.
  • Step S20 when the mobile terminal scans the two-dimensional code displayed on the television screen, the mobile terminal decodes the scanned two-dimensional code and obtains a corresponding second two-dimensional code value; or, when the mobile terminal scans the television screen When the two-dimensional code is displayed, the mobile terminal sends the scanned two-dimensional code to the cloud server for decoding and receives the second two-dimensional code value returned by the cloud server;
  • the two-dimensional code scanned by the mobile terminal may be decoded by the mobile terminal itself to obtain the second two-dimensional code value, or may be moved by the mobile terminal.
  • the terminal sends the scanned QR code to the cloud server, it is decoded by the cloud server, and receives the second two-dimensional code value returned by the cloud server after decoding.
  • the specific decoding mode of the two-dimensional code scanned by the mobile terminal is set according to actual needs. Considering the complexity of the two-dimensional code and the decoding efficiency, it is preferable to perform decoding by the cloud server in this embodiment.
  • Step S30 the mobile terminal compares the second two-dimensional code value with the first two-dimensional code value sent by the television according to the preset two-dimensional code comparison check rule, and compares the verification result according to the comparison. Performing corresponding processing to remove the two-dimensional code scanning interference, wherein when the comparison verification result is that the two-dimensional code scanning interference exists, determining a first two-dimensional code value having the highest similarity with the second two-dimensional code value to replace the first Two-dimensional code value.
  • the second two-dimensional code value obtained by the mobile terminal after being scanned and decoded is compared with the first two-dimensional code value decoded by the television set.
  • the method for removing the two-dimensional code scanning interference is not limited, and is specifically set according to actual needs. For example, by determining a first two-dimensional code value having the highest similarity with the second two-dimensional code value for replacing the second two-dimensional code value.
  • the rules for the two-dimensional code comparison check are not limited, and are specifically set according to actual needs.
  • the two-dimensional code scanned and decoded by the mobile terminal is sequentially compared with a plurality of two-dimensional codes sent by the television.
  • the comparison may be one character or one character in the order from left to right, or may be obtained first.
  • a unique identifier of a two-dimensional code by comparing the identifier of the first two-dimensional code with the identifier of the second two-dimensional code, thereby determining, in the plurality of first two-dimensional codes, the first two having the same identifier as the second two-dimensional code
  • the dimension code is then compared to the second QR code.
  • the precondition for performing the removal of the two-dimensional code scanning interference processing is that the two-dimensional code scanned by the mobile terminal is not completely interfered or worn, that is, specific basic key information is required. For example, there are three positioning points for taking pictures and so on. Generally speaking, the two-dimensional code displayed on the TV does not cause too much interference or damage. At the same time, the user also performs preliminary screening when scanning with the mobile terminal. Therefore, there is usually no unrecognizable two-dimensional image. code.
  • the two-dimensional code displayed on the screen of the television is decoded by the television, thereby obtaining the correct two-dimensional code value corresponding to the two-dimensional code displayed on the television screen.
  • the mobile terminal scans the two-dimensional code, in order to avoid the influence of the interference factor, it is necessary to check the two-dimensional code value corresponding to the two-dimensional code scanned by each mobile terminal, specifically the second decoded by the television set.
  • the dimension code is used as a comparison benchmark at the time of verification, and the two-dimensional code scanning interference removal processing is performed according to the comparison verification result.
  • the invention solves the problem that the two-dimensional code recognition error is caused by the influence of the interference factor when the two-dimensional code is scanned, reduces the error rate of the two-dimensional code scanning, and improves the user experience.
  • FIG. 2 is a schematic diagram of the refinement process of step S10 in FIG. Based on the above embodiment, in the embodiment, the foregoing step S10 includes:
  • Step S101 when a plurality of two-dimensional codes are displayed on the television screen, the television decodes all the two-dimensional codes displayed on the current television screen to obtain a corresponding first two-dimensional code value;
  • the television in order to accurately obtain the two-dimensional code value (that is, the first two-dimensional code) corresponding to the two-dimensional code displayed on the screen of the television, it is necessary to avoid acquiring the two-dimensional code image by using the scanning method, and then decoding. Therefore, in this embodiment, the television itself performs decoding, that is, the television itself completes decoding of all the displayed two-dimensional codes while displaying the two-dimensional code. It should be noted that, for the same two-dimensional code value displayed on the screen of the television, although the decoding of the television is the same as the two-dimensional code value obtained after the final decoding of the mobile terminal scanning decoding, the decoding manner of the two is not Must be the same. In addition, since the television does not determine which two-dimensional code the user will scan, the television needs to decode all the two-dimensional codes displayed on the television screen, and at the same time, obtain the corresponding first two-dimensional code by decoding.
  • Step S102 The television set, according to the set two-dimensional code value screening rule, performs corresponding screening on all the first two-dimensional code values, and sends a part of the first two-dimensional code values obtained after the screening to the mobile terminal.
  • the two-dimensional code value filtering rule can be set to filter all the first two-dimensional code values decoded by the television, and then the two-dimensional code of the two-dimensional code that the user is likely to scan can be sent in a targeted manner. The value is given to the mobile terminal for storage. It should be further noted that the setting of the two-dimensional code value screening rule may be set by the TV by default, or may be set by the user as needed.
  • the television when the television sends the first two-dimensional code value to the mobile terminal, it is more specifically transmitted, and the two-dimensional code value comparison efficiency of the mobile terminal is also improved, which is preferably used in this embodiment.
  • the set screening rule sends a part of the first two-dimensional code value to the mobile terminal.
  • the television sets a first two-dimensional code value corresponding to the set character string from all the first two-dimensional code values according to the ASCII code comparison table and transmits the same to the mobile terminal.
  • the user is interested in the two-dimensional code of the webpage type. Therefore, "www" or "Http" can be set as a filter character, and the above screening process can be completed according to the ASCII code comparison table.
  • the basic character encoding such as numbers, letters, symbols, etc., can be completed by using ASCII codes in existing daily applications, it is preferable to use the ASCII code comparison table to complete the screening of the set character string in this implementation. process.
  • FIG. 3 is a schematic diagram of the refinement process of step S30 in FIG. Based on the above embodiment, in the embodiment, the foregoing step S30 includes:
  • Step S301 the mobile terminal compares the ASCII code value corresponding to each character in the second two-dimensional code value with the ASCII code value corresponding to each character in the first two-dimensional code value sent by the television set according to the ASCII code comparison table. Performing difference calculations in sequence;
  • the characters in the two-dimensional code value can be converted into corresponding ASCII code values (for example, converted into decimal numbers) through the ASCII code comparison table, and thus the difference operation can be performed.
  • the television transmits three first two-dimensional code values to the mobile terminal: www.aac.com, www.cdc.com, www.aad.com; the decoded second two-dimensional code value scanned by the mobile terminal
  • www.aad.com the www.aad.com will be sequentially compared with the ASCII code value corresponding to each character in www.aac.com, www.cdc.com, www.aad.com. Operation.
  • Step S302 when the difference between the second two-dimensional code value and the ASCII code corresponding to each character in the first two-dimensional code value is zero, it is determined that there is no interference in the second two-dimensional code value, and the comparison check is exited. ;
  • the second two-dimensional code value www.aad.com and the first two-dimensional code value www.aac.com, www.cdc.com, www.aad.com The ASCII code difference corresponding to each character of www.aad.com is zero, then it is determined that there is no interference in the second two-dimensional code value, and the comparison check is exited, if there is still no difference operation after the subsequent The other first two-dimensional code will not continue the comparison.
  • Step S303 when there is non-zero in the ASCII code difference value corresponding to each character in the second two-dimensional code value and the first two-dimensional code value, determining that there is interference in the second two-dimensional code value and the second two-dimensional The code value is replaced with a first two-dimensional code value having the highest similarity with the second two-dimensional code value among the first two-dimensional code values sent by the television.
  • the second two-dimensional code value www.aadck.com and the first two-dimensional code value www.aacck.com, www.cdc.com, www.acd.com difference comparison process the second two-dimensional code
  • the difference between the value and all the first two-dimensional code values is not all zero. Therefore, it is determined that there is interference in the second two-dimensional code value, and thus the second two-dimensional code value needs to be replaced, and specifically, the second two-dimensional code value is preferably used. And replacing with the first two-dimensional code value that has the highest similarity with the second two-dimensional code value among the first two-dimensional code values sent by the television.
  • www.aacck.co in the first two-dimensional code value has the highest similarity to the second two-dimensional code value www.aadck.com.
  • the manner of calculating the similarity is not limited, and the setting is specifically performed according to actual needs.
  • the sequence between the foregoing steps S302 and S303 is not limited.
  • the number of first two-dimensional code values sent by the television set after screening is less. Therefore, the second two-dimensional code value is compared with all the first two-dimensional code values sent by the television.
  • the second two-dimensional code corresponding to the two-dimensional code scanned by the mobile terminal must be included in the first two-dimensional code value sent by the television set. Therefore, the true two-dimensional code value of the two-dimensional code corresponding to the second two-dimensional code value can be uniquely determined by the similarity comparison.
  • each of the two-dimensional codes may be given a unique identifier by the television to distinguish the other two-dimensional codes, and the corresponding two-dimensional code values are also provided with the unique identifier.
  • the mobile terminal scans the two-dimensional code on the television screen and decodes it, it can directly find the corresponding two of the two-dimensional code values sent by the television according to the unique identifier corresponding to the two-dimensional code value.
  • Dimension code value the unique identifier corresponding to the two-dimensional code value.
  • FIG. 4 is a schematic diagram of the refinement process of step S303 in FIG. Based on the foregoing embodiment, in the embodiment, the foregoing step S303 includes:
  • Step S3031 When there is non-zero in the ASCII code difference value corresponding to each character in the second two-dimensional code value and the first two-dimensional code value, determining that there is interference in the second two-dimensional code value;
  • Step S3032 After the second two-dimensional code value is sequentially compared with each first two-dimensional code value sent by the television, the ASCII code difference comparison check is performed, and each ASCII code difference comparison check is performed. The ratio of the number of zeros corresponding to the ASCII code corresponding to the character to the total number of characters in the second two-dimensional code value to determine the second two-dimensional code value and the first two-dimensional code value corresponding to the comparison check Similarity
  • the ASCII corresponding to each character of the ASCII code difference comparison check since it is not determined which one or more characters of the second two-dimensional code value are interfered, it is preferable to use the ASCII corresponding to each character of the ASCII code difference comparison check.
  • the ratio of the number of zero code values to the total number of characters in the second two-dimensional code value determines the similarity between the second two-dimensional code value and the first two-dimensional code value corresponding to the comparison check.
  • the second two-dimensional code value www.aadck.com and the first two-dimensional code value www.aacck.com, www.cdc.com, www.acd.com difference comparison process the second two-dimensional code
  • Step S3033 the second two-dimensional code value is replaced with a first two-dimensional code value having the highest similarity with the second two-dimensional code value among the first two-dimensional code values sent by the television.
  • the correction of the two-dimensional code value of the scanning error is completed in an alternative manner, so that the mobile terminal can obtain the correct two-dimensional code value even if the wrong two-dimensional code is scanned, and then according to the correct correctness after the replacement.
  • the QR code value is used for data access.
  • the corresponding two-dimensional code values may also be greatly different, for example, different two-dimensional code values rarely appear.
  • Code value or, in this embodiment, a similarity threshold may be further set, for example, 70%. If the two-dimensional code value is compared after each comparison, if the similarity between the two-dimensional code values of the current comparison is greater than Or equal to 70%, it can be determined as the QR code value that needs to be replaced.
  • the comparison efficiency and accuracy of the different alignment verification methods are different. In this embodiment, it is preferable to compare all the first two-dimensional codes one by one, and then pass the comparison efficiency and accuracy.
  • the similarity statistics determine the selected replacement two-dimensional code.
  • FIG. 5 is a schematic diagram of functional modules of a processing system for removing scanning interference of a two-dimensional code according to an embodiment of the present invention
  • FIG. 6 is a schematic diagram of functional modules of another embodiment of a processing system for removing scanning interference of a two-dimensional code according to the present invention
  • the processing system for removing the two-dimensional code scanning interference includes at least a television set 10, a mobile terminal 20, or a cloud server 30;
  • the television set 10 is configured to decode all the two-dimensional codes currently displayed on the screen of the television set 10 when a plurality of two-dimensional codes are displayed on the screen of the television set 10, to obtain a corresponding first two-dimensional code value. And transmitting part or all of the first two-dimensional code value to the mobile terminal 20;
  • the current television set 10 is directly directly provided by the television set 10 itself. All the two-dimensional codes displayed on the screen are decoded, so as to avoid the occurrence of a data error after decoding by acquiring the two-dimensional code with interference.
  • the process of removing the two-dimensional code scanning interference is mainly performed on the mobile terminal 20. Therefore, when the television 10 obtains the correct two-dimensional code value by decoding, the obtained first two-dimensional code value needs to be transmitted to the mobile terminal 20.
  • the manner of transmitting the first two-dimensional code value is not limited, and is specifically set according to actual needs.
  • the television set 10 actively transmits to the mobile terminal 20 after decoding the two-dimensional code, or is sent by the mobile terminal 20 to the mobile terminal 20 after transmitting the acquisition request.
  • the number of the first two-dimensional code values to be transmitted is not limited, and may be a partial first two-dimensional code value that satisfies the relevant condition, or may be all two-dimensional code values.
  • the mobile terminal 20 is configured to decode the scanned two-dimensional code and obtain a corresponding second two-dimensional code value when scanning the two-dimensional code displayed on the screen of the television 10; or
  • the mobile terminal 20 is further configured to: when scanning the two-dimensional code displayed on the screen of the television 10, send the scanned two-dimensional code to the cloud server 30 for decoding and receive the return by the cloud server 30. a second two-dimensional code value, wherein the cloud server 30 is configured to decode the two-dimensional code sent by the mobile terminal 20 and return a second two-dimensional code value;
  • the two-dimensional code scanned by the mobile terminal 20 can be decoded by the mobile terminal 20 itself to obtain the second two-dimensional code value.
  • the scanned two-dimensional code may be sent by the mobile terminal 20 to the cloud server 30 for decoding by the cloud server 30, and the second two-dimensional code value returned by the cloud server 30 after decoding may be received.
  • the specific decoding mode of the two-dimensional code scanned by the mobile terminal 20 is set according to actual needs. Considering the complexity of the two-dimensional code and the decoding efficiency, it is preferable to perform decoding by the cloud server 30 in this embodiment.
  • the mobile terminal 20 is further configured to compare the second two-dimensional code value with the first two-dimensional code value sent by the television 10 according to the preset two-dimensional code comparison check rule. And performing corresponding processing according to the comparison verification result to remove the two-dimensional code scanning interference, wherein when the comparison verification result is that the two-dimensional code scanning interference exists, determining the first two with the highest similarity with the second two-dimensional code value The dimension value is substituted for the second QR code value.
  • the second two-dimensional code value obtained by the mobile terminal 20 after being scanned and decoded is performed by using the first two-dimensional code value decoded by the television 10 as a comparison benchmark.
  • the verification is performed to determine whether there is scanning interference in the second two-dimensional code and corresponding processing is performed according to the comparison result.
  • the rules for the two-dimensional code comparison check are not limited, and are specifically set according to actual needs.
  • the two-dimensional code scanned and decoded by the mobile terminal 20 is sequentially compared with a plurality of two-dimensional codes sent by the television 10, and may be an alignment of one character and one character in order from left to right, or may be Obtaining a unique identifier of each two-dimensional code, and comparing the identifier of the first two-dimensional code with the identifier of the second two-dimensional code, thereby determining, in the plurality of first two-dimensional codes, the same identifier as the second two-dimensional code A two-dimensional code is then compared to the second two-dimensional code.
  • the precondition for performing the removal of the two-dimensional code scanning interference processing is that the two-dimensional code scanned by the mobile terminal 20 is not completely interfered or worn, that is, specific basic key information is required. For example, there are three positioning points for taking photos. Generally speaking, the two-dimensional code displayed on the television set 10 does not cause too much interference or damage, and at the same time, the user also performs preliminary screening when scanning using the mobile terminal 20, and therefore, usually does not appear unrecognizable. QR code.
  • the two-dimensional code displayed on the screen of the television 10 is decoded by the television set 10, thereby obtaining the correct two-dimensional code value corresponding to the two-dimensional code displayed on the screen of the television set 10.
  • the mobile terminal 20 scans the two-dimensional code, in order to avoid the influence of the interference factor, it is necessary to check the two-dimensional code value corresponding to the two-dimensional code scanned by the mobile terminal 20, specifically by the television set 10
  • the decoded two-dimensional code is used as a comparison reference at the time of verification, and correspondingly processed according to the comparison verification result to remove the two-dimensional code scanning interference.
  • the invention solves the problem that the two-dimensional code recognition error is caused by the influence of the interference factor when the two-dimensional code is scanned, reduces the error rate of the two-dimensional code scanning, and improves the user experience.
  • FIG. 7 is a schematic diagram of a refinement function module of the television set 10 of FIG. Based on the above embodiment, in this embodiment, the television set 10 includes:
  • the decoding module 101 is configured to decode all the two-dimensional codes currently displayed on the screen of the television 10 when a plurality of two-dimensional codes are displayed on the screen of the television 10, to obtain a corresponding first two-dimensional code value;
  • the television 10 in order to accurately obtain the two-dimensional code value (that is, the first two-dimensional code) corresponding to the two-dimensional code displayed on the screen of the television 10, it is necessary to avoid acquiring the two-dimensional code image by using the scanning method and then decoding. Therefore, in the present embodiment, the television 10 itself is specifically decoded, that is, the television 10 itself completes decoding of all the displayed two-dimensional codes while displaying the two-dimensional code. It should be noted that, for the same two-dimensional code value displayed on the screen of the television set 10, although the television set 10 decodes and the mobile terminal 20 scans and decodes the final two-dimensional code value obtained after decoding, the decoding of the two is the same. The way is not necessarily the same. In addition, since the television 10 does not determine which two-dimensional code the user will scan, the television 10 needs to decode all the two-dimensional codes displayed on the screen of the television 10, and at the same time, obtain the corresponding first two-dimensional by decoding. code.
  • the screening module 102 is configured to filter all the first two-dimensional code values according to the set two-dimensional code value screening rule, and send the partial first two-dimensional code values obtained after the screening to the mobile terminal 20 .
  • all the first two-dimensional code values decoded by the television set 10 can be correspondingly filtered by setting a two-dimensional code value screening rule, so that two types of two-dimensional codes that the user is likely to scan may be sent in a targeted manner.
  • the dimension code value is stored to the mobile terminal 20.
  • the setting of the two-dimensional code value screening rule may be set by the television 10 by default, or may be set by the user as needed.
  • the television 10 transmits the first two-dimensional code value to the mobile terminal 20, it is more specifically transmitted, and the two-dimensional code value comparison efficiency of the mobile terminal 20 is also improved.
  • a portion of the first two-dimensional code value is transmitted to the mobile terminal 20 using the set screening rule.
  • the television set 10 filters out the first two-dimensional code value corresponding to the set character string from all the first two-dimensional code values according to the ASCII code comparison table and transmits the same to the mobile terminal 20.
  • the user is interested in the two-dimensional code of the webpage type. Therefore, "www" or "Http" can be set as a filter character, and the above screening process can be completed according to the ASCII code comparison table.
  • the basic character encoding such as numbers, letters, symbols, etc., can be completed by using ASCII codes in existing daily applications, it is preferable to use the ASCII code comparison table to complete the screening of the set character string in this implementation. process.

Abstract

A processing method and system for removing two-dimensional code scanning interference. The method comprises: a television decodes all two-dimensional codes displayed on a current screen of the television to obtain first two-dimensional code values, and sends part or all of the first two-dimensional code values to a mobile terminal (S10); the mobile terminal decodes the scanned two-dimensional codes to obtain corresponding second two-dimensional code values; or the mobile terminal sends the scanned two-dimensional codes to a cloud server for decoding, and receives second two-dimensional code values returned by the cloud server (S20); and the mobile terminal compares and verifies, according to a preset two-dimensional code comparison and verification rule, the second two-dimensional code values and the first two-dimensional code values sent by the television, and performs corresponding processing according to the comparison and verification result, so as to remove two-dimensional code scanning interference (S30). The problem of two-dimensional code recognition errors caused by interference factors during two-dimensional code scanning is resolved, thereby reducing the error rate of the two-dimensional code scanning.

Description

去除二维码扫描干扰的处理方法及系统  Method and system for removing QR code scanning interference
技术领域Technical field
本发明涉及通信技术领域,尤其涉及去除二维码扫描干扰的处理方法及系统。The present invention relates to the field of communications technologies, and in particular, to a processing method and system for removing scanning interference of a two-dimensional code.
背景技术Background technique
目前,随着智能电视的发展,在智能电视机上运行的各种应用中也能显示二维码,从而用户可使用智能手机扫描后即可快捷进入相关应用,比如使用手机扫一扫即可视频聊天或者进入到某一网页。At present, with the development of smart TV, the QR code can also be displayed in various applications running on the smart TV, so that the user can quickly access the related application after scanning by using the smart phone, for example, using a mobile phone to scan the video. Chat or go to a web page.
尽管提供了一种快捷扫描二维码的方式,但扫描时可能会存在电视的显示荧幕放大和缩小二维码的图标像素,从而造成一些干扰。或者,若电视荧幕上面的灰尘和颗粒对显示的二维码有遮挡,则通过手机扫描电视机上显示的二维码时,也可能会出现扫描错误进而干扰手机端扫描,从而导致手机端扫描获取到的数据错误。Although a way to quickly scan a two-dimensional code is provided, there may be a display screen on the television that enlarges and reduces the icon pixels of the two-dimensional code, causing some interference. Or, if the dust and particles on the TV screen are occluded by the displayed QR code, when scanning the QR code displayed on the TV through the mobile phone, scanning errors may occur and the mobile terminal scanning may be interfered, thereby causing the mobile terminal to scan. The data obtained is incorrect.
发明内容Summary of the invention
本发明的主要目的在于提供一种去除二维码扫描干扰的处理方法及系统,旨在解决二维码扫描时存在干扰因素影响而引起二维码识别错误的技术问题。The main object of the present invention is to provide a processing method and system for removing two-dimensional code scanning interference, which aims to solve the technical problem of two-dimensional code recognition error caused by interference factors in two-dimensional code scanning.
为实现上述目的,本发明提供一种去除二维码扫描干扰的处理方法,所述去除二维码扫描干扰的处理方法包括:To achieve the above object, the present invention provides a processing method for removing scanning interference of a two-dimensional code, and the processing method for removing scanning interference of a two-dimensional code includes:
当若干二维码在电视机屏幕上显示时,电视机解码当前电视机屏幕上所显示的所有二维码,得到相应的第一二维码值;电视机根据ASCII码对照表,从所有第一二维码值中筛选出与设定的字符串相对应的第一二维码值并发送至移动终端;When a plurality of two-dimensional codes are displayed on the television screen, the television decodes all the two-dimensional codes displayed on the current television screen to obtain a corresponding first two-dimensional code value; the television according to the ASCII code comparison table, from all the Extracting a first two-dimensional code value corresponding to the set character string in a two-dimensional code value and transmitting the value to the mobile terminal;
当移动终端扫描电视机屏幕上所显示的二维码时,移动终端解码所扫描到的二维码并得到相应的第二二维码值;或,当移动终端扫描电视机屏幕上所显示的二维码时,移动终端将扫描到的二维码发送至云端服务器进行解码并接收云端服务器所返回的第二二维码值;When the mobile terminal scans the two-dimensional code displayed on the television screen, the mobile terminal decodes the scanned two-dimensional code and obtains a corresponding second two-dimensional code value; or, when the mobile terminal scans the displayed on the television screen In the two-dimensional code, the mobile terminal sends the scanned two-dimensional code to the cloud server for decoding and receives the second two-dimensional code value returned by the cloud server;
移动终端根据预置的二维码比对校验规则,将第二二维码值与电视机所发送的第一二维码值进行比对校验,并根据比对校验结果进行相应处理以去除二维码扫描干扰,其中,当比对校验结果为存在二维码扫描干扰时,确定与第二二维码值相似度最高的第一二维码值以替换该第二二维码值。The mobile terminal compares the second two-dimensional code value with the first two-dimensional code value sent by the television according to the preset two-dimensional code comparison check rule, and performs corresponding processing according to the comparison check result. And removing the two-dimensional code scanning interference, wherein when the comparison verification result is that the two-dimensional code scanning interference exists, determining a first two-dimensional code value having the highest similarity with the second two-dimensional code value to replace the second two-dimensional code value Code value.
优选地,所述移动终端根据预置的二维码比对校验规则,将第二二维码值与电视机所发送的第一二维码值进行比对校验,并根据比对校验结果进行相应处理以去除二维码扫描干扰包括:Preferably, the mobile terminal compares the second two-dimensional code value with the first two-dimensional code value sent by the television according to the preset two-dimensional code comparison check rule, and compares the data according to the comparison. The test results are processed accordingly to remove the QR code scan interference including:
移动终端根据ASCII码对照表,将第二二维码值中每一字符所对应的ASCII码值与电视机所发送的第一二维码值中每一字符所对应的ASCII码值依序对应进行差值运算;The mobile terminal sequentially corresponds the ASCII code value corresponding to each character in the second two-dimensional code value to the ASCII code value corresponding to each character in the first two-dimensional code value sent by the television according to the ASCII code comparison table. Perform a difference operation;
当第二二维码值与第一二维码值中每一字符所对应的ASCII码差值均为零时,确定第二二维码值中不存在干扰,退出比对校验;When the difference between the second two-dimensional code value and the ASCII code corresponding to each character in the first two-dimensional code value is zero, it is determined that there is no interference in the second two-dimensional code value, and the comparison check is exited;
当第二二维码值与第一二维码值中每一字符所对应的ASCII码差值中存在非零时,确定第二二维码值中存在干扰并将第二二维码值替换为电视机所发送的第一二维码值中与第二二维码值相似度最高的第一二维码值。Determining that there is interference in the second two-dimensional code value and replacing the second two-dimensional code value when there is non-zero in the ASCII code difference value corresponding to each character in the second two-dimensional code value and the first two-dimensional code value The first two-dimensional code value having the highest similarity with the second two-dimensional code value among the first two-dimensional code values sent by the television set.
优选地,所述当第二二维码值与第一二维码值中每一字符所对应的ASCII码差值中存在非零时,确定第二二维码值中存在干扰并将第二二维码值替换为电视机所发送的第一二维码值中与第二二维码值相似度最高的第一二维码值包括:Preferably, when there is non-zero in the ASCII code difference value corresponding to each character in the second two-dimensional code value and the first two-dimensional code value, determining that there is interference in the second two-dimensional code value and the second The second two-dimensional code value is replaced by the first two-dimensional code value of the first two-dimensional code value sent by the television with the highest similarity to the second two-dimensional code value, including:
当第二二维码值与第一二维码值中每一字符所对应的ASCII码差值中存在非零时,确定第二二维码值中存在干扰;Determining that there is interference in the second two-dimensional code value when there is non-zero in the ASCII code difference value corresponding to each character in the first two-dimensional code value;
在第二二维码值与电视机所发送的每一第一二维码值依次进行ASCII码差值比对校验后,统计每一次ASCII码差值比对校验中每一字符所对应的ASCII码差值为零的个数与第二二维码值中字符总个数的比值,以确定第二二维码值与对应进行比对校验的第一二维码值的相似度;After the second two-dimensional code value and each first two-dimensional code value sent by the television set are sequentially compared with the ASCII code difference value, each ASCII code difference value is compared with each character in the checksum. The ratio of the number of zeros of the ASCII code difference to the total number of characters in the second two-dimensional code value to determine the similarity between the second two-dimensional code value and the first two-dimensional code value corresponding to the comparison check ;
将第二二维码值替换为电视机所发送的第一二维码值中与第二二维码值相似度最高的第一二维码值。The second two-dimensional code value is replaced with a first two-dimensional code value having the highest similarity with the second two-dimensional code value among the first two-dimensional code values sent by the television.
为实现上述目的,本发明还提供一种去除二维码扫描干扰的处理方法,所述去除二维码扫描干扰的处理方法包括:To achieve the above object, the present invention further provides a processing method for removing scanning interference of a two-dimensional code, and the processing method for removing scanning interference of a two-dimensional code includes:
当若干二维码在电视机屏幕上显示时,电视机解码当前电视机屏幕上所显示的所有二维码,得到相应的第一二维码值并将部分或所有的第一二维码值发送至移动终端;When a plurality of two-dimensional codes are displayed on the television screen, the television decodes all the two-dimensional codes displayed on the current television screen to obtain corresponding first two-dimensional code values and some or all of the first two-dimensional code values. Send to the mobile terminal;
当移动终端扫描电视机屏幕上所显示的二维码时,移动终端解码所扫描到的二维码并得到相应的第二二维码值;或,When the mobile terminal scans the two-dimensional code displayed on the television screen, the mobile terminal decodes the scanned two-dimensional code and obtains a corresponding second two-dimensional code value; or
当移动终端扫描电视机屏幕上所显示的二维码时,移动终端将扫描到的二维码发送至云端服务器进行解码并接收云端服务器所返回的第二二维码值;When the mobile terminal scans the two-dimensional code displayed on the screen of the television, the mobile terminal sends the scanned two-dimensional code to the cloud server for decoding and receives the second two-dimensional code value returned by the cloud server;
移动终端根据预置的二维码比对校验规则,将第二二维码值与电视机所发送的第一二维码值进行比对校验,并根据比对校验结果进行相应处理以去除二维码扫描干扰,其中,当比对校验结果为存在二维码扫描干扰时,确定与第二二维码值相似度最高的第一二维码值以替换该第二二维码值。The mobile terminal compares the second two-dimensional code value with the first two-dimensional code value sent by the television according to the preset two-dimensional code comparison check rule, and performs corresponding processing according to the comparison check result. And removing the two-dimensional code scanning interference, wherein when the comparison verification result is that the two-dimensional code scanning interference exists, determining a first two-dimensional code value having the highest similarity with the second two-dimensional code value to replace the second two-dimensional code value Code value.
优选地,所述当若干二维码在电视机屏幕上显示时,电视机解码当前电视机屏幕上所显示的所有二维码,得到相应的第一二维码值并将部分第一二维码值发送至移动终端包括:Preferably, when the two-dimensional code is displayed on the television screen, the television decodes all the two-dimensional codes displayed on the current television screen to obtain a corresponding first two-dimensional code value and a part of the first two-dimensional code. Sending the code value to the mobile terminal includes:
当若干二维码在电视机屏幕上显示时,电视机解码当前电视机屏幕上所显示的所有二维码,得到相应的第一二维码值;When a plurality of two-dimensional codes are displayed on the television screen, the television decodes all the two-dimensional codes displayed on the current television screen to obtain a corresponding first two-dimensional code value;
电视机根据设定的二维码值筛选规则,将所有的第一二维码值进行相应筛选并将筛选后所得到的部分第一二维码值发送至移动终端。The television screen filters the first two-dimensional code values according to the set two-dimensional code value screening rule, and sends some of the first two-dimensional code values obtained after the screening to the mobile terminal.
优选地,所述电视机根据设定的二维码值筛选规则,将所有的第一二维码值进行相应筛选并将筛选后所得到的部分第一二维码值发送至移动终端包括:Preferably, the television set according to the set two-dimensional code value screening rule, and correspondingly screening all the first two-dimensional code values and transmitting the obtained partial first two-dimensional code values to the mobile terminal comprises:
电视机根据ASCII码对照表,从所有第一二维码值中筛选出与设定的字符串相对应的第一二维码值并发送至移动终端。The television screen selects a first two-dimensional code value corresponding to the set character string from all the first two-dimensional code values according to the ASCII code comparison table and transmits the same to the mobile terminal.
优选地,所述移动终端根据预置的二维码比对校验规则,将第二二维码值与电视机所发送的第一二维码值进行比对校验,并根据比对校验结果进行相应处理以去除二维码扫描干扰包括:Preferably, the mobile terminal compares the second two-dimensional code value with the first two-dimensional code value sent by the television according to the preset two-dimensional code comparison check rule, and compares the data according to the comparison. The test results are processed accordingly to remove the QR code scan interference including:
移动终端根据ASCII码对照表,将第二二维码值中每一字符所对应的ASCII码值与电视机所发送的第一二维码值中每一字符所对应的ASCII码值依序对应进行差值运算;The mobile terminal sequentially corresponds the ASCII code value corresponding to each character in the second two-dimensional code value to the ASCII code value corresponding to each character in the first two-dimensional code value sent by the television according to the ASCII code comparison table. Perform a difference operation;
当第二二维码值与第一二维码值中每一字符所对应的ASCII码差值均为零时,确定第二二维码值中不存在干扰,退出比对校验;When the difference between the second two-dimensional code value and the ASCII code corresponding to each character in the first two-dimensional code value is zero, it is determined that there is no interference in the second two-dimensional code value, and the comparison check is exited;
当第二二维码值与第一二维码值中每一字符所对应的ASCII码差值中存在非零时,确定第二二维码值中存在干扰并将第二二维码值替换为电视机所发送的第一二维码值中与第二二维码值相似度最高的第一二维码值。Determining that there is interference in the second two-dimensional code value and replacing the second two-dimensional code value when there is non-zero in the ASCII code difference value corresponding to each character in the second two-dimensional code value and the first two-dimensional code value The first two-dimensional code value having the highest similarity with the second two-dimensional code value among the first two-dimensional code values sent by the television set.
优选地,所述当第二二维码值与第一二维码值中每一字符所对应的ASCII码差值中存在非零时,确定第二二维码值中存在干扰并将第二二维码值替换为电视机所发送的第一二维码值中与第二二维码值相似度最高的第一二维码值包括:Preferably, when there is non-zero in the ASCII code difference value corresponding to each character in the second two-dimensional code value and the first two-dimensional code value, determining that there is interference in the second two-dimensional code value and the second The second two-dimensional code value is replaced by the first two-dimensional code value of the first two-dimensional code value sent by the television with the highest similarity to the second two-dimensional code value, including:
当第二二维码值与第一二维码值中每一字符所对应的ASCII码差值中存在非零时,确定第二二维码值中存在干扰;Determining that there is interference in the second two-dimensional code value when there is non-zero in the ASCII code difference value corresponding to each character in the first two-dimensional code value;
在第二二维码值与电视机所发送的每一第一二维码值依次进行ASCII码差值比对校验后,统计每一次ASCII码差值比对校验中每一字符所对应的ASCII码差值为零的个数与第二二维码值中字符总个数的比值,以确定第二二维码值与对应进行比对校验的第一二维码值的相似度;After the second two-dimensional code value and each first two-dimensional code value sent by the television set are sequentially compared with the ASCII code difference value, each ASCII code difference value is compared with each character in the checksum. The ratio of the number of zeros of the ASCII code difference to the total number of characters in the second two-dimensional code value to determine the similarity between the second two-dimensional code value and the first two-dimensional code value corresponding to the comparison check ;
将第二二维码值替换为电视机所发送的第一二维码值中与第二二维码值相似度最高的第一二维码值。The second two-dimensional code value is replaced with a first two-dimensional code value having the highest similarity with the second two-dimensional code value among the first two-dimensional code values sent by the television.
进一步地,为实现上述目的,本发明还提供一种去除二维码扫描干扰的处理系统,所述去除二维码扫描干扰的处理系统至少包括电视机、移动终端或者还包括云端服务器;Further, in order to achieve the above object, the present invention further provides a processing system for removing two-dimensional code scanning interference, and the processing system for removing two-dimensional code scanning interference includes at least a television set, a mobile terminal, or a cloud server;
所述电视机,用于当若干二维码在所述电视机屏幕上显示时,解码当前所述电视机屏幕上所显示的所有二维码,得到相应的第一二维码值并将部分或所有的第一二维码值发送至所述移动终端;The television set is configured to decode all two-dimensional codes displayed on the current television screen when a plurality of two-dimensional codes are displayed on the television screen, to obtain a corresponding first two-dimensional code value and to partially Or all of the first two-dimensional code values are sent to the mobile terminal;
所述移动终端,用于当扫描所述电视机屏幕上所显示的二维码时,解码所扫描到的二维码并得到相应的第二二维码值;或,The mobile terminal is configured to decode the scanned two-dimensional code and obtain a corresponding second two-dimensional code value when scanning the two-dimensional code displayed on the television screen; or
所述移动终端,还用于当扫描所述电视机屏幕上所显示的二维码时,将扫描到的二维码发送至所述云端服务器进行解码并接收所述云端服务器所返回的第二二维码值,其中,所述云端服务器用于解码所述移动终端所发送的二维码并返回第二二维码值;The mobile terminal is further configured to: when scanning the two-dimensional code displayed on the screen of the television, send the scanned two-dimensional code to the cloud server for decoding and receive the second returned by the cloud server a two-dimensional code value, wherein the cloud server is configured to decode a two-dimensional code sent by the mobile terminal and return a second two-dimensional code value;
所述移动终端,还用于根据预置的二维码比对校验规则,将第二二维码值与所述电视机所发送的第一二维码值进行比对校验,并根据比对校验结果进行相应处理以去除二维码扫描干扰,其中,当比对校验结果为存在二维码扫描干扰时,确定与第二二维码值相似度最高的第一二维码值以替换该第二二维码值。The mobile terminal is further configured to compare the second two-dimensional code value with the first two-dimensional code value sent by the television according to the preset two-dimensional code comparison check rule, and according to The comparison check result is correspondingly processed to remove the two-dimensional code scan interference, wherein when the comparison check result is that the two-dimensional code scan interference exists, the first two-dimensional code having the highest similarity with the second two-dimensional code value is determined. A value to replace the second two-dimensional code value.
本发明通过电视机解码电视机屏幕上所显示的二维码,从而获得电视机屏幕上所显示的二维码所对应的正确的二维码值。当移动终端扫描二维码时,为避免干扰因素的影响,因此,需要对每一次移动终端所扫描到的二维码所对应的二维码值进行校验,具体以电视机所解码的二维码作为校验时的比对基准,并根据比对校验结果进行相应处理以去除二维码扫描干扰。通过本发明解决了二维码扫描时存在干扰因素影响而引起二维码识别错误的问题,降低了二维码扫描的错误率,同时也提高了用户使用体验。The invention decodes the two-dimensional code displayed on the screen of the television through the television, thereby obtaining the correct two-dimensional code value corresponding to the two-dimensional code displayed on the television screen. When the mobile terminal scans the two-dimensional code, in order to avoid the influence of the interference factor, it is necessary to check the two-dimensional code value corresponding to the two-dimensional code scanned by each mobile terminal, specifically the second decoded by the television set. The dimension code is used as a comparison benchmark at the time of verification, and correspondingly processed according to the comparison verification result to remove the two-dimensional code scanning interference. The invention solves the problem that the two-dimensional code recognition error is caused by the influence of the interference factor when the two-dimensional code is scanned, reduces the error rate of the two-dimensional code scanning, and improves the user experience.
附图说明DRAWINGS
图1为本发明去除二维码扫描干扰的处理方法一实施例的流程示意图;1 is a schematic flow chart of an embodiment of a method for processing a two-dimensional code scanning interference according to the present invention;
图2为图1中步骤S10的细化流程示意图;2 is a schematic diagram of a refinement process of step S10 in FIG. 1;
图3为图1中步骤S30的细化流程示意图;3 is a schematic diagram of a refinement process of step S30 in FIG. 1;
图4为图3中步骤S303的细化流程示意图;4 is a schematic diagram of a refinement process of step S303 in FIG. 3;
图5为本发明去除二维码扫描干扰的处理系统一实施例的功能模块示意图;5 is a schematic diagram of functional blocks of an embodiment of a processing system for removing scanning interference of a two-dimensional code according to the present invention;
图6为本发明去除二维码扫描干扰的处理系统另一实施例的功能模块示意图;6 is a schematic diagram of functional modules of another embodiment of a processing system for removing two-dimensional code scanning interference according to the present invention;
图7为图5中电视机的细化功能模块示意图。FIG. 7 is a schematic diagram of a refinement function module of the television set of FIG. 5.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional features, and advantages of the present invention will be further described in conjunction with the embodiments.
具体实施方式detailed description
应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
参照图1,图1为本发明去除二维码扫描干扰的处理方法一实施例的流程示意图。本实施例中,所述去除二维码扫描干扰的处理方法包括:Referring to FIG. 1, FIG. 1 is a schematic flowchart of an embodiment of a method for processing a two-dimensional code scanning interference according to an embodiment of the present invention. In this embodiment, the processing method for removing the scanning error of the two-dimensional code includes:
步骤S10,当若干二维码在电视机屏幕上显示时,电视机解码当前电视机屏幕上所显示的所有二维码,得到相应的第一二维码值并将部分或所有的第一二维码值发送至移动终端;Step S10, when a plurality of two-dimensional codes are displayed on the television screen, the television decodes all the two-dimensional codes displayed on the current television screen, and obtains corresponding first two-dimensional code values and some or all of the first two The dimension code value is sent to the mobile terminal;
本实施例中,为获得电视机屏幕上显示的二维码的正确的二维码值,当若干二维码在电视机屏幕上显示时,直接由电视机自身对当前电视机屏幕上所显示的所有二维码进行解码,从而避免通过扫描方式获取存在干扰的二维码进而使得解码后可能存在数据错误的情况的发生。In this embodiment, in order to obtain the correct two-dimensional code value of the two-dimensional code displayed on the screen of the television, when a plurality of two-dimensional codes are displayed on the television screen, the television itself directly displays on the current television screen. All the two-dimensional codes are decoded, so as to avoid the occurrence of a data error after decoding by acquiring the two-dimensional code with interference.
此外,本实施例中,鉴于用户使用移动终端(比如带摄像头及屏幕的手机)扫描二维码是用于在移动终端屏幕上进行相应操作,比如视频聊天或进入到相关网站等,因此,本实施例中将去除二维码扫描干扰的处理主要放置在移动终端上进行。因而当电视机通过解码得到正确的二维码值后,需要将得到的第一二维码值发送至移动终端。In addition, in this embodiment, in view of the fact that the user scans the two-dimensional code by using a mobile terminal (such as a mobile phone with a camera and a screen) for performing corresponding operations on the screen of the mobile terminal, such as video chat or entering a related website, etc., In the embodiment, the process of removing the two-dimensional code scanning interference is mainly performed on the mobile terminal. Therefore, after the television set obtains the correct two-dimensional code value by decoding, the obtained first two-dimensional code value needs to be sent to the mobile terminal.
需要说明的是,本实施例中对于发送第一二维码值的方式不限,具体根据实际需要进行设置。比如由电视机在解码二维码后主动发送给移动终端,或者由移动终端发送获取请求后再发送给移动终端。It should be noted that, in this embodiment, the manner of transmitting the first two-dimensional code value is not limited, and is specifically set according to actual needs. For example, the television set is actively sent to the mobile terminal after decoding the two-dimensional code, or is sent by the mobile terminal to the mobile terminal after sending the acquisition request.
此外,由于电视机屏幕上可能会显示多个二维码的情况,同时,不同的二维码值所代表的含义并不相同,比如,在电视机屏幕上显示的多个二维码中有可能某些二维码值所对应的信息并不是用户所需要的,也即有可能存在并不是用户所需要扫描的二维码,因而该类二维码并不一定需要发送给移动终端,因此,本实施例中,对于发送的第一二维码值的数量不限,可以是满足相关条件的部分第一二维码值,也可以是全部二维码值。In addition, since a plurality of two-dimensional codes may be displayed on the screen of the television, different two-dimensional code values represent different meanings, for example, among a plurality of two-dimensional codes displayed on the television screen. It is possible that the information corresponding to some two-dimensional code values is not required by the user, that is, there may be a two-dimensional code that is not required to be scanned by the user, and thus the two-dimensional code does not necessarily need to be sent to the mobile terminal, so In this embodiment, the number of the first two-dimensional code values to be transmitted is not limited, and may be a partial first two-dimensional code value that satisfies the relevant condition, or may be all two-dimensional code values.
步骤S20,当移动终端扫描电视机屏幕上所显示的二维码时,移动终端解码所扫描到的二维码并得到相应的第二二维码值;或,当移动终端扫描电视机屏幕上所显示的二维码时,移动终端将扫描到的二维码发送至云端服务器进行解码并接收云端服务器所返回的第二二维码值;Step S20, when the mobile terminal scans the two-dimensional code displayed on the television screen, the mobile terminal decodes the scanned two-dimensional code and obtains a corresponding second two-dimensional code value; or, when the mobile terminal scans the television screen When the two-dimensional code is displayed, the mobile terminal sends the scanned two-dimensional code to the cloud server for decoding and receives the second two-dimensional code value returned by the cloud server;
本实施例中,当移动终端扫描电视机屏幕上所显示的二维码时,移动终端所扫描到的二维码既可以由移动终端自身进行解码得到第二二维码值,也可以由移动终端将扫描到的二维码发送至云端服务器后由云端服务器进行解码,同时接收云端服务器解码后所返回的第二二维码值。移动终端所扫描的二维码的具体解码方式根据实际需要进行设置。考虑到二维码的复杂性及解码效率,本实施例中优选由云端服务器进行解码。In this embodiment, when the mobile terminal scans the two-dimensional code displayed on the screen of the television, the two-dimensional code scanned by the mobile terminal may be decoded by the mobile terminal itself to obtain the second two-dimensional code value, or may be moved by the mobile terminal. After the terminal sends the scanned QR code to the cloud server, it is decoded by the cloud server, and receives the second two-dimensional code value returned by the cloud server after decoding. The specific decoding mode of the two-dimensional code scanned by the mobile terminal is set according to actual needs. Considering the complexity of the two-dimensional code and the decoding efficiency, it is preferable to perform decoding by the cloud server in this embodiment.
步骤S30,移动终端根据预置的二维码比对校验规则,将第二二维码值与电视机所发送的第一二维码值进行比对校验,并根据比对校验结果进行相应处理以去除二维码扫描干扰,其中,当比对校验结果为存在二维码扫描干扰时,确定与第二二维码值相似度最高的第一二维码值以替换该第二二维码值。Step S30, the mobile terminal compares the second two-dimensional code value with the first two-dimensional code value sent by the television according to the preset two-dimensional code comparison check rule, and compares the verification result according to the comparison. Performing corresponding processing to remove the two-dimensional code scanning interference, wherein when the comparison verification result is that the two-dimensional code scanning interference exists, determining a first two-dimensional code value having the highest similarity with the second two-dimensional code value to replace the first Two-dimensional code value.
本实施例中,为准确快速去除二维码扫描干扰,因此,移动终端通过扫描后解码得到的第二二维码值将以电视机解码的第一二维码值为比对基准进行比对校验,从而确定第二二维码中是否存在扫描干扰并根据比对结果进行相应的二维码扫描干扰去除处理,比如比对结果为不存在扫描干扰,则可以直接运行二维码所对应的网址;而若比对结果为存在扫描干扰,则需要进行二维码扫描干扰的去除处理,本实施例中,对于二维码扫描干扰的去除处理方式不限,具体根据实际需要进行设置,比如通过确定与第二二维码值相似度最高的第一二维码值以用于替换该第二二维码值。In this embodiment, in order to accurately and quickly remove the two-dimensional code scanning interference, the second two-dimensional code value obtained by the mobile terminal after being scanned and decoded is compared with the first two-dimensional code value decoded by the television set. Checking to determine whether there is scanning interference in the second two-dimensional code and performing corresponding two-dimensional code scanning interference removal processing according to the comparison result. For example, if the comparison result is that there is no scanning interference, the two-dimensional code can be directly operated. If the result of the comparison is that there is scanning interference, the removal processing of the two-dimensional code scanning interference is required. In this embodiment, the method for removing the two-dimensional code scanning interference is not limited, and is specifically set according to actual needs. For example, by determining a first two-dimensional code value having the highest similarity with the second two-dimensional code value for replacing the second two-dimensional code value.
本实施例中,对于二维码比对校验的规则不限,具体根据实际需要进行设置。比如,将移动终端扫描解码的二维码依次与电视机所发送多个二维码进行比对,具体可以是按从左到右的次序一个字符一个字符的比对,也可以是先获取每一个二维码的唯一标识,通过比较第一二维码的标识与第二二维码的标识,从而在多个第一二维码中确定与第二二维码具有相同标识的第一二维码,然后再与第二二维码进行比较。In this embodiment, the rules for the two-dimensional code comparison check are not limited, and are specifically set according to actual needs. For example, the two-dimensional code scanned and decoded by the mobile terminal is sequentially compared with a plurality of two-dimensional codes sent by the television. Specifically, the comparison may be one character or one character in the order from left to right, or may be obtained first. a unique identifier of a two-dimensional code, by comparing the identifier of the first two-dimensional code with the identifier of the second two-dimensional code, thereby determining, in the plurality of first two-dimensional codes, the first two having the same identifier as the second two-dimensional code The dimension code is then compared to the second QR code.
此外,需要进一步说明的是,本实施例中,进行去除二维码扫描干扰处理的前提条件是移动终端所扫描的二维码并没有被完全干扰或损耗,也即需要具体基本的关键信息,比如具备三个定位点以便于拍照等。通常来说,电视机上所显示的二维码并不会出现太多的干扰或损坏,同时,用户使用移动终端扫描时也会进行初步的甄别,因此,通常并不会出现无法识别的二维码。In addition, it should be further noted that, in this embodiment, the precondition for performing the removal of the two-dimensional code scanning interference processing is that the two-dimensional code scanned by the mobile terminal is not completely interfered or worn, that is, specific basic key information is required. For example, there are three positioning points for taking pictures and so on. Generally speaking, the two-dimensional code displayed on the TV does not cause too much interference or damage. At the same time, the user also performs preliminary screening when scanning with the mobile terminal. Therefore, there is usually no unrecognizable two-dimensional image. code.
本实施例中,通过电视机解码电视机屏幕上所显示的二维码,从而获得电视机屏幕上所显示的二维码所对应的正确的二维码值。当移动终端扫描二维码时,为避免干扰因素的影响,因此,需要对每一次移动终端所扫描到的二维码所对应的二维码值进行校验,具体以电视机所解码的二维码作为校验时的比对基准,并根据比对校验结果进行二维码扫描干扰的去除处理。通过本发明解决了二维码扫描时存在干扰因素影响而引起二维码识别错误的问题,降低了二维码扫描的错误率,同时也提高了用户使用体验。In this embodiment, the two-dimensional code displayed on the screen of the television is decoded by the television, thereby obtaining the correct two-dimensional code value corresponding to the two-dimensional code displayed on the television screen. When the mobile terminal scans the two-dimensional code, in order to avoid the influence of the interference factor, it is necessary to check the two-dimensional code value corresponding to the two-dimensional code scanned by each mobile terminal, specifically the second decoded by the television set. The dimension code is used as a comparison benchmark at the time of verification, and the two-dimensional code scanning interference removal processing is performed according to the comparison verification result. The invention solves the problem that the two-dimensional code recognition error is caused by the influence of the interference factor when the two-dimensional code is scanned, reduces the error rate of the two-dimensional code scanning, and improves the user experience.
参照图2,图2为图1中步骤S10的细化流程示意图。基于上述实施例,本实施例中,上述步骤S10包括:Referring to FIG. 2, FIG. 2 is a schematic diagram of the refinement process of step S10 in FIG. Based on the above embodiment, in the embodiment, the foregoing step S10 includes:
步骤S101,当若干二维码在电视机屏幕上显示时,电视机解码当前电视机屏幕上所显示的所有二维码,得到相应的第一二维码值;Step S101, when a plurality of two-dimensional codes are displayed on the television screen, the television decodes all the two-dimensional codes displayed on the current television screen to obtain a corresponding first two-dimensional code value;
本实施例中,为准确获得电视机屏幕上所显示的二维码所对应的二维码值(也即第一二维码),因此需要避免采用扫描方式获取二维码图像后再解码,因此,本实施例中,具体由电视机自身进行解码,也即电视机自身在显示二维码的同时,也完成对所显示的所有二维码的解码。需要说明的是,对于电视机屏幕上所显示的同一个二维码值,尽管电视机解码与移动终端扫描解码其最终解码后所得到的二维码值相同,但二者的解码方式却不一定相同的。此外,由于电视机并不确定用户会扫描哪一个二维码,因此,电视机需要解码电视机屏幕上所显示的所有二维码,同时,通过解码后得到相应的第一二维码。In this embodiment, in order to accurately obtain the two-dimensional code value (that is, the first two-dimensional code) corresponding to the two-dimensional code displayed on the screen of the television, it is necessary to avoid acquiring the two-dimensional code image by using the scanning method, and then decoding. Therefore, in this embodiment, the television itself performs decoding, that is, the television itself completes decoding of all the displayed two-dimensional codes while displaying the two-dimensional code. It should be noted that, for the same two-dimensional code value displayed on the screen of the television, although the decoding of the television is the same as the two-dimensional code value obtained after the final decoding of the mobile terminal scanning decoding, the decoding manner of the two is not Must be the same. In addition, since the television does not determine which two-dimensional code the user will scan, the television needs to decode all the two-dimensional codes displayed on the television screen, and at the same time, obtain the corresponding first two-dimensional code by decoding.
步骤S102,电视机根据设定的二维码值筛选规则,将所有的第一二维码值进行相应筛选并将筛选后所得到的部分第一二维码值发送至移动终端。Step S102: The television set, according to the set two-dimensional code value screening rule, performs corresponding screening on all the first two-dimensional code values, and sends a part of the first two-dimensional code values obtained after the screening to the mobile terminal.
考虑到二维码的应用用途较广,若将所有二维码都发送至移动终端,不仅不具有针对性,同时也会大大加重二维码值比对校验的效率,因此,本实施例中,可通过设置二维码值筛选规则,对电视机解码的所有第一二维码值进行相应筛选,进而能够有针对性的发送一些用户很有可能会扫描的二维码的二维码值给到移动终端进行存储。需要进一步说明的是,对于二维码值筛选规则的设置,可以由电视机默认设置,也可以由用户根据需要进行设置。Considering that the application of the two-dimensional code is widely used, if all the two-dimensional codes are transmitted to the mobile terminal, not only is it not targeted, but also the efficiency of the two-dimensional code value comparison check is greatly increased. Therefore, this embodiment The two-dimensional code value filtering rule can be set to filter all the first two-dimensional code values decoded by the television, and then the two-dimensional code of the two-dimensional code that the user is likely to scan can be sent in a targeted manner. The value is given to the mobile terminal for storage. It should be further noted that the setting of the two-dimensional code value screening rule may be set by the TV by default, or may be set by the user as needed.
本实施例中,在电视机向移动终端发送第一二维码值时,为更具有针对性地发送,同时也提高移动终端的二维码值比对校验效率,本实施例中优选采用设定的筛选规则,将部分第一二维码值发送至移动终端。In this embodiment, when the television sends the first two-dimensional code value to the mobile terminal, it is more specifically transmitted, and the two-dimensional code value comparison efficiency of the mobile terminal is also improved, which is preferably used in this embodiment. The set screening rule sends a part of the first two-dimensional code value to the mobile terminal.
进一步优选地,电视机根据ASCII码对照表,从所有第一二维码值中筛选出与设定的字符串相对应的第一二维码值并发送至移动终端。例如,用户对网页类型的二维码比较感兴趣,因此,可以将“www”或者“Http”设置为筛选字符,具体可根据ASCII码对照表完成上述筛选过程。另外,需要说明的是,由于现有日常应用中采用ASCII码已经可以完成基本的字符编码,比如数字、字母、符号等,因此,优选采用ASCII码对照表完成本实施中设定字符串的筛选过程。Further preferably, the television sets a first two-dimensional code value corresponding to the set character string from all the first two-dimensional code values according to the ASCII code comparison table and transmits the same to the mobile terminal. For example, the user is interested in the two-dimensional code of the webpage type. Therefore, "www" or "Http" can be set as a filter character, and the above screening process can be completed according to the ASCII code comparison table. In addition, it should be noted that since the basic character encoding, such as numbers, letters, symbols, etc., can be completed by using ASCII codes in existing daily applications, it is preferable to use the ASCII code comparison table to complete the screening of the set character string in this implementation. process.
参照图3,图3为图1中步骤S30的细化流程示意图。基于上述实施例,本实施例中,上述步骤S30包括:Referring to FIG. 3, FIG. 3 is a schematic diagram of the refinement process of step S30 in FIG. Based on the above embodiment, in the embodiment, the foregoing step S30 includes:
步骤S301,移动终端根据ASCII码对照表,将第二二维码值中每一字符所对应的ASCII码值与电视机所发送的第一二维码值中每一字符所对应的ASCII码值依序对应进行差值运算;Step S301, the mobile terminal compares the ASCII code value corresponding to each character in the second two-dimensional code value with the ASCII code value corresponding to each character in the first two-dimensional code value sent by the television set according to the ASCII code comparison table. Performing difference calculations in sequence;
本实施例中,通过ASCII码对照表可以将二维码值中的字符转化为相应的ASCII码值(比如转化为十进制数字),进而可进行差值运算。In this embodiment, the characters in the two-dimensional code value can be converted into corresponding ASCII code values (for example, converted into decimal numbers) through the ASCII code comparison table, and thus the difference operation can be performed.
例如,电视机发送了三个第一二维码值到移动终端:www.aac.com,www.cdc.com,www.aad.com;移动终端所扫描的解码后的第二二维码值为:www.aad.com,则将www.aad.com依次与www.aac.com,www.cdc.com,www.aad.com中每一字符所对应的ASCII码值依序对应进行差值运算。For example, the television transmits three first two-dimensional code values to the mobile terminal: www.aac.com, www.cdc.com, www.aad.com; the decoded second two-dimensional code value scanned by the mobile terminal For: www.aad.com, the www.aad.com will be sequentially compared with the ASCII code value corresponding to each character in www.aac.com, www.cdc.com, www.aad.com. Operation.
步骤S302,当第二二维码值与第一二维码值中每一字符所对应的ASCII码差值均为零时,确定第二二维码值中不存在干扰,退出比对校验;Step S302, when the difference between the second two-dimensional code value and the ASCII code corresponding to each character in the first two-dimensional code value is zero, it is determined that there is no interference in the second two-dimensional code value, and the comparison check is exited. ;
例如,第二二维码值www.aad.com与第一二维码值www.aac.com,www.cdc.com,www.aad.com 中的www.aad.com的每一字符所对应的ASCII码差值均为零,则确定第二二维码值中不存在干扰,退出比对校验,若后续还存在未进行差值运算的其他第一二维码,则不再继续进行比对。For example, the second two-dimensional code value www.aad.com and the first two-dimensional code value www.aac.com, www.cdc.com, www.aad.com The ASCII code difference corresponding to each character of www.aad.com is zero, then it is determined that there is no interference in the second two-dimensional code value, and the comparison check is exited, if there is still no difference operation after the subsequent The other first two-dimensional code will not continue the comparison.
步骤S303,当第二二维码值与第一二维码值中每一字符所对应的ASCII码差值中存在非零时,确定第二二维码值中存在干扰并将第二二维码值替换为电视机所发送的第一二维码值中与第二二维码值相似度最高的第一二维码值。Step S303, when there is non-zero in the ASCII code difference value corresponding to each character in the second two-dimensional code value and the first two-dimensional code value, determining that there is interference in the second two-dimensional code value and the second two-dimensional The code value is replaced with a first two-dimensional code value having the highest similarity with the second two-dimensional code value among the first two-dimensional code values sent by the television.
例如,第二二维码值www.aadck.com与第一二维码值www.aacck.com,www.cdc.com,www.acd.com的差值比对过程中,第二二维码值与所有第一二维码值的差值都不全为零,因此,确定第二二维码值中存在干扰,因而需要替换该第二二维码值,具体优选将第二二维码值替换为电视机所发送的第一二维码值中与第二二维码值相似度最高的第一二维码值。比如,第一二维码值中的www.aacck.co与第二二维码值www.aadck.com相似度最高。本实施例中,对于相似度的计算方式不限,具体根据实际需要进行设置。For example, the second two-dimensional code value www.aadck.com and the first two-dimensional code value www.aacck.com, www.cdc.com, www.acd.com difference comparison process, the second two-dimensional code The difference between the value and all the first two-dimensional code values is not all zero. Therefore, it is determined that there is interference in the second two-dimensional code value, and thus the second two-dimensional code value needs to be replaced, and specifically, the second two-dimensional code value is preferably used. And replacing with the first two-dimensional code value that has the highest similarity with the second two-dimensional code value among the first two-dimensional code values sent by the television. For example, www.aacck.co in the first two-dimensional code value has the highest similarity to the second two-dimensional code value www.aadck.com. In this embodiment, the manner of calculating the similarity is not limited, and the setting is specifically performed according to actual needs.
本实施例中,上述步骤S302与S303之间的先后顺序不限。一般经过筛选后电视机所发送的第一二维码值的数量会更少,因此,将第二二维码值与电视机所发送的所有第一二维码值进行比对校验并不会对比对效率造成太大影响,同时,本发明实施例中也能够确保移动终端所扫描的二维码所对应的第二二维码必定包含在电视机所发送的第一二维码值中,因此,通过相似度比较即可唯一确定第二二维码值对应的二维码的真正二维码值。In this embodiment, the sequence between the foregoing steps S302 and S303 is not limited. Generally, the number of first two-dimensional code values sent by the television set after screening is less. Therefore, the second two-dimensional code value is compared with all the first two-dimensional code values sent by the television. In contrast, in the embodiment of the present invention, the second two-dimensional code corresponding to the two-dimensional code scanned by the mobile terminal must be included in the first two-dimensional code value sent by the television set. Therefore, the true two-dimensional code value of the two-dimensional code corresponding to the second two-dimensional code value can be uniquely determined by the similarity comparison.
此外,本发明中也可以由电视机对每一个二维码都打上唯一标识符用以区分其他二维码,则对应解码后的二维码值也具备该唯一标识符。当移动终端在扫描电视机屏幕上的二维码并解码后,即可根据该二维码值所对应的唯一标识符,直接找到与电视机所发送的所有二维码值中相对应的二维码值。In addition, in the present invention, each of the two-dimensional codes may be given a unique identifier by the television to distinguish the other two-dimensional codes, and the corresponding two-dimensional code values are also provided with the unique identifier. After the mobile terminal scans the two-dimensional code on the television screen and decodes it, it can directly find the corresponding two of the two-dimensional code values sent by the television according to the unique identifier corresponding to the two-dimensional code value. Dimension code value.
参照图4,图4为图3中步骤S303的细化流程示意图。基于上述实施例,本实施例中,上述步骤S303包括:Referring to FIG. 4, FIG. 4 is a schematic diagram of the refinement process of step S303 in FIG. Based on the foregoing embodiment, in the embodiment, the foregoing step S303 includes:
步骤S3031,当第二二维码值与第一二维码值中每一字符所对应的ASCII码差值中存在非零时,确定第二二维码值中存在干扰;Step S3031: When there is non-zero in the ASCII code difference value corresponding to each character in the second two-dimensional code value and the first two-dimensional code value, determining that there is interference in the second two-dimensional code value;
本实施例中,当第二二维码值与第一二维码值中每一字符所对应的ASCII码差值中存在非零时,也即二者比对的字符不相同,则可确定第二二维码值中存在干扰。In this embodiment, when there is non-zero in the ASCII code difference value corresponding to each character in the second two-dimensional code value and the first two-dimensional code value, that is, the characters of the two pairs are not the same, then it may be determined. There is interference in the second two-dimensional code value.
步骤S3032,在第二二维码值与电视机所发送的每一第一二维码值依次进行ASCII码差值比对校验后,统计每一次ASCII码差值比对校验中每一字符所对应的ASCII码差值为零的个数与第二二维码值中字符总个数的比值,以确定第二二维码值与对应进行比对校验的第一二维码值的相似度;Step S3032: After the second two-dimensional code value is sequentially compared with each first two-dimensional code value sent by the television, the ASCII code difference comparison check is performed, and each ASCII code difference comparison check is performed. The ratio of the number of zeros corresponding to the ASCII code corresponding to the character to the total number of characters in the second two-dimensional code value to determine the second two-dimensional code value and the first two-dimensional code value corresponding to the comparison check Similarity
本实施例中,由于并不确定第二二维码值中的哪一个或多个字符受到了干扰,因此,优选采用统计每一次ASCII码差值比对校验中每一字符所对应的ASCII码差值为零的个数与第二二维码值中字符总个数的比值来确定第二二维码值与对应进行比对校验的第一二维码值的相似度。In this embodiment, since it is not determined which one or more characters of the second two-dimensional code value are interfered, it is preferable to use the ASCII corresponding to each character of the ASCII code difference comparison check. The ratio of the number of zero code values to the total number of characters in the second two-dimensional code value determines the similarity between the second two-dimensional code value and the first two-dimensional code value corresponding to the comparison check.
例如,第二二维码值www.aadck.com与第一二维码值www.aacck.com,www.cdc.com,www.acd.com的差值比对过程中,第二二维码值与所有第一二维码值的差值都不全为零,其中,第一二维码值中的www.aacck.co与第二二维码值www.aadck.com的差值比对为零的个数与总字符个数之间的比重最高,因此二者之间相似度也最高,也即该相似度最高的第一二维码值为该第二二维码值的正确二维码值。For example, the second two-dimensional code value www.aadck.com and the first two-dimensional code value www.aacck.com, www.cdc.com, www.acd.com difference comparison process, the second two-dimensional code The difference between the value and all the first two-dimensional code values is not all zero, wherein the difference between the www.aacck.co and the second two-dimensional code value www.aadck.com in the first two-dimensional code value is The ratio between the number of zeros and the total number of characters is the highest, so the similarity between the two is also the highest, that is, the first two-dimensional code with the highest similarity is the correct two-dimensional code value. Code value.
步骤S3033,将第二二维码值替换为电视机所发送的第一二维码值中与第二二维码值相似度最高的第一二维码值。Step S3033, the second two-dimensional code value is replaced with a first two-dimensional code value having the highest similarity with the second two-dimensional code value among the first two-dimensional code values sent by the television.
本实施例中,采用替换的方式完成对扫描错误的二维码值的校正,从而移动终端即使扫描了错误的二维码,也能得到正确的二维码值,进而根据替换后的正确的二维码值进行数据访问。In this embodiment, the correction of the two-dimensional code value of the scanning error is completed in an alternative manner, so that the mobile terminal can obtain the correct two-dimensional code value even if the wrong two-dimensional code is scanned, and then according to the correct correctness after the replacement. The QR code value is used for data access.
此外,需要进一步说明的是,由于不同二维码之间的编码方式都比较复杂,同时,相应得到的二维码值也会存在很大的不同,比如不同二维码值间很少会出现连续5个以上的字符相同的情况,因此,本实施例中还可以进一步判断比对校验过程中,差值为零的字符是否连续出现5次以上,若是则可确定为需要替换的二维码值。或者本实施例中还可以进一步设置一相似度阈值,比如设为70%,若对于每一次比对完一个二维码值后,若本次比对的二维码值之间的相似度大于或等于70%,则可确定为需要替换的二维码值。不同的比对校验方式所对应的比对效率与准确率都不一样,本实施例中,为兼顾比对效率与准确率优选采用对所有第一二维码进行逐个比对后,再通过相似度统计确定选定的替换二维码。In addition, it should be further explained that because the coding methods between different two-dimensional codes are relatively complicated, the corresponding two-dimensional code values may also be greatly different, for example, different two-dimensional code values rarely appear. For the case where the characters of the five or more characters are the same, therefore, in this embodiment, it is further determined whether the character having a zero difference in the comparison verification process appears continuously for more than 5 times, and if so, it can be determined as the two-dimensional to be replaced. Code value. Or, in this embodiment, a similarity threshold may be further set, for example, 70%. If the two-dimensional code value is compared after each comparison, if the similarity between the two-dimensional code values of the current comparison is greater than Or equal to 70%, it can be determined as the QR code value that needs to be replaced. The comparison efficiency and accuracy of the different alignment verification methods are different. In this embodiment, it is preferable to compare all the first two-dimensional codes one by one, and then pass the comparison efficiency and accuracy. The similarity statistics determine the selected replacement two-dimensional code.
参照图5-6,图5为本发明去除二维码扫描干扰的处理系统一实施例的功能模块示意图;图6为本发明去除二维码扫描干扰的处理系统另一实施例的功能模块示意图。所述去除二维码扫描干扰的处理系统至少包括电视机10、移动终端20或者还包括云端服务器30;5-6, FIG. 5 is a schematic diagram of functional modules of a processing system for removing scanning interference of a two-dimensional code according to an embodiment of the present invention; FIG. 6 is a schematic diagram of functional modules of another embodiment of a processing system for removing scanning interference of a two-dimensional code according to the present invention; . The processing system for removing the two-dimensional code scanning interference includes at least a television set 10, a mobile terminal 20, or a cloud server 30;
所述电视机10,用于当若干二维码在所述电视机10屏幕上显示时,解码当前所述电视机10屏幕上所显示的所有二维码,得到相应的第一二维码值并将部分或所有的第一二维码值发送至所述移动终端20;The television set 10 is configured to decode all the two-dimensional codes currently displayed on the screen of the television set 10 when a plurality of two-dimensional codes are displayed on the screen of the television set 10, to obtain a corresponding first two-dimensional code value. And transmitting part or all of the first two-dimensional code value to the mobile terminal 20;
本实施例中,为获得电视机10屏幕上显示的二维码的正确的二维码值,当若干二维码在电视机10屏幕上显示时,直接由电视机10自身对当前电视机10屏幕上所显示的所有二维码进行解码,从而避免通过扫描方式获取存在干扰的二维码进而使得解码后可能存在数据错误的情况的发生。In this embodiment, in order to obtain the correct two-dimensional code value of the two-dimensional code displayed on the screen of the television set 10, when a plurality of two-dimensional codes are displayed on the screen of the television set 10, the current television set 10 is directly directly provided by the television set 10 itself. All the two-dimensional codes displayed on the screen are decoded, so as to avoid the occurrence of a data error after decoding by acquiring the two-dimensional code with interference.
此外,本实施例中,鉴于用户使用移动终端20(比如带摄像头及屏幕的手机)扫描二维码是用于在移动终端20屏幕上进行相应操作,比如视频聊天或进入到相关网站等,因此,本实施例中将去除二维码扫描干扰的处理主要放置在移动终端20上进行。因而当电视机10通过解码得到正确的二维码值后,需要将得到的第一二维码值发送至移动终端20。In addition, in this embodiment, in view of the fact that the user scans the two-dimensional code by using the mobile terminal 20 (such as a mobile phone with a camera and a screen) for performing corresponding operations on the screen of the mobile terminal 20, such as video chat or entering a related website, etc., In the embodiment, the process of removing the two-dimensional code scanning interference is mainly performed on the mobile terminal 20. Therefore, when the television 10 obtains the correct two-dimensional code value by decoding, the obtained first two-dimensional code value needs to be transmitted to the mobile terminal 20.
需要说明的是,本实施例中对于发送第一二维码值的方式不限,具体根据实际需要进行设置。比如由电视机10在解码二维码后主动发送给移动终端20,或者由移动终端20发送获取请求后再发送给移动终端20。It should be noted that, in this embodiment, the manner of transmitting the first two-dimensional code value is not limited, and is specifically set according to actual needs. For example, the television set 10 actively transmits to the mobile terminal 20 after decoding the two-dimensional code, or is sent by the mobile terminal 20 to the mobile terminal 20 after transmitting the acquisition request.
此外,由于电视机10屏幕上可能会显示多个二维码的情况,同时,不同的二维码值所代表的含义并不相同,比如,在电视机10屏幕上显示的多个二维码中有可能某些二维码值所对应的信息并不是用户所需要的,也即有可能存在并不是用户所需要扫描的二维码,因而该类二维码并不一定需要发送给移动终端20,因此,本实施例中,对于发送的第一二维码值的数量不限,可以是满足相关条件的部分第一二维码值,也可以是全部二维码值。In addition, since a plurality of two-dimensional codes may be displayed on the screen of the television set 10, different two-dimensional code values represent different meanings, for example, a plurality of two-dimensional codes displayed on the screen of the television set 10. It is possible that the information corresponding to some two-dimensional code values is not required by the user, that is, there may be a two-dimensional code that is not required to be scanned by the user, and thus the two-dimensional code does not necessarily need to be sent to the mobile terminal. Therefore, in this embodiment, the number of the first two-dimensional code values to be transmitted is not limited, and may be a partial first two-dimensional code value that satisfies the relevant condition, or may be all two-dimensional code values.
所述移动终端20,用于当扫描所述电视机10屏幕上所显示的二维码时,解码所扫描到的二维码并得到相应的第二二维码值;或,The mobile terminal 20 is configured to decode the scanned two-dimensional code and obtain a corresponding second two-dimensional code value when scanning the two-dimensional code displayed on the screen of the television 10; or
所述移动终端20还用于当扫描所述电视机10屏幕上所显示的二维码时,将扫描到的二维码发送至所述云端服务器30进行解码并接收所述云端服务器30所返回的第二二维码值,其中,所述云端服务器30用于解码所述移动终端20所发送的二维码并返回第二二维码值;The mobile terminal 20 is further configured to: when scanning the two-dimensional code displayed on the screen of the television 10, send the scanned two-dimensional code to the cloud server 30 for decoding and receive the return by the cloud server 30. a second two-dimensional code value, wherein the cloud server 30 is configured to decode the two-dimensional code sent by the mobile terminal 20 and return a second two-dimensional code value;
本实施例中,当移动终端20扫描电视机10屏幕上所显示的二维码时,移动终端20所扫描到的二维码既可以由移动终端20自身进行解码得到第二二维码值,也可以由移动终端20将扫描到的二维码发送至云端服务器30后由云端服务器30进行解码,同时接收云端服务器30解码后所返回的第二二维码值。移动终端20所扫描的二维码的具体解码方式根据实际需要进行设置。考虑到二维码的复杂性及解码效率,本实施例中优选由云端服务器30进行解码。In this embodiment, when the mobile terminal 20 scans the two-dimensional code displayed on the screen of the television 10, the two-dimensional code scanned by the mobile terminal 20 can be decoded by the mobile terminal 20 itself to obtain the second two-dimensional code value. The scanned two-dimensional code may be sent by the mobile terminal 20 to the cloud server 30 for decoding by the cloud server 30, and the second two-dimensional code value returned by the cloud server 30 after decoding may be received. The specific decoding mode of the two-dimensional code scanned by the mobile terminal 20 is set according to actual needs. Considering the complexity of the two-dimensional code and the decoding efficiency, it is preferable to perform decoding by the cloud server 30 in this embodiment.
所述移动终端20,还用于根据预置的二维码比对校验规则,将第二二维码值与所述电视机10所发送的第一二维码值进行比对校验,并根据比对校验结果进行相应处理以去除二维码扫描干扰,其中,当比对校验结果为存在二维码扫描干扰时,确定与第二二维码值相似度最高的第一二维码值以替换该第二二维码值。The mobile terminal 20 is further configured to compare the second two-dimensional code value with the first two-dimensional code value sent by the television 10 according to the preset two-dimensional code comparison check rule. And performing corresponding processing according to the comparison verification result to remove the two-dimensional code scanning interference, wherein when the comparison verification result is that the two-dimensional code scanning interference exists, determining the first two with the highest similarity with the second two-dimensional code value The dimension value is substituted for the second QR code value.
本实施例中,为准确快速去除二维码扫描干扰,因此,移动终端20通过扫描后解码得到的第二二维码值将以电视机10解码的第一二维码值为比对基准进行比对校验,从而确定第二二维码中是否存在扫描干扰并根据比对结果进行相应处理。In this embodiment, in order to accurately and quickly remove the two-dimensional code scanning interference, the second two-dimensional code value obtained by the mobile terminal 20 after being scanned and decoded is performed by using the first two-dimensional code value decoded by the television 10 as a comparison benchmark. The verification is performed to determine whether there is scanning interference in the second two-dimensional code and corresponding processing is performed according to the comparison result.
本实施例中,对于二维码比对校验的规则不限,具体根据实际需要进行设置。比如,将移动终端20扫描解码的二维码依次与电视机10所发送多个二维码进行比对,具体可以是按从左到右的次序一个字符一个字符的比对,也可以是先获取每一个二维码的唯一标识,通过比较第一二维码的标识与第二二维码的标识,从而在多个第一二维码中确定与第二二维码具有相同标识的第一二维码,然后再与第二二维码进行比较。In this embodiment, the rules for the two-dimensional code comparison check are not limited, and are specifically set according to actual needs. For example, the two-dimensional code scanned and decoded by the mobile terminal 20 is sequentially compared with a plurality of two-dimensional codes sent by the television 10, and may be an alignment of one character and one character in order from left to right, or may be Obtaining a unique identifier of each two-dimensional code, and comparing the identifier of the first two-dimensional code with the identifier of the second two-dimensional code, thereby determining, in the plurality of first two-dimensional codes, the same identifier as the second two-dimensional code A two-dimensional code is then compared to the second two-dimensional code.
此外,需要进一步说明的是,本实施例中,进行去除二维码扫描干扰处理的前提条件是移动终端20所扫描的二维码并没有被完全干扰或损耗,也即需要具体基本的关键信息,比如具备三个定位点以便于拍照等。通常来说,电视机10上所显示的二维码并不会出现太多的干扰或损坏,同时,用户使用移动终端20扫描时也会进行初步的甄别,因此,通常并不会出现无法识别的二维码。In addition, it should be further noted that, in this embodiment, the precondition for performing the removal of the two-dimensional code scanning interference processing is that the two-dimensional code scanned by the mobile terminal 20 is not completely interfered or worn, that is, specific basic key information is required. For example, there are three positioning points for taking photos. Generally speaking, the two-dimensional code displayed on the television set 10 does not cause too much interference or damage, and at the same time, the user also performs preliminary screening when scanning using the mobile terminal 20, and therefore, usually does not appear unrecognizable. QR code.
本实施例中,通过电视机10解码电视机10屏幕上所显示的二维码,从而获得电视机10屏幕上所显示的二维码所对应的正确的二维码值。当移动终端20扫描二维码时,为避免干扰因素的影响,因此,需要对每一次移动终端20所扫描到的二维码所对应的二维码值进行校验,具体以电视机10所解码的二维码作为校验时的比对基准,并根据比对校验结果进行相应处理以去除二维码扫描干扰。通过本发明解决了二维码扫描时存在干扰因素影响而引起二维码识别错误的问题,降低了二维码扫描的错误率,同时也提高了用户使用体验。In this embodiment, the two-dimensional code displayed on the screen of the television 10 is decoded by the television set 10, thereby obtaining the correct two-dimensional code value corresponding to the two-dimensional code displayed on the screen of the television set 10. When the mobile terminal 20 scans the two-dimensional code, in order to avoid the influence of the interference factor, it is necessary to check the two-dimensional code value corresponding to the two-dimensional code scanned by the mobile terminal 20, specifically by the television set 10 The decoded two-dimensional code is used as a comparison reference at the time of verification, and correspondingly processed according to the comparison verification result to remove the two-dimensional code scanning interference. The invention solves the problem that the two-dimensional code recognition error is caused by the influence of the interference factor when the two-dimensional code is scanned, reduces the error rate of the two-dimensional code scanning, and improves the user experience.
参照图7,图7为图5中电视机10的细化功能模块示意图。基于上述实施例,本实施例中,所述电视机10包括:Referring to FIG. 7, FIG. 7 is a schematic diagram of a refinement function module of the television set 10 of FIG. Based on the above embodiment, in this embodiment, the television set 10 includes:
解码模块101,用于当若干二维码在所述电视机10屏幕上显示时,解码当前所述电视机10屏幕上所显示的所有二维码,得到相应的第一二维码值;The decoding module 101 is configured to decode all the two-dimensional codes currently displayed on the screen of the television 10 when a plurality of two-dimensional codes are displayed on the screen of the television 10, to obtain a corresponding first two-dimensional code value;
本实施例中,为准确获得电视机10屏幕上所显示的二维码所对应的二维码值(也即第一二维码),因此需要避免采用扫描方式获取二维码图像后再解码,因此,本实施例中,具体由电视机10自身进行解码,也即电视机10自身在显示二维码的同时,也完成对所显示的所有二维码的解码。需要说明的是,对于电视机10屏幕上所显示的同一个二维码值,尽管电视机10解码与移动终端20扫描解码其最终解码后所得到的二维码值相同,但二者的解码方式却不一定相同的。此外,由于电视机10并不确定用户会扫描哪一个二维码,因此,电视机10需要解码电视机10屏幕上所显示的所有二维码,同时,通过解码后得到相应的第一二维码。In this embodiment, in order to accurately obtain the two-dimensional code value (that is, the first two-dimensional code) corresponding to the two-dimensional code displayed on the screen of the television 10, it is necessary to avoid acquiring the two-dimensional code image by using the scanning method and then decoding. Therefore, in the present embodiment, the television 10 itself is specifically decoded, that is, the television 10 itself completes decoding of all the displayed two-dimensional codes while displaying the two-dimensional code. It should be noted that, for the same two-dimensional code value displayed on the screen of the television set 10, although the television set 10 decodes and the mobile terminal 20 scans and decodes the final two-dimensional code value obtained after decoding, the decoding of the two is the same. The way is not necessarily the same. In addition, since the television 10 does not determine which two-dimensional code the user will scan, the television 10 needs to decode all the two-dimensional codes displayed on the screen of the television 10, and at the same time, obtain the corresponding first two-dimensional by decoding. code.
筛选模块102,用于根据设定的二维码值筛选规则,将所有的第一二维码值进行相应筛选并将筛选后所得到的部分第一二维码值发送至所述移动终端20。The screening module 102 is configured to filter all the first two-dimensional code values according to the set two-dimensional code value screening rule, and send the partial first two-dimensional code values obtained after the screening to the mobile terminal 20 .
考虑到二维码的应用用途较广,若将所有二维码都发送至移动终端20,不仅不具有针对性,同时也会大大加重二维码值比对校验的效率,因此,本实施例中,可通过设置二维码值筛选规则,对电视机10解码的所有第一二维码值进行相应筛选,进而能够有针对性的发送一些用户很有可能会扫描的二维码的二维码值给到移动终端20进行存储。需要进一步说明的是,对于二维码值筛选规则的设置,可以由电视机10默认设置,也可以由用户根据需要进行设置。Considering that the application of the two-dimensional code is widely used, if all the two-dimensional codes are transmitted to the mobile terminal 20, not only is it not targeted, but also the efficiency of the two-dimensional code value comparison check is greatly increased. Therefore, the implementation is In an example, all the first two-dimensional code values decoded by the television set 10 can be correspondingly filtered by setting a two-dimensional code value screening rule, so that two types of two-dimensional codes that the user is likely to scan may be sent in a targeted manner. The dimension code value is stored to the mobile terminal 20. It should be further noted that the setting of the two-dimensional code value screening rule may be set by the television 10 by default, or may be set by the user as needed.
本实施例中,在电视机10向移动终端20发送第一二维码值时,为更具有针对性地发送,同时也提高移动终端20的二维码值比对校验效率,本实施例中优选采用设定的筛选规则,将部分第一二维码值发送至移动终端20。In this embodiment, when the television 10 transmits the first two-dimensional code value to the mobile terminal 20, it is more specifically transmitted, and the two-dimensional code value comparison efficiency of the mobile terminal 20 is also improved. Preferably, a portion of the first two-dimensional code value is transmitted to the mobile terminal 20 using the set screening rule.
进一步优选地,电视机10根据ASCII码对照表,从所有第一二维码值中筛选出与设定的字符串相对应的第一二维码值并发送至移动终端20。例如,用户对网页类型的二维码比较感兴趣,因此,可以将“www”或者“Http”设置为筛选字符,具体可根据ASCII码对照表完成上述筛选过程。另外,需要说明的是,由于现有日常应用中采用ASCII码已经可以完成基本的字符编码,比如数字、字母、符号等,因此,优选采用ASCII码对照表完成本实施中设定字符串的筛选过程。Further preferably, the television set 10 filters out the first two-dimensional code value corresponding to the set character string from all the first two-dimensional code values according to the ASCII code comparison table and transmits the same to the mobile terminal 20. For example, the user is interested in the two-dimensional code of the webpage type. Therefore, "www" or "Http" can be set as a filter character, and the above screening process can be completed according to the ASCII code comparison table. In addition, it should be noted that since the basic character encoding, such as numbers, letters, symbols, etc., can be completed by using ASCII codes in existing daily applications, it is preferable to use the ASCII code comparison table to complete the screening of the set character string in this implementation. process.

Claims (18)

  1. 一种去除二维码扫描干扰的处理方法,其特征在于,所述去除二维码扫描干扰的处理方法包括:A processing method for removing scanning interference of a two-dimensional code, wherein the processing method for removing scanning interference of a two-dimensional code comprises:
    当若干二维码在电视机屏幕上显示时,电视机解码当前电视机屏幕上所显示的所有二维码,得到相应的第一二维码值;电视机根据ASCII码对照表,从所有第一二维码值中筛选出与设定的字符串相对应的第一二维码值并发送至移动终端;When a plurality of two-dimensional codes are displayed on the television screen, the television decodes all the two-dimensional codes displayed on the current television screen to obtain a corresponding first two-dimensional code value; the television according to the ASCII code comparison table, from all the Extracting a first two-dimensional code value corresponding to the set character string in a two-dimensional code value and transmitting the value to the mobile terminal;
    当移动终端扫描电视机屏幕上所显示的二维码时,移动终端解码所扫描到的二维码并得到相应的第二二维码值;或,当移动终端扫描电视机屏幕上所显示的二维码时,移动终端将扫描到的二维码发送至云端服务器进行解码并接收云端服务器所返回的第二二维码值;When the mobile terminal scans the two-dimensional code displayed on the television screen, the mobile terminal decodes the scanned two-dimensional code and obtains a corresponding second two-dimensional code value; or, when the mobile terminal scans the displayed on the television screen In the two-dimensional code, the mobile terminal sends the scanned two-dimensional code to the cloud server for decoding and receives the second two-dimensional code value returned by the cloud server;
    移动终端根据预置的二维码比对校验规则,将第二二维码值与电视机所发送的第一二维码值进行比对校验,并根据比对校验结果进行相应处理以去除二维码扫描干扰,其中,当比对校验结果为存在二维码扫描干扰时,确定与第二二维码值相似度最高的第一二维码值以替换该第二二维码值。The mobile terminal compares the second two-dimensional code value with the first two-dimensional code value sent by the television according to the preset two-dimensional code comparison check rule, and performs corresponding processing according to the comparison check result. And removing the two-dimensional code scanning interference, wherein when the comparison verification result is that the two-dimensional code scanning interference exists, determining a first two-dimensional code value having the highest similarity with the second two-dimensional code value to replace the second two-dimensional code value Code value.
  2. 如权利要求1所述的去除二维码扫描干扰的处理方法,其特征在于,所述移动终端根据预置的二维码比对校验规则,将第二二维码值与电视机所发送的第一二维码值进行比对校验,并根据比对校验结果进行相应处理以去除二维码扫描干扰包括: The method for processing a two-dimensional code scanning interference according to claim 1, wherein the mobile terminal transmits the second two-dimensional code value to the television according to the preset two-dimensional code comparison check rule. The first two-dimensional code value is compared and verified, and correspondingly processed according to the comparison check result to remove the two-dimensional code scanning interference includes:
    移动终端根据ASCII码对照表,将第二二维码值中每一字符所对应的ASCII码值与电视机所发送的第一二维码值中每一字符所对应的ASCII码值依序对应进行差值运算;The mobile terminal sequentially corresponds the ASCII code value corresponding to each character in the second two-dimensional code value to the ASCII code value corresponding to each character in the first two-dimensional code value sent by the television according to the ASCII code comparison table. Perform a difference operation;
    当第二二维码值与第一二维码值中每一字符所对应的ASCII码差值均为零时,确定第二二维码值中不存在干扰,退出比对校验;When the difference between the second two-dimensional code value and the ASCII code corresponding to each character in the first two-dimensional code value is zero, it is determined that there is no interference in the second two-dimensional code value, and the comparison check is exited;
    当第二二维码值与第一二维码值中每一字符所对应的ASCII码差值中存在非零时,确定第二二维码值中存在干扰并将第二二维码值替换为电视机所发送的第一二维码值中与第二二维码值相似度最高的第一二维码值。Determining that there is interference in the second two-dimensional code value and replacing the second two-dimensional code value when there is non-zero in the ASCII code difference value corresponding to each character in the second two-dimensional code value and the first two-dimensional code value The first two-dimensional code value having the highest similarity with the second two-dimensional code value among the first two-dimensional code values sent by the television set.
  3. 如权利要求2所述的去除二维码扫描干扰的处理方法,其特征在于,所述当第二二维码值与第一二维码值中每一字符所对应的ASCII码差值中存在非零时,确定第二二维码值中存在干扰并将第二二维码值替换为电视机所发送的第一二维码值中与第二二维码值相似度最高的第一二维码值包括:The method for processing a two-dimensional code scanning interference according to claim 2, wherein the ASCII code difference corresponding to each character in the second two-dimensional code value and the first two-dimensional code value exists When non-zero, determining that there is interference in the second two-dimensional code value and replacing the second two-dimensional code value with the first two-dimensional code value sent by the television set and having the highest similarity with the second two-dimensional code value The dimension values include:
    当第二二维码值与第一二维码值中每一字符所对应的ASCII码差值中存在非零时,确定第二二维码值中存在干扰;Determining that there is interference in the second two-dimensional code value when there is non-zero in the ASCII code difference value corresponding to each character in the first two-dimensional code value;
    在第二二维码值与电视机所发送的每一第一二维码值依次进行ASCII码差值比对校验后,统计每一次ASCII码差值比对校验中每一字符所对应的ASCII码差值为零的个数与第二二维码值中字符总个数的比值,以确定第二二维码值与对应进行比对校验的第一二维码值的相似度;After the second two-dimensional code value and each first two-dimensional code value sent by the television set are sequentially compared with the ASCII code difference value, each ASCII code difference value is compared with each character in the checksum. The ratio of the number of zeros of the ASCII code difference to the total number of characters in the second two-dimensional code value to determine the similarity between the second two-dimensional code value and the first two-dimensional code value corresponding to the comparison check ;
    将第二二维码值替换为电视机所发送的第一二维码值中与第二二维码值相似度最高的第一二维码值。The second two-dimensional code value is replaced with a first two-dimensional code value having the highest similarity with the second two-dimensional code value among the first two-dimensional code values sent by the television.
  4. 一种去除二维码扫描干扰的处理方法,其特征在于,所述去除二维码扫描干扰的处理方法包括:A processing method for removing scanning interference of a two-dimensional code, wherein the processing method for removing scanning interference of a two-dimensional code comprises:
    当若干二维码在电视机屏幕上显示时,电视机解码当前电视机屏幕上所显示的所有二维码,得到相应的第一二维码值并将部分或所有的第一二维码值发送至移动终端;When a plurality of two-dimensional codes are displayed on the television screen, the television decodes all the two-dimensional codes displayed on the current television screen to obtain corresponding first two-dimensional code values and some or all of the first two-dimensional code values. Send to the mobile terminal;
    当移动终端扫描电视机屏幕上所显示的二维码时,移动终端解码所扫描到的二维码并得到相应的第二二维码值;或,When the mobile terminal scans the two-dimensional code displayed on the television screen, the mobile terminal decodes the scanned two-dimensional code and obtains a corresponding second two-dimensional code value; or
    当移动终端扫描电视机屏幕上所显示的二维码时,移动终端将扫描到的二维码发送至云端服务器进行解码并接收云端服务器所返回的第二二维码值;When the mobile terminal scans the two-dimensional code displayed on the screen of the television, the mobile terminal sends the scanned two-dimensional code to the cloud server for decoding and receives the second two-dimensional code value returned by the cloud server;
    移动终端根据预置的二维码比对校验规则,将第二二维码值与电视机所发送的第一二维码值进行比对校验,并根据比对校验结果进行相应处理以去除二维码扫描干扰,其中,当比对校验结果为存在二维码扫描干扰时,确定与第二二维码值相似度最高的第一二维码值以替换该第二二维码值。The mobile terminal compares the second two-dimensional code value with the first two-dimensional code value sent by the television according to the preset two-dimensional code comparison check rule, and performs corresponding processing according to the comparison check result. And removing the two-dimensional code scanning interference, wherein when the comparison verification result is that the two-dimensional code scanning interference exists, determining a first two-dimensional code value having the highest similarity with the second two-dimensional code value to replace the second two-dimensional code value Code value.
  5. 如权利要求4所述的去除二维码扫描干扰的处理方法,其特征在于,所述当若干二维码在电视机屏幕上显示时,电视机解码当前电视机屏幕上所显示的所有二维码,得到相应的第一二维码值并将部分第一二维码值发送至移动终端包括:The method for processing two-dimensional code scanning interference according to claim 4, wherein when the two-dimensional code is displayed on the television screen, the television decodes all the two-dimensional displayed on the current television screen. And obtaining a corresponding first two-dimensional code value and transmitting a part of the first two-dimensional code value to the mobile terminal includes:
    当若干二维码在电视机屏幕上显示时,电视机解码当前电视机屏幕上所显示的所有二维码,得到相应的第一二维码值;When a plurality of two-dimensional codes are displayed on the television screen, the television decodes all the two-dimensional codes displayed on the current television screen to obtain a corresponding first two-dimensional code value;
    电视机根据设定的二维码值筛选规则,将所有的第一二维码值进行相应筛选并将筛选后所得到的部分第一二维码值发送至移动终端。The television screen filters the first two-dimensional code values according to the set two-dimensional code value screening rule, and sends some of the first two-dimensional code values obtained after the screening to the mobile terminal.
  6. 如权利要求4所述的去除二维码扫描干扰的处理方法,其特征在于,所述移动终端根据预置的二维码比对校验规则,将第二二维码值与电视机所发送的第一二维码值进行比对校验,并根据比对校验结果进行相应处理以去除二维码扫描干扰包括:The method for processing a two-dimensional code scanning interference according to claim 4, wherein the mobile terminal transmits the second two-dimensional code value to the television according to the preset two-dimensional code comparison check rule. The first two-dimensional code value is compared and verified, and correspondingly processed according to the comparison check result to remove the two-dimensional code scanning interference includes:
    移动终端根据ASCII码对照表,将第二二维码值中每一字符所对应的ASCII码值与电视机所发送的第一二维码值中每一字符所对应的ASCII码值依序对应进行差值运算;The mobile terminal sequentially corresponds the ASCII code value corresponding to each character in the second two-dimensional code value to the ASCII code value corresponding to each character in the first two-dimensional code value sent by the television according to the ASCII code comparison table. Perform a difference operation;
    当第二二维码值与第一二维码值中每一字符所对应的ASCII码差值均为零时,确定第二二维码值中不存在干扰,退出比对校验;When the difference between the second two-dimensional code value and the ASCII code corresponding to each character in the first two-dimensional code value is zero, it is determined that there is no interference in the second two-dimensional code value, and the comparison check is exited;
    当第二二维码值与第一二维码值中每一字符所对应的ASCII码差值中存在非零时,确定第二二维码值中存在干扰并将第二二维码值替换为电视机所发送的第一二维码值中与第二二维码值相似度最高的第一二维码值。Determining that there is interference in the second two-dimensional code value and replacing the second two-dimensional code value when there is non-zero in the ASCII code difference value corresponding to each character in the second two-dimensional code value and the first two-dimensional code value The first two-dimensional code value having the highest similarity with the second two-dimensional code value among the first two-dimensional code values sent by the television set.
  7. 如权利要求5所述的去除二维码扫描干扰的处理方法,其特征在于,所述移动终端根据预置的二维码比对校验规则,将第二二维码值与电视机所发送的第一二维码值进行比对校验,并根据比对校验结果进行相应处理以去除二维码扫描干扰包括:The method for processing a two-dimensional code scanning interference according to claim 5, wherein the mobile terminal transmits the second two-dimensional code value to the television according to the preset two-dimensional code comparison check rule. The first two-dimensional code value is compared and verified, and correspondingly processed according to the comparison check result to remove the two-dimensional code scanning interference includes:
    移动终端根据ASCII码对照表,将第二二维码值中每一字符所对应的ASCII码值与电视机所发送的第一二维码值中每一字符所对应的ASCII码值依序对应进行差值运算;The mobile terminal sequentially corresponds the ASCII code value corresponding to each character in the second two-dimensional code value to the ASCII code value corresponding to each character in the first two-dimensional code value sent by the television according to the ASCII code comparison table. Perform a difference operation;
    当第二二维码值与第一二维码值中每一字符所对应的ASCII码差值均为零时,确定第二二维码值中不存在干扰,退出比对校验;When the difference between the second two-dimensional code value and the ASCII code corresponding to each character in the first two-dimensional code value is zero, it is determined that there is no interference in the second two-dimensional code value, and the comparison check is exited;
    当第二二维码值与第一二维码值中每一字符所对应的ASCII码差值中存在非零时,确定第二二维码值中存在干扰并将第二二维码值替换为电视机所发送的第一二维码值中与第二二维码值相似度最高的第一二维码值。Determining that there is interference in the second two-dimensional code value and replacing the second two-dimensional code value when there is non-zero in the ASCII code difference value corresponding to each character in the second two-dimensional code value and the first two-dimensional code value The first two-dimensional code value having the highest similarity with the second two-dimensional code value among the first two-dimensional code values sent by the television set.
  8. 如权利要求6所述的去除二维码扫描干扰的处理方法,其特征在于,所述当第二二维码值与第一二维码值中每一字符所对应的ASCII码差值中存在非零时,确定第二二维码值中存在干扰并将第二二维码值替换为电视机所发送的第一二维码值中与第二二维码值相似度最高的第一二维码值包括:The method for processing a two-dimensional code scanning interference according to claim 6, wherein the ASCII code difference corresponding to each character in the second two-dimensional code value and the first two-dimensional code value exists When non-zero, determining that there is interference in the second two-dimensional code value and replacing the second two-dimensional code value with the first two-dimensional code value sent by the television set and having the highest similarity with the second two-dimensional code value The dimension values include:
    当第二二维码值与第一二维码值中每一字符所对应的ASCII码差值中存在非零时,确定第二二维码值中存在干扰;Determining that there is interference in the second two-dimensional code value when there is non-zero in the ASCII code difference value corresponding to each character in the first two-dimensional code value;
    在第二二维码值与电视机所发送的每一第一二维码值依次进行ASCII码差值比对校验后,统计每一次ASCII码差值比对校验中每一字符所对应的ASCII码差值为零的个数与第二二维码值中字符总个数的比值,以确定第二二维码值与对应进行比对校验的第一二维码值的相似度;After the second two-dimensional code value and each first two-dimensional code value sent by the television set are sequentially compared with the ASCII code difference value, each ASCII code difference value is compared with each character in the checksum. The ratio of the number of zeros of the ASCII code difference to the total number of characters in the second two-dimensional code value to determine the similarity between the second two-dimensional code value and the first two-dimensional code value corresponding to the comparison check ;
    将第二二维码值替换为电视机所发送的第一二维码值中与第二二维码值相似度最高的第一二维码值。The second two-dimensional code value is replaced with a first two-dimensional code value having the highest similarity with the second two-dimensional code value among the first two-dimensional code values sent by the television.
  9. 如权利要求7所述的去除二维码扫描干扰的处理方法,其特征在于,所述当第二二维码值与第一二维码值中每一字符所对应的ASCII码差值中存在非零时,确定第二二维码值中存在干扰并将第二二维码值替换为电视机所发送的第一二维码值中与第二二维码值相似度最高的第一二维码值包括:The method for processing a two-dimensional code scanning interference according to claim 7, wherein the ASCII code difference corresponding to each character in the second two-dimensional code value and the first two-dimensional code value is present. When non-zero, determining that there is interference in the second two-dimensional code value and replacing the second two-dimensional code value with the first two-dimensional code value sent by the television set and having the highest similarity with the second two-dimensional code value The dimension values include:
    当第二二维码值与第一二维码值中每一字符所对应的ASCII码差值中存在非零时,确定第二二维码值中存在干扰;Determining that there is interference in the second two-dimensional code value when there is non-zero in the ASCII code difference value corresponding to each character in the first two-dimensional code value;
    在第二二维码值与电视机所发送的每一第一二维码值依次进行ASCII码差值比对校验后,统计每一次ASCII码差值比对校验中每一字符所对应的ASCII码差值为零的个数与第二二维码值中字符总个数的比值,以确定第二二维码值与对应进行比对校验的第一二维码值的相似度;After the second two-dimensional code value and each first two-dimensional code value sent by the television set are sequentially compared with the ASCII code difference value, each ASCII code difference value is compared with each character in the checksum. The ratio of the number of zeros of the ASCII code difference to the total number of characters in the second two-dimensional code value to determine the similarity between the second two-dimensional code value and the first two-dimensional code value corresponding to the comparison check ;
    将第二二维码值替换为电视机所发送的第一二维码值中与第二二维码值相似度最高的第一二维码值。The second two-dimensional code value is replaced with a first two-dimensional code value having the highest similarity with the second two-dimensional code value among the first two-dimensional code values sent by the television.
  10. 一种去除二维码扫描干扰的处理系统,其特征在于,所述去除二维码扫描干扰的处理系统至少包括电视机、移动终端或者还包括云端服务器;A processing system for removing two-dimensional code scanning interference, wherein the processing system for removing two-dimensional code scanning interference includes at least a television set, a mobile terminal, or a cloud server;
    所述电视机,用于当若干二维码在所述电视机屏幕上显示时,解码当前所述电视机屏幕上所显示的所有二维码,得到相应的第一二维码值并将部分或所有的第一二维码值发送至所述移动终端;The television set is configured to decode all two-dimensional codes displayed on the current television screen when a plurality of two-dimensional codes are displayed on the television screen, to obtain a corresponding first two-dimensional code value and to partially Or all of the first two-dimensional code values are sent to the mobile terminal;
    所述移动终端,用于当扫描所述电视机屏幕上所显示的二维码时,解码所扫描到的二维码并得到相应的第二二维码值;或,The mobile terminal is configured to decode the scanned two-dimensional code and obtain a corresponding second two-dimensional code value when scanning the two-dimensional code displayed on the television screen; or
    所述移动终端,还用于当扫描所述电视机屏幕上所显示的二维码时,将扫描到的二维码发送至所述云端服务器进行解码并接收所述云端服务器所返回的第二二维码值,其中,所述云端服务器用于解码所述移动终端所发送的二维码并返回第二二维码值;The mobile terminal is further configured to: when scanning the two-dimensional code displayed on the screen of the television, send the scanned two-dimensional code to the cloud server for decoding and receive the second returned by the cloud server a two-dimensional code value, wherein the cloud server is configured to decode a two-dimensional code sent by the mobile terminal and return a second two-dimensional code value;
    所述移动终端,还用于根据预置的二维码比对校验规则,将第二二维码值与所述电视机所发送的第一二维码值进行比对校验,并根据比对校验结果进行相应处理以去除二维码扫描干扰,其中,当比对校验结果为存在二维码扫描干扰时,确定与第二二维码值相似度最高的第一二维码值以替换该第二二维码值。The mobile terminal is further configured to compare the second two-dimensional code value with the first two-dimensional code value sent by the television according to the preset two-dimensional code comparison check rule, and according to The comparison check result is correspondingly processed to remove the two-dimensional code scan interference, wherein when the comparison check result is that the two-dimensional code scan interference exists, the first two-dimensional code having the highest similarity with the second two-dimensional code value is determined. A value to replace the second two-dimensional code value.
  11. 如权利要求10所述的去除二维码扫描干扰的处理系统,其特征在于,所述电视机包括:The processing system for removing two-dimensional code scanning interference according to claim 10, wherein the television set comprises:
    解码模块,用于当若干二维码在所述电视机屏幕上显示时,解码当前所述电视机屏幕上所显示的所有二维码,得到相应的第一二维码值;a decoding module, configured to decode all the two-dimensional codes displayed on the current television screen when a plurality of two-dimensional codes are displayed on the television screen, to obtain a corresponding first two-dimensional code value;
    筛选模块,用于根据设定的二维码值筛选规则,将所有的第一二维码值进行相应筛选并将筛选后所得到的部分第一二维码值发送至所述移动终端。And a screening module, configured to filter all the first two-dimensional code values according to the set two-dimensional code value screening rule, and send a part of the first two-dimensional code value obtained after the screening to the mobile terminal.
  12. 如权利要求11所述的去除二维码扫描干扰的处理系统,其特征在于,所述筛选模块具体用于:The processing system for removing the two-dimensional code scanning interference according to claim 11, wherein the screening module is specifically configured to:
    根据ASCII码对照表,从所有第一二维码值中筛选出与设定的字符串相对应的第一二维码值并发送至所述移动终端。According to the ASCII code comparison table, the first two-dimensional code value corresponding to the set character string is selected from all the first two-dimensional code values and sent to the mobile terminal.
  13. 如权利要求10所述的去除二维码扫描干扰的处理系统,其特征在于,所述移动终端包括:The processing system for removing the two-dimensional code scanning interference according to claim 10, wherein the mobile terminal comprises:
    差值运算模块,用于根据ASCII码对照表,将第二二维码值中每一字符所对应的ASCII码值与所述电视机所发送的第一二维码值中每一字符所对应的ASCII码值依序对应进行差值运算;a difference operation module, configured to: according to the ASCII code comparison table, the ASCII code value corresponding to each character in the second two-dimensional code value and each character in the first two-dimensional code value sent by the television The ASCII code values are sequentially corresponding to the difference operation;
    第一处理模块,用于当第二二维码值与第一二维码值中每一字符所对应的ASCII码差值均为零时,确定第二二维码值中不存在干扰,退出比对校验;a first processing module, configured to: when the difference between the second two-dimensional code value and the ASCII code corresponding to each character in the first two-dimensional code value is zero, determine that there is no interference in the second two-dimensional code value, and exit Comparison check
    第二处理模块,用于当第二二维码值与第一二维码值中每一字符所对应的ASCII码差值中存在非零时,确定第二二维码值中存在干扰并将第二二维码值替换为所述电视机所发送的第一二维码值中与第二二维码值相似度最高的第一二维码值。a second processing module, configured to determine that there is interference in the second two-dimensional code value when there is non-zero in the ASCII code difference value corresponding to each of the second two-dimensional code value and the first two-dimensional code value The second two-dimensional code value is replaced with a first two-dimensional code value having the highest similarity with the second two-dimensional code value among the first two-dimensional code values sent by the television set.
  14. 如权利要求11所述的去除二维码扫描干扰的处理系统,其特征在于,所述移动终端包括:The processing system for removing the two-dimensional code scanning interference according to claim 11, wherein the mobile terminal comprises:
    差值运算模块,用于根据ASCII码对照表,将第二二维码值中每一字符所对应的ASCII码值与所述电视机所发送的第一二维码值中每一字符所对应的ASCII码值依序对应进行差值运算;a difference operation module, configured to: according to the ASCII code comparison table, the ASCII code value corresponding to each character in the second two-dimensional code value and each character in the first two-dimensional code value sent by the television The ASCII code values are sequentially corresponding to the difference operation;
    第一处理模块,用于当第二二维码值与第一二维码值中每一字符所对应的ASCII码差值均为零时,确定第二二维码值中不存在干扰,退出比对校验;a first processing module, configured to: when the difference between the second two-dimensional code value and the ASCII code corresponding to each character in the first two-dimensional code value is zero, determine that there is no interference in the second two-dimensional code value, and exit Comparison check
    第二处理模块,用于当第二二维码值与第一二维码值中每一字符所对应的ASCII码差值中存在非零时,确定第二二维码值中存在干扰并将第二二维码值替换为所述电视机所发送的第一二维码值中与第二二维码值相似度最高的第一二维码值。a second processing module, configured to determine that there is interference in the second two-dimensional code value when there is non-zero in the ASCII code difference value corresponding to each of the second two-dimensional code value and the first two-dimensional code value The second two-dimensional code value is replaced with a first two-dimensional code value having the highest similarity with the second two-dimensional code value among the first two-dimensional code values sent by the television set.
  15. 如权利要求12所述的去除二维码扫描干扰的处理系统,其特征在于,所述移动终端包括:The processing system for removing the two-dimensional code scanning interference according to claim 12, wherein the mobile terminal comprises:
    差值运算模块,用于根据ASCII码对照表,将第二二维码值中每一字符所对应的ASCII码值与所述电视机所发送的第一二维码值中每一字符所对应的ASCII码值依序对应进行差值运算;a difference operation module, configured to: according to the ASCII code comparison table, the ASCII code value corresponding to each character in the second two-dimensional code value and each character in the first two-dimensional code value sent by the television The ASCII code values are sequentially corresponding to the difference operation;
    第一处理模块,用于当第二二维码值与第一二维码值中每一字符所对应的ASCII码差值均为零时,确定第二二维码值中不存在干扰,退出比对校验;a first processing module, configured to: when the difference between the second two-dimensional code value and the ASCII code corresponding to each character in the first two-dimensional code value is zero, determine that there is no interference in the second two-dimensional code value, and exit Comparison check
    第二处理模块,用于当第二二维码值与第一二维码值中每一字符所对应的ASCII码差值中存在非零时,确定第二二维码值中存在干扰并将第二二维码值替换为所述电视机所发送的第一二维码值中与第二二维码值相似度最高的第一二维码值。a second processing module, configured to determine that there is interference in the second two-dimensional code value when there is non-zero in the ASCII code difference value corresponding to each of the second two-dimensional code value and the first two-dimensional code value The second two-dimensional code value is replaced with a first two-dimensional code value having the highest similarity with the second two-dimensional code value among the first two-dimensional code values sent by the television set.
  16. 如权利要求13所述的去除二维码扫描干扰的处理系统,其特征在于,所述第二处理模块包括:The processing system for removing the two-dimensional code scanning interference according to claim 13, wherein the second processing module comprises:
    干扰确定单元,用于当第二二维码值与第一二维码值中每一字符所对应的ASCII码差值中存在非零时,确定第二二维码值中存在干扰;The interference determining unit is configured to determine that there is interference in the second two-dimensional code value when there is non-zero in the ASCII code difference value corresponding to each character in the second two-dimensional code value and the first two-dimensional code value;
    相似度确定单元,用于在第二二维码值与所述电视机所发送的每一第一二维码值依次进行ASCII码差值比对校验后,统计每一次ASCII码差值比对校验中每一字符所对应的ASCII码差值为零的个数与第二二维码值中字符总个数的比值,以确定第二二维码值与对应进行比对校验的第一二维码值的相似度;a similarity determining unit, configured to count each ASCII code difference ratio after the second two-dimensional code value and the first two-dimensional code value sent by the television set sequentially perform ASCII code difference comparison verification The ratio of the number of zeros corresponding to the ASCII code corresponding to each character in the check to the total number of characters in the second two-dimensional code value to determine the second two-dimensional code value and the corresponding comparison check The similarity of the first two-dimensional code value;
    二维码值替换单元,用于将第二二维码值替换为电视机所发送的第一二维码值中与第二二维码值相似度最高的第一二维码值。And a two-dimensional code value replacement unit, configured to replace the second two-dimensional code value with a first two-dimensional code value having the highest similarity with the second two-dimensional code value among the first two-dimensional code values sent by the television.
  17. 如权利要求14所述的去除二维码扫描干扰的处理系统,其特征在于,所述第二处理模块包括:The processing system for removing the two-dimensional code scanning interference according to claim 14, wherein the second processing module comprises:
    干扰确定单元,用于当第二二维码值与第一二维码值中每一字符所对应的ASCII码差值中存在非零时,确定第二二维码值中存在干扰;The interference determining unit is configured to determine that there is interference in the second two-dimensional code value when there is non-zero in the ASCII code difference value corresponding to each character in the second two-dimensional code value and the first two-dimensional code value;
    相似度确定单元,用于在第二二维码值与所述电视机所发送的每一第一二维码值依次进行ASCII码差值比对校验后,统计每一次ASCII码差值比对校验中每一字符所对应的ASCII码差值为零的个数与第二二维码值中字符总个数的比值,以确定第二二维码值与对应进行比对校验的第一二维码值的相似度;a similarity determining unit, configured to count each ASCII code difference ratio after the second two-dimensional code value and the first two-dimensional code value sent by the television set sequentially perform ASCII code difference comparison verification The ratio of the number of zeros corresponding to the ASCII code corresponding to each character in the check to the total number of characters in the second two-dimensional code value to determine the second two-dimensional code value and the corresponding comparison check The similarity of the first two-dimensional code value;
    二维码值替换单元,用于将第二二维码值替换为电视机所发送的第一二维码值中与第二二维码值相似度最高的第一二维码值。And a two-dimensional code value replacement unit, configured to replace the second two-dimensional code value with a first two-dimensional code value having the highest similarity with the second two-dimensional code value among the first two-dimensional code values sent by the television.
  18. 如权利要求15所述的去除二维码扫描干扰的处理系统,其特征在于,所述第二处理模块包括:The processing system for removing the two-dimensional code scanning interference according to claim 15, wherein the second processing module comprises:
    干扰确定单元,用于当第二二维码值与第一二维码值中每一字符所对应的ASCII码差值中存在非零时,确定第二二维码值中存在干扰;The interference determining unit is configured to determine that there is interference in the second two-dimensional code value when there is non-zero in the ASCII code difference value corresponding to each character in the second two-dimensional code value and the first two-dimensional code value;
    相似度确定单元,用于在第二二维码值与所述电视机所发送的每一第一二维码值依次进行ASCII码差值比对校验后,统计每一次ASCII码差值比对校验中每一字符所对应的ASCII码差值为零的个数与第二二维码值中字符总个数的比值,以确定第二二维码值与对应进行比对校验的第一二维码值的相似度;a similarity determining unit, configured to count each ASCII code difference ratio after the second two-dimensional code value and the first two-dimensional code value sent by the television set sequentially perform ASCII code difference comparison verification The ratio of the number of zeros corresponding to the ASCII code corresponding to each character in the check to the total number of characters in the second two-dimensional code value to determine the second two-dimensional code value and the corresponding comparison check The similarity of the first two-dimensional code value;
    二维码值替换单元,用于将第二二维码值替换为电视机所发送的第一二维码值中与第二二维码值相似度最高的第一二维码值。And a two-dimensional code value replacement unit, configured to replace the second two-dimensional code value with a first two-dimensional code value having the highest similarity with the second two-dimensional code value among the first two-dimensional code values sent by the television.
PCT/CN2016/084313 2015-11-27 2016-06-01 Processing method and system for removing two-dimensional code scanning interference WO2017088430A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510893851.8A CN105512596B (en) 2015-11-27 2015-11-27 Remove the processing method and system of two-dimensional code scanning interference
CN201510893851.8 2015-11-27

Publications (1)

Publication Number Publication Date
WO2017088430A1 true WO2017088430A1 (en) 2017-06-01

Family

ID=55720565

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/084313 WO2017088430A1 (en) 2015-11-27 2016-06-01 Processing method and system for removing two-dimensional code scanning interference

Country Status (2)

Country Link
CN (1) CN105512596B (en)
WO (1) WO2017088430A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105512596B (en) * 2015-11-27 2018-01-19 深圳Tcl数字技术有限公司 Remove the processing method and system of two-dimensional code scanning interference

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050258250A1 (en) * 2004-05-18 2005-11-24 Tripletail Ventures, Inc. Method and apparatus for capturing and decoding an image of a remotely located bar code
CN101227581A (en) * 2007-01-19 2008-07-23 报联新动力(北京)科技有限公司 Two-dimension bar code application system oriented to TV and implementing method thereof
CN102609742A (en) * 2012-02-08 2012-07-25 王石磊 System and method for processing two-dimensional code of mobile terminal
CN103729323A (en) * 2014-01-02 2014-04-16 西北工业大学 Method for information exchange between physically isolated computers
CN103793734A (en) * 2014-01-14 2014-05-14 杭州晟元芯片技术有限公司 Two-dimension code subsection verification method
CN104156864A (en) * 2014-08-21 2014-11-19 厦门易码通信息科技有限公司 Two-dimensional code anti-counterfeit system and anti-counterfeit method thereof
CN105512596A (en) * 2015-11-27 2016-04-20 深圳Tcl数字技术有限公司 Processing method and system for removing two-dimension code scanning interference

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7512254B2 (en) * 2001-11-07 2009-03-31 Symbol Technologies, Inc. System and method for mobile biometric authentication
CN102663672B (en) * 2012-05-03 2013-12-04 杭州朗和科技有限公司 Picture verification code generation method and device
JP2014232426A (en) * 2013-05-29 2014-12-11 株式会社東芝 Character input method, electronic apparatus and program
CN104253646B (en) * 2013-06-26 2018-11-06 中兴通讯股份有限公司 A kind of visible light communication mimo system and its method for realizing data transmit-receive
KR102107395B1 (en) * 2013-08-28 2020-05-07 삼성전자주식회사 A mobile terminal and a method for recognizing a code by the mobile terminal
CN104735480B (en) * 2015-04-03 2018-03-27 北京威扬科技有限公司 Method for sending information and system between mobile terminal and TV
CN104966042B (en) * 2015-06-23 2017-10-27 青岛海信传媒网络技术有限公司 The method and apparatus of Quick Response Code on mobile phone scanning television set

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050258250A1 (en) * 2004-05-18 2005-11-24 Tripletail Ventures, Inc. Method and apparatus for capturing and decoding an image of a remotely located bar code
CN101227581A (en) * 2007-01-19 2008-07-23 报联新动力(北京)科技有限公司 Two-dimension bar code application system oriented to TV and implementing method thereof
CN102609742A (en) * 2012-02-08 2012-07-25 王石磊 System and method for processing two-dimensional code of mobile terminal
CN103729323A (en) * 2014-01-02 2014-04-16 西北工业大学 Method for information exchange between physically isolated computers
CN103793734A (en) * 2014-01-14 2014-05-14 杭州晟元芯片技术有限公司 Two-dimension code subsection verification method
CN104156864A (en) * 2014-08-21 2014-11-19 厦门易码通信息科技有限公司 Two-dimensional code anti-counterfeit system and anti-counterfeit method thereof
CN105512596A (en) * 2015-11-27 2016-04-20 深圳Tcl数字技术有限公司 Processing method and system for removing two-dimension code scanning interference

Also Published As

Publication number Publication date
CN105512596A (en) 2016-04-20
CN105512596B (en) 2018-01-19

Similar Documents

Publication Publication Date Title
JP4618436B2 (en) Encoding device, decoding device, encoding method, decoding method, and program
CN107436827B (en) Detection method of electronic device
KR20110050456A (en) Cabac/avc compliant watermarking of syntax elements in compressed video
US9226043B2 (en) Displaying content associated with code embedded in an image
US9369726B2 (en) Frame block comparison
US7747087B2 (en) Apparatus, method, and article of manufacture used to encode information into an image and to decode information from a captured image
JP2014508341A (en) Logo certification
CN110830758B (en) Video polling method, device, video server and storage medium
JP2005301663A (en) Image dictionary forming device, encoding device, image dictionary forming method, and program thereof
WO2017088430A1 (en) Processing method and system for removing two-dimensional code scanning interference
CN110989949A (en) Method and device for special-shaped splicing display
JP2001169297A (en) Method and device for coding digital video
CN113516597A (en) Image correction method and device and server
CN106028001B (en) A kind of optical positioning method and device
CN110072144B (en) Image splicing processing method, device and equipment and computer storage medium
CN110636334B (en) Data transmission method and system
US20220343093A1 (en) Information code reading system
CN103853968A (en) Method and device for generating verification code picture and verification method and device thereof
JP2006279388A (en) Apparatus and method for decoding moving picture
CN108028943A (en) Recovered using long-term reference picture come authentication error to carry out Video coding
WO2021064018A1 (en) Computer-implemented method for optical character recognition
CN112215276A (en) Training method and device for confrontation network, electronic equipment and storage medium
CN102111621B (en) Video data recovery method, device and system
JP2005107616A (en) Registration management device and registration management program
CN114862990B (en) Mirror image parameter acquisition method and device, electronic equipment and storage medium

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: 16867658

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 11/09/2018)

122 Ep: pct application non-entry in european phase

Ref document number: 16867658

Country of ref document: EP

Kind code of ref document: A1