CN112183149B - Graphic code processing method and device - Google Patents

Graphic code processing method and device Download PDF

Info

Publication number
CN112183149B
CN112183149B CN202011050127.6A CN202011050127A CN112183149B CN 112183149 B CN112183149 B CN 112183149B CN 202011050127 A CN202011050127 A CN 202011050127A CN 112183149 B CN112183149 B CN 112183149B
Authority
CN
China
Prior art keywords
graphic code
graphic
codes
code
preset
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
CN202011050127.6A
Other languages
Chinese (zh)
Other versions
CN112183149A (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.)
Vivo Mobile Communication Hangzhou Co Ltd
Original Assignee
Vivo Mobile Communication Hangzhou 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 Vivo Mobile Communication Hangzhou Co Ltd filed Critical Vivo Mobile Communication Hangzhou Co Ltd
Priority to CN202011050127.6A priority Critical patent/CN112183149B/en
Publication of CN112183149A publication Critical patent/CN112183149A/en
Application granted granted Critical
Publication of CN112183149B publication Critical patent/CN112183149B/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
    • G06K7/1439Methods for optical code recognition including a method step for retrieval of the optical code
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/14131D bar codes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/14172D bar codes

Abstract

The application discloses a graphic code processing method and device, and belongs to the technical field of graphic code processing. The problems of complex identification process and low identification efficiency of the graphic code in the prior art can be solved. The method comprises the following steps: displaying the first graphic code; under the condition that a first input of a user is received, acquiring a preset graphic code, wherein the first input instruction identifies the first graphic code; responding to the first input, and adding a duplicate removal identifier for the first graphic code under the condition that the first graphic code is matched with a preset graphic code; and the preset graphic code is the recognized graphic code. The technical scheme effectively reduces the number of the graphic codes to be discriminated, thereby reducing the discrimination times of the graphic codes, simplifying the recognition process of the graphic codes and improving the recognition efficiency of the graphic codes.

Description

Graphic code processing method and device
Technical Field
The application belongs to the technical field of graphic code processing, and particularly relates to a graphic code processing method and device.
Background
With the development of the internet and the popularization of graphic codes, the phenomenon of contactless service becomes more and more common, and people can complete some daily operations such as payment, registration, ordering and the like only by scanning and identifying the graphic codes.
In practical applications, due to the need of comprehensive scenes, there are usually situations where multiple graphic codes are used simultaneously. For example, when a restaurant orders a meal, multiple graphic codes on the same page are generally required to be sequentially identified so as to complete the steps of paying attention to the restaurant and ordering the meal at the restaurant. The page containing the plurality of graphic codes is generally pasted at a cash register, and under the condition that the page is scanned and identified at a place far away from the cash register under the condition that the queue is long if the meal peak is reached, the plurality of graphic codes often appear in one identification frame, and at the moment, the electronic equipment often identifies a certain graphic code at random, so that the condition that the same graphic code is identified by multiple scanning often appears, and particularly, the graphic code printed in a large size is usually identified preferentially. That is to say, for the situation that a plurality of graphic codes exist in the same identification frame, it is difficult to help the user quickly identify the graphic codes to be identified in the prior art, and the identification efficiency is low.
Disclosure of Invention
The embodiment of the application aims to provide a graphic code processing method and a graphic code processing device, which can solve the problems of complex identification process and low identification efficiency of a graphic code in the prior art.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a method for processing a graphic code, including:
displaying the first graphic code;
under the condition of receiving a first input of a user, acquiring a preset graphic code, wherein the first input instruction identifies the first graphic code;
responding to the first input, and adding a duplicate removal identifier to the first graphic code under the condition that the first graphic code is matched with the preset graphic code;
and the preset graphic code is a recognized graphic code.
In a second aspect, an embodiment of the present application provides a graphic code processing apparatus, including:
the display module is used for displaying the first graphic code;
the acquisition module is used for acquiring a preset graphic code under the condition of receiving first input of a user, wherein the first input instruction identifies the first graphic code;
the execution module is used for responding to the first input, and adding a duplicate removal identifier to the first graphic code under the condition that the first graphic code is matched with the preset graphic code;
and the preset graphic code is a recognized graphic code.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or an instruction stored in the memory and executable on the processor, where the program or the instruction, when executed by the processor, implements the steps of the graphic code processing method according to the first aspect.
In a fourth aspect, the present invention provides a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the graphic code processing method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the steps of the graphic code processing method according to the first aspect.
In the embodiment of the application, by displaying the first graphic code, in the case of receiving a first input indicating that the first graphic code is recognized by a user, the preset graphic code is acquired, and in response to the first input, in the case that the first graphic code is matched with the recognized preset graphic code, the duplicate removal identifier is added to the first graphic code. Therefore, in the technical scheme, if one graphic code is matched with the recognized graphic code, the graphic code is recognized, at the moment, the duplicate removal identifier is added to the graphic code, and under the condition that the graphic code has the duplicate removal identifier, the recognition of the graphic code can be skipped, so that the repeated recognition of the graphic code is avoided, the number of the graphic codes to be screened is reduced, the number of times of screening the graphic codes is reduced, the recognition process of the graphic codes is simplified, and the recognition efficiency of the graphic codes is improved.
Drawings
Fig. 1 is a schematic flow chart of a graphic code processing method in an embodiment of the present application.
Fig. 2 is a schematic view of a display interface of a first graphic code in an embodiment of the present application.
Fig. 3 is a schematic view of a display interface of a first graphic code in another embodiment of the present application.
FIG. 4 is a schematic diagram of an interface for adding deduplication identification in an embodiment of the present application.
Fig. 5 (a) is a schematic view of a display interface of a first graphic code in another embodiment of the present application.
FIG. 5 (b) is a schematic diagram of an interface for adding deduplication marks in another embodiment of the present application.
Fig. 6 is a schematic flow chart of a graphic code processing method in another embodiment of the present application.
Fig. 7 is a schematic structural diagram of a graphic code processing apparatus in an embodiment of the present application.
Fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 9 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/", and generally means that the former and latter related objects are in an "or" relationship.
The graphic code processing method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Fig. 1 is a schematic flow chart of a graphic code processing method in an embodiment of the present application. In this embodiment, the graphic code processing method is applied to an electronic device, and the method in fig. 1 may include:
s102, displaying the first graphic code.
The graphic code may include a one-dimensional barcode (hereinafter, abbreviated as a barcode), a two-dimensional barcode (hereinafter, abbreviated as a two-dimensional code), and the like. Displaying the first graphic code may include displaying the first graphic code on a screen of the electronic device. Optionally, the first graphic code displayed on the screen of the electronic device may be a graphic code provided by a network side (e.g., a graphic code on a web page in the electronic device), may also be a graphic code displayed in a view frame of a camera of the electronic device, and may also be a graphic code locally stored in the electronic device (e.g., a graphic code in an album of the electronic device).
For example, as shown in fig. 2, an interface schematic diagram for displaying a first graphic code on an electronic device is shown, in which a viewing frame of a camera of the electronic device displays a page including a two-dimensional code and character information corresponding to the two-dimensional code.
S104, acquiring a preset graphic code under the condition of receiving a first input of a user, wherein the first input instruction identifies the first graphic code.
And the preset graphic code is the recognized graphic code.
In the case that the first graphic code displayed on the screen of the electronic device is a graphic code provided by a network side (for example, a graphic code on a webpage in the electronic device) or a graphic code locally stored in the electronic device (for example, a graphic code in an album of the electronic device), the first input may be a click input or a long-press input for the graphic code, and a selection of an option of "identify the graphic code" in a menu triggered to be displayed by the click input or the long-press input.
In the case where the first graphic code displayed on the screen of the electronic apparatus is a graphic code displayed in a finder frame of a camera of the electronic apparatus as shown in fig. 2, the first input may be a selection operation for a "scan" option displayed on the screen of the electronic apparatus.
S106, responding to the first input, and adding a duplicate removal identifier to the first graphic code under the condition that the first graphic code is matched with a preset graphic code.
In the embodiment of the application, by displaying the first graphic code, under the condition that a first input indicating that the first graphic code is recognized by a user is received, the preset graphic code is obtained, and in response to the first input, under the condition that the first graphic code is matched with the recognized preset graphic code, the duplicate removal identification is added to the first graphic code. It can be seen that, in the technical scheme, if a graphic code is matched with a recognized graphic code, it is indicated that the graphic code has been recognized, at this time, a duplicate removal identifier is added to the graphic code, and under the condition that the graphic code has the duplicate removal identifier, the recognition of the graphic code is skipped, so that repeated recognition of the graphic code is avoided, the number of graphic codes to be discriminated is reduced, thereby reducing the number of times of discriminating the graphic code, simplifying the recognition process of the graphic code, and improving the recognition efficiency of the graphic code.
In one embodiment, when the number of the first graphic codes is N, the N graphic codes may be sorted according to a preset rule, and the preset graphic codes and the N graphic codes are respectively matched based on the sorting order, and in a case that at least one second graphic code of the N graphic codes is matched with the preset graphic code, a duplicate removal identifier is added to the at least one second graphic code.
Wherein N is an integer of 2 or more. As shown in fig. 3, a page including three first graphic codes (including 2 two-dimensional codes and 1 bar code) and character information corresponding to each first graphic code is displayed in a viewfinder frame of a camera of the electronic device.
The sorting of the N graphic codes according to the preset rule may include at least one of the following modes A1 and A2:
and in the mode A1, identifying character information corresponding to the N graphic codes respectively, and determining the sequence of the N graphic codes according to the identification result.
In this embodiment, the character information corresponding to each of the N graphic codes may be identified according to any one of the existing semantic identification methods (e.g., artificial intelligence), semantic identification models (e.g., hidden markov models), and the like, where the character information may include a number used for identifying an order, a connection word, and the like. For example, a numerical designation such as "a", "3", "2", etc., a conjunction with a word such as "first", "second", "last", etc.
And the mode A2 is to receive the appointed input of the user aiming at the N graphic codes and to respond to the appointed input to determine the sequence of the N graphic codes.
The designated input may be a sliding input, a clicking input, and the like for a screen area corresponding to a display interface of the N graphic codes on the electronic device. For example, in a case that the designated input is a slide input, by receiving a line, which is slide-input by a user on a screen area corresponding to a display interface of N graphic codes on the electronic device and is sequentially connected with the N graphic codes, according to a direction of the slide input (i.e., a connection order for the N graphic codes), a sorting of the N graphic codes may be determined.
For another example, when the designated input is click input, by receiving click input of the user for the N graphic codes on the screen area corresponding to the display interface of the N graphic codes on the electronic device, the order of the N graphic codes may be determined according to the order of the click input.
In this embodiment, by determining the sequence of the plurality of graphic codes, the preset graphic codes are respectively matched with the graphic codes according to the sequence, so that the matching times are effectively reduced, the matching efficiency is improved, and the efficiency of adding the duplicate removal identifier to the graphic codes is improved. In addition, according to the multiple ways for determining the sequence of the multiple graphic codes provided by the embodiment, a user can preset which application in the electronic device adopts the way A1 to determine the sequence of the multiple graphic codes, and can also preset which application in the electronic device adopts the way A2 to determine the sequence of the multiple graphic codes, so that personalized requirements of the user can be met, the effect of satisfying the user can be achieved by identifying the graphic codes in each application scene, and the use experience of the user is improved.
Wherein, the de-duplication identifier can be added to the at least one second graphic code by at least one of the following modes B1 and B2:
and B1, displaying the recognized identification aiming at the at least one second graphic code.
The recognized mark may include a text mark, a symbol mark, a color mark, and the like. The text identifier may be text information prompting the user that the at least one second graphic code has been recognized, such as "recognized", "confirmed", and the like. The symbol identifier may be symbol information for prompting the user that the at least one second graphic code does not need to be recognized again, such as symbol information of hook, fork, delete line, and the like. The color identifier may be color information prompting the user that the at least one second graphic code does not need to be recognized again, such as displaying the at least one second graphic code in a color different from other graphic codes, adding gray scales to the at least one second graphic code, and the like.
For example, for the display interface shown in fig. 3, in response to a selection operation of a user for a "scan" option, character information corresponding to 3 graphic codes respectively may be recognized, a sequence of the 3 graphic codes is determined according to a recognition result, preset graphic codes and the 3 graphic codes are respectively matched based on the sequence of the sequence, if only a first two-dimensional code of the 3 graphic codes shown in fig. 3 is matched with the preset graphic code, a duplicate removal identifier is added to the first two-dimensional code, and as shown in fig. 4, a text identifier "recognized" may be displayed on the first two-dimensional code.
And B2, not displaying the indication mark aiming at the at least one second graphic code.
The indication identifier may be identification information for prompting the user to identify the graphic code, such as identification information of an arrow symbol, an "enter" character, and the like. For example, for the display interface shown in fig. 3, when the graphic codes on the display interface are recognized for the first time, the indication identifiers may be respectively set for the graphic codes included in the display interface, and as shown in fig. 5 (a), the indication identifiers of the graphic codes are displayed on the right side of the graphic codes. The user can click on each indication mark to finish the identification of each graphic code. When the display interface is identified again, if the first two-dimensional code is matched with the preset graphic code, the indication identifier may not be displayed on the first two-dimensional code as shown in fig. 5 (b).
Optionally, when a duplicate removal identifier is added to the at least one second graphic code, the identified identifier may be displayed for the at least one second graphic code, and the indication identifier may not be displayed for the at least one second graphic code; alternatively, the recognized identifier may be displayed for the at least one second graphic code, or the indication identifier may not be displayed for the at least one second graphic code.
In the embodiment, when the number of the first graphic codes is N, the N graphic codes are sorted according to the preset rule, and the preset graphic codes are respectively matched with the N graphic codes based on the sorting order, so that the matching times are effectively reduced, the matching efficiency is improved, and the efficiency of adding the duplicate removal identifier to the graphic codes is improved. And in addition, under the condition that at least one second graphic code in the N graphic codes is matched with the preset graphic code, the de-duplication identifier can be added to the at least one second graphic code, so that the at least one second graphic code is greatly different from other graphic codes, the graphic codes needing to be processed can be conveniently and quickly discriminated, and the recognition efficiency for the graphic codes is improved.
In one embodiment, in the case that the first graphic code matches a preset graphic code, after adding the duplicate removal identifier to the first graphic code, the third graphic code may be identified. The third graphic code is the graphic code arranged behind the first graphic code in the N graphic codes. In this embodiment, the first graphic code may include one or more graphic codes, and the first graphic code matches with the preset graphic code, rather than representing only the first graphic code.
In this embodiment, after the duplicate removal identifier is added to the first graphic code, the graphic codes arranged behind the first graphic code in the N graphic codes are identified, and the graphic codes are identified in sequence, so that the number of times of discriminating the graphic codes to be identified can be further reduced, and the effect of quickly identifying the graphic codes is achieved.
In one embodiment, after identifying the third graphical code, the third graphical code may be stored. The storage form of the third graphic code may be a picture form.
When the third graphic code is stored as a picture, the picture corresponding to the complete graphic code can be stored in advance. In consideration of the fact that the storage space of the electronic device is occupied by the third graphic code, the preset part of the third graphic code can be stored in order to save the storage space of the electronic device and avoid the influence of the overlarge storage space on the performance of the electronic device. The preset part may be a preset area part in the third graphic code, such as a lower left quarter area of the third graphic code, an upper right quarter area of the third graphic code, an area formed by a range irradiated by a line segment with a specified length from a center point of the third graphic code, and the like.
In addition, the storage space occupied by the bar code is relatively small, and the storage space occupied by the two-dimensional code is relatively large, so that when the third graphic code is the bar code, a complete picture corresponding to the third graphic code can be stored, and when the third graphic code is the two-dimensional code, a preset part of the third graphic code can be stored.
In this embodiment, if a first input of a user for a fourth graphic code is received, and the obtained preset graphic code is a preset portion of a third graphic code, the fourth graphic code may be matched with the preset portion of the third graphic code in response to the first input, and if an area matching the preset portion of the third graphic code exists in the fourth graphic code, the fourth graphic code may be considered to be matched with the third graphic code.
In this embodiment, the first recognized graphic code is stored to form a preset graphic code, which provides a judgment basis for determining the recognition condition of each graphic code before subsequently recognizing each graphic code, so that the electronic device can quickly and accurately determine the recognition condition of each graphic code, and add the duplicate removal identifier to the recognized graphic code, thereby reducing the number of graphic codes to be discriminated, reducing the discrimination times of the graphic codes, simplifying the recognition process, and improving the recognition efficiency for the graphic codes.
In one embodiment, after the preset graphic code is acquired in case of receiving the first input of the user, in response to the first input, the first graphic code may be recognized and the guide identifier may be displayed in case of not matching the first graphic code with the preset graphic code.
Wherein the guide identifier indicates a graphic code arranged behind the first graphic code among the N graphic codes. The guide mark may include an arrow mark, a letter mark (e.g., numerals "2, 3, 4 \8230;, letters" two, next, fourth \8230;, letters "B, C \8230;), etc.). If the guide identifier is an arrow identifier, the guide identifier can be displayed between the two graphic codes, and the first graphic code points to the next graphic code, or can be directly displayed on the next graphic code. If the guiding mark is a character mark, the guiding mark can be directly displayed on the following graphic code or can be displayed in a preset range of an area where the following graphic code is located.
Under the condition that the character information corresponding to the N graphic codes is recognized and the sorting of the N graphic codes is determined according to the recognition result, the electronic equipment can automatically recognize the next graphic code according to the sorting or the guide identifier, wherein the guide identifier is displayed to prompt the user of the next graphic code to be recognized, so that the user can know the current recognition progress. Under the condition that the N graphic codes are determined to be sorted by receiving the appointed input of the user aiming at the N graphic codes and responding to the appointed input, the user can determine the next graphic code to be identified according to the guide identification, and the times of the user for identifying the graphic codes are reduced.
In the embodiment, when the first graphic code is not matched with the preset graphic code, the first graphic code is recognized, and at this moment, in order to enable the electronic device to automatically recognize the next graphic code or prompt a user for recognition, the guidance identifier indicating the graphic code arranged behind the first graphic code in the N graphic codes is displayed, so that the next graphic code to be recognized can be determined, the number of times of discrimination of the graphic codes is reduced, the recognition process for the graphic codes is simplified, and the recognition efficiency for the graphic codes is improved.
The graphic code processing method provided by the embodiment of the application can be applied to scenes such as one graphic code, a plurality of graphic codes, various graphic code combinations and the like, such as a scene only containing one or more bar codes, a scene only containing one or more two-dimensional codes, a scene containing one or more bar codes and one or more two-dimensional codes and the like. The graphic code processing method provided by the embodiment is described below by taking an example in which the electronic device is a mobile phone and a scene in which the graphic code displayed in a finder frame of a camera of the mobile phone includes N first graphic codes.
Fig. 6 is a schematic flow chart of a graphic code processing method in another embodiment of the present application. In this embodiment, the N graphic codes are respectively sorted by identifying the character information corresponding to the N graphic codes and determining the sorting of the N graphic codes according to the identification result. The method of FIG. 6 may include:
s601, displaying the first graphic code.
The number of the first graphic codes is N, and the interface displaying the first graphic codes may be the interface shown in fig. 3 (the number of the first graphic codes in fig. 3 is 3).
S602, acquiring a preset graphic code under the condition of receiving a first input of a user.
The first input instruction identifies a first graphic code, and the preset graphic code is the identified graphic code. If the first graphic code is currently indicated to be recognized for the first time, the preset graphic code does not exist in the mobile phone, the first input of a user is received at the moment, the character information corresponding to the N graphic codes respectively is recognized, the sequence of the N graphic codes is determined according to the recognition result, the first graphic code is recognized based on the sequence of the sequence, and the step of indicating the guide identification of the graphic code arranged behind the first graphic code in the N graphic codes is displayed.
S603, responding to the first input, and identifying character information corresponding to the N graphic codes respectively.
Wherein, the character information may include a number, a connection word, etc. for identifying the order. For example, the numerical designations of "a," "3," "2," etc., and the words "first," "second," "last," etc., are used herein to describe elements of the invention.
Further, if the ordering of the N graphic codes is determined in response to a designation input by receiving a designation input of the N graphic codes by a user, the step may be performed as: and receiving the specified input of the N graphic codes by the user. The designated input can be sliding input, click input and the like aiming at screen areas corresponding to the display interfaces of the N graphic codes on the mobile phone. The specific process of this step is described in detail in the above embodiments, and is not described herein again.
And S604, determining the sequence of the N graphic codes according to the recognition result.
Further, if the N graphic codes are ordered in response to a designation input by receiving a designation input by the user for the N graphic codes, the step may be performed as: in response to a designation input, an ordering of the N graphical codes is determined. The specific process of this step is described in detail in the above embodiments, and is not described herein again.
S605, respectively matching the preset graphic codes with the N graphic codes based on the sequencing sequence; if so, executing S606; if not, go to step S608.
S606, adding a duplicate removal identifier to the first graphic code under the condition that the first graphic code is matched with the preset graphic code.
S607, identifying the third graphic code. The third graphic code is the graphic code arranged behind the first graphic code in the N graphic codes. After that, S601 is executed until the N graphic codes are identified.
S608, under the condition that the first graphic code is not matched with the preset graphic code, the first graphic code is identified, and the guide identifier is displayed. Wherein the guide identifier indicates a graphic code arranged behind the first graphic code among the N graphic codes.
The specific processes of S601-S608 are described in detail in the above embodiments, and are not described herein again.
In the embodiment of the application, by displaying the first graphic code, under the condition that a first input indicating that the first graphic code is recognized by a user is received, the preset graphic code is obtained, the first input is responded, and under the condition that the first graphic code is matched with the recognized preset graphic code, the de-duplication identifier is added to the first graphic code.
It should be noted that, in the graphic code processing method provided in the embodiment of the present application, the execution main body may be a graphic code processing apparatus, or a control module used for executing the graphic code processing method in the graphic code processing apparatus. The embodiment of the present application takes the example of a graphics code processing device executing a graphics code processing method, and describes the graphics code processing device provided in the embodiment of the present application.
Fig. 7 is a schematic structural diagram of a graphic code processing apparatus in an embodiment of the present application. Referring to fig. 7, the graphic code processing apparatus may include:
a display module 710 for displaying the first graphic code;
an obtaining module 720, configured to obtain a preset graphical code when a first input of a user is received, where the first input instruction identifies the first graphical code;
the execution module 730, configured to respond to the first input, and add a duplicate removal identifier to the first graphical code when the first graphical code matches a preset graphical code;
and the preset graphic code is the recognized graphic code.
In one embodiment, the number of the first graphic codes is N, and the executing module 730 includes:
the sorting unit is used for sorting the N graphic codes according to a preset rule;
the matching unit is used for respectively matching the preset graphic codes with the N graphic codes based on the sequencing sequence;
and the execution unit is used for adding the duplicate removal identification to at least one second graphic code under the condition that at least one second graphic code in the N graphic codes is matched with the preset graphic code.
In an embodiment, the sorting unit is specifically configured to:
identifying character information corresponding to the N graphic codes respectively;
and determining the sequence of the N graphic codes according to the recognition result.
In one embodiment, the graphic code processing apparatus further includes:
the identification module is used for identifying the third graphic code;
the third graphic code is the graphic code arranged behind the first graphic code in the N graphic codes.
In one embodiment, the graphic code processing apparatus further includes:
the recognition and display module is used for responding to the first input, recognizing the first graphic code under the condition that the first graphic code is not matched with the preset graphic code, and displaying the guide identification;
the guide identifier indicates the graphic code arranged behind the first graphic code in the N graphic codes.
In the embodiment of the application, by displaying the first graphic code, under the condition that a first input indicating that the first graphic code is recognized by a user is received, the preset graphic code is obtained, the first input is responded, and under the condition that the first graphic code is matched with the recognized preset graphic code, the de-duplication identifier is added to the first graphic code.
The graphic code processing device in the embodiment of the present application may be a device, and may also be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiment of the present application is not particularly limited.
The graphic code processing device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The graphic code processing device provided in the embodiment of the present application can implement each process implemented by the graphic code processing method embodiments of fig. 1 to 6, and is not described herein again to avoid repetition.
Optionally, as shown in fig. 8, an electronic device 800 is further provided in the embodiment of the present application, and includes a processor 801, a memory 802, and a program or an instruction that is stored in the memory 802 and is executable on the processor 801, where the program or the instruction is executed by the processor 801 to implement each process of the foregoing graphic code processing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 9 is a schematic hardware structure diagram of an electronic device implementing various embodiments of the present application.
The electronic device 900 includes, but is not limited to: a radio frequency unit 901, a network module 902, an audio output unit 903, an input unit 904, a sensor 905, a display unit 906, a user input unit 907, an interface unit 908, a memory 909, and a processor 910.
Those skilled in the art will appreciate that the electronic device 900 may further include a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 910 through a power management system, so as to manage charging, discharging, and power consumption management functions through the power management system. The electronic device structure shown in fig. 9 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
The display unit 906 is configured to display the first graphic code.
The processor 910 is configured to, in a case that a first input from a user is received, obtain a preset graphics code, where the first input indicates that the first graphics code is recognized; responding to the first input, and adding a duplicate removal identifier for the first graphic code under the condition that the first graphic code is matched with a preset graphic code; and the preset graphic code is the recognized graphic code.
Optionally, the processor 910 is further configured to, when the number of the first graphic codes is N, sort the N graphic codes according to a preset rule; respectively matching preset graphic codes with the N graphic codes based on the sequencing sequence; and under the condition that at least one second graphic code in the N graphic codes is matched with the preset graphic code, adding a duplicate removal identifier for the at least one second graphic code.
Optionally, the processor 910 is further configured to identify character information corresponding to the N graphic codes respectively; and determining the sequence of the N graphic codes according to the recognition result.
Optionally, the processor 910 is further configured to identify a third graphic code; the third graphic code is the graphic code arranged behind the first graphic code in the N graphic codes.
Optionally, the processor 910 is further configured to, in response to the first input, identify the first graphic code and display the guide identifier when the first graphic code is not matched with the preset graphic code; the guide identifier indicates the graphic code arranged behind the first graphic code in the N graphic codes.
In the embodiment of the application, by displaying the first graphic code, under the condition that a first input indicating that the first graphic code is recognized by a user is received, the preset graphic code is obtained, the first input is responded, and under the condition that the first graphic code is matched with the recognized preset graphic code, the de-duplication identifier is added to the first graphic code.
It should be understood that, in the embodiment of the present application, the input Unit 904 may include a Graphics Processing Unit (GPU) 9041 and a microphone 9042, and the Graphics processor 9041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capture mode or an image capture mode. The display unit 906 may include a display panel 9061, and the display panel 9061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 907 includes a touch panel 9071 and other input devices 9072. A touch panel 9071, also called a touch screen. The touch panel 9071 may include two parts, a touch detection device and a touch controller. Other input devices 9072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. Memory 909 can be used to store software programs as well as various data including, but not limited to, application programs and operating systems. The processor 910 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 910.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the foregoing graphic code processing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the foregoing graphic code processing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, the description is omitted here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as a system-on-chip, or a system-on-chip.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a component of' 8230; \8230;" does not exclude the presence of another like element in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application or portions thereof that contribute to the prior art may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (8)

1. A graphic code processing method is characterized by comprising the following steps:
displaying the first graphic code;
acquiring a preset graphic code under the condition of receiving a first input of a user, wherein the first input instruction identifies the first graphic code;
responding to the first input, and adding a duplicate removal identifier to the first graphic code under the condition that the first graphic code is matched with the preset graphic code;
the preset graphic code is a recognized graphic code;
the number of the first graphic codes is N, and adding a duplicate removal identifier to the first graphic code under the condition that the first graphic code is matched with the preset graphic code includes:
identifying character information corresponding to the N first graphic codes respectively; determining the sequence of the N first graphic codes according to the recognition result; respectively matching the preset graphic codes with the N first graphic codes based on the sequencing sequence; and under the condition that at least one second graphic code in the N first graphic codes is matched with the preset graphic code, adding the duplicate removal identification for the at least one second graphic code.
2. The method according to claim 1, wherein in case that the first graphic code matches with the preset graphic code, after adding a de-duplication identifier to the first graphic code, the method further comprises:
identifying a third graphic code;
the third graphic code is the next first graphic code to be identified, which is arranged behind the first graphic code added with the deduplication identifier, in the N first graphic codes.
3. The method according to claim 1, wherein after the obtaining of the preset graphic code in case of receiving the first input of the user, the method further comprises:
in response to the first input, under the condition that the first graphic code is not matched with the preset graphic code, identifying the first graphic code and displaying a guide identifier;
the guide mark indicates the next first graphic code to be recognized, which is arranged behind the recognized first graphic code, in the N first graphic codes.
4. A graphic code processing apparatus, comprising:
the display module is used for displaying the first graphic code;
the acquisition module is used for acquiring a preset graphic code under the condition of receiving first input of a user, wherein the first input instruction identifies the first graphic code;
the execution module is used for responding to the first input and adding a duplicate removal identifier to the first graphic code under the condition that the first graphic code is matched with the preset graphic code;
the preset graphic code is a recognized graphic code;
the number of the first graphic codes is N, and the execution module includes:
the sorting unit is used for identifying the character information corresponding to the N first graphic codes respectively and determining the sorting of the N first graphic codes according to the identification result;
the matching unit is used for respectively matching the preset graphic codes with the N first graphic codes based on the sequencing sequence;
and the execution unit is used for adding the duplicate removal identifier to at least one second graphic code in the N first graphic codes under the condition that the at least one second graphic code is matched with the preset graphic code.
5. The apparatus of claim 4, further comprising:
the identification module is used for identifying the third graphic code;
the third graphic code is the next to-be-identified first graphic code arranged behind the first graphic code added with the deduplication identifier in the N first graphic codes.
6. The apparatus of claim 4, further comprising:
the recognition and display module is used for responding to the first input, recognizing the first graphic code and displaying the guide identifier under the condition that the first graphic code is not matched with the preset graphic code;
wherein the guide identifier indicates a next first graphic code to be recognized, which is arranged behind the recognized first graphic code, among the N first graphic codes.
7. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the graphic code processing method according to any one of claims 1 to 3.
8. A readable storage medium, characterized in that it stores thereon a program or instructions which, when executed by a processor, implement the steps of the graphic code processing method according to any one of claims 1 to 3.
CN202011050127.6A 2020-09-29 2020-09-29 Graphic code processing method and device Active CN112183149B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011050127.6A CN112183149B (en) 2020-09-29 2020-09-29 Graphic code processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011050127.6A CN112183149B (en) 2020-09-29 2020-09-29 Graphic code processing method and device

Publications (2)

Publication Number Publication Date
CN112183149A CN112183149A (en) 2021-01-05
CN112183149B true CN112183149B (en) 2023-01-31

Family

ID=73947043

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011050127.6A Active CN112183149B (en) 2020-09-29 2020-09-29 Graphic code processing method and device

Country Status (1)

Country Link
CN (1) CN112183149B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3613080A (en) * 1968-11-08 1971-10-12 Scan Data Corp Character recognition system utilizing feature extraction
CN106845307A (en) * 2017-03-01 2017-06-13 北方民族大学 Volatile identification code, mark system and checking method
CN107491709A (en) * 2017-08-29 2017-12-19 努比亚技术有限公司 A kind of recognition methods of code figure, terminal and computer-readable recording medium
CN107609437A (en) * 2017-08-17 2018-01-19 阿里巴巴集团控股有限公司 A kind of targeted graphical code recognition methods and device
CN111026464A (en) * 2019-11-06 2020-04-17 维沃移动通信有限公司 Identification method and electronic equipment
CN111507116A (en) * 2019-01-31 2020-08-07 北京骑胜科技有限公司 Code scanning method and device, code scanning equipment and computer readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3613080A (en) * 1968-11-08 1971-10-12 Scan Data Corp Character recognition system utilizing feature extraction
CN106845307A (en) * 2017-03-01 2017-06-13 北方民族大学 Volatile identification code, mark system and checking method
CN107609437A (en) * 2017-08-17 2018-01-19 阿里巴巴集团控股有限公司 A kind of targeted graphical code recognition methods and device
CN107491709A (en) * 2017-08-29 2017-12-19 努比亚技术有限公司 A kind of recognition methods of code figure, terminal and computer-readable recording medium
CN111507116A (en) * 2019-01-31 2020-08-07 北京骑胜科技有限公司 Code scanning method and device, code scanning equipment and computer readable storage medium
CN111026464A (en) * 2019-11-06 2020-04-17 维沃移动通信有限公司 Identification method and electronic equipment

Also Published As

Publication number Publication date
CN112183149A (en) 2021-01-05

Similar Documents

Publication Publication Date Title
US20120083294A1 (en) Integrated image detection and contextual commands
CN111381751A (en) Text processing method and device
CN101997561A (en) Data transfer method and system
CN105893613B (en) image identification information searching method and device
CN111464716A (en) Certificate scanning method, device, equipment and storage medium
CN113194024B (en) Information display method and device and electronic equipment
CN112269798B (en) Information display method and device and electronic equipment
CN109085982B (en) Content identification method and device and mobile terminal
CN109359582A (en) Information search method, information search device and mobile terminal
CN113126838A (en) Application icon sorting method and device and electronic equipment
CN112181253A (en) Information display method and device and electronic equipment
CN113037925B (en) Information processing method, information processing apparatus, electronic device, and readable storage medium
CN113869063A (en) Data recommendation method and device, electronic equipment and storage medium
CN113128244A (en) Scanning method and device and electronic equipment
CN111967367A (en) Image content extraction method and device and electronic equipment
CN112183149B (en) Graphic code processing method and device
CN113783770B (en) Image sharing method, image sharing device and electronic equipment
CN111796736B (en) Application sharing method and device and electronic equipment
KR20150097250A (en) Sketch retrieval system using tag information, user equipment, service equipment, service method and computer readable medium having computer program recorded therefor
CN113360060B (en) Task realization method and device and electronic equipment
CN114415889A (en) Icon management method, device, equipment and storage medium
CN113253904A (en) Display method, display device and electronic equipment
CN112684912A (en) Candidate information display method and device and electronic equipment
CN112765946A (en) Chart display method and device and electronic equipment
CN108052525B (en) Method and device for acquiring audio information, storage medium and electronic equipment

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