CN107480572B - Method and system for identifying coded data by using general service - Google Patents

Method and system for identifying coded data by using general service Download PDF

Info

Publication number
CN107480572B
CN107480572B CN201710698224.8A CN201710698224A CN107480572B CN 107480572 B CN107480572 B CN 107480572B CN 201710698224 A CN201710698224 A CN 201710698224A CN 107480572 B CN107480572 B CN 107480572B
Authority
CN
China
Prior art keywords
coded data
service
code
data unit
service object
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.)
Active
Application number
CN201710698224.8A
Other languages
Chinese (zh)
Other versions
CN107480572A (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

Images

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 invention relates to a method and a system for identifying coded data by using a general service, wherein the method comprises the following steps: acquiring a preset number of real coded data units; determining an encoded content that is identical among the predetermined number of encoded data units and dividing the identical encoded content into a plurality of encoded segments; generating a virtual coded data unit associated with the specific service object based on a basic identification part composed of at least one coding segment, determining a feature code and storing the feature code and the corresponding relation of the feature code and the corresponding specific object in a feature library when the virtual coded data unit based on the least coding segment passes the correctness verification of the special service of the specific service object; and the universal service receives the coded data unit to be identified, determines the current service object corresponding to the coded data unit to be identified based on the feature code and the corresponding relation in the feature library, and sends the coded data unit to be identified to the current service object.

Description

Method and system for identifying coded data by using general service
Technical Field
The present invention relates to the field of information processing, and more particularly, to a method and system for identifying encoded data using a general service, and a mobile terminal.
Background
The popularity of coded data enables devices with computing capabilities to read, process, and express information. At present, the trend of information processing by two-dimensional codes of mobile devices is more and more common. Two-dimensional codes are a very popular encoding method applied to mobile devices in recent years, and can store more information and represent more data types than traditional bar codes.
The two-dimensional code records data symbol information by using black and white patterns which are distributed on a plane (in a two-dimensional direction) according to a certain rule and a certain specific geometric figure. In terms of code encoding, the two-dimensional code skillfully utilizes the concepts of '0' and '1' bit streams forming the internal logic basis of a computer, and uses a plurality of geometric shapes corresponding to binary systems to represent literal numerical information. The image input device or the photoelectric scanning device can automatically read the two-dimensional code to realize automatic information processing. Two-dimensional codes have some commonalities in barcode technology: each code system has a specific character set, each character occupies a certain width, and has a certain checking function. In addition, the two-dimensional code also has a function of automatically recognizing information on different lines and a function of processing a figure rotation change point.
Currently, a plurality of service providers provide services such as information interaction with users, accounting processing, and the like through two-dimensional codes. For example, a pay-for-use user scans a specific two-dimensional code through a pay-for-use application to make a quick payment. Similarly, the wechat user can scan a specific two-dimensional code through wechat application, so that functions of webpage jumping, friend adding, information identification and the like are achieved. However, the two-dimensional code provided by each service provider is usually only recognizable by applications of the same provider. For example, the pay-for-all application is able to identify a two-dimensional code generated by it or by the same provider, but not a two-dimensional code generated by WeChat. For this, when a user desires to identify a specific two-dimensional code, a service provider of the specific two-dimensional code is first determined, and a corresponding application is selected for identification according to the determined service provider. This approach causes great inconvenience to the user because the user needs to identify the source of the two-dimensional code and run a specific application.
For this reason, there is a need in the art for a general service capable of recognizing encoded data such as a two-dimensional code.
Disclosure of Invention
In order to solve the above problems, the present application provides a method of identifying encoded data using a general service, the method including:
acquiring a predetermined number of real coded data units associated with a specific service object by a general service, wherein the predetermined number of real coded data units are generated by a dedicated service of the specific service object;
determining an encoded content that is identical among the predetermined number of encoded data units and dividing the identical encoded content into a plurality of encoded segments;
generating a virtual coded data unit associated with the specific service object based on a basic identification portion composed of at least one code segment selected from the plurality of code segments, and determining the selected minimum code segment as a feature code of the specific service object when the virtual coded data unit based on the minimum code segment passes correctness verification of a dedicated service of the specific service object;
storing the determined feature codes and the corresponding relations of the feature codes and the corresponding specific objects in a feature library; and
the general service receives the coded data unit to be identified, determines the current service object corresponding to the coded data unit to be identified based on the feature code and the corresponding relation in the feature library, and sends the coded data unit to be identified to the current service object.
Preferably, the current service object uses a dedicated service to decode the coded data unit to be identified, and processes the data carried by the coded data unit to be identified according to the decoding result.
Preferably, the generic service is a service that services an operating system, and the specific service is a service that services the specific service object.
Preferably, the dedicated service is unable to identify coded data units associated with other service objects than the particular service object.
Preferably, the specific service object is an application capable of running in an operating system and capable of identifying the coded data unit.
Preferably, the dividing of the same encoded content into a plurality of encoded segments comprises:
determining discontinuous parts in the same encoding content as an initialization encoding section; and
each initialization code segment is subdivided by a predetermined length value to obtain a plurality of code segments.
Preferably, the generating of the virtual coded data unit associated with the specific service object based on the base identification part constituted by at least one code segment selected from the plurality of code segments includes: selecting all combinations of code segments from the plurality of code segments to generate 2N-1 base identification portions, where N is the number of said plurality of code segments, based on 2N-1 basic identification portion generating 2 associated with said specific service objectN1 virtual coded data unit.
Preferably, said 2 is paired with a dedicated service of said specific service objectN-1 virtual coded data unit is subjected to correctness verification, and the basic identification part with the least coded segment in the virtual coded data unit passing the correctness verification is determined.
Preferably, all code segments of the basic identification portion having the least code segments are determined as the feature code of the specific service object.
Preferably, when there are at least two basic identification parts having the least encoded sections, all encoded sections of each of the at least two basic identification parts are determined as the at least two feature codes of the specific service object.
Preferably, when the number of times that a coded data unit composed based on any of the at least two feature codes is determined to be unrecognizable by a dedicated service of a corresponding service object reaches a threshold value, the any feature code is deleted from the feature library.
According to another aspect of the present invention, there is provided a system for identifying encoded data using a general service, the system comprising:
an acquisition device that acquires, by a general service, a predetermined number of real encoded data units associated with a specific service object, the predetermined number of real encoded data units being generated by a dedicated service of the specific service object;
an encoding parsing device that determines an encoded content that is the same among the predetermined number of encoded data units and divides the same encoded content into a plurality of encoded segments; generating a virtual coded data unit associated with the specific service object based on a basic identification portion composed of at least one code segment selected from the plurality of code segments, and determining the selected minimum code segment as a feature code of the specific service object when the virtual coded data unit based on the minimum code segment passes correctness verification of a dedicated service of the specific service object; storing the determined feature codes and the corresponding relations of the feature codes and the corresponding specific objects in a feature library; and
and the service equipment prompts the general service to receive the coded data unit to be identified, determines the current service object corresponding to the coded data unit to be identified based on the feature code and the corresponding relation in the feature library, and sends the coded data unit to be identified to the current service object.
Preferably, the current service object uses a dedicated service to decode the coded data unit to be identified, and processes the data carried by the coded data unit to be identified according to the decoding result.
Preferably, the generic service is a service that services an operating system, and the specific service is a service that services the specific service object.
Preferably, the dedicated service is unable to identify coded data units associated with other service objects than the particular service object.
Preferably, the specific service object is an application capable of running in an operating system and capable of identifying the coded data unit.
Preferably, the encoding parsing device dividing the same encoded content into a plurality of encoded segments includes:
determining discontinuous parts in the same encoding content as an initialization encoding section; and
each initialization code segment is subdivided by a predetermined length value to obtain the plurality of code segments.
Preferably, the code parsing apparatus generating the virtual coded data unit associated with the specific service object based on the base identification portion constituted by at least one code segment selected from the plurality of code segments includes: the code parsing device selects all combinations of code segments from the plurality of code segments to generate 2N-1 base identification portion, where N is the plurality of code segmentsBased on 2N-1 basic identification portion generating 2 associated with said specific service objectN1 virtual coded data unit.
Preferably, the code parsing apparatus performs correctness verification on the 2N-1 virtual coded data units by using a dedicated service of the specific service object, and determines a basic identification portion having a minimum code segment in the virtual coded data units passing the correctness verification.
Preferably, the code parsing apparatus determines all code segments of the basic identification portion having the least code segments as the feature code of the specific service object.
Preferably, when there are at least two basic identification parts having the least encoded sections, the encoding parsing device determines all encoded sections of each of the at least two basic identification parts as the at least two feature codes of the specific service object.
Preferably, when the number of times that an encoded data unit configured based on any one of the at least two feature codes is determined by a dedicated service of a corresponding service object to be unrecognizable reaches a threshold value, the encoding analysis device deletes the any feature code from the feature library.
According to another aspect of the present invention there is provided a mobile terminal comprising or adapted to carry out the system of any of the above.
Has the advantages that:
the user can identify all or most types of coded data by using the general service in the user equipment without first performing manual judgment. Therefore, the coded data can be identified through the general service, and convenience is provided for data processing of the coded data by a user.
In addition, through the scheme of the application, the two-dimensional codes of the service providers can be identified through unified services. For example, a two-dimensional code generated by a pay-for-use application can be identified through the basic service for identifying encoded data of the present application, and a two-dimensional code generated by a WeChat application can be identified. For this reason, when a user desires to identify a specific two-dimensional code, it is not necessary to determine a service provider of the specific two-dimensional code, but it is necessary to run a basic service to automatically identify encoded data according to the two-dimensional code of the identified service provider.
Drawings
A more complete understanding of exemplary embodiments of the present invention may be had by reference to the following drawings in which:
FIG. 1 is a diagram illustrating identification of encoded data in the prior art;
FIG. 2 is a flow chart of a method of identifying encoded data using a generic service in accordance with a preferred embodiment of the present invention;
FIG. 3 is a block diagram of a system for identifying coded data using a general service in accordance with a preferred embodiment of the present invention;
FIG. 4 is a schematic diagram of activating a generic service for identifying encoded data in accordance with a preferred embodiment of the present invention; and
fig. 5 is a diagram illustrating activation of a general service for identification of encoded data according to another preferred embodiment of the present invention.
Detailed Description
The exemplary embodiments of the present invention will now be described with reference to the accompanying drawings, however, the present invention may be embodied in many different forms and is not limited to the embodiments described herein, which are provided for complete and complete disclosure of the present invention and to fully convey the scope of the present invention to those skilled in the art. The terminology used in the exemplary embodiments illustrated in the accompanying drawings is not intended to be limiting of the invention. In the drawings, the same units/elements are denoted by the same reference numerals.
Unless otherwise defined, terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. Further, it will be understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and will not be interpreted in an idealized or overly formal sense.
Fig. 1 is a schematic diagram of coded data identification in the prior art. Currently, when a user uses a mobile terminal for shopping, web browsing or instant messaging, it is generally required to identify a relevant two-dimensional code using a specific application. As shown in fig. 1, the mobile terminal 100 starts a specific application and scans the two-dimensional code using a scanning window 101 of the specific application, i.e., performs identification of encoded data. The two-dimension code based mobile shopping is a sign that the common application and the electronic commerce mode of the mobile terminal tend to mature. Mobile shopping pushes mobile e-commerce to a large number of users and the development of mobile shopping is based on mobile terminal based mobile transaction and merchant marketing applications. By using the two-dimension code as a channel, the consumer can quickly browse real commodities at any time and any place for quick shopping through mobile shopping. In addition, the two-dimensional code scanning application on the mobile terminal 100 may directly scan the two-dimensional code into a specific website because information related to an address of a specific network may be embedded in the two-dimensional code.
However, each two-dimensional code scanning application can typically only scan a specific two-dimensional code. For example, the pay-for-all application is able to identify a two-dimensional code generated by it or by the same provider, but not a two-dimensional code generated by WeChat. For this, when a user desires to identify a specific two-dimensional code, a service provider of the specific two-dimensional code is first determined, and a corresponding application is selected for identification according to the determined service provider.
Fig. 2 is a flow chart of a method 200 for identifying encoded data using a generic service in accordance with a preferred embodiment of the present invention. The method 200 divides a predetermined number of true encoded data units associated with a particular service object into a plurality of encoded segments by a general service obtaining the same encoded content among the predetermined number of encoded data units. The method 200 constructs a base identification portion based on the code segments and in turn generates a virtually coded data unit associated with a particular service object. Subsequently, when the virtual coded data unit based on the minimum coded segment passes the correctness verification of the dedicated service of the specific service object, the method 200 determines that the selected minimum coded segment is the feature code of the specific service object, determines the current service object corresponding to the coded data unit to be identified according to the feature code and the corresponding relationship, and sends the coded data unit to be identified to the current service object.
Preferably, the method 200 begins at step 201. In step 201, a predetermined number of real encoded data units associated with a particular service object are obtained by a general service. The general service is a service for serving an operating system. In order to enable identification of coded data (e.g. two-dimensional codes) for different service providers or individuals, the present application uses a general service as a means of identifying coded data. That is, the user can identify all or most types of encoded data using a common service in the user device without first making a manual decision. Therefore, the coded data can be identified through the general service, and convenience is provided for data processing of the coded data by a user. Wherein a particular service object may be various services or applications provided by a service provider. For example, a particular service object may pay for a treasure or WeChat. Wherein the real encoded data units are generated by a service specific to a particular service object. For example, the authentic encoded data unit is generated by an application of the payment instrument or generated by an application of the WeChat. Preferably, the real coded data unit is a learning unit which enables the general service to recognize the coded data, that is, the present application determines the basis for correctly recognizing such coded data by analyzing and learning the real coded data unit, for example, a two-dimensional code, generated by the service dedicated to a specific service object. For this reason, the present application requires analysis and learning of a predetermined number of actual coded data units, where the predetermined number is any reasonable value such as 5000, 10000, etc.
It follows that the encoded data is the actual encoded data units of said predetermined number generated by the service specific to said particular service object, and the service specific is the service serving the particular service object. Wherein the dedicated service is unable to identify coded data units associated with other service objects than the particular service object. A particular service object is an application that can run in an operating system and that can identify a coded data unit. For example, the specific service objects are a pay-for-use application and a WeChat application.
In step 202, the encoded content that is the same among the predetermined number of encoded data units is determined and divided into a plurality of encoded segments. Wherein dividing the same encoded content into a plurality of encoded segments comprises: determining discontinuous parts in the same encoding content as an initialization encoding section; and subdividing each initialization code segment by a predetermined length value to obtain the plurality of code segments. When analyzing and learning a predetermined number of true encoded data units, it is often necessary to determine the same encoded content among the predetermined number of encoded data units. This is because part of the same encoded content may constitute the underlying identification portion. The base identification part is a basic part that can distinguish encoded data units of different service objects. That is, if a coded data unit is constructed based on the underlying identification portion of a particular service object, the constructed coded data unit must be identified by this particular service object.
Preferably, in order to improve the efficiency of analyzing and learning the real encoded data unit, the present application divides the same encoded content into a plurality of encoded segments. By dividing the same encoded content into a plurality of encoded segments, the underlying identification portion can be better determined. Because in this way the content of the plurality of code segments that is not related to the underlying identification portion can be continuously reduced and thus continuously approach the optimum value. Wherein dividing the same encoded content into a plurality of encoded segments comprises: determining discontinuous parts in the same encoding content as an initialization encoding section; and subdividing each initialization code segment by a predetermined length value to obtain the plurality of code segments. Initially, by determining discontinuous portions of the same encoded content as encoded segments. For example, when the same encoded content exists in a discontinuous encoded section among a plurality of encoded data units, the initial division can be performed with such discontinuity. Preferably, the initial encoded segment or segments each comprise at least 1 byte, 2 bytes or 3 bytes, etc. For example, in the case of 2 bytes, if only the contents within 2 bytes are the same, the same part is not recognized. In general, the initial coding segment divided in the above manner may have a case where the number of bytes of the partial coding segment is excessive, i.e., a large number of bytes in succession are the same. To this end, each initialization code segment is subdivided by a predetermined length value, thereby obtaining the plurality of code segments. Typically, an initialization code segment may be subdivided when it exceeds a certain byte, e.g., 12 bytes, 16 bytes. Preferably, the subdivision may be performed using any reasonable means, such as averaging, presetting, semantics, etc. Generally, the semantic approach is to subdivide the initialization code segments according to the possible content classifications. The averaging and presetting methods generally subdivide the initialization code segment by a predetermined number or interval. It should be appreciated that the smaller the granularity at which the initialization code segment is subdivided, the more computationally intensive the system will perform the matching to determine the underlying identification portion, but this is more accurate. The larger the granularity at which the initialization code segment is subdivided, the less computationally intensive the system will perform the matching to determine the underlying identification portion, but this approach is less accurate.
In step 203, a virtual coded data unit associated with the specific service object is generated based on the basic identification portion formed by at least one code segment selected from the plurality of code segments, and when the virtual coded data unit based on the minimum code segment passes the correctness verification of the special service of the specific service object, the selected minimum code segment is determined as the feature code of the specific service object. Wherein generating a virtual coded data unit associated with the particular service object based on the base identification portion constituted by at least one code segment selected from the plurality of code segments comprises: selecting all combinations of code segments from the plurality of code segments to generate 2N-1 base identification portions, where N is the number of said plurality of code segments, based on 2N-1 basic identification part generation2 associated with the particular service objectN1 virtual coded data unit. For example, when the number of the code sections is 5, all combinations of code sections are selected from the plurality of code sections to generate 32 basic identification portions, and 32 virtual coded data units associated with the specific service object are generated based on the 32 basic identification portions. And verifying the correctness of the 32 virtual coded data units by using the special service of the specific service object, and determining the basic identification part with the least code segments in the virtual coded data units which pass the correctness verification.
Preferably, the present application determines all code segments of the basic identification portion having the least code segments as the feature code of the specific service object. Further, when there are at least two basic identification parts having the least encoded sections, all encoded sections of each of the at least two basic identification parts are determined as the at least two feature codes of the specific service object. In use, when the number of times that a coded data unit composed based on any of the at least two feature codes is determined to be unrecognizable by a dedicated service of the corresponding service object reaches a threshold value, the any feature code is deleted from the feature library.
In step 204, the determined feature codes and the corresponding relationships of the feature codes to the corresponding specific objects are stored in a feature library. Preferably, the application identifies the coded data of all the currently existing main stream service providers through the steps, so as to determine the feature code of the coded data of each main stream service provider. Furthermore, the corresponding relation between the feature codes and the corresponding specific objects is established, so that the coded data can be conveniently constructed and analyzed.
In step 205, the generic service receives the coded data unit to be identified, determines a current service object corresponding to the coded data unit to be identified based on the feature code and the corresponding relationship in the feature library, and sends the coded data unit to be identified to the current service object. And the current service object uses special service to decode the coded data unit to be identified, and processes the data carried by the coded data unit to be identified according to the decoding result.
Fig. 3 is a schematic diagram of a system 300 for encoding data using universal service identification according to a preferred embodiment of the present invention. The system 300 divides a predetermined number of true encoded data units associated with a particular service object into a plurality of encoded segments by a general purpose service obtaining the same encoded content among the predetermined number of encoded data units. The system 300 constructs a base identification portion based on the code segments and in turn generates a virtually coded data unit associated with a particular service object. Subsequently, when the virtual coded data unit based on the minimum coded segment passes the correctness verification of the dedicated service of the specific service object, the system 300 determines that the selected minimum coded segment is the feature code of the specific service object, determines the current service object corresponding to the coded data unit to be identified according to the feature code and the corresponding relation, and sends the coded data unit to be identified to the current service object.
As shown in fig. 3, the system 300 includes: an acquisition device 301, a code parsing device 302, and a service device 303. Preferably, the acquiring device 301 acquires a predetermined number of real encoded data units associated with a specific service object through a general service. The general service is a service for serving an operating system. In order to enable identification of coded data (e.g. two-dimensional codes) for different service providers or individuals, the present application uses a general service as a means of identifying coded data. That is, the user can identify all or most types of encoded data using a common service in the user device without first making a manual decision. Therefore, the coded data can be identified through the general service, and convenience is provided for data processing of the coded data by a user. Wherein a particular service object may be various services or applications provided by a service provider. For example, a particular service object may pay for a treasure or WeChat. Wherein the real encoded data units are generated by a service specific to a particular service object. For example, the authentic encoded data unit is generated by an application of the payment instrument or generated by an application of the WeChat. Preferably, the real coded data unit is a learning unit which enables the general service to recognize the coded data, that is, the present application determines the basis for correctly recognizing such coded data by analyzing and learning the real coded data unit, for example, a two-dimensional code, generated by the service dedicated to a specific service object. For this reason, the present application requires analysis and learning of a predetermined number of actual coded data units, where the predetermined number is any reasonable value such as 5000, 10000, etc.
It follows that the encoded data is the actual encoded data units of said predetermined number generated by the service specific to said particular service object, and the service specific is the service serving the particular service object. Wherein the dedicated service is unable to identify coded data units associated with other service objects than the particular service object. A particular service object is an application that can run in an operating system and that can identify a coded data unit. For example, the specific service objects are a pay-for-use application and a WeChat application.
Preferably, the encoding parsing device 302 determines the same encoded content among the predetermined number of encoded data units and divides the same encoded content into a plurality of encoded segments. Wherein dividing the same encoded content into a plurality of encoded segments comprises: determining discontinuous parts in the same encoding content as an initialization encoding section; and subdividing each initialization code segment by a predetermined length value to obtain the plurality of code segments. When analyzing and learning a predetermined number of true encoded data units, it is often necessary to determine the same encoded content among the predetermined number of encoded data units. This is because part of the same encoded content may constitute the underlying identification portion. The base identification part is a basic part that can distinguish encoded data units of different service objects. That is, if a coded data unit is constructed based on the underlying identification portion of a particular service object, the constructed coded data unit must be identified by this particular service object.
Preferably, in order to improve the efficiency of analyzing and learning the real encoded data unit, the present application divides the same encoded content into a plurality of encoded segments. By dividing the same encoded content into a plurality of encoded segments, the underlying identification portion can be better determined. Because in this way the content of the plurality of code segments that is not related to the underlying identification portion can be continuously reduced and thus continuously approach the optimum value. Wherein dividing the same encoded content into a plurality of encoded segments comprises: determining discontinuous parts in the same encoding content as an initialization encoding section; and subdividing each initialization code segment by a predetermined length value to obtain the plurality of code segments. Initially, by determining discontinuous portions of the same encoded content as encoded segments. For example, when the same encoded content exists in a discontinuous encoded section among a plurality of encoded data units, the initial division can be performed with such discontinuity. Preferably, the initial encoded segment or segments each comprise at least 1 byte, 2 bytes or 3 bytes, etc. For example, in the case of 2 bytes, if only the contents within 2 bytes are the same, the same part is not recognized. In general, the initial coding segment divided in the above manner may have a case where the number of bytes of the partial coding segment is excessive, i.e., a large number of bytes in succession are the same. To this end, each initialization code segment is subdivided by a predetermined length value, thereby obtaining the plurality of code segments. Typically, an initialization code segment may be subdivided when it exceeds a certain byte, e.g., 12 bytes, 16 bytes. Preferably, the subdivision may be performed using any reasonable means, such as averaging, presetting, semantics, etc. Generally, the semantic approach is to subdivide the initialization code segments according to the possible content classifications. The averaging and presetting methods generally subdivide the initialization code segment by a predetermined number or interval. It should be appreciated that the smaller the granularity at which the initialization code segment is subdivided, the more computationally intensive the system will perform the matching to determine the underlying identification portion, but this is more accurate. The larger the granularity at which the initialization code segment is subdivided, the less computationally intensive the system will perform the matching to determine the underlying identification portion, but this approach is less accurate.
Preferably, the encoding parsing device 302 generates a virtual coded data unit associated with the specific service object based on a base identification portion constituted by at least one code segment selected from the plurality of code segments. When the virtual coded data unit based on the minimum coded segment passes the correctness verification of the special service of the specific service object, determining the selected minimum coded segment as the feature code of the specific service object. Wherein generating a virtual coded data unit associated with the particular service object based on the base identification portion constituted by at least one code segment selected from the plurality of code segments comprises: selecting all combinations of code segments from the plurality of code segments to generate 2N-1 base identification portions, where N is the number of said plurality of code segments, based on 2N-1 basic identification portion generating 2 associated with said specific service objectN1 virtual coded data unit. For example, when the number of the code sections is 5, all combinations of code sections are selected from the plurality of code sections to generate 32 basic identification portions, and 32 virtual coded data units associated with the specific service object are generated based on the 32 basic identification portions. And verifying the correctness of the 32 virtual coded data units by using the special service of the specific service object, and determining the basic identification part with the least code segments in the virtual coded data units which pass the correctness verification.
Preferably, the present application determines all code segments of the basic identification portion having the least code segments as the feature code of the specific service object. Further, when there are at least two basic identification parts having the least encoded sections, all encoded sections of each of the at least two basic identification parts are determined as the at least two feature codes of the specific service object. In use, when the number of times that a coded data unit composed based on any of the at least two feature codes is determined to be unrecognizable by a dedicated service of the corresponding service object reaches a threshold value, the any feature code is deleted from the feature library.
The encoding parsing device 302 stores the determined feature codes and the correspondence of the feature codes to the respective specific objects in a feature library. Preferably, the present application identifies the coded data of all currently existing mainstream facilitators, thereby determining the feature code of the coded data of each mainstream facilitator. Furthermore, the corresponding relation between the feature codes and the corresponding specific objects is established, so that the coded data can be conveniently constructed and analyzed.
Preferably, the service device 303 causes the general service to receive the coded data unit to be identified, determine a current service object corresponding to the coded data unit to be identified based on the feature code and the corresponding relationship in the feature library, and send the coded data unit to be identified to the current service object. And the current service object uses special service to decode the coded data unit to be identified, and processes the data carried by the coded data unit to be identified according to the decoding result.
Fig. 4 is a schematic diagram of activating a general service for recognizing encoded data according to a preferred embodiment of the present invention. As shown in fig. 4, an application 1, an application 2, an application 3, an application 4, an application 5, and an application 6 exist in a screen area 401 of the mobile terminal 400. Preferably, all or part of the application 1, the application 2, the application 3, the application 4, the application 5, and the application 6 may have two-dimensional code generation and/or two-dimensional code recognition capabilities. However, the application 1, the application 2, the application 3, the application 4, the application 5, and the application 6 cannot recognize the two-dimensional code which is not related to itself. That is, as introduced above, code identification and code generation for a particular service object are independent of each other and are not universal.
According to the scheme of the application, a user can activate the universal code scanning service by triggering the word scanning at any position of the screen, such as the lower left. The universal code scanning service obtains a predetermined number of real encoded data units associated with a particular service object and determines an encoded content that is the same among the predetermined number of encoded data units, dividing the same encoded content into a plurality of encoded segments. The universal code scanning service constructs a base identification portion based on the code segments and in turn generates a virtually encoded data unit associated with a particular service object. Then, when the virtual coded data unit based on the minimum coded segment passes the correctness verification of the special service of the specific service object, the universal code scanning service determines that the selected minimum coded segment is the feature code of the specific service object, determines the current service object corresponding to the coded data unit to be identified according to the feature code and the corresponding relation, and sends the coded data unit to be identified to the current service object.
It should be appreciated by those skilled in the art that the universal scan service may be activated by any other reasonable operation or key combination. For example, one or a combination of keys A-C can activate a universal scan code service.
Fig. 5 is a diagram illustrating activation of a general service for identification of encoded data according to another preferred embodiment of the present invention. As shown in fig. 5, application 1, application 2, application 3, application 4, application 5, and application 6 exist in a screen area 501 of the mobile terminal 500. Preferably, all or part of the application 1, the application 2, the application 3, the application 4, the application 5, and the application 6 may have two-dimensional code generation and/or two-dimensional code recognition capabilities. However, the application 1, the application 2, the application 3, the application 4, the application 5, and the application 6 cannot recognize the two-dimensional code which is not related to itself. That is, as introduced above, code identification and code generation for a particular service object are independent of each other and are not universal.
According to the scheme of the application, the user can activate the universal code scanning service by performing pull-up operation at a specific position. The universal code scanning service obtains a predetermined number of real encoded data units associated with a particular service object and determines an encoded content that is the same among the predetermined number of encoded data units, dividing the same encoded content into a plurality of encoded segments. The universal code scanning service constructs a base identification portion based on the code segments and in turn generates a virtually encoded data unit associated with a particular service object. Then, when the virtual coded data unit based on the minimum coded segment passes the correctness verification of the special service of the specific service object, the universal code scanning service determines that the selected minimum coded segment is the feature code of the specific service object, determines the current service object corresponding to the coded data unit to be identified according to the feature code and the corresponding relation, and sends the coded data unit to be identified to the current service object.
It should be appreciated by those skilled in the art that the universal scan service may be activated by any other reasonable operation or key combination. For example, one or a combination of keys A-C can activate a universal scan code service. Alternatively, the user may activate the universal scan service by performing a pull-down operation, a left shift operation, or a right shift operation at a particular location.
The invention has been described with reference to a few embodiments. However, other embodiments of the invention than the one disclosed above are equally possible within the scope of the invention, as would be apparent to a person skilled in the art from the appended patent claims.
Generally, all terms used in the claims are to be interpreted according to their ordinary meaning in the technical field, unless explicitly defined otherwise herein. All references to "a/an/the [ device, component, etc ]" are to be interpreted openly as referring to at least one instance of said device, component, etc., unless explicitly stated otherwise. The steps of any method disclosed herein do not have to be performed in the exact order disclosed, unless explicitly stated.

Claims (23)

1. A method of identifying encoded data using a generic service, the method comprising:
acquiring a predetermined number of real coded data units associated with a specific service object by a general service, wherein the predetermined number of real coded data units are generated by a dedicated service of the specific service object;
determining an encoded content that is identical among the predetermined number of encoded data units and dividing the identical encoded content into a plurality of encoded segments;
generating a virtual coded data unit associated with the specific service object based on a basic identification portion composed of at least one code segment selected from the plurality of code segments, and determining the selected minimum code segment as a feature code of the specific service object when the virtual coded data unit based on the minimum code segment passes correctness verification of a dedicated service of the specific service object; wherein the basic identification part is a basic part capable of distinguishing encoded data units of different service objects;
storing the determined feature codes and the corresponding relations of the feature codes and the corresponding specific objects in a feature library; and
the general service receives the coded data unit to be identified, determines the current service object corresponding to the coded data unit to be identified based on the feature code and the corresponding relation in the feature library, and sends the coded data unit to be identified to the current service object.
2. The method of claim 1, wherein the current service object uses a dedicated service to decode the coded data unit to be identified, and processes the data carried by the coded data unit to be identified according to the decoding result.
3. The method of claim 1, the generic service being a service that services an operating system, and the specific service being a service that services the specific service object.
4. The method of claim 3, the dedicated service being unable to identify coded data units associated with other service objects than the particular service object.
5. The method of claim 1, the specific service object being an application capable of running in an operating system and capable of identifying a coded data unit.
6. The method of claim 1, the dividing the same encoded content into a plurality of encoded segments comprising:
determining discontinuous parts in the same encoding content as an initialization encoding section; and
each initialization code segment is subdivided by a predetermined length value to obtain the plurality of code segments.
7. The method of claim 1, the generating a virtual coded data unit associated with the particular service object based on the base identification portion of at least one code segment selected from the plurality of code segments comprising: selecting all combinations of code segments from the plurality of code segments to generate 2N-1 base identification portions, where N is the number of said plurality of code segments, based on 2N-1 basic identification portion generating 2 associated with said specific service objectN1 virtual coded data unit.
8. The method of claim 7, utilizing a dedicated service of the particular service object to pair 2N-1 virtual coded data unit is subjected to correctness verification, and the basic identification part with the least coded segment in the virtual coded data unit passing the correctness verification is determined.
9. The method of claim 8, determining all code segments of the base identification portion having the fewest code segments as feature codes of the specific service object.
10. The method of claim 8, wherein when there are at least two basic identification portions having the least encoded segments, all encoded segments of each of the at least two basic identification portions are determined as the at least two feature codes of the specific service object.
11. The method according to claim 10, wherein when the number of times that a coded data unit based on any of the at least two signatures is determined to be unrecognizable by a dedicated service of a corresponding service object reaches a threshold value, the any signature is deleted from the signature library.
12. A system for identifying coded data using a generic service, the system comprising:
an acquisition device that acquires, by a general service, a predetermined number of real encoded data units associated with a specific service object, the predetermined number of real encoded data units being generated by a dedicated service of the specific service object;
an encoding parsing device that determines an encoded content that is the same among the predetermined number of encoded data units and divides the same encoded content into a plurality of encoded segments; generating a virtual coded data unit associated with the specific service object based on a basic identification portion composed of at least one code segment selected from the plurality of code segments, and determining the selected minimum code segment as a feature code of the specific service object when the virtual coded data unit based on the minimum code segment passes correctness verification of a dedicated service of the specific service object; storing the determined feature codes and the corresponding relations of the feature codes and the corresponding specific objects in a feature library; wherein the basic identification part is a basic part capable of distinguishing encoded data units of different service objects; and
and the service equipment prompts the general service to receive the coded data unit to be identified, determines the current service object corresponding to the coded data unit to be identified based on the feature code and the corresponding relation in the feature library, and sends the coded data unit to be identified to the current service object.
13. The system of claim 12, wherein the current service object uses a dedicated service to decode the coded data unit to be identified, and processes the data carried by the coded data unit to be identified according to the decoding result.
14. The system of claim 12, the generic service is a service that services an operating system, and the specific service is a service that services the specific service object.
15. The system of claim 14, the dedicated service being unable to identify coded data units associated with service objects other than the particular service object.
16. The system of claim 12, the particular service object being an application capable of running in an operating system and capable of identifying a coded data unit.
17. The system of claim 12, the encoding parsing device dividing the same encoded content into a plurality of encoded segments comprising:
determining discontinuous parts in the same encoding content as an initialization encoding section; and
each initialization code segment is subdivided by a predetermined length value to obtain the plurality of code segments.
18. The system of claim 12, the code parsing device generating the virtual coded data unit associated with the particular service object based on the base identification portion of at least one code segment selected from the plurality of code segments comprising: the code parsing device selects all combinations of code segments from the plurality of code segments to generate 2N-1 base identification portions, where N is the number of said plurality of code segments, based on 2N-1 basic identification portion generating 2 associated with said specific service objectN1 virtual coded data unit.
19. The system of claim 18, the code parsing device to pair the 2 with a service specific to the particular service objectN-1 virtual coded data unit is subjected to correctness verification, and the basic identification part with the least coded segment in the virtual coded data unit passing the correctness verification is determined.
20. The system of claim 19, wherein the code parsing device determines all code segments of the base identification portion having the least code segments as feature codes of the specific service object.
21. The system of claim 19, wherein when there are at least two basic identification parts having the least code segments, the code parsing device determines all code segments of each of the at least two basic identification parts as the at least two feature codes of the specific service object.
22. The system according to claim 21, wherein the code parsing device deletes any signature code from the signature library when the number of times that a coded data unit composed based on any signature code of the at least two signature codes is determined to be unrecognizable by a dedicated service of a corresponding service object reaches a threshold value.
23. A mobile terminal comprising or being adapted to carry out the system according to any of claims 12-22.
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 CN107480572A (en) 2017-12-15
CN107480572B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108090392B (en) * 2017-12-29 2021-06-15 北京安云世纪科技有限公司 Method, system and mobile terminal for processing service based on universal identification function

Citations (6)

* 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
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5120156B2 (en) * 2008-03-27 2013-01-16 株式会社デンソーウェーブ 2D code
JP4668316B2 (en) * 2008-12-09 2011-04-13 フェリカネットワークス株式会社 Information processing apparatus, information processing method, program, and information processing system

Patent Citations (7)

* 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
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

Also Published As

Publication number Publication date
CN107480572A (en) 2017-12-15

Similar Documents

Publication Publication Date Title
CN107016420B (en) Service processing method and device
CN111062713B (en) Payment system, method, server device, medium and device
CN112789650B (en) Detecting translucent image watermarks
CN105653984B (en) File fingerprint method of calibration and device
KR20130011791A (en) Apparatus and method for dynamic multi-dimensional codes with time and visual recognition information
CN104766113A (en) Plain and secret code type anti-fake label and anti-fake method thereof
CN109977976B (en) Executable file similarity detection method and device and computer equipment
CN104820855A (en) Generation and identification method of dynamic two-dimensional codes based on mobile environment perception technology
CN104994128A (en) Data coding type identifying and transcoding method and device
US20180189571A1 (en) Method and apparatus for determining signature actor and identifying video based on probability of appearance of signature actor
CN110442515A (en) Application testing method, device, equipment and readable storage medium storing program for executing
CN107480572B (en) Method and system for identifying coded data by using general service
CN112820007B (en) Method and system for distinguishing two-dimensional code and IC card signal based on Wiegand protocol
CN108090392B (en) Method, system and mobile terminal for processing service based on universal identification function
CN113850587A (en) Information display method, device and equipment
CN113657398A (en) Image recognition method and device
EP3361419A1 (en) Tamper-proof barcode, system and method for generating and authenticating credentials on the basis of said code
CN107798373B (en) Two-dimensional code anti-copying method and system
CN103246750A (en) Method for searching by two-dimensional codes and search engine server
WO2018077059A1 (en) Barcode identification method and apparatus
CN112017634B (en) Data processing method, device, equipment and storage medium
CN111104484B (en) Text similarity detection method and device and electronic equipment
US11482027B2 (en) Automated extraction of performance segments and metadata values associated with the performance segments from contract documents
CN109214480B (en) Information processing method, information processing device, electronic equipment and computer readable storage medium
CN108959949B (en) Method and system for carrying out safe information transmission through graphic coding data

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