Summary of the invention
Fundamental purpose of the present invention is to provide a kind of disposal route and the system of removing Quick Response Code scanning interference, is intended to there is disturbing factor impact when solving Quick Response Code scanning and the technical matters that causes Quick Response Code identification error.
For achieving the above object, the invention provides a kind of disposal route removing Quick Response Code scanning interference, the disposal route of described removal Quick Response Code scanning interference comprises:
When some Quick Response Codes show on television screen, all Quick Response Codes shown on television decoding TV machine screen, obtain corresponding first two-dimentional code value and part or all of first two-dimentional code value are sent to mobile terminal;
When Quick Response Code shown on mobile scanning terminal television screen, mobile terminal is decoded the Quick Response Code that scans obtain corresponding second two-dimentional code value; Or,
When Quick Response Code shown on mobile scanning terminal television screen, the Quick Response Code scanned is sent to cloud server by mobile terminal to carry out decoding and receives the second two-dimentional code value that cloud server returns;
Mobile terminal is according to preset Quick Response Code Inspection rule, the the first two-dimentional code value second two-dimentional code value and televisor sent is compared and is verified, and carry out respective handling to remove Quick Response Code scanning interference according to Inspection result, wherein, when Inspection result is for existing Quick Response Code scanning interference, determine that two-dimentional code value similarity is the highest with second the first two-dimentional code value is to replace this second two-dimentional code value.
Preferably, described when some Quick Response Codes show on television screen, all Quick Response Codes shown on television decoding TV machine screen, obtain corresponding first two-dimentional code value and two-dimentional for part first code value are sent to mobile terminal comprising:
When some Quick Response Codes show on television screen, all Quick Response Codes shown on television decoding TV machine screen, obtain corresponding first two-dimentional code value;
All first two-dimentional code value, according to the two-dimentional code value screening rule of setting, is carried out corresponding screening and the two-dimentional code value of part first obtained after screening is sent to mobile terminal by televisor.
Preferably, all first two-dimentional code value, according to the two-dimentional code value screening rule of setting, is carried out corresponding screening and the two-dimentional code value of part first obtained after screening is sent to mobile terminal comprising by described televisor:
Televisor, according to the ASCII character table of comparisons, filters out the first two-dimentional code value corresponding with the character string set and sends to mobile terminal from all first two-dimentional code values.
Preferably, described mobile terminal according to preset Quick Response Code Inspection rule, the first two-dimentional code value the second two-dimentional code value and televisor sent is compared and is verified, and according to Inspection result carry out respective handling with remove Quick Response Code scan interference comprise:
ASCII character value in second two-dimentional code value corresponding to each character, according to the ASCII character table of comparisons, is carried out difference operation with the ASCII character value corresponding to each character in the televisor sends first two-dimentional code value is sequentially corresponding by mobile terminal;
When the ASCII character difference in the second two-dimentional code value and the first two-dimentional code value corresponding to each character is zero, determines to there is not interference in the second two-dimentional code value, exit Inspection;
When there is non-zero in the ASCII character difference in the second two-dimentional code value and the first two-dimentional code value corresponding to each character, determine there is interference in the second two-dimentional code value and the second two-dimentional code value replaced with the first two-dimentional code value the highest with the second two-dimentional code value similarity in the first two-dimentional code value that televisor sends.
Preferably, described when there is non-zero in the ASCII character difference in the second two-dimentional code value and the first two-dimentional code value corresponding to each character, determine to there is interference in the second two-dimentional code value and the second two-dimentional code value is replaced with the first two-dimentional code value the highest with the second two-dimentional code value similarity in the first two-dimentional code value that televisor sends and comprise:
When there is non-zero in the ASCII character difference in the second two-dimentional code value and the first two-dimentional code value corresponding to each character, determine to there is interference in the second two-dimentional code value;
After each the first two-dimentional code value sent at the second two-dimentional code value and televisor carries out ASCII character difference Inspection successively, the ASCII character difference of adding up in ASCII character difference Inspection each time corresponding to each character be zero number and the second two-dimentional code value in the ratio of the total number of character, to determine the similarity of the second two-dimentional code value and corresponding the first two-dimentional code value verified of comparing;
Second two-dimentional code value is replaced with the first two-dimentional code value the highest with the second two-dimentional code value similarity in the first two-dimentional code value that televisor sends.
Further, for achieving the above object, the present invention also provides a kind of disposal system removing Quick Response Code scanning interference, and the disposal system of described removal Quick Response Code scanning interference at least comprises televisor, mobile terminal or also comprises cloud server;
Described televisor, for when some Quick Response Codes show on described television screen, to decode all Quick Response Codes shown on current described television screen, obtain corresponding first two-dimentional code value and part or all of first two-dimentional code value is sent to described mobile terminal;
Described mobile terminal, for when scanning Quick Response Code shown on described television screen, the Quick Response Code that decoding scans also obtains corresponding second two-dimentional code value; Or,
Described mobile terminal, also for when scanning Quick Response Code shown on described television screen, the Quick Response Code scanned is sent to described cloud server carry out decoding and receive the second two-dimentional code value that described cloud server returns, wherein, the Quick Response Code that sends for described mobile terminal of decoding of described cloud server return the second two-dimentional code value;
Described mobile terminal, also for regular according to preset Quick Response Code Inspection, the the first two-dimentional code value second two-dimentional code value and described televisor sent is compared and is verified, and carry out respective handling to remove Quick Response Code scanning interference according to Inspection result, wherein, when Inspection result is for existing Quick Response Code scanning interference, determine that two-dimentional code value similarity is the highest with second the first two-dimentional code value is to replace this second two-dimentional code value.
Preferably, described televisor comprises:
Decoder module, for when some Quick Response Codes show on described television screen, all Quick Response Codes shown on current described television screen of decoding, obtain corresponding first two-dimentional code value;
Screening module, for the two-dimentional code value screening rule according to setting, carries out corresponding screening by all first two-dimentional code value and the two-dimentional code value of part first obtained after screening is sent to described mobile terminal.
Preferably, described screening module specifically for:
According to the ASCII character table of comparisons, from all first two-dimentional code values, filter out the first two-dimentional code value corresponding with the character string set and send to described mobile terminal.
Preferably, described mobile terminal comprises:
Difference operation module, for according to the ASCII character table of comparisons, carries out difference operation by the ASCII character value in the second two-dimentional code value corresponding to each character with the ASCII character value corresponding to each character in the described televisor sends first two-dimentional code value is sequentially corresponding;
First processing module, for when the ASCII character difference in the second two-dimentional code value and the first two-dimentional code value corresponding to each character is zero, determines to there is not interference in the second two-dimentional code value, exits Inspection;
Second processing module, for when there is non-zero in the ASCII character difference in the second two-dimentional code value and the first two-dimentional code value corresponding to each character, determine there is interference in the second two-dimentional code value and the second two-dimentional code value replaced with the first two-dimentional code value the highest with the second two-dimentional code value similarity in the first two-dimentional code value that described televisor sends.
Preferably, described second processing module comprises:
Interference determining unit, for when there is non-zero in the ASCII character difference in the second two-dimentional code value and the first two-dimentional code value corresponding to each character, determines to there is interference in the second two-dimentional code value;
Similarity determining unit, after each first two-dimentional code value for sending at the second two-dimentional code value and described televisor carries out ASCII character difference Inspection successively, the ASCII character difference of adding up in ASCII character difference Inspection each time corresponding to each character be zero number and the second two-dimentional code value in the ratio of the total number of character, to determine the similarity of the second two-dimentional code value and corresponding the first two-dimentional code value verified of comparing;
Two dimension code value replacement unit, for replacing with the first two-dimentional code value the highest with the second two-dimentional code value similarity in the first two-dimentional code value that televisor sends by the second two-dimentional code value.
The present invention by Quick Response Code shown on television decoding television screen, thus obtains the correct two-dimentional code value corresponding to Quick Response Code shown on television screen.When mobile scanning terminal Quick Response Code, for avoiding interference the impact of factor, therefore, the two-dimentional code value corresponding to Quick Response Code scanned mobile terminal is each time needed to verify, the Quick Response Code of specifically decoding using televisor as comparison basis during verification, and carries out respective handling according to Inspection result and disturbs to remove Quick Response Code scanning.There is disturbing factor impact during by the invention solves Quick Response Code scanning and cause the problem of Quick Response Code identification error, reducing the error rate of Quick Response Code scanning, also improve user's experience simultaneously.
Embodiment
Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Reference Fig. 1, Fig. 1 are the schematic flow sheet that the present invention removes disposal route one embodiment of Quick Response Code scanning interference.In the present embodiment, the disposal route of described removal Quick Response Code scanning interference comprises:
Step S10, when some Quick Response Codes show on television screen, all Quick Response Codes shown on television decoding TV machine screen, obtain corresponding first two-dimentional code value and part or all of first two-dimentional code value are sent to mobile terminal;
In the present embodiment, for obtaining the correct two-dimentional code value of the Quick Response Code that television screen shows, when some Quick Response Codes show on television screen, directly by televisor self, all Quick Response Codes shown on TV machine screen are decoded, thus avoid obtaining by scan mode the Quick Response Code that there is interference and then may exist after making to decode the generation of the situation of error in data.
In addition, in the present embodiment, for carrying out corresponding operating on mobile terminal screen in view of user uses mobile terminal (being such as with the mobile phone of camera and screen) to scan Quick Response Code, such as Video chat or enter into related web site etc., therefore, the process in the present embodiment, removal Quick Response Code being scanned interference is mainly placed on mobile terminal to be carried out.Thus, after televisor obtains correct two-dimentional code value by decoding, need the obtain first two-dimentional code value to be sent to mobile terminal.
It should be noted that, in the present embodiment, the mode of the two-dimentional code value of transmission first is not limit, specifically arrange according to actual needs.Such as after decode two dimensional codes, initiatively send to mobile terminal by televisor, or send to mobile terminal again after sending by mobile terminal the request of acquisition.
In addition, owing to television screen may show the situation of multiple Quick Response Code, simultaneously, the different implications representated by two-dimentional code value is not identical, such as, in multiple Quick Response Codes that television screen shows, likely some information corresponding to two-dimentional code value is not required for user, namely likely exist not is the required Quick Response Code scanned of user yet, thus such Quick Response Code might not need to send to mobile terminal, therefore, in the present embodiment, quantity for the first two-dimentional code value sent is not limit, it can be the two-dimentional code value of part first meeting correlated condition, also can be whole two-dimentional code value.
Step S20, when Quick Response Code shown on mobile scanning terminal television screen, mobile terminal is decoded the Quick Response Code that scans obtain corresponding second two-dimentional code value; Or when Quick Response Code shown on mobile scanning terminal television screen, the Quick Response Code scanned is sent to cloud server by mobile terminal to carry out decoding and receives the second two-dimentional code value that cloud server returns;
In the present embodiment, when Quick Response Code shown on mobile scanning terminal television screen, the Quick Response Code that mobile terminal scans both can carry out decoding by mobile terminal self and obtain the second two-dimentional code value, also decoded by cloud server after the Quick Response Code scanned can being sent to cloud server by mobile terminal, the second two-dimentional code value returned after simultaneously receiving cloud server decoding.The concrete decoding process of the Quick Response Code that mobile terminal scans is arranged according to actual needs.Consider complicacy and the decoding efficiency of Quick Response Code, preferably decoded by cloud server in the present embodiment.
Step S30, mobile terminal is according to preset Quick Response Code Inspection rule, the the first two-dimentional code value second two-dimentional code value and televisor sent is compared and is verified, and carry out respective handling to remove Quick Response Code scanning interference according to Inspection result, wherein, when Inspection result is for existing Quick Response Code scanning interference, determine that two-dimentional code value similarity is the highest with second the first two-dimentional code value is to replace this second two-dimentional code value.
In the present embodiment, for accurately removing Quick Response Code scanning interference fast, therefore, mobile terminal by scanning decode afterwards the second two-dimentional code value of obtaining by with first of television decoding the two-dimentional code value for comparison basis is compared verification, thus determine in the second Quick Response Code, whether to there is scanning interference and carry out corresponding Quick Response Code scanning interference Transformatin according to comparison result, such as comparison result for there is not scanning interference, then directly can run the network address corresponding to Quick Response Code; And if for there is scanning interference in comparison result, then need the Transformatin carrying out Quick Response Code scanning interference, in the present embodiment, Transformatin mode for Quick Response Code scanning interference is not limit, specifically arrange according to actual needs, as by determining that two-dimentional code value similarity is the highest with second the first two-dimentional code value is for replacing this second two-dimentional code value.
In the present embodiment, the rule for Quick Response Code Inspection is not limit, and specifically arranges according to actual needs.Such as, the Quick Response Code that mobile scanning terminal is decoded is sent multiple Quick Response Code with televisor successively compare, it can be specifically the comparison by an order character character from left to right, also can be the unique identification first obtaining each Quick Response Code, by the mark of the mark and the second Quick Response Code that compare the first Quick Response Code, thus in multiple first Quick Response Code, determine first Quick Response Code with the second Quick Response Code with like-identified, and then compare with the second Quick Response Code.
In addition, need to further illustrate, in the present embodiment, the precondition carrying out removing Quick Response Code scanning interference process is that the Quick Response Code that mobile terminal scans is not disturbed or loss completely, also namely need specifically basic key message, such as possess three anchor points so that take pictures.As a rule, can't there is too many interference or damage in Quick Response Code shown on televisor, meanwhile, user uses during mobile scanning terminal also can carry out preliminary examination, therefore, usually can't occur the Quick Response Code of None-identified.
In the present embodiment, by Quick Response Code shown on television decoding television screen, thus obtain the correct two-dimentional code value corresponding to Quick Response Code shown on television screen.When mobile scanning terminal Quick Response Code, for avoiding interference the impact of factor, therefore, the two-dimentional code value corresponding to Quick Response Code scanned mobile terminal is each time needed to verify, the Quick Response Code of specifically decoding using televisor as comparison basis during verification, and carries out the Transformatin of Quick Response Code scanning interference according to Inspection result.There is disturbing factor impact during by the invention solves Quick Response Code scanning and cause the problem of Quick Response Code identification error, reducing the error rate of Quick Response Code scanning, also improve user's experience simultaneously.
With reference to the refinement schematic flow sheet that Fig. 2, Fig. 2 are step S10 in Fig. 1.Based on above-described embodiment, in the present embodiment, above-mentioned steps S10 comprises:
Step S101, when some Quick Response Codes show on television screen, all Quick Response Codes shown on television decoding TV machine screen, obtain corresponding first two-dimentional code value;
In the present embodiment, for accurately obtaining the two-dimentional code value (being also the first Quick Response Code) corresponding to Quick Response Code shown on television screen, therefore decode again after needing to avoid adopting scan mode to obtain image in 2 D code, therefore, in the present embodiment, specifically decoded by televisor self, also namely televisor, from while two-dimensional code display, also completes the decoding to shown all Quick Response Codes.It should be noted that, for same two-dimentional code value shown on television screen, the two-dimentional code value that it obtains after finally decoding although television decoding and mobile scanning terminal are decoded is identical, and the decoding process of the two is not necessarily identical.In addition, due to televisor and which Quick Response Code uncertain user can scan, therefore, televisor needs all Quick Response Codes shown on decoded television machine screen, meanwhile, by obtaining corresponding first Quick Response Code after decoding.
Step S102, all first two-dimentional code value, according to the two-dimentional code value screening rule of setting, is carried out corresponding screening and the two-dimentional code value of part first obtained after screening is sent to mobile terminal by televisor.
Consider that the application purpose of Quick Response Code is wider, if all Quick Response Codes are all sent to mobile terminal, not only not pointed, also greatly can increase the weight of the efficiency of two-dimentional code value Inspection simultaneously, therefore, in the present embodiment, by arranging two-dimentional code value screening rule, corresponding screening is carried out to all first two-dimentional code values of television decoding, and then the two-dimentional code value that can send the Quick Response Code that some users probably can be scanned targetedly is given to mobile terminal and stores.Need to further illustrate, for the setting of two-dimentional code value screening rule, by televisor default setting, also can be arranged as required by user.
In the present embodiment, when televisor sends the first two-dimentional code value to mobile terminal, sending pointedly for having more, also improving the two-dimentional code value Inspection efficiency of mobile terminal simultaneously, preferably adopt the screening rule of setting in the present embodiment, two-dimentional for part first code value is sent to mobile terminal.
Further preferably, televisor, according to the ASCII character table of comparisons, filters out the first two-dimentional code value corresponding with the character string set and sends to mobile terminal from all first two-dimentional code values.Such as, the Quick Response Code of user to type of webpage is interested, therefore, " www " or " Http " can be set to screen character, specifically can complete above-mentioned screening process according to the ASCII character table of comparisons.In addition, it should be noted that, owing to adopting ASCII character can complete basic character code in existing daily use, such as numeral, letter, symbol etc., therefore, preferably adopt the ASCII character table of comparisons to complete in this enforcement the screening process setting character string.
With reference to the refinement schematic flow sheet that Fig. 3, Fig. 3 are step S30 in Fig. 1.Based on above-described embodiment, in the present embodiment, above-mentioned steps S30 comprises:
Step S301, the ASCII character value in the second two-dimentional code value corresponding to each character, according to the ASCII character table of comparisons, is carried out difference operation with the ASCII character value corresponding to each character in the televisor sends first two-dimentional code value is sequentially corresponding by mobile terminal;
In the present embodiment, the character in two-dimentional code value can be converted into corresponding ASCII character value (being such as converted into tens digit) by the ASCII character table of comparisons, and then can difference operation be carried out.
Such as, televisor have sent three the first two-dimentional code values to mobile terminal: www.aac.com, www.cdc.com, www.aad.com; The decoded second two-dimentional code value that mobile terminal scans is: www.aad.com, then by www.aad.com successively with the ASCII character value corresponding to each character in www.aac.com, www.cdc.com, www.aad.com sequentially correspondence carry out difference operation.
Step S302, when the ASCII character difference in the second two-dimentional code value and the first two-dimentional code value corresponding to each character is zero, determines to there is not interference in the second two-dimentional code value, exits Inspection;
Such as, second two-dimentional code value www.aad.com and the first two-dimentional code value www.aac.com, www.cdc.com, the ASCII character difference corresponding to each character of the www.aad.com in www.aad.com is zero, then determine to there is not interference in the second two-dimentional code value, exit Inspection, also there are other first Quick Response Codes not carrying out difference operation if follow-up, then no longer proceed comparison.
Step S303, when there is non-zero in the ASCII character difference in the second two-dimentional code value and the first two-dimentional code value corresponding to each character, determine there is interference in the second two-dimentional code value and the second two-dimentional code value replaced with the first two-dimentional code value the highest with the second two-dimentional code value similarity in the first two-dimentional code value that televisor sends.
Such as, second two-dimentional code value www.aadck.com and the first two-dimentional code value www.aacck.com, www.cdc.com, in the difference comparison process of www.acd.com, the difference of the second two-dimentional code value and all first two-dimentional code values is not zero entirely, therefore, determine to there is interference in the second two-dimentional code value, thus need to replace this second two-dimentional code value, specifically preferably the second two-dimentional code value is replaced with the first two-dimentional code value the highest with the second two-dimentional code value similarity in the first two-dimentional code value that televisor sends.Such as, the www.aacck.co in the first two-dimentional code value and the second two-dimentional code value www.aadck.com similarity the highest.In the present embodiment, the account form for similarity is not limit, and specifically arranges according to actual needs.
In the present embodiment, the sequencing between above-mentioned steps S302 and S303 is not limit.Generally after screening, the quantity of the first two-dimentional code value that televisor sends can be less, therefore, the all first two-dimentional code values second two-dimentional code value and televisor sent verification of comparing can't cause too large impact to comparison efficiency, simultaneously, also the second Quick Response Code can guaranteeing corresponding to the Quick Response Code that mobile terminal scans in the embodiment of the present invention must be included in the first two-dimentional code value that televisor sends, therefore, the real two-dimentional code value of the Quick Response Code that the second two-dimentional code value is corresponding uniquely can be determined by similarity-rough set.
In addition, also can stamp unique identifier in order to distinguish other Quick Response Codes by televisor to each Quick Response Code in the present invention, then corresponding decoded two-dimentional code value also possesses this unique identifier.When the Quick Response Code of mobile terminal on scanning television screen and after decoding, can unique identifier corresponding to this two-dimentional code value, directly find two-dimentional code value corresponding in all two-dimentional code value sent with televisor.
With reference to the refinement schematic flow sheet that Fig. 4, Fig. 4 are step S303 in Fig. 3.Based on above-described embodiment, in the present embodiment, above-mentioned steps S303 comprises:
Step S3031, when there is non-zero in the ASCII character difference in the second two-dimentional code value and the first two-dimentional code value corresponding to each character, determines to there is interference in the second two-dimentional code value;
In the present embodiment, when there is non-zero in the ASCII character difference in the second two-dimentional code value and the first two-dimentional code value corresponding to each character, namely the character of the two comparison is not identical yet, then can determine to there is interference in the second two-dimentional code value.
Step S3032, after each the first two-dimentional code value sent at the second two-dimentional code value and televisor carries out ASCII character difference Inspection successively, the ASCII character difference of adding up in ASCII character difference Inspection each time corresponding to each character be zero number and the second two-dimentional code value in the ratio of the total number of character, to determine the similarity of the second two-dimentional code value and corresponding the first two-dimentional code value verified of comparing;
In the present embodiment, due to and which or multiple character in uncertain second two-dimentional code value receives interference, therefore, preferably adopt the ASCII character difference of adding up in ASCII character difference Inspection each time corresponding to each character be zero number and the ratio of the total number of character in the second two-dimentional code value determine the similarity of the second two-dimentional code value and corresponding the first two-dimentional code value verified of comparing.
Such as, second two-dimentional code value www.aadck.com and the first two-dimentional code value www.aacck.com, www.cdc.com, in the difference comparison process of www.acd.com, the difference of the second two-dimentional code value and all first two-dimentional code values is not zero entirely, wherein, the difference comparison of the www.aacck.co in the first two-dimentional code value and the second two-dimentional code value www.aadck.com is that the proportion between the number of zero and total character number is the highest, therefore similarity is also the highest therebetween, and the first two-dimentional code value that also namely this similarity is the highest is the correct two-dimentional code value of this second two-dimentional code value.
Step S3033, replaces with the first two-dimentional code value the highest with the second two-dimentional code value similarity in the first two-dimentional code value that televisor sends by the second two-dimentional code value.
In the present embodiment, adopt the mode of replacing to complete the correction of two-dimentional code value to scanning mistake, even if thus mobile terminal scans the Quick Response Code of mistake, also can obtain correct two-dimentional code value, and then carry out data access according to the correct two-dimentional code value after replacing.
In addition, what needs further illustrated is, due to all more complicated of the coded system between different Quick Response Code, meanwhile, also can there is very large difference in the corresponding two-dimentional code value obtained, and such as seldom there will be the situation that the character of continuous more than 5 is identical between different two-dimentional code value, therefore, can also judge in Inspection process further in the present embodiment, whether continuously difference be the character appearance more than 5 times of zero, if then can be defined as the two-dimentional code value needing to replace.Or in the present embodiment, can also a similarity threshold be set further, such as be set to 70%, if after the complete two-dimentional code value of comparison each time, if the similarity between the two-dimentional code value of this comparison is more than or equal to 70%, then can be defined as the two-dimentional code value needing to replace.The different comparison efficiency corresponding to Inspection mode and accuracy rate all different, in the present embodiment, for taking into account after comparison efficiency and accuracy rate preferably adopt and carry out comparison one by one to all first Quick Response Codes, then determined the replacement Quick Response Code selected by similarity statistics.
Reference Fig. 5-6, Fig. 5 is the high-level schematic functional block diagram that the present invention removes disposal system one embodiment of Quick Response Code scanning interference; Fig. 6 is the high-level schematic functional block diagram that the present invention removes another embodiment of disposal system of Quick Response Code scanning interference.The disposal system of described removal Quick Response Code scanning interference at least comprises televisor 10, mobile terminal 20 or also comprises cloud server 30;
Described televisor 10, for when some Quick Response Codes show on described televisor 10 screen, to decode all Quick Response Codes shown on current described televisor 10 screen, obtain corresponding first two-dimentional code value and part or all of first two-dimentional code value is sent to described mobile terminal 20;
In the present embodiment, for obtaining the correct two-dimentional code value of the Quick Response Code that televisor 10 screen shows, when some Quick Response Codes show on televisor 10 screen, directly by televisor 10 self, all Quick Response Codes shown on TV machine 10 screen are decoded, thus avoid obtaining by scan mode the Quick Response Code that there is interference and then may exist after making to decode the generation of the situation of error in data.
In addition, in the present embodiment, for carrying out corresponding operating on mobile terminal 20 screen in view of user uses mobile terminal 20 (being such as with the mobile phone of camera and screen) to scan Quick Response Code, such as Video chat or enter into related web site etc., therefore, the process in the present embodiment, removal Quick Response Code being scanned interference is mainly placed on mobile terminal 20 to be carried out.Thus, after televisor 10 obtains correct two-dimentional code value by decoding, need the obtain first two-dimentional code value to be sent to mobile terminal 20.
It should be noted that, in the present embodiment, the mode of the two-dimentional code value of transmission first is not limit, specifically arrange according to actual needs.Such as after decode two dimensional codes, initiatively send to mobile terminal 20 by televisor 10, or send to mobile terminal 20 again after sending by mobile terminal 20 request of acquisition.
In addition, owing to televisor 10 screen may show the situation of multiple Quick Response Code, simultaneously, the different implications representated by two-dimentional code value is not identical, such as, information in multiple Quick Response Codes that televisor 10 screen shows likely corresponding to some two-dimentional code value is not required for user, namely likely exist not is the required Quick Response Code scanned of user yet, thus such Quick Response Code might not need to send to mobile terminal 20, therefore, in the present embodiment, quantity for the first two-dimentional code value sent is not limit, it can be the two-dimentional code value of part first meeting correlated condition, also can be whole two-dimentional code value.
Described mobile terminal 20, for when scanning Quick Response Code shown on described televisor 10 screen, the Quick Response Code that decoding scans also obtains corresponding second two-dimentional code value; Or,
Described mobile terminal 20 is also for when scanning Quick Response Code shown on described televisor 10 screen, the Quick Response Code scanned is sent to described cloud server 30 carry out decoding and receive the second two-dimentional code value that described cloud server 30 returns, wherein, the Quick Response Code that sends for described mobile terminal 20 of decoding of described cloud server 30 return the second two-dimentional code value;
In the present embodiment, when mobile terminal 20 scans Quick Response Code shown on televisor 10 screen, the Quick Response Code that mobile terminal 20 scans both can carry out decoding by mobile terminal 20 self and obtain the second two-dimentional code value, also decoded by cloud server 30 after the Quick Response Code scanned can being sent to cloud server 30 by mobile terminal 20, receive the second two-dimentional code value returned after cloud server 30 is decoded simultaneously.The concrete decoding process of the Quick Response Code that mobile terminal 20 scans is arranged according to actual needs.Consider complicacy and the decoding efficiency of Quick Response Code, preferably decoded by cloud server 30 in the present embodiment.
Described mobile terminal 20, also for regular according to preset Quick Response Code Inspection, the the first two-dimentional code value second two-dimentional code value and described televisor 10 sent is compared and is verified, and carry out respective handling to remove Quick Response Code scanning interference according to Inspection result, wherein, when Inspection result is for existing Quick Response Code scanning interference, determine that two-dimentional code value similarity is the highest with second the first two-dimentional code value is to replace this second two-dimentional code value.
In the present embodiment, for accurately removing Quick Response Code scanning interference fast, therefore, whether mobile terminal 20 decode the second two-dimentional code value of obtaining by the decode with televisor 10 first two-dimentional code value for comparison basis is compared verification afterwards by scanning, thus determine to exist in the second Quick Response Code to scan and disturb and carry out respective handling according to comparison result.
In the present embodiment, the rule for Quick Response Code Inspection is not limit, and specifically arranges according to actual needs.Such as, by the Quick Response Code of mobile terminal 20 scan decoder successively with televisor 10 send multiple Quick Response Code and compare, it can be specifically the comparison by an order character character from left to right, also can be the unique identification first obtaining each Quick Response Code, by the mark of the mark and the second Quick Response Code that compare the first Quick Response Code, thus in multiple first Quick Response Code, determine first Quick Response Code with the second Quick Response Code with like-identified, and then compare with the second Quick Response Code.
In addition, need to further illustrate, in the present embodiment, the precondition carrying out removing Quick Response Code scanning interference process is that the Quick Response Code that mobile terminal 20 scans is not disturbed or loss completely, also namely need specifically basic key message, such as possess three anchor points so that take pictures.As a rule, can't there is too many interference or damage in Quick Response Code shown on televisor 10, meanwhile, also can carry out preliminary examination when user uses mobile terminal 20 to scan, therefore, usually can't occur the Quick Response Code of None-identified.
In the present embodiment, by Quick Response Code shown on televisor 10 decoded television machine 10 screen, thus obtain the correct two-dimentional code value corresponding to Quick Response Code shown on televisor 10 screen.When mobile terminal 20 scans Quick Response Code, for avoiding interference the impact of factor, therefore, the two-dimentional code value corresponding to Quick Response Code scanned mobile terminal 20 is each time needed to verify, the Quick Response Code of specifically decoding using televisor 10 as comparison basis during verification, and carries out respective handling according to Inspection result and disturbs to remove Quick Response Code scanning.There is disturbing factor impact during by the invention solves Quick Response Code scanning and cause the problem of Quick Response Code identification error, reducing the error rate of Quick Response Code scanning, also improve user's experience simultaneously.
With reference to the refinement high-level schematic functional block diagram that Fig. 7, Fig. 7 are televisor 10 in Fig. 5.Based on above-described embodiment, in the present embodiment, described televisor 10 comprises:
Decoder module 101, for when some Quick Response Codes show on described televisor 10 screen, all Quick Response Codes shown on current described televisor 10 screen of decoding, obtain corresponding first two-dimentional code value;
In the present embodiment, for accurately obtaining the two-dimentional code value (being also the first Quick Response Code) corresponding to Quick Response Code shown on televisor 10 screen, therefore decode again after needing to avoid adopting scan mode to obtain image in 2 D code, therefore, in the present embodiment, specifically self decoded by televisor 10, also namely televisor 10, from while two-dimensional code display, also completes the decoding to shown all Quick Response Codes.It should be noted that, for same two-dimentional code value shown on televisor 10 screen, although televisor 10 is decoded, the two-dimentional code value that it obtains after finally decoding with mobile terminal 20 scan decoder is identical, and the decoding process of the two is not necessarily identical.In addition, due to televisor 10 and which Quick Response Code uncertain user can scan, therefore, televisor 10 needs all Quick Response Codes shown on decoded television machine 10 screen, meanwhile, by obtaining corresponding first Quick Response Code after decoding.
Screening module 102, for the two-dimentional code value screening rule according to setting, carries out corresponding screening by all first two-dimentional code value and the two-dimentional code value of part first obtained after screening is sent to described mobile terminal 20.
Consider that the application purpose of Quick Response Code is wider, if all Quick Response Codes are all sent to mobile terminal 20, not only not pointed, also greatly can increase the weight of the efficiency of two-dimentional code value Inspection simultaneously, therefore, in the present embodiment, by arranging two-dimentional code value screening rule, corresponding screening is carried out to all first two-dimentional code values that televisor 10 is decoded, and then the two-dimentional code value that can send the Quick Response Code that some users probably can be scanned targetedly is given to mobile terminal 20 and stores.Need to further illustrate, for the setting of two-dimentional code value screening rule, by televisor 10 default setting, also can be arranged as required by user.
In the present embodiment, when televisor 10 sends the first two-dimentional code value to mobile terminal 20, send pointedly for having more, also improve the two-dimentional code value Inspection efficiency of mobile terminal 20 simultaneously, preferably adopt the screening rule of setting in the present embodiment, two-dimentional for part first code value is sent to mobile terminal 20.
Further preferably, televisor 10, according to the ASCII character table of comparisons, filters out the first two-dimentional code value corresponding with the character string set and sends to mobile terminal 20 from all first two-dimentional code values.Such as, the Quick Response Code of user to type of webpage is interested, therefore, " www " or " Http " can be set to screen character, specifically can complete above-mentioned screening process according to the ASCII character table of comparisons.In addition, it should be noted that, owing to adopting ASCII character can complete basic character code in existing daily use, such as numeral, letter, symbol etc., therefore, preferably adopt the ASCII character table of comparisons to complete in this enforcement the screening process setting character string.
With reference to the refinement high-level schematic functional block diagram that Fig. 8, Fig. 8 are mobile terminal 20 in Fig. 5.Based on above-described embodiment, in the present embodiment, described mobile terminal 20 comprises:
Difference operation module 201, for according to the ASCII character table of comparisons, the ASCII character value in the second two-dimentional code value corresponding to each character is carried out difference operation with the ASCII character value corresponding to each character in the first two-dimentional code value that described televisor 10 sends is sequentially corresponding;
In the present embodiment, the character in two-dimentional code value can be converted into corresponding ASCII character value (being such as converted into tens digit) by the ASCII character table of comparisons by difference operation module 201, and then can carry out difference operation.
Such as, televisor 10 have sent three the first two-dimentional code values to mobile terminal 20:www.aac.com, www.cdc.com, www.aad.com; The decoded second two-dimentional code value that mobile terminal 20 scans is: www.aad.com, then difference operation module 201 by www.aad.com successively with www.aac.com, ASCII character value in www.cdc.com, www.aad.com corresponding to each character sequentially correspondence carries out difference operation.
First processing module 202, for when the ASCII character difference in the second two-dimentional code value and the first two-dimentional code value corresponding to each character is zero, determines to there is not interference in the second two-dimentional code value, exits Inspection;
Such as, second two-dimentional code value www.aad.com and the first two-dimentional code value www.aac.com, www.cdc.com, the ASCII character difference corresponding to each character of the www.aad.com in www.aad.com is zero, then the first processing module 202 determines to there is not interference in the second two-dimentional code value, exit Inspection, also there are other first Quick Response Codes not carrying out difference operation if follow-up, then no longer proceed comparison.
Second processing module 203, for when there is non-zero in the ASCII character difference in the second two-dimentional code value and the first two-dimentional code value corresponding to each character, determine there is interference in the second two-dimentional code value and the second two-dimentional code value replaced with the first two-dimentional code value the highest with the second two-dimentional code value similarity in the first two-dimentional code value that described televisor 10 sends.
Such as, second two-dimentional code value www.aadck.com and the first two-dimentional code value www.aacck.com, www.cdc.com, in the difference comparison process of www.acd.com, the difference of the second two-dimentional code value and all first two-dimentional code values is not zero entirely, therefore, second processing module 203 determines to there is interference in the second two-dimentional code value, thus need to replace this second two-dimentional code value, specifically preferably the second two-dimentional code value is replaced with the first two-dimentional code value the highest with the second two-dimentional code value similarity in the first two-dimentional code value that televisor 10 sends.Such as, the www.aacck.co in the first two-dimentional code value and the second two-dimentional code value www.aadck.com similarity the highest.In the present embodiment, the account form for similarity is not limit, and specifically arranges according to actual needs.
In the present embodiment, generally after screening, the quantity of the first two-dimentional code value that televisor 10 sends can be less, therefore, the all first two-dimentional code values second two-dimentional code value and televisor 10 sent verification of comparing can't cause too large impact to comparison efficiency, simultaneously, also the second Quick Response Code can guaranteeing corresponding to the Quick Response Code that mobile terminal 20 scans in the embodiment of the present invention must be included in the first two-dimentional code value that televisor 10 sends, therefore, the real two-dimentional code value of the Quick Response Code that the second two-dimentional code value is corresponding uniquely can be determined by similarity-rough set.
In addition, also can stamp unique identifier in order to distinguish other Quick Response Codes by televisor 10 to each Quick Response Code in the present invention, then corresponding decoded two-dimentional code value also possesses this unique identifier.When the Quick Response Code of mobile terminal 20 on scanning televisor 10 screen and after decoding, can unique identifier corresponding to this two-dimentional code value, directly find two-dimentional code value corresponding in all two-dimentional code value sent with televisor 10.
With reference to the refinement high-level schematic functional block diagram that Fig. 9, Fig. 9 are the second processing module in Fig. 8.Based on above-described embodiment, in the present embodiment, described second processing module 203 comprises:
Interference determining unit 2031, for when there is non-zero in the ASCII character difference in the second two-dimentional code value and the first two-dimentional code value corresponding to each character, determines to there is interference in the second two-dimentional code value;
In the present embodiment, when there is non-zero in the ASCII character difference in the second two-dimentional code value and the first two-dimentional code value corresponding to each character, namely the character of the two comparison is not identical yet, then disturb determining unit 2031 can determine to there is interference in the second two-dimentional code value.
Similarity determining unit 2032, after each first two-dimentional code value for sending at the second two-dimentional code value and described televisor 10 carries out ASCII character difference Inspection successively, the ASCII character difference of adding up in ASCII character difference Inspection each time corresponding to each character be zero number and the second two-dimentional code value in the ratio of the total number of character, to determine the similarity of the second two-dimentional code value and corresponding the first two-dimentional code value verified of comparing;
In the present embodiment, due to and which or multiple character in uncertain second two-dimentional code value receives interference, therefore, preferably by similarity determining unit 2032 adopt the ASCII character difference of adding up in ASCII character difference Inspection each time corresponding to each character be zero number and the ratio of the total number of character in the second two-dimentional code value determine the similarity of the second two-dimentional code value and corresponding the first two-dimentional code value verified of comparing.
Such as, second two-dimentional code value www.aadck.com and the first two-dimentional code value www.aacck.com, www.cdc.com, in the difference comparison process of www.acd.com, the difference of the second two-dimentional code value and all first two-dimentional code values is not zero entirely, wherein, the difference comparison of the www.aacck.co in the first two-dimentional code value and the second two-dimentional code value www.aadck.com is that the proportion between the number of zero and total character number is the highest, therefore similarity is also the highest therebetween, and the first two-dimentional code value that also namely this similarity is the highest is the correct two-dimentional code value of this second two-dimentional code value.
Two dimension code value replacement unit 2033, for replacing with the first two-dimentional code value the highest with the second two-dimentional code value similarity in the first two-dimentional code value that televisor 10 sends by the second two-dimentional code value.
In the present embodiment, two dimension code value replacement unit 2033 adopts the mode of replacing to complete the correction of the two-dimentional code value to scanning mistake, even if thus mobile terminal 20 scans the Quick Response Code of mistake, also can obtain correct two-dimentional code value, and then carry out data access according to the correct two-dimentional code value after replacing.
In addition, what needs further illustrated is, due to all more complicated of the coded system between different Quick Response Code, meanwhile, also can there is very large difference in the corresponding two-dimentional code value obtained, and such as seldom there will be the situation that the character of continuous more than 5 is identical between different two-dimentional code value, therefore, can also judge in Inspection process further in the present embodiment, whether continuously difference be the character appearance more than 5 times of zero, if then can be defined as the two-dimentional code value needing to replace.Or in the present embodiment, can also a similarity threshold be set further, such as be set to 70%, if after the complete two-dimentional code value of comparison each time, if the similarity between the two-dimentional code value of this comparison is more than or equal to 70%, then can be defined as the two-dimentional code value needing to replace.The different comparison efficiency corresponding to Inspection mode and accuracy rate all different, in the present embodiment, for taking into account after comparison efficiency and accuracy rate preferably adopt and carry out comparison one by one to all first Quick Response Codes, then determined the replacement Quick Response Code selected by similarity statistics.
These are only the preferred embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every utilize instructions of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.