CN107480572A - A kind of method and system that coded data is identified using generic service - Google Patents

A kind of method and system that coded data is identified using generic service Download PDF

Info

Publication number
CN107480572A
CN107480572A CN201710698224.8A CN201710698224A CN107480572A CN 107480572 A CN107480572 A CN 107480572A CN 201710698224 A CN201710698224 A CN 201710698224A CN 107480572 A CN107480572 A CN 107480572A
Authority
CN
China
Prior art keywords
service
specific
data cell
identified
encoded data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710698224.8A
Other languages
Chinese (zh)
Other versions
CN107480572B (en
Inventor
管帅朝
汤涌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Anyun Century Technology Co Ltd
Original Assignee
Beijing Anyun Century Technology Co Ltd
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 Beijing Anyun Century Technology Co Ltd filed Critical Beijing Anyun Century Technology Co Ltd
Priority to CN201710698224.8A priority Critical patent/CN107480572B/en
Publication of CN107480572A publication Critical patent/CN107480572A/en
Application granted granted Critical
Publication of CN107480572B publication Critical patent/CN107480572B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/06009Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
    • G06K19/06037Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking multi-dimensional coding

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Electromagnetism (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Information Transfer Between Computers (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present invention relates to a kind of method and system that coded data is identified using generic service, wherein method includes:Obtain the true encoded data cell of predetermined quantity;Identical encoded content between the encoded data cell of the predetermined quantity is determined, and the identical encoded content is divided into multiple coding sections;Based on the basic identification division generation being made up of at least one coding section virtual encoder data cell associated with the specific service object, when based on the virtual encoder data cell of minimum coding section by the specifically verification of correctness of the service-specific of service object, determine condition code and condition code and condition code and the corresponding relation of respective specific object are stored in feature database;And generic service receives encoded data cell to be identified, and the current service object corresponding to encoded data cell to be identified is determined based on the condition code in the feature database and corresponding relation, encoded data cell to be identified is sent into current service object.

Description

A kind of method and system that coded data is identified using generic service
Technical field
The present invention relates to field of information processing, and relate more specifically to a kind of identify coded data using generic service Method and system and mobile terminal.
Background technology
The popularization of coded data enables the equipment with computing capability to enter row information reading, processing and expression.Mesh Before, the trend that mobile device carries out information processing by Quick Response Code is more and more common.Quick Response Code is in recent years in movement The popular a kind of coded system applied in equipment, it can preserve more information than traditional bar code and being capable of table Show more data types.
The black and white phase that Quick Response Code is distributed in plane (on two-dimensional directional) according to certain rules using certain specific geometric figure Between figure carry out record data symbolic information.On coding, Quick Response Code is dexterously using forming computer-internal logic base " 0 ", the concept of " 1 " bit stream of plinth, the geometrical body corresponding with binary system using several represent word numerical information. Image input device or photoelectric scanning device can automatically identifying and reading Quick Response Code to realize that information automatically processes.Quick Response Code has bar code Some general character of technology:Every kind of code system has its specific character set, each character to occupy certain width and have necessarily Verifying function etc..In addition, Quick Response Code also has the function that automatic identification is carried out to the information do not gone together and processing figure rotation The function of change point.
At present, multiple service providers are serviced by Quick Response Code to provide with the information exchange of user, accounting processing etc..Example Such as, Alipay user scans specific Quick Response Code by Alipay application, so as to carry out quick payment.Similarly, wechat is used Family can scan specific Quick Response Code by wechat application, so as to realize webpage redirect, add good friend and information identification etc. Function.However, the Quick Response Code that each service provider is provided is typically only capable to be identified by the application of same provider.Example Such as, Alipay application can identify the Quick Response Code that provider generated by it or same is generated, and not identify wechat The Quick Response Code generated.Therefore, when user wishes specific Quick Response Code is identified, first have to determine the clothes of specific Quick Response Code Be engaged in provider, and selects corresponding application according to identified service provider to be identified.This mode is to user Caused by greatly inconvenience because user needs to identify Quick Response Code source and runs application-specific.
Therefore, a kind of generic service for the coded data that can identify such as Quick Response Code etc is needed in the prior art.
The content of the invention
In order to solve the above problems, the application provides a kind of method that coded data is identified using generic service, the side Method includes:
The true encoded data cell of the predetermined quantity associated with specific service object is obtained by generic service, its In the true encoded data cell of the predetermined quantity is generated by the service-specific of the specific service object;
Identical encoded content between the encoded data cell of the predetermined quantity is determined, and the identical is encoded Division of teaching contents is into multiple coding sections;
The basic identification division generation formed based at least one coding section selected from the multiple coding section with The virtual encoder data cell that the specific service object is associated, when the virtual encoder data cell based on minimum coding section During by the specifically verification of correctness of the service-specific of service object, it is determined that selected minimum coding section is the spy The condition code of fixed service object;
Identified condition code and described document information and the corresponding relation of respective specific object are stored in feature database; And
The generic service receives encoded data cell to be identified, based on the condition code in the feature database and corresponding pass System determines the current service object corresponding to the encoded data cell to be identified, by the encoded data cell to be identified It is sent to the current service object.
Preferably, the current service object is solved using service-specific to the encoded data cell to be identified Data entrained by the encoded data cell to be identified are handled by code according to the result of decoding.
Preferably, the generic service is to serve the service of operating system, and service-specific is to serve the spy The service of fixed service object.
Preferably, the service-specific None- identified and other service object's phases in addition to the specific service object The encoded data cell of association.
Preferably, the specific service object is can to run and can identify coded data list in an operating system The application of member.
Preferably, it is described the identical encoded content is divided into multiple coding sections to include:
Discontinuous part in the identical encoded content is defined as to initialize coding section;And
Each initialization coding section is finely divided by predetermined length value, so as to obtain multiple coding sections.
Preferably, the basis identification formed based at least one coding section selected from the multiple coding section The generation virtual encoder data cell associated with the specific service object in part includes:Selected from the multiple coding section All combinations of code segment are selected to generate 2N- 1 basic identification division, wherein N is the quantity of the multiple coding section, based on 2N- 1 basic identification division generates 2 associated with the specific service objectN- 1 virtual encoder data cell.
Preferably, using the service-specific of the specific service object to described 2N- 1 virtual encoder data cell is entered Row verification of correctness, it is determined that the basis knowledge with minimum coding section in the virtual encoder data cell for passing through the verification of correctness Other part.
Preferably, all coding sections of the basic identification division with minimum coding section are defined as described specific The condition code of service object.
Preferably, when at least two basic identification division with minimum coding section be present, by least two base The respective all coding sections of plinth identification division are defined as at least two condition codes of the specific service object.
Preferably, the encoded data cell that the arbitrary characteristics code in based at least two condition code is formed is by phase When answering the service-specific of service object to be defined as the number of None- identified to reach threshold value, by the arbitrary characteristics code from feature database Delete.
According to another aspect of the present invention, there is provided a kind of system that coded data is identified using generic service, the system Including:
Equipment is obtained, the true coded number of the predetermined quantity associated with specific service object is obtained by generic service According to unit, wherein generating the true encoded data cell of the predetermined quantity by the service-specific of the specific service object;
Code parsing equipment, identical encoded content between the encoded data cell of the predetermined quantity is determined, and will The identical encoded content is divided into multiple coding sections;Based at least one coding section selected from the multiple coding section The basic identification division generation formed the virtual encoder data cell associated with the specific service object, when based on most When the virtual encoder data cell of few coding section is by the specifically verification of correctness of the service-specific of service object, it is determined that Selected minimum coding section is the condition code of the specific service object;By identified condition code and described document information It is stored in the corresponding relation of respective specific object in feature database;And
Service equipment, generic service is promoted to receive encoded data cell to be identified, based on the feature in the feature database Code and corresponding relation determine the current service object corresponding to the encoded data cell to be identified, by the volume to be identified Code data cell is sent to the current service object.
Preferably, the current service object is solved using service-specific to the encoded data cell to be identified Data entrained by the encoded data cell to be identified are handled by code according to the result of decoding.
Preferably, the generic service is to serve the service of operating system, and service-specific is to serve the spy The service of fixed service object.
Preferably, the service-specific None- identified and other service object's phases in addition to the specific service object The encoded data cell of association.
Preferably, the specific service object is can to run and can identify coded data list in an operating system The application of member.
Preferably, the identical encoded content is divided into multiple coding sections and included by the code parsing equipment:
Discontinuous part in the identical encoded content is defined as to initialize coding section;And
Each initialization coding section is finely divided by predetermined length value, so as to obtain the multiple coding section.
Preferably, the code parsing equipment is based at least one coding section institute structure selected from the multiple coding section Into the generation of basic identification division include with the specifically associated virtual encoder data cell of service object:The coding Analyzing device selects all combinations of code segment to generate 2 from the multiple coding sectionN- 1 basic identification division, wherein N For the quantity of the multiple coding section, based on 2N- 1 basic identification division generation is associated with the specific service object 2N- 1 virtual encoder data cell.
Preferably, the service-specific of specific service object described in the code parsing equipment utilization is empty to described 2N-1 Intend encoded data cell and carry out verification of correctness, it is determined that having most in the virtual encoder data cell for passing through the verification of correctness The basic identification division of few coding section.
Preferably, the code parsing equipment is by all coding sections of the basic identification division with minimum coding section It is defined as the condition code of the specific service object.
Preferably, when at least two basic identification division with minimum coding section be present, the code parsing equipment The described at least two basic respective all coding sections of identification division are defined as at least the two of the specific service object Individual condition code.
Preferably, the encoded data cell that the arbitrary characteristics code in based at least two condition code is formed is by phase When answering the service-specific of service object to be defined as the number of None- identified to reach threshold value, the code parsing equipment will be described any Condition code is deleted from feature database.
According to another aspect of the present invention, there is provided a kind of mobile terminal, including or for performing such as middle any one above Described system.
Beneficial effect:
User utilizes the generic service in user equipment to realize the coded data to all or most types It is identified, without carrying out artificial judgment first.It follows that the application can carry out coded data by generic service Identification, so as to which the data processing carried out to user for coded data is provided convenience.
In addition, by the scheme of the application, the Quick Response Code of each service provider can be identified by unified service. For example, can identify that Alipay applies generated Quick Response Code by the infrastructure service for being used to identify coded data of the application, And it can identify that wechat applies generated Quick Response Code.Therefore, when user wishes specific Quick Response Code is identified, it is not required to The service provider of specific Quick Response Code is determined, but needs to run infrastructure service can according to the service provider identified Quick Response Code carry out the automatic identification for carrying out coded data.
Brief description of the drawings
By reference to the following drawings, the illustrative embodiments of the present invention can be more fully understood by:
Fig. 1 is the schematic diagram for carrying out coded data identification in the prior art;
Fig. 2 is the flow chart according to the method that coded data is identified using generic service of the preferred embodiment for the present invention;
Fig. 3 is the structural representation according to the system that coded data is identified using generic service of the preferred embodiment for the present invention Figure;
Fig. 4 is the schematic diagram according to generic service of the activation of the preferred embodiment for the present invention for identifying coded data; And
Fig. 5 is the signal according to generic service of the activation of another preferred embodiment of the present invention for identifying coded data Figure.
Embodiment
The illustrative embodiments of the present invention are introduced with reference now to accompanying drawing, however, the present invention can use many different shapes Formula is implemented, and is not limited to embodiment described herein, there is provided these embodiments are to disclose at large and fully The present invention, and fully pass on the scope of the present invention to person of ordinary skill in the field.Show for what is be illustrated in the accompanying drawings Term in example property embodiment is not limitation of the invention.In the accompanying drawings, identical cells/elements are attached using identical Icon is remembered.
Unless otherwise indicated, term (including scientific and technical terminology) used herein has to person of ordinary skill in the field It is common to understand implication.Further it will be understood that the term limited with usually used dictionary, be appreciated that and its The linguistic context of association area has consistent implication, and is not construed as Utopian or overly formal meaning.
Fig. 1 is the schematic diagram for carrying out coded data identification in the prior art.At present, when user is purchased using mobile terminal When thing, network browsing or instant messaging, it usually needs the Quick Response Code of correlation is identified using application-specific.It is as shown in figure 1, mobile Terminal 100 starts application-specific, and Quick Response Code is scanned using the scanning window 101 of the application-specific, that is, carries out The identification of coded data.The commonly used and electronic business mode that shopping is mobile terminal is moved based on Quick Response Code to become To the mark of maturation.The exploitation that mobile e-business is pushed in a large number of users and mobile shopping in mobile shopping is based on mobile terminal Move transaction and businessman market application.Make consumer's fast browsing whenever and wherever possible as passage, mobile shopping by Quick Response Code Real goods, quick shopping.In addition, the two-dimensional code scanning application on mobile terminal 100 can directly scan Quick Response Code enter it is specific Website, because the information related to the address of particular network can be embedded in Quick Response Code.
However, each two-dimensional code scanning application is typically only capable to scan specific Quick Response Code.For example, Alipay application can be known Not by Quick Response Code that it is generated or that same provider is generated, and the Quick Response Code that wechat is generated is not identified.Therefore, When user wishes specific Quick Response Code is identified, first have to determine the service provider of specific Quick Response Code, and according to institute The service provider of determination selects the corresponding application to be identified.
Fig. 2 is the flow according to the method 200 that coded data is identified using generic service of the preferred embodiment for the present invention Figure.Method 200 obtains the true encoded data cell of the predetermined quantity associated with specific service object by generic service And identical encoded content between the encoded data cell of predetermined quantity is determined, the identical encoded content is divided into more Individual coding section.Method 200 is based on coding section formation base identification division and and then generated associated with specific service object Virtual encoder data cell.Then, when the virtual encoder data cell based on minimum coding section passes through specific service object Service-specific verification of correctness when, method 200 determines selected minimum coding section for the specific service object's Condition code, and condition code and corresponding relation determine the current service object corresponding to encoded data cell to be identified, will treat The encoded data cell of identification is sent to current service object.
Preferably, method 200 is since step 201 place.In step 201, obtained and specific service by generic service The true encoded data cell of the associated predetermined quantity of object.Wherein, generic service is to serve the service of operating system.For It can realize that the coded data (for example, Quick Response Code) for different service providers or individual is identified, the application uses Instrument of the generic service as identification coded data.That is, user utilizes the generic service in user equipment can be real Now the coded data of all or most types is identified, without carrying out artificial judgment first.It follows that this Shen The identification of coded data please can be carried out by generic service, so as to which the data processing carried out to user for coded data provides Facility.Wherein, specific service object can be the various services or application that service provider provides.For example, specific clothes Being engaged in object can be with Alipay or wechat.Wherein true encoded data cell is the service-specific generation by specific service object 's.For example, true encoded data cell is generated by the application of Alipay, or generated by the application of wechat.It is excellent Selection of land, true encoded data cell are that the application promotes generic service to identify the unit of coded data, i.e. the application By the true encoded data cell generated to the service-specific of specific service object, for example, Quick Response Code, is analyzed and is learned Practise to be determined to correctly identify the basis of this coded data.Therefore, the application needs the true coded number to predetermined quantity Analyzed and learnt according to unit, wherein predetermined quantity is, for example, any rational numerical value such as 5000,10000.
It follows that coded data is to generate the true of the predetermined quantity by the service-specific of the specific service object Actual coding data cell, and service-specific is to serve the service of specific service object.Wherein, the service-specific can not Identify the encoded data cell associated with other service objects in addition to the specific service object.Specific service pair As if it can in an operating system run and the application of encoded data cell can be identified.For example, specific service object is Alipay is applied and wechat application.
In step 202, identical encoded content between the encoded data cell of the predetermined quantity is determined, and by described in Identical encoded content is divided into multiple coding sections.The identical encoded content wherein is divided into multiple coding sections includes: Discontinuous part in the identical encoded content is defined as to initialize coding section;And will each just by predetermined length value Beginningization coding section is finely divided, so as to obtain the multiple coding section.In the true encoded data cell progress to predetermined quantity When analysis and study, it usually needs determine identical encoded content between the encoded data cell of the predetermined quantity.This be because May formation base identification division for the partial content in identical encoded content.So-called basic identification division is to incite somebody to action The essential part that the encoded data cell of different service objects makes a distinction.That is, know if based on the basis of special services object Partly encoded data cell is not built, then constructed encoded data cell is bound to by this specific service object institute Identification.
Preferably, in order to lift the efficiency that true encoded data cell is analyzed and learnt, the application is by the phase Same encoded content is divided into multiple coding sections., can be preferably by the way that identical encoded content is divided into multiple coding sections It is determined that basic identification division.Because in this way it is possible to constantly reduce in multiple coding sections with basic identification division without The content of pass, so as to constantly level off to optimum value.Wherein, identical encoded content is divided into multiple coding sections includes:Will Discontinuous part is defined as initializing coding section in the identical encoded content;And will be each initial by predetermined length value Change coding section to be finely divided, so as to obtain the multiple coding section.Initially, by by discontinuous portion in identical encoded content Divide and be defined as coding section.For example, identical encoded content is present in discontinuous coding section between working as multiple encoded data cells When, initial segmentation can be carried out using this discontinuity.Preferably, in initial code section or multiple coding sections it is each at least Including 1 byte, 2 bytes or 3 bytes etc..For example, in the case of 2 bytes, if the simply content in 2 bytes It is identical, then identical part is not regarded as.Generally, the initial code section divided in above manner there may be part The excessive situation of coding section byte number, i.e., continuous a large amount of bytes are identicals.Therefore, it will each initialize volume by predetermined length value Code section is finely divided, so as to obtain the multiple coding section.Generally, when initialization coding section exceedes specified byte, such as 12 When byte, 16 bytes, it will can be finely divided.Preferably, can be finely divided using any reasonable manner, such as Mean value method, preset value method, semantic approach etc..Generally, semantic approach is that initialization coding section is carried out according to possible classifying content Subdivision.Mean value method and preset value method are typically that initialization coding section is finely divided according to predetermined number or interval.Should It is appreciated that, the granularity that initialization coding section is finely divided is smaller, then system is matched to determine basic identification division Operand is bigger, but the accuracy of this mode is higher.The granularity that initialization coding section is finely divided is bigger, then system is entered Row matching is to determine that the operand of basic identification division is smaller, but the accuracy of this mode is relatively low.
In step 203, the basis identification formed based at least one coding section selected from the multiple coding section The part generation virtual encoder data cell associated with the specific service object, when the virtual volume based on minimum coding section When code data cell is by the specifically verification of correctness of the service-specific of service object, it is determined that selected minimum coding Section is the condition code of the specific service object.Wherein based at least one coding section selected from the multiple coding section The basic identification division generation formed the virtual encoder data cell associated with the specific service object includes:From institute State and all combinations of code segment are selected in multiple coding sections to generate 2N- 1 basic identification division, wherein N are the multiple volume The quantity of code section, based on 2N- 1 basic identification division generates 2 associated with the specific service objectN- 1 virtual volume Code data cell.For example, when coding section is 5, all combinations of code segment are selected from the multiple coding section to generate 32 basic identification divisions, it is virtual to generate 32 associated with the specific service object based on 32 basic identification divisions Encoded data cell.The 32 virtual encoder data cell is carried out using the service-specific of the specific service object correct Property checking, it is determined that in the virtual encoder data cell for passing through the verification of correctness have minimum coding section basic identification part Point.
Preferably, all coding sections of the basic identification division with minimum coding section are defined as described specific by the application Service object condition code.In addition, when at least two basic identification division with minimum coding section be present, by described in extremely Few two basic respective all coding sections of identification division are defined as at least two condition codes of the specific service object. In use, the encoded data cell that the arbitrary characteristics code in based at least two condition code is formed is by respective service When the number that the service-specific of object is defined as None- identified reaches threshold value, the arbitrary characteristics code is deleted from feature database.
In step 204, identified condition code and described document information and the corresponding relation of respective specific object are stored In feature database.Preferably, the application can be entered by as above step to the coded data for all main flow service providers that presently, there are Row identification, so that it is determined that the condition code of the coded data of each main flow service provider.And then the application establishes condition code and corresponding spy The corresponding relation of object is determined, to facilitate the enough structures and the parsing that carry out coded data.
In step 205, the generic service receives encoded data cell to be identified, based on the feature in the feature database Code and corresponding relation determine the current service object corresponding to the encoded data cell to be identified, by the volume to be identified Code data cell is sent to the current service object.Current service object is using service-specific to the coded number to be identified Decoded according to unit, the data entrained by the encoded data cell to be identified are handled according to the result of decoding.
Fig. 3 is the structure according to the system 300 that coded data is identified using generic service of the preferred embodiment for the present invention Schematic diagram.System 300 obtains the true coded data of the predetermined quantity associated with specific service object by generic service Unit and identical encoded content between the encoded data cell of predetermined quantity is determined, the identical encoded content is divided Into multiple coding sections.System 300 is based on coding section formation base identification division and and then generated and specific service object's phase The virtual encoder data cell of association.Then, when based on the virtual encoder data cell of minimum coding section by specifically servicing During the verification of correctness of the service-specific of object, system 300 determines selected minimum coding section for the specific service pair The condition code of elephant, and condition code and corresponding relation determine the current service object corresponding to encoded data cell to be identified, Encoded data cell to be identified is sent to current service object.
As shown in figure 3, system 300 includes:Obtain equipment 301, code parsing equipment 302 and service equipment 303.It is preferred that Ground, obtain the true coded data that equipment 301 obtains the predetermined quantity associated with specific service object by generic service Unit.Wherein, generic service is to serve the service of operating system.Different service providers or individual are directed in order to realize Coded data (for example, Quick Response Code) be identified, the application use generic service as identification coded data instrument.Also It is to say, user can realize the coded data progress to all or most types using the generic service in user equipment Identification, without carrying out artificial judgment first.It follows that the application can carry out the knowledge of coded data by generic service Not, so as to which the data processing carried out to user for coded data is provided convenience.Wherein, specific service object can be clothes The various services or application that business provider provides.For example, specific service object can be with Alipay or wechat.Wherein true coding Data cell is generated by the service-specific of specific service object.For example, true encoded data cell is by Alipay Using what is generated, or generated by the application of wechat.Preferably, it is general to be that the application promotes for true encoded data cell Service can identify the unit of coded data, i.e. the application passes through the true of the service-specific generation to specific service object Actual coding data cell, for example, Quick Response Code, is analyzed and learnt to be determined to correctly identify the base of this coded data Plinth.Therefore, the application needs that the true encoded data cell of predetermined quantity is analyzed and learnt, wherein predetermined quantity is for example It is any rational numerical value such as 5000,10000.
It follows that coded data is to generate the true of the predetermined quantity by the service-specific of the specific service object Actual coding data cell, and service-specific is to serve the service of specific service object.Wherein, the service-specific can not Identify the encoded data cell associated with other service objects in addition to the specific service object.Specific service pair As if it can in an operating system run and the application of encoded data cell can be identified.For example, specific service object is Alipay is applied and wechat application.
Preferably, code parsing equipment 302 is determined between the encoded data cell of the predetermined quantity in identical coding Hold, and the identical encoded content is divided into multiple coding sections.Wherein the identical encoded content is divided into more Individual coding section includes:Discontinuous part in the identical encoded content is defined as to initialize coding section;And by predetermined Each initialization coding section is finely divided by length value, so as to obtain the multiple coding section.In the true volume to predetermined quantity When code data cell is analyzed and learnt, it usually needs identical is compiled between determining the encoded data cell of the predetermined quantity Digital content.Because the partial content in identical encoded content may formation base identification division.Know on so-called basis It is not partly the essential part that the encoded data cell of different service objects can be made a distinction.That is, if based on specific clothes The be engaged in basic identification division of object builds encoded data cell, then constructed encoded data cell is bound to special by this Fixed service object is identified.
Preferably, in order to lift the efficiency that true encoded data cell is analyzed and learnt, the application is by the phase Same encoded content is divided into multiple coding sections., can be preferably by the way that identical encoded content is divided into multiple coding sections It is determined that basic identification division.Because in this way it is possible to constantly reduce in multiple coding sections with basic identification division without The content of pass, so as to constantly level off to optimum value.Wherein, identical encoded content is divided into multiple coding sections includes:Will Discontinuous part is defined as initializing coding section in the identical encoded content;And will be each initial by predetermined length value Change coding section to be finely divided, so as to obtain the multiple coding section.Initially, by by discontinuous portion in identical encoded content Divide and be defined as coding section.For example, identical encoded content is present in discontinuous coding section between working as multiple encoded data cells When, initial segmentation can be carried out using this discontinuity.Preferably, in initial code section or multiple coding sections it is each at least Including 1 byte, 2 bytes or 3 bytes etc..For example, in the case of 2 bytes, if the simply content in 2 bytes It is identical, then identical part is not regarded as.Generally, the initial code section divided in above manner there may be part The excessive situation of coding section byte number, i.e., continuous a large amount of bytes are identicals.Therefore, it will each initialize volume by predetermined length value Code section is finely divided, so as to obtain the multiple coding section.Generally, when initialization coding section exceedes specified byte, such as 12 When byte, 16 bytes, it will can be finely divided.Preferably, can be finely divided using any reasonable manner, such as Mean value method, preset value method, semantic approach etc..Generally, semantic approach is that initialization coding section is carried out according to possible classifying content Subdivision.Mean value method and preset value method are typically that initialization coding section is finely divided according to predetermined number or interval.Should It is appreciated that, the granularity that initialization coding section is finely divided is smaller, then system is matched to determine basic identification division Operand is bigger, but the accuracy of this mode is higher.The granularity that initialization coding section is finely divided is bigger, then system is entered Row matching is to determine that the operand of basic identification division is smaller, but the accuracy of this mode is relatively low.
Preferably, code parsing equipment 302 is based at least one coding section institute structure selected from the multiple coding section Into the generation of basic identification division and the specifically associated virtual encoder data cell of service object.Compiled when based on minimum When the virtual encoder data cell of code section is by the specifically verification of correctness of the service-specific of service object, it is determined that selected The minimum coding section selected is the condition code of the specific service object.Wherein based on selected from the multiple coding section to The basic identification division generation that a few coding section the is formed virtual encoder data associated with the specific service object Unit includes:All combinations of code segment are selected from the multiple coding section to generate 2N- 1 basic identification division, wherein N For the quantity of the multiple coding section, based on 2N- 1 basic identification division generation is associated with the specific service object 2N- 1 virtual encoder data cell.For example, when coding section is 5, the institute of code segment is selected from the multiple coding section There is combination to generate 32 basic identification divisions, it is related to the specific service object based on 32 basic identification division generations 32 virtual encoder data cells of connection.Using the service-specific of the specific service object to the 32 virtual encoder data Unit carries out verification of correctness, it is determined that with minimum coding section in the virtual encoder data cell for passing through the verification of correctness Basic identification division.
Preferably, all coding sections of the basic identification division with minimum coding section are defined as described specific by the application Service object condition code.In addition, when at least two basic identification division with minimum coding section be present, by described in extremely Few two basic respective all coding sections of identification division are defined as at least two condition codes of the specific service object. In use, the encoded data cell that the arbitrary characteristics code in based at least two condition code is formed is by respective service When the number that the service-specific of object is defined as None- identified reaches threshold value, the arbitrary characteristics code is deleted from feature database.
Code parsing equipment 302 is by identified condition code and described document information and the corresponding relation of respective specific object It is stored in feature database.Preferably, the coded data of all main flow service providers of the application to presently, there are is identified, so as to It is determined that the condition code of the coded data of each main flow service provider.And then the application establishes pair of condition code and respective specific object It should be related to, to facilitate the enough structures and the parsing that carry out coded data.
Preferably, service equipment 303 promotes generic service to receive encoded data cell to be identified, based on the feature database In condition code and corresponding relation determine current service object corresponding to the encoded data cell to be identified, treated described The encoded data cell of identification is sent to the current service object.Current service object is using service-specific to described to be identified Encoded data cell decoded, the data entrained by the encoded data cell to be identified are entered according to the result of decoding Row processing.
Fig. 4 is the schematic diagram according to generic service of the activation of the preferred embodiment for the present invention for identifying coded data. As shown in figure 4, exist in the screen area 401 of mobile terminal 400 using 1, using 2, using 3, using 4, using 5 and application 6.Preferably, there can be Quick Response Code life using 1, using 2, using 3, using 4, using all or part in 5 and application 6 Into and/or Quick Response Code identification ability.But using 1, using 2, using 3, using 4, it is non-using 5 and 6 None- identifieds of application Itself related Quick Response Code.That is, as mentioned above, the code identification of special services object and coding generation are independent of one another And can not be general.
According to the scheme of the application, user can by triggering any position of screen, such as lower left, " sweeping " word swash General barcode scanning service living.The true coded data of the general barcode scanning service acquisition predetermined quantity associated with specific service object Unit and identical encoded content between the encoded data cell of predetermined quantity is determined, the identical encoded content is divided Into multiple coding sections.General barcode scanning service is based on coding section formation base identification division and and then generates and specific service pair As associated virtual encoder data cell.Then, when the virtual encoder data cell based on minimum coding section pass through it is specific During the verification of correctness of the service-specific of service object, general barcode scanning service determines that selected minimum coding section is described specific Service object condition code, and condition code and corresponding relation determine the current clothes corresponding to encoded data cell to be identified Business object, current service object is sent to by encoded data cell to be identified.
One of ordinary skill in the art by any other rational operation or key combination it will be appreciated that can be swashed General barcode scanning service living.For example, one in button A-C, or combination can activate general barcode scanning service.
Fig. 5 is the signal according to generic service of the activation of another preferred embodiment of the present invention for identifying coded data Figure.As shown in figure 5, exist in the screen area 501 of mobile terminal 500 using 1, using 2, using 3, using 4, using 5 and Using 6.Preferably, there can be two dimension using 1, using 2, using 3, using 4, using all or part in 5 and application 6 Code generation and/or the ability of Quick Response Code identification.But it can not know using 1, using 2, using 3, using 4, using 5 and using 6 Not non-self related Quick Response Code.That is, as mentioned above, the code identification of special services object and coding generation are each other Independently and can not be general.
According to the scheme of the application, user can activate general barcode scanning clothes by carrying out pulling process in ad-hoc location Business.The true encoded data cell of the general barcode scanning service acquisition predetermined quantity associated with specific service object and determine Identical encoded content between the encoded data cell of predetermined quantity, the identical encoded content is divided into multiple codings Section.General barcode scanning service is based on coding section formation base identification division and and then generates associated with specific service object Virtual encoder data cell.Then, when the virtual encoder data cell based on minimum coding section passes through specific service object's During the verification of correctness of service-specific, general barcode scanning service determines that selected minimum coding section is the specific service object Condition code, and condition code and corresponding relation determine the current service object corresponding to encoded data cell to be identified, will Encoded data cell to be identified is sent to current service object.
One of ordinary skill in the art by any other rational operation or key combination it will be appreciated that can be swashed General barcode scanning service living.For example, one in button A-C, or combination can activate general barcode scanning service.Or user can be with By carrying out pulling operation, shift left operation or right-shift operation in ad-hoc location to activate general barcode scanning service.
The present invention is described by reference to a small amount of embodiment.However, it is known in those skilled in the art, as What subsidiary Patent right requirement was limited, except the present invention other embodiments disclosed above equally fall the present invention's In the range of.
Normally, all terms used in the claims are all solved according to them in the usual implication of technical field Release, unless clearly being defined in addition wherein.All references " one/described/be somebody's turn to do [device, component etc.] " are all opened ground At least one example being construed in described device, component etc., unless otherwise expressly specified.Any method disclosed herein Step need not all be run with disclosed accurately order, unless explicitly stated otherwise.

Claims (10)

1. a kind of method that coded data is identified using generic service, methods described are included:
The true encoded data cell of the predetermined quantity associated with specific service object is obtained by generic service, wherein by The service-specific of the specific service object generates the true encoded data cell of the predetermined quantity;
Determine identical encoded content between the encoded data cell of the predetermined quantity, and by the identical encoded content It is divided into multiple coding sections;
The basic identification division generation formed based at least one coding section selected from the multiple coding section with it is described The virtual encoder data cell that specific service object is associated, when the virtual encoder data cell based on minimum coding section passes through During the verification of correctness of the service-specific of the specific service object, it is determined that selected minimum coding section is described specific The condition code of service object;
Identified condition code and described document information and the corresponding relation of respective specific object are stored in feature database;And
The generic service receives encoded data cell to be identified, true based on the condition code in the feature database and corresponding relation Current service object corresponding to the fixed encoded data cell to be identified, the encoded data cell to be identified is sent To the current service object.
2. according to the method for claim 1, the current service object uses service-specific to the coding to be identified Data cell is decoded, according to the result of decoding to the data entrained by the encoded data cell to be identified at Reason.
3. according to the method for claim 1, the generic service is to serve the service of operating system, and service-specific It is the service for serving the specific service object.
4. according to the method for claim 3, the service-specific None- identified with addition to the specific service object The encoded data cell that is associated of other service objects.
5. according to the method for claim 1, the specific service object is can to run in an operating system and energy Enough identify the application of encoded data cell.
6. a kind of system that coded data is identified using generic service, the system are included:
Equipment is obtained, the true coded data list of the predetermined quantity associated with specific service object is obtained by generic service Member, wherein generating the true encoded data cell of the predetermined quantity by the service-specific of the specific service object;
Code parsing equipment, identical encoded content between the encoded data cell of the predetermined quantity is determined, and by described in Identical encoded content is divided into multiple coding sections;Based at least one coding section institute structure selected from the multiple coding section Into the basic identification division generation virtual encoder data cell associated with the specific service object, when based on minimum volume When the virtual encoder data cell of code section is by the specifically verification of correctness of the service-specific of service object, it is determined that selected The minimum coding section selected is the condition code of the specific service object;By identified condition code and described document information and phase The corresponding relation of special object is answered to be stored in feature database;And
Service equipment, promote generic service to receive encoded data cell to be identified, based on the condition code in the feature database and Corresponding relation determines the current service object corresponding to the encoded data cell to be identified, by the coded number to be identified The current service object is sent to according to unit.
7. system according to claim 6, the current service object is using service-specific to the coding to be identified Data cell is decoded, according to the result of decoding to the data entrained by the encoded data cell to be identified at Reason.
8. system according to claim 6, the generic service is to serve the service of operating system, and service-specific It is the service for serving the specific service object.
9. system according to claim 8, the service-specific None- identified with addition to the specific service object The encoded data cell that is associated of other service objects.
10. system according to claim 6, the specific service object is can to run in an operating system and energy Enough identify the application of encoded data cell.
CN201710698224.8A 2017-08-15 2017-08-15 Method and system for identifying coded data by using general service Active CN107480572B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710698224.8A CN107480572B (en) 2017-08-15 2017-08-15 Method and system for identifying coded data by using general service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710698224.8A CN107480572B (en) 2017-08-15 2017-08-15 Method and system for identifying coded data by using general service

Publications (2)

Publication Number Publication Date
CN107480572A true CN107480572A (en) 2017-12-15
CN107480572B CN107480572B (en) 2020-06-23

Family

ID=60599662

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710698224.8A Active CN107480572B (en) 2017-08-15 2017-08-15 Method and system for identifying coded data by using general service

Country Status (1)

Country Link
CN (1) CN107480572B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108090392A (en) * 2017-12-29 2018-05-29 北京安云世纪科技有限公司 Method, system and the mobile terminal of business processing are carried out based on universal identification function

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101044743A (en) * 2004-09-13 2007-09-26 诺基亚公司 Methods, devices and computer program products for capture and display of visually encoded data and an image
CN101308657A (en) * 2007-05-16 2008-11-19 中兴通讯股份有限公司 Code stream synthesizing method based on advanced audio coder
US20090242650A1 (en) * 2008-03-27 2009-10-01 Denso Wave Incorporated Two-dimensional code having rectangular region provided with specific patterns for specification of cell postions and distinction from background
CN102497331A (en) * 2011-12-16 2012-06-13 王博 Information providing method and device
US20130105569A1 (en) * 2008-12-09 2013-05-02 Felica Networks, Inc. Information processing apparatus, information processing method, program and information processing system
CN105051727A (en) * 2012-11-22 2015-11-11 Thepeople.De有限责任公司 Code-based information system
CN105723373A (en) * 2013-08-02 2016-06-29 行动先驱公司 Method for encoding an access to a computer resource
CN106851006A (en) * 2017-02-28 2017-06-13 努比亚技术有限公司 A kind of apparatus and method for recognizing Quick Response Code

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101044743A (en) * 2004-09-13 2007-09-26 诺基亚公司 Methods, devices and computer program products for capture and display of visually encoded data and an image
CN101044743B (en) * 2004-09-13 2011-06-08 诺基亚公司 Methods, devices and computer program products for capture and display of visually encoded data and an image
CN101308657A (en) * 2007-05-16 2008-11-19 中兴通讯股份有限公司 Code stream synthesizing method based on advanced audio coder
US20090242650A1 (en) * 2008-03-27 2009-10-01 Denso Wave Incorporated Two-dimensional code having rectangular region provided with specific patterns for specification of cell postions and distinction from background
US20130105569A1 (en) * 2008-12-09 2013-05-02 Felica Networks, Inc. Information processing apparatus, information processing method, program and information processing system
CN102497331A (en) * 2011-12-16 2012-06-13 王博 Information providing method and device
CN105051727A (en) * 2012-11-22 2015-11-11 Thepeople.De有限责任公司 Code-based information system
CN105723373A (en) * 2013-08-02 2016-06-29 行动先驱公司 Method for encoding an access to a computer resource
CN106851006A (en) * 2017-02-28 2017-06-13 努比亚技术有限公司 A kind of apparatus and method for recognizing Quick Response Code

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108090392A (en) * 2017-12-29 2018-05-29 北京安云世纪科技有限公司 Method, system and the mobile terminal of business processing are carried out based on universal identification function

Also Published As

Publication number Publication date
CN107480572B (en) 2020-06-23

Similar Documents

Publication Publication Date Title
US9727657B2 (en) Multi-mode barcode resolution system
US7881491B2 (en) Method, system and apparatus for operating a device using contextual scripting
US8240571B2 (en) Barcode image recognition system and associated method for hand-held device
CN103854006A (en) Image recognition method and device
CN105989122A (en) Application recommendation method and device
CN103246713A (en) Web surfing method and web surfing device
CN104820855A (en) Generation and identification method of dynamic two-dimensional codes based on mobile environment perception technology
CN105653171A (en) Fingerprint identification based terminal control method, terminal control apparatus and terminal
WO2005086074A1 (en) 2-dimensional code region extraction method, 2-dimensional code region extraction device, electronic device, 2-dimensional code region extraction program, and recording medium containing the program
CN102291369A (en) Control method and corresponding control device for verifying junk information settings
CN104994128A (en) Data coding type identifying and transcoding method and device
US7149981B1 (en) Method and system for facilitating selection of a portion of non-focusable object presented by a browser application
CN111222611B (en) Color-based stacked three-dimensional code encoding method, encoding device, decoding method, decoding device and storage medium
CN104391644A (en) Input method and device
CN107480572A (en) A kind of method and system that coded data is identified using generic service
CN113850587A (en) Information display method, device and equipment
Smyth et al. Intelligent navigation for mobile internet portals
CN114781008B (en) Data identification method and device for security detection of terminal firmware of Internet of things
CN108090392A (en) Method, system and the mobile terminal of business processing are carried out based on universal identification function
US20130227436A1 (en) Page-turning and operating method for reading multimedia messaging service message of a mobile phone
CN114782955A (en) Buried point processing method, electronic device, and storage medium
CN110875959B (en) Data identification method, junk mailbox identification method and file identification method
CN110535669B (en) Content recommendation method and content recommendation device
CN111125474A (en) File fast searching system
KR101880140B1 (en) Method for reading out valid number of credit card

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant