CN115358251A - Graphic code identification method, graphic code identification device and electronic equipment - Google Patents

Graphic code identification method, graphic code identification device and electronic equipment Download PDF

Info

Publication number
CN115358251A
CN115358251A CN202211042387.8A CN202211042387A CN115358251A CN 115358251 A CN115358251 A CN 115358251A CN 202211042387 A CN202211042387 A CN 202211042387A CN 115358251 A CN115358251 A CN 115358251A
Authority
CN
China
Prior art keywords
graphic code
target
graphic
area
code
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.)
Pending
Application number
CN202211042387.8A
Other languages
Chinese (zh)
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 Co Ltd
Original Assignee
Vivo Mobile Communication 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 Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202211042387.8A priority Critical patent/CN115358251A/en
Publication of CN115358251A publication Critical patent/CN115358251A/en
Pending legal-status Critical Current

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/10544Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum
    • G06K7/10712Fixed beam scanning
    • G06K7/10722Photodetector array or CCD scanning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1439Methods for optical code recognition including a method step for retrieval of the optical code
    • G06K7/1443Methods for optical code recognition including a method step for retrieval of the optical code locating of the code in an image

Abstract

The application discloses a graphic code identification method, a graphic code identification device and electronic equipment, and belongs to the field of image processing. The graphic code identification method comprises the following steps: receiving a first input of a first area on an image to be recognized, wherein the image to be recognized comprises a plurality of graphic codes; responding to the first input, and displaying the identification content corresponding to a first target graphic code in the plurality of graphic codes; the first target graphic code is the graphic code which is closest to the first area in the plurality of graphic codes.

Description

Graphic code identification method, graphic code identification device and electronic equipment
Technical Field
The application belongs to the technical field of image processing, and particularly relates to a graphic code identification method, a graphic code identification device and electronic equipment.
Background
In daily life, the user often faces the situation that the graphic code identification is needed. A common graphic code recognition scene is a single-picture multi-graphic code recognition scene, in the related technology, a user triggers a code scanning menu by pressing a picture for a long time, electronic equipment recognizes a plurality of graphic codes in the picture, then the user selects the graphic code needing to be recognized from the recognized plurality of graphic codes, and the electronic equipment recognizes the graphic code selected by the user to display a code scanning result. The method needs more user operations, so that the user operation steps are complicated, and the use experience of the user is influenced.
Disclosure of Invention
The embodiment of the application aims to provide a graphic code identification method, a graphic code identification device and electronic equipment, which can solve the problem of complicated operation steps of a user under the identification situation of a single picture and multiple graphic codes.
In a first aspect, an embodiment of the present application provides a method for identifying a graphic code, where the method includes:
receiving a first input of a first area on an image to be recognized, wherein the image to be recognized comprises a plurality of graphic codes;
responding to the first input, and displaying the identification content corresponding to a first target graphic code in the plurality of graphic codes;
the first target graphic code is the graphic code which is closest to the first area in the plurality of graphic codes.
In a second aspect, an embodiment of the present application provides a graphic code recognition apparatus, where the apparatus includes:
the device comprises a first receiving module, a second receiving module and a processing module, wherein the first receiving module is used for receiving first input of a first area on an image to be recognized, and the image to be recognized comprises a plurality of graphic codes;
the first processing module is used for responding to the first input and displaying the identification content corresponding to a first target graphic code in the plurality of graphic codes;
the first target graphic code is the graphic code which is closest to the first area in the plurality of graphic codes.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, where the memory stores a program or instructions executable on the processor, and the program or instructions, when executed by the processor, implement the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the 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 method according to the first aspect.
In a sixth aspect, embodiments of the present application provide a computer program product, which is stored in a storage medium and executed by at least one processor to implement the method according to the first aspect.
In the embodiment of the application, by automatically identifying the graphic code which is closest to the first area where the first input is located in the plurality of graphic codes and displaying the identification content corresponding to the graphic code, the graphic code closest to the input position of the user can be automatically identified without manually selecting the graphic code to be identified by the user under the identification situation of the single-image multi-graphic code, so that the operation steps of the user are obviously reduced, the identification efficiency is improved, the operation is simple, quick and easy to realize, and the use experience of the user is facilitated to be improved.
Drawings
Fig. 1 is a schematic flowchart of a graphic code identification method according to an embodiment of the present disclosure;
fig. 2 is a second schematic flowchart of a graphic code recognition method according to an embodiment of the present application;
fig. 3 is one of interface schematic diagrams of a graphic code recognition method provided in an embodiment of the present application;
fig. 4 is a second schematic interface diagram of a graphic code recognition method according to an embodiment of the present application;
fig. 5 is a third schematic interface diagram of a graphic code recognition method according to an embodiment of the present application;
fig. 6 is a fourth schematic interface diagram of a graphic code recognition method according to an embodiment of the present application;
fig. 7 is a fifth schematic interface diagram of a graphic code recognition method according to an embodiment of the present application;
fig. 8 is a sixth schematic interface diagram of a graphic code recognition method according to an embodiment of the present application;
fig. 9 is a seventh schematic interface diagram of a graphic code recognition method according to an embodiment of the present application;
fig. 10 is an eighth schematic interface diagram of a graphic code recognition method according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of a graphic code identification apparatus according to an embodiment of the present application;
fig. 12 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
fig. 13 is a hardware schematic diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below clearly 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 that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
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 "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The method, the device, the electronic device and the readable storage medium for identifying a graphic code provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
The graphic code identification method can be applied to electronic equipment, and can be specifically executed by hardware or software in the electronic equipment.
The electronic device includes, but is not limited to, a mobile phone or other portable communication device such as a tablet computer having a touch-sensitive surface (e.g., a touch screen display and/or a touch pad). It should also be understood that in some embodiments, the electronic device may not be a portable communication device, but rather a desktop computer having a touch-sensitive surface (e.g., a touch screen display and/or touchpad).
In the following various embodiments, electronic devices including displays and touch-sensitive surfaces are described. However, it should be understood that the electronic device may include one or more other physical user interface devices such as a physical keyboard, mouse, and joystick.
In the method for recognizing a graphic code provided in the embodiment of the present application, an execution main body of the method for recognizing a graphic code may be an electronic device or a functional module or a functional entity capable of implementing the method for recognizing a graphic code in the electronic device, the electronic device mentioned in the embodiment of the present application includes, but is not limited to, a mobile phone, a tablet computer, a camera, a wearable device, and the like, and the method for recognizing a graphic code provided in the embodiment of the present application is described below with the electronic device as the execution main body as an example.
As shown in fig. 1, the graphic code recognition method includes: step 110 and step 120.
Step 110, receiving a first input of a first area 330 on an image to be recognized, wherein the image to be recognized comprises a plurality of graphic codes;
in this step, the graphic code may include one-dimensional code, two-dimensional code, multi-dimensional code, bar code, and any other recognizable graphic code.
The image to be recognized may be an image stored in the electronic device, or may be an image received from a server or other device, or may also be an image captured by an image sensor.
The image to be recognized comprises a plurality of graphic codes, and each graphic code corresponds to different contents respectively.
This step will be described below by taking a graphic code as a two-dimensional code as an example.
As shown in fig. 3, the image to be recognized includes a two-dimensional code a310 corresponding to the health code and a two-dimensional code B320 corresponding to the travel code, the recognized two-dimensional code a310 may jump to a health code display interface, and the recognized two-dimensional code B320 may jump to a travel code display interface.
The first area 330 is an area where the user makes a first input, and it is understood that, in an actual implementation process, the user may make the first input in any area of the image to be recognized.
The first input is for determining a first target graphical code from a plurality of graphical codes.
The first target graphic code is the graphic code closest to the first area 330 among the plurality of graphic codes.
Wherein, the first input may be at least one of the following modes:
first, the first input may be a touch operation, including but not limited to a click operation, a slide operation, a press operation, and the like.
In this embodiment, the receiving of the first input by the user may be receiving a touch operation of the user on a display area of a display screen of the terminal.
For example, in a state where the image to be recognized is displayed, the first input is set to a long press of the first area 330, or may also be set to a continuous multi-tap operation of the first area 330 within a target time interval.
Second, the first input may be a physical key input.
In this embodiment, the body of the terminal is provided with corresponding physical keys, and receives a first input of the user, which may be a first input of the user pressing the corresponding physical keys; the first input may also be a combined operation of pressing a plurality of physical keys simultaneously.
As shown in fig. 2, in some embodiments, the first input may include: a first sub-input and a second sub-input, step 110 may comprise:
receiving a first sub-input of a first area 330 on an image to be recognized;
in response to the first sub-input, displaying a first target control 370;
a second sub-input to the first target control 370 is received.
In this embodiment, the first target control 370 is a control for entering an intelligent code-scan menu scenario.
It should be noted that, in the case of entering the intelligent code scanning menu scenario, the electronic device may directly perform step 120 in response to the second sub-input, and when the electronic device identifies a plurality of graphic codes, the user does not need to manually select the graphic code to be identified, and the electronic device may automatically identify the responsive graphic code;
under the condition of entering a non-intelligent code scanning menu scene, when the electronic equipment identifies a plurality of graphic codes, the user needs to manually select the graphic codes to be identified, and the electronic equipment identifies the graphic codes selected by the user.
The first sub-input is used to determine the first region 330 and trigger the display of the first target control 370.
In some embodiments, the first sub-input is further used to trigger the display of a third target control 380, where the third target control 380 is a control for entering a non-intelligent code-scanning menu scenario, such as the control corresponding to "select code-scanning menu" shown in fig. 3.
The first sub-input may be a touch input or a physical key input, which is the same as the first input, and is not described herein.
The second sub-input is used to determine entry into the intelligent code-scan menu scenario.
The second sub-input may be the same touch input or physical key input as the first input, or may also be a voice input, for example, the electronic device may trigger the second sub-input when receiving a voice, such as "select intelligent code scanning menu".
In other embodiments, when entering a scenario of a non-intelligent code scanning menu, for example, a user clicks a control corresponding to the "select code scanning menu" shown in fig. 3, or the electronic device receives a voice such as the "select code scanning menu", the electronic device executes a conventional code scanning step, and the user manually selects a graphic code to be identified, which is not described herein in detail.
For example, in the actual implementation process, if a user wants to recognize the two-dimensional code a310 in the image to be recognized as shown in fig. 3, the user presses the area near the two-dimensional code a310 for a long time to realize the first sub-input;
the electronic device, in response to the first sub-input, displays a first target control 370, such as a control corresponding to "select intelligent code-scan menu".
And clicking a control corresponding to the 'selection of the intelligent code scanning menu' by the user to realize the second sub-input.
According to the graphic code identification method provided by the embodiment of the application, a user can select to enter a required code scanning scene based on actual requirements by providing various code scanning scenes (an intelligent code scanning menu scene and a non-intelligent code scanning menu scene), and the method has high flexibility and universality.
And 120, responding to the first input, and displaying the identification content corresponding to the first target graphic code in the plurality of graphic codes.
In this step, the first target graphic code is the graphic code closest to the first area 330 among the plurality of graphic codes.
The identification content can be detailed content corresponding to the first target graphic code; the first target graphic code may also be a content introduction of core content or detailed content corresponding to the first target graphic code.
The electronic equipment responds to the first input, determines the graphic code closest to the first area 330 in the plurality of graphic codes on the image to be recognized as a first target graphic code, automatically recognizes the first target graphic code, and displays the recognition content corresponding to the first target graphic code.
For example, with continued reference to fig. 3, in an actual execution process, in a case where the user wants to recognize the two-dimensional code a310, the user long-presses an area near the two-dimensional code a310 to implement the first input.
In response to the first input, the electronic device determines the area pressed by the user as the first area 330, determines the two-dimensional code a310 as the first target graphic code, automatically identifies the two-dimensional code a310, and displays the identification content corresponding to the two-dimensional code a310, that is, displays the health code.
For another example, as shown in fig. 2, in an actual implementation process, if a user wants to identify the two-dimensional code a310 in the image to be identified as shown in fig. 3, the user presses an area near the two-dimensional code a310 for a long time to implement the first sub-input;
the electronic device, in response to the first sub-input, displays a first target control 370, such as a control corresponding to "select intelligent code-scan menu".
And clicking the control corresponding to the intelligent code scanning menu by the user to realize the second sub-input.
The electronic equipment responds to the second sub-input, enters an intelligent code scanning menu scene, determines the area pressed by the user for a long time as a first area 330, determines the two-dimensional code A310 as a first target graphic code, automatically identifies the two-dimensional code A310, and displays the identification content corresponding to the two-dimensional code A310, namely displays the health code.
It should be noted that, in some embodiments, displaying the identification content corresponding to the first target graphic code may include: and jumping to a new display interface, and displaying the identification content corresponding to the first target graphic code.
In this embodiment, the identification content corresponding to the first target graphic code displayed on the new display interface may be detailed content corresponding to the first target graphic code, such as information including health codes and other information such as epidemic prevention needs.
By directly displaying the identification content corresponding to the first target graphic code in response to the first input, the operation steps of the user can be reduced, so that the identification rate and the identification efficiency are improved, and the use experience of the user is improved.
In other embodiments, displaying the identification corresponding to the first target graphic code may include: and displaying the identification content corresponding to the first target graphic code on the current display interface in a form of a pop-up frame or a split screen.
In this embodiment, the identification content corresponding to the first target graphic code displayed in the form of a pop-up frame or a split screen may be core content or a content profile corresponding to the first target graphic code, or may also be detailed content corresponding to the first target graphic code.
In the case that the core content or the content profile corresponding to the first target graphic code is displayed, after step 120, the method may further include:
receiving a third input;
and responding to the third input, and displaying the detailed content corresponding to the first target graphic code.
In this embodiment, the third input is used to display the detailed content.
The third input may be the same touch input, physical key input, voice input, or somatosensory gesture input as the second sub-input, which is not described herein again.
For example, in the actual execution process, the user clicks the area where the popup window or the split screen is located, and then the third input can be realized; and the electronic equipment responds to the third input, jumps to a new display interface and displays the detailed content corresponding to the first target graphic code.
In some embodiments, in the case that the identification content corresponding to the first target graphic code is displayed in a pop-up frame or a split screen, the display interface may include at least two display areas, where one display area includes the identification content corresponding to the first target graphic code, and the other display areas include other content, such as including the graphic code itself or other option information, and each display area corresponds to one pop-up frame or a split screen, which is not limited in this application.
Fig. 4 illustrates a display interface comprising a first display area 350 and a third display area 390, wherein the first display area 350 comprises identification content corresponding to a first target graphic code, such as a health code; the third display area 390 includes a first target graphical code, such as the two-dimensional code A310.
In other embodiments, displaying the identification content corresponding to the first target graphic code in the plurality of graphic codes may include: and displaying a first display area 350 and a second display area 360, wherein the first display area 350 comprises identification content corresponding to the first target graphic code, and the second display area 360 is used for indicating identification of other graphic codes.
In this embodiment, the second display area 360 is an area for recognizing other graphic codes.
For example, the second display area 360 may include a second target control for indicating recognition of other graphical codes.
The first display area 350 is an area including the identification content corresponding to the first target graphic code.
In the embodiment, the identification content corresponding to the first target graphic code is displayed, and simultaneously, other graphic code identification functions are activated.
Fig. 5 illustrates a display interface, which includes a first display area 350 and a second display area 360, wherein the first display area 350 includes identification content corresponding to a first target graphic code, such as a health code; the second display area 360 includes a second target control for indicating that the two-dimensional code B320 is recognized, such as a control corresponding to "recognize other graphic code menu".
According to the graphic code identification method provided by the embodiment of the application, the first display area 350 comprising the identification content corresponding to the first target graphic code and the second display area 360 used for indicating other graphic codes are displayed at the same time, so that the identification content corresponding to the first target graphic code is displayed for a user, and meanwhile, an entrance for identifying other graphic codes can be provided for the user, the user can conveniently identify other graphic codes subsequently, the problems of mistaken identification operation and the like can be effectively solved, and the accuracy and the identification flexibility of the graphic code identification result can be improved; in addition, the steps that a user needs to quit the current identification interface and repeat the identification operation for re-identification and the like when needing to identify other graphic codes can be avoided, the operation steps are obviously simplified, the identification efficiency is improved, and the operation is simple and rapid.
With continued reference to fig. 5, in some embodiments, displaying the identification content corresponding to the first target graphical code in the plurality of graphical codes may further include: the first display area 350, the second display area 360, and the third display area 390 are displayed.
In this embodiment, the first display area 350 includes identification content corresponding to the first target graphic code, such as a health code; the second display area 360 comprises a second target control for indicating and identifying the two-dimensional code B320, such as a control corresponding to the 'identify other graphic code menu'; the third display area 390 includes the first target graphic code and other graphic codes, i.e., includes the two-dimensional code a310 and the two-dimensional code B320, and the first target graphic code is in an unselected state.
According to the graphic code identification method provided by the embodiment of the application, the graphic code closest to the first input position in the first area 330 in which the first input is located in the plurality of graphic codes is automatically identified, and the identification content corresponding to the graphic code is displayed, so that the graphic code closest to the user input position can be automatically identified in one step without manually selecting the graphic code to be identified by a user under the identification situation of the single-image multi-graphic code, the operation steps of the user are obviously reduced, the identification efficiency is improved, the operation is simple, fast and easy to realize, and the use experience of the user is improved.
It can be understood that, in the actual execution process, there is a case of misidentification, that is, the first target graphic code recognized by the electronic device is not the graphic code to be recognized by the user; or after the first target graphic code is identified, the user needs to continuously identify other graphic codes.
Then, with continued reference to fig. 2, in some embodiments, after displaying the first display area 350 and the second display area 360, the method may further comprise:
receiving a second input to the second display area 360;
and responding to the second input, and displaying the identification content corresponding to a second target graphic code in the plurality of graphic codes, wherein the second target graphic code is the graphic code next to the first target graphic code from the first area 330 in the plurality of graphic codes.
In this embodiment, the second display area 360 is an area that includes a second target control for indicating identification of a graphical code other than the first target graphical code.
The second target graphic code is next to the first target graphic code from the first area 330 among the plurality of graphic codes.
The second input is used for displaying the identification content corresponding to the second target graphic code.
Wherein, the second input may be at least one of the following modes:
first, the second input may be a touch operation, including but not limited to a click operation, a slide operation, a press operation, and the like.
In this embodiment, in order to reduce the user mishandling rate, the action region of the second input may be limited to a specific region, such as the middle portion of the second display region 360.
Or in the state of displaying the second display area 360, setting a second target control in the second display area 360, and touching the second target control, so as to realize second input; for example, as shown in fig. 5, a control corresponding to "identify another graphic code menu" is set in the second display area 360, and the user touches the control corresponding to "identify another graphic code menu", so that the second input can be implemented.
Or the second input is set as a continuous multi-tap operation on the second display area 360 within the target time interval.
Second, the second input may be a physical key input.
In this embodiment, the body of the terminal is provided with a corresponding physical key for receiving a second input of the user, which may be a second input of the user pressing the corresponding physical key; the second input may also be a combined operation of pressing a plurality of physical keys simultaneously.
Third, the second input may be a voice input.
In this embodiment, the terminal may trigger the second input upon receiving a voice such as "identify other graphical code menu".
Certainly, in other embodiments, the second input may also be in other forms, including but not limited to a somatosensory gesture input, which may be determined according to actual needs, and this is not limited in this embodiment of the present application.
In some embodiments, in response to the second input, displaying the identification content corresponding to the second target graphic code in the plurality of graphic codes may further include: and responding to the second input, displaying the identification content corresponding to the second target graphic code in the plurality of graphic codes, and canceling the display of the identification content corresponding to the first target graphic code.
It is understood that, in this embodiment, in the case that the second input is received, the electronic device may automatically mask the last recognized graphic code, and recognize other graphic codes to display the recognition contents corresponding to the other graphic codes.
For example, with continued reference to fig. 5, the electronic device displays a first display area 350 and a second display area 360, wherein the first display area 350 includes the identification content corresponding to the two-dimensional code a 310: a health code; the second display area 360 includes a second target control for indicating that the two-dimensional code B320 is recognized, such as a control corresponding to "recognize other graphic code menu".
And clicking a control corresponding to the 'recognition of other graphic code menus' to realize second input under the condition that the user is in misoperation and the user needs to display the recognition content corresponding to the two-dimensional code B320.
The electronic equipment responds to the second input, determines the two-dimensional code B320 as a second target graphic code, automatically identifies the two-dimensional code B320, and displays the identification content corresponding to the two-dimensional code B320: a run code.
Similarly, displaying the identification content corresponding to the second target graphic code in the plurality of graphic codes may be represented as: skipping to a new display interface, and displaying the identification content corresponding to the second target graphic code; or the identification content corresponding to the second target graphic code can be displayed in a pop-up frame or split screen mode on the current display interface.
In the case that the identification content corresponding to the second target graphic code is displayed in a pop-up frame or split screen manner, the display interface may include at least two display areas, where one display area includes the identification content corresponding to the second target graphic code, and the other display area includes other content, such as including the graphic code or displaying other option information, which is not limited in the present application.
Fig. 6 illustrates a display interface, which includes a first display area 350 and a third display area 390, wherein the first display area 350 includes identification content corresponding to a second target graphic code, such as a travel code; the third display area 390 includes a second target graphic code, such as the two-dimensional code B320.
In some embodiments, in the case that the number of the graphic codes in the image to be recognized is at least three, such as two-dimensional code a310, two-dimensional code B320, two-dimensional code C, and two-dimensional code D, the display interface may include a first display area 350, a second display area 360, and a third display area 390.
In this embodiment, the first display area 350 includes identification content corresponding to the second object graphic code, such as a travel code; the second display area 360 includes a control for instructing to recognize another two-dimensional code other than the two-dimensional code a310 and the two-dimensional code B320, that is, a control for instructing to recognize the two-dimensional code C or the two-dimensional code D; the third display area 390 includes the first target graphic code, the second target graphic code, and other graphic codes except the first target graphic code and the second target graphic code, that is, includes a two-dimensional code a310, a two-dimensional code B320, a two-dimensional code C, and a two-dimensional code D.
According to the graphic code identification method provided by the embodiment of the application, under the condition that the first display area 350 and the second display area 360 are displayed, the identification content corresponding to the second target graphic code is automatically identified based on the second input of the user, so that the user can identify other graphic codes without quitting the current identification interface to repeat identification operation, the problems of mistaken identification operation and the like are effectively solved, and the accuracy and the identification flexibility of the graphic code identification result are improved; in addition, the operation steps are obviously simplified, the recognition efficiency is improved, and the operation is simple and rapid.
The implementation of step 120 is specifically described below from two perspectives.
1. Determination by area radius scanning
In some embodiments, step 120 may include:
in response to the first input, determining a target area 340 with the center point of the first area 330 as the center point, the radius of the target area 340 gradually increasing;
under the condition that the target area 340 completely covers one of the plurality of graphic codes for the first time, determining the completely covered graphic code as a first target graphic code;
and displaying the identification content corresponding to the first target graphic code.
In this embodiment, the target area 340 is a circular area with a radius gradually increasing from 0 and centered at the center point of the first area 330, such as the circular dashed area shown in fig. 7.
In some embodiments, determining the target area 340 around the center point of the first area 330 may include: the target area 340 is determined with the center point of the first area 330 as the center point and the target length as the radius, the target length increasing based on the unit increase length.
In this embodiment, the target length is the current radius of the target area 340.
The target length is a variation value.
The unit increase length is the length of each increase of the target length, and the specific numerical value can be customized by a user or can be automatically determined by the electronic equipment according to the size of a screen or the size of an image to be recognized.
In the actual implementation process, the unit increase length can be increased for multiple times, for example, the unit increase length is increased on the basis of the last radius based on a fixed time interval, so as to ensure the operation efficiency of the electronic device.
For example, in a case where the user wants to recognize the two-dimensional code a310, the user long-presses an area near the two-dimensional code a310 in the image to be recognized as shown in fig. 7 and selects the smart code-scan menu to realize the first input.
The electronic device determines an area that the user presses long as the first area 330 in response to the first input, and determines coordinates (x, y) of a center point O of the first area 330;
the electronic device establishes a target area 340 shown in fig. 7 with the center point O as a circle center, and gradually increases the radius of the target area 340 from 0 to gradually increase the area of the target area 340;
the radius of the target area 340 is increased n times, and the length r is increased in each increasing unit, where n is a positive integer and r is greater than 0.
Namely, the first search range is: (x + r, y + r), the second search range (x +2r, y + 2r), and so on.
In the process of increasing the target area 340, the electronic device judges the content covered by the target area 340 in real time until a complete graphic code is identified; in case that it is determined that the target area 340 covers a certain graphic code for the first time, the graphic code is determined as the first target graphic code.
As shown in fig. 7, in the process of gradually increasing the target area 340, the area where the two-dimensional code a310 is located is completely covered at the earliest, and then the two-dimensional code a310 is determined as the first target graphic code.
The electronic device automatically recognizes the two-dimensional code a310 and displays the recognition content corresponding to the two-dimensional code a310, that is, displays the health code, as shown in fig. 5, wherein the first display area 350 includes the health code, and the second display area 360 includes a second target control for indicating that the two-dimensional code B320 is recognized.
In some embodiments, after displaying the health code, the user finds that the identification content corresponding to the two-dimensional code B320 needs to be displayed, and clicks the second display area 360 shown in fig. 5 to implement the second input.
The electronic equipment responds to the second input, continues to increase the radius of the target area 340 on the basis of determining the first target graphic code, and judges the content covered by the target area 340 in real time until a second complete graphic code is identified;
in case that it is determined that the target area 340 covers a graphic code for the second time, the graphic code is determined as a second target graphic code.
As shown in fig. 8, in the process that the target area 340 gradually increases, the area where the two-dimensional code a310 is located is covered for the first time, and then the area where the two-dimensional code B320 is located is covered, so that the two-dimensional code B320 is determined as the second target graphical code.
The electronic device automatically identifies the two-dimensional code B320 and displays the identification content corresponding to the two-dimensional code B320, that is, displays the travel code, as shown in fig. 6, wherein the first display area 350 includes the travel code.
It can be understood that, in the actual execution process, with the central point of the first area 330 corresponding to the first input of the user as the origin, the target area 340 with the radius gradually increasing is established to scan the screen, and the situation of the graphic code covered by the target area 340 is judged in real time, the graphic code covered for the first time is determined as the first target graphic code, the graphic code covered for the second time is determined as the second target graphic code, and so on, until the identification content corresponding to the graphic code required by the user is displayed, the identification is stopped.
In some embodiments, in the process of continuing to enlarge the target area 340, there is a case where the boundary of the target area 340 exceeds the screen boundary, in which case, the determining the target area 340 with the center point of the first area 330 as the center point may include:
determining boundary coordinates of the target area 340 based on coordinates of the center of the circle and the target length;
in the case where the boundary coordinates of the target region 340 exceed the boundary coordinates of the screen, the target length continues to be increased, and the boundary coordinates of the target region 340 are determined as the boundary coordinates of the screen.
In this embodiment, a coordinate system may be established with the center point of the screen of the electronic device as the origin of coordinate axes, and the x-axis and the y-axis are each parallel to a certain boundary of the screen.
As shown in fig. 9, the coordinate of the origin of the coordinate system is (0,0), and the coordinates of the intersection points of the screen boundary and the x-axis are (a, 0) and (-a, 0), respectively; the coordinates of the intersection of the screen boundaries and the y-axis are (0,b) and (0, -b), respectively, where a and b are both greater than 0.
The center point O of the target area 340 has coordinates (x, y) and a radius nr, where n is the number of increments and r is the unit increment length, where n is a positive integer and r is greater than 0.
In the case where any of the conditions x + nr > a, x-nr < -a, y + nr > b, and y-nr < -b is satisfied, the electronic apparatus continues to expand the target region 340 by increasing the radius by the unit increase length, and updates boundary coordinates in the target region 340 that exceed the boundary of the screen to boundary coordinates of the screen.
For example, in the case of x + nr > a, the abscissa at the point of the next display is the boundary coordinate a of the screen, and the ordinate is the boundary coordinate of the target area 340, so that the normal calculation and normal display functions of the electronic device can be ensured.
According to the graphic code identification method provided by the embodiment of the application, the first target graphic code is determined in a region radius scanning mode, the related calculated amount is small, the requirement on hardware is low, and the calculation rate and the identification efficiency are improved.
2. By distance between centre points
In some embodiments, step 120 may include:
responding to the first input, and acquiring the central coordinates of each graphic code in the plurality of graphic codes;
respectively determining the distance between the center coordinates of each graphic code and the center point of the first area 330;
determining the graphic code corresponding to the shortest distance as a first target graphic code;
and displaying the identification content corresponding to the first target graphic code.
In this embodiment, for example, in a case where the user wants to recognize the two-dimensional code a310, the user long-presses an area near the two-dimensional code a310 in the image to be recognized as shown in fig. 10 to realize the first input.
The electronic device determines an area that the user presses long as the first area 330 in response to the first input, and determines coordinates (x, y) of a center point O of the first area 330;
meanwhile, the electronic device further determines the center coordinates of each graphic code in the image to be recognized, wherein the center coordinates of the two-dimensional code a310 are (x 1, y 1), and the center coordinates of the two-dimensional code B320 are (x 2, y 2).
After acquiring the coordinates (x, y) of the center point O of the first area 330, the coordinates (x 1, y 1) of the center of the two-dimensional code a310, and the coordinates (x 2, y 2) of the center of the two-dimensional code B320, the electronic device calculates a distance d1 between the coordinates of the center of the two-dimensional code a310 and the center point O of the first area 330, and a distance d2 between the coordinates of the center of the two-dimensional code B320 and the center point O of the first area 330, respectively.
Then comparing the sizes of d1 and d 2; if d1 is shortest, the two-dimensional code a310 corresponding to d1 is determined as the first target graphic code.
The electronic device automatically recognizes the two-dimensional code a310 and displays the recognition content corresponding to the two-dimensional code a310, that is, displays the health code, wherein the first display area 350 includes the health code, and the second display area 360 includes a second target control for indicating that the two-dimensional code B320 is recognized.
In some embodiments, after displaying the health code, if the user finds that the identification content corresponding to the two-dimensional code B320 needs to be displayed, the user clicks the second display area 360 to perform the second input.
In response to the second input, the electronic device determines, as the second target graphic code, a graphic code having a distance from the center point of the first area 330 that is only higher than a distance corresponding to the first target graphic code, on the basis of determining the first target graphic code.
Continuing with the above embodiment as an example, when d2 is determined to be the second short distance, the two-dimensional code B320 corresponding to d2 is directly determined as the second target graphic code.
The electronic device automatically identifies the two-dimensional code B320 and displays the identification content corresponding to the two-dimensional code B320, that is, displays the travel code, wherein the first display area 350 includes the travel code.
It can be understood that, in the actual execution process, the distances between the center point of the first area 330 corresponding to the first input of the user and the center coordinates of the graphic codes are respectively calculated, the graphic code corresponding to the shortest distance is determined as the first target graphic code, the graphic code corresponding to the second shortest distance is determined as the second target graphic code, and so on, until the identification content corresponding to the graphic code required by the user is displayed, the identification is stopped.
According to the graphic code identification method provided by the embodiment of the application, the first target graphic code is determined by comparing the distances between the central points, so that the calculation accuracy and the precision are higher, the accuracy and the precision of the identification result are improved, and the graphic code identification effect is improved.
According to the graphic code identification method provided by the embodiment of the application, the execution main body can be a graphic code identification device. The embodiment of the present application takes a method for executing a graphic code recognition by a graphic code recognition device as an example, and illustrates the graphic code recognition device provided in the embodiment of the present application.
The embodiment of the application also provides a graphic code identification device.
As shown in fig. 11, the graphic code recognition apparatus includes: a first receiving module 1110 and a first processing module 1120.
A first receiving module 1110, configured to receive a first input of a first area on an image to be recognized, where the image to be recognized includes multiple graphic codes;
the first processing module 1120 is configured to, in response to a first input, display identification content corresponding to a first target graphical code of the plurality of graphical codes;
wherein, the first target graphic code is the graphic code nearest to the first area in the plurality of graphic codes
According to the graphic code identification device provided by the embodiment of the application, the graphic code which is closest to the first region where the first input is located in the plurality of graphic codes is automatically identified, and the identification content corresponding to the graphic code is displayed, so that the graphic code which is closest to the input position of a user can be automatically identified without manually selecting the graphic code to be identified by the user under the identification situation of a single-image multi-graphic code, the operation steps of the user are obviously reduced, the identification efficiency is improved, the operation is simple, quick and easy to implement, and the use experience of the user is facilitated to be improved.
In some embodiments, the first processing module 1120 may be further configured to: and displaying a first display area and a second display area, wherein the first display area comprises identification content corresponding to the first target graphic code, and the second display area is used for indicating other graphic codes to be identified.
In some embodiments, the apparatus may further comprise:
the second receiving module is used for receiving a second input to the second display area after the first display area and the second display area are displayed;
and the second processing module is used for responding to a second input and displaying identification content corresponding to a second target graphic code in the plurality of graphic codes, wherein the second target graphic code is the graphic code next to the first target graphic code from the first area in the plurality of graphic codes.
In some embodiments, the first processing module 1120 may be further configured to:
responding to the first input, determining a target area by taking the central point of the first area as a circle center, and gradually increasing the radius of the target area;
under the condition that the target area completely covers one of the graphic codes for the first time, determining the completely covered graphic code as a first target graphic code;
and displaying the identification content corresponding to the first target graphic code.
In some embodiments, the first processing module 1120 may be further configured to: and determining the target area by taking the central point of the first area as the circle center and the target length as the radius, wherein the target length is increased based on the unit increase length.
In some embodiments, the first processing module 1120 may be further configured to:
determining boundary coordinates of the target area based on the coordinates of the circle center and the target length;
in the case where the boundary coordinates of the target region exceed the boundary coordinates of the screen, the target length continues to be increased, and the boundary coordinates of the target region are determined as the boundary coordinates of the screen.
In some embodiments, the first processing module 1120 may be further configured to:
responding to the first input, and acquiring the central coordinates of each graphic code in the plurality of graphic codes;
respectively determining the distance between the center coordinate of each graphic code and the center point of the first area;
determining the graphic code corresponding to the shortest distance as a first target graphic code;
and displaying the identification content corresponding to the first target graphic code.
The graphic code recognition device in the embodiment of the present application may be an electronic device, and may also be a component in the electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal, or may be a device other than a terminal. The electronic Device may be, for example, a Mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic Device, a Mobile Internet Device (MID), an Augmented Reality (AR)/Virtual Reality (VR) Device, a robot, a wearable Device, an ultra-Mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and may also be a personal computer (personal computer, PC), a Television (TV), a teller machine, a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The graphic code recognition device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an IOS operating system, or other possible operating systems, which is not specifically limited in the embodiment of the present application.
The graphic code recognition device provided in the embodiment of the present application can implement each process implemented by the method embodiments of fig. 1 to fig. 10, and is not described here again to avoid repetition.
Optionally, as shown in fig. 12, an electronic device 1200 is further provided in this embodiment of the present application, and includes a processor 1201, a memory 1202, and a program or an instruction stored in the memory 1202 and executable on the processor 1201, where the program or the instruction is executed by the processor 1201 to implement each process of the foregoing graphic code identification method embodiment, and can achieve the same technical effect, and no further description is provided here to avoid repetition.
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. 13 is a schematic hardware structure diagram of an electronic device implementing an embodiment of the present application.
The electronic device 1300 includes, but is not limited to: a radio frequency unit 1301, a network module 1302, an audio output unit 1303, an input unit 1304, a sensor 1305, a display unit 1306, a user input unit 1307, an interface unit 1308, a memory 1309, a processor 1310, and the like.
Those skilled in the art will appreciate that the electronic device 1300 may further comprise a power source (e.g., a battery) for supplying power to the various components, and the power source may be logically connected to the processor 1310 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system. The electronic device structure shown in fig. 13 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 omitted here.
The user input unit 1307 is configured to receive a first input of a first area on an image to be recognized, where the image to be recognized includes multiple graphic codes;
a processor 1310 configured to display, in response to a first input, identification content corresponding to a first target graphic code among the plurality of graphic codes;
the first target graphic code is the graphic code which is closest to the first area in the plurality of graphic codes.
According to the electronic equipment provided by the embodiment of the application, the graphic code closest to the user input position can be automatically identified without manually selecting the graphic code to be identified by a user under the identification scene of a single image and multiple graphic codes by automatically identifying the graphic code closest to the first area where the first input is located in the multiple graphic codes and displaying the identification content corresponding to the graphic code, so that the operation steps of the user are remarkably reduced, the identification efficiency is improved, the operation is simple, fast and easy to realize, and the use experience of the user is facilitated to be improved.
Optionally, the processor 1310 is further configured to display a first display area and a second display area, where the first display area includes identification content corresponding to the first target graphic code, and the second display area is used to indicate that other graphic codes are identified.
Optionally, the user input unit 1307 is further configured to receive a second input to the second display area after the first display area and the second display area are displayed;
the processor 1310 is further configured to display, in response to a second input, identification content corresponding to a second target graphic code of the plurality of graphic codes, where the second target graphic code is next to the first target graphic code in the plurality of graphic codes from the first area.
Optionally, the processor 1310 is further configured to:
responding to a first input, determining a target area by taking a central point of the first area as a circle center, and gradually increasing the radius of the target area;
under the condition that the target area completely covers one of the plurality of graphic codes for the first time, determining the completely covered graphic code as a first target graphic code;
and displaying the identification content corresponding to the first target graphic code.
Optionally, the processor 1310 is further configured to: and determining the target area by taking the central point of the first area as the circle center and the target length as the radius, wherein the target length is increased based on the unit increase length.
Optionally, the processor 1310 is further configured to:
determining boundary coordinates of the target area based on the coordinates of the circle center and the target length;
and in the case that the boundary coordinates of the target area exceed the boundary coordinates of the screen, continuing to increase the target length, and determining the boundary coordinates of the target area as the boundary coordinates of the screen.
Optionally, the processor 1310 is further configured to:
responding to the first input, and acquiring the center coordinates of each graphic code in the plurality of graphic codes;
respectively determining the distance between the center coordinate of each graphic code and the center point of the first area;
determining the graphic code corresponding to the shortest distance as a first target graphic code;
and displaying the identification content corresponding to the first target graphic code.
It should be understood that, in the embodiment of the present application, the input Unit 1304 may include a Graphics Processing Unit (GPU) 13041 and a microphone 13042, and the Graphics processor 13041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 1306 may include a display panel 13061, and the display panel 13061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1307 includes a touch panel 13071 and at least one of other input devices 13072. Touch panel 13071, also known as a touch screen. The touch panel 13071 may include two parts, a touch detection device and a touch controller. Other input devices 13072 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.
The memory 1309 may be used to store software programs as well as various data. The memory 1309 may mainly include a first storage area storing programs or instructions and a second storage area storing data, wherein the first storage area may store an operating system, application programs or instructions required for at least one function (such as a sound playing function, an image playing function, etc.), and the like. Further, memory 1309 can include volatile memory or nonvolatile memory, or memory 1309 can include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. The volatile Memory may be a Random Access Memory (RAM), a Static Random Access Memory (Static RAM, SRAM), a Dynamic Random Access Memory (Dynamic RAM, DRAM), a Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), a Double Data Rate Synchronous Dynamic Random Access Memory (Double Data Rate SDRAM, ddr SDRAM), an Enhanced Synchronous SDRAM (ESDRAM), a Synchronous Link DRAM (SLDRAM), and a Direct Memory bus RAM (DRRAM). Memory 1309 in the embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.
Processor 1310 may include one or more processing units; optionally, the processor 1310 integrates an application processor, which primarily handles operations involving the operating system, user interface, and applications, etc., and a modem processor, which primarily handles wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into processor 1310.
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 identification 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 computer read only memory ROM, a random access memory RAM, a magnetic or 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 identification 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.
Embodiments of the present application provide a computer program product, where the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the processes of the foregoing display method embodiments, and achieve the same technical effects, and in order to avoid repetition, details are not described here again.
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 phrase "comprising a … …" does not exclude the presence of another identical 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. In addition, 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 may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, 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 (10)

1. A graphic code identification method is characterized by comprising the following steps:
receiving a first input of a first area on an image to be recognized, wherein the image to be recognized comprises a plurality of graphic codes;
responding to the first input, and displaying the identification content corresponding to a first target graphic code in the plurality of graphic codes;
the first target graphic code is the graphic code which is closest to the first area in the plurality of graphic codes.
2. The graphic code recognition method according to claim 1, wherein the displaying of the recognition content corresponding to the first target graphic code in the plurality of graphic codes comprises:
and displaying a first display area and a second display area, wherein the first display area comprises identification content corresponding to the first target graphic code, and the second display area is used for indicating identification of other graphic codes.
3. The graphic code recognition method according to claim 2, wherein after the displaying the first display area and the second display area, the method comprises:
receiving a second input to the second display area;
and responding to the second input, and displaying the identification content corresponding to a second target graphic code in the plurality of graphic codes, wherein the second target graphic code is the graphic code which is next to the first target graphic code from the first area in the plurality of graphic codes.
4. The graphic code recognition method according to any one of claims 1 to 3, wherein the displaying the recognition content corresponding to the first target graphic code in the plurality of graphic codes in response to the first input comprises:
responding to the first input, determining a target area by taking a central point of the first area as a circle center, wherein the radius of the target area is gradually increased;
under the condition that the target area completely covers one of the plurality of graphic codes for the first time, determining the completely covered graphic code as the first target graphic code;
and displaying the identification content corresponding to the first target graphic code.
5. The graphic code recognition method according to claim 4, wherein the determining the target area with the center point of the first area as a center of a circle comprises:
and determining the target area by taking the central point of the first area as a circle center and a target length as a radius, wherein the target length is increased based on the unit increase length.
6. The graphic code recognition method according to claim 5, wherein the determining the target area with the center point of the first area as a center and the target length as a radius comprises:
determining boundary coordinates of the target area based on the coordinates of the circle center and the target length;
and when the boundary coordinate of the target area exceeds the boundary coordinate of the screen, continuously increasing the target length, and determining the boundary coordinate of the target area as the boundary coordinate of the screen.
7. The method for recognizing the graphic code according to any one of claims 1 to 3, wherein the displaying the recognition content corresponding to the first target graphic code in the plurality of graphic codes in response to the first input comprises:
responding to the first input, and acquiring the central coordinates of each graphic code in the plurality of graphic codes;
respectively determining the distance between the center coordinate of each graphic code and the center point of the first area;
determining the graphic code corresponding to the shortest distance as the first target graphic code;
and displaying the identification content corresponding to the first target graphic code.
8. A graphic code recognition device, comprising:
the device comprises a first receiving module, a second receiving module and a processing module, wherein the first receiving module is used for receiving first input of a first area on an image to be recognized, and the image to be recognized comprises a plurality of graphic codes;
the first processing module is used for responding to the first input and displaying the identification content corresponding to a first target graphic code in the plurality of graphic codes;
the first target graphic code is the graphic code which is closest to the first area in the plurality of graphic codes.
9. An electronic device comprising a processor and a memory, the memory storing a program or instructions executable on the processor, the program or instructions when executed by the processor implementing the graphical code recognition method of any one of claims 1 to 7.
10. A readable storage medium, on which a program or instructions are stored, which when executed by a processor, implement the graphic code recognition method according to any one of claims 1 to 7.
CN202211042387.8A 2022-08-29 2022-08-29 Graphic code identification method, graphic code identification device and electronic equipment Pending CN115358251A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211042387.8A CN115358251A (en) 2022-08-29 2022-08-29 Graphic code identification method, graphic code identification device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211042387.8A CN115358251A (en) 2022-08-29 2022-08-29 Graphic code identification method, graphic code identification device and electronic equipment

Publications (1)

Publication Number Publication Date
CN115358251A true CN115358251A (en) 2022-11-18

Family

ID=84005462

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211042387.8A Pending CN115358251A (en) 2022-08-29 2022-08-29 Graphic code identification method, graphic code identification device and electronic equipment

Country Status (1)

Country Link
CN (1) CN115358251A (en)

Similar Documents

Publication Publication Date Title
CN106874817A (en) Two-dimensional code identification method, equipment and mobile terminal
CN112492201B (en) Photographing method and device and electronic equipment
CN112433693B (en) Split screen display method and device and electronic equipment
CN112540740A (en) Split screen display method and device, electronic equipment and readable storage medium
CN113467660A (en) Information sharing method and electronic equipment
CN112783406B (en) Operation execution method and device and electronic equipment
CN112399010B (en) Page display method and device and electronic equipment
CN113407280A (en) Display method and device and electronic equipment
CN113268182A (en) Application icon management method and electronic equipment
CN111597009A (en) Application program display method and device and terminal equipment
CN108021313B (en) Picture browsing method and terminal
CN114327726A (en) Display control method, display control device, electronic equipment and storage medium
CN111796736B (en) Application sharing method and device and electronic equipment
CN111694498B (en) Interface display method and device and electronic equipment
CN115358251A (en) Graphic code identification method, graphic code identification device and electronic equipment
CN112162689B (en) Input method and device and electronic equipment
CN112286430B (en) Image processing method, apparatus, device and medium
CN113485590A (en) Touch operation method and device
CN114115639A (en) Interface control method and device, electronic equipment and storage medium
CN113253884A (en) Touch method, touch device and electronic equipment
CN113885981A (en) Desktop editing method and device and electronic equipment
CN110568989A (en) service processing method, service processing device, terminal and medium
CN117555458A (en) Icon moving method and device, electronic equipment and readable storage medium
CN115617440A (en) Graphic code display method and device and electronic equipment
CN116384423A (en) Two-dimensional code identification method and device

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