Target graphic code identification method and device
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for identifying a target pattern code.
Background
The graphic code is a coding mode (for example, a bar code, a two-dimensional code, etc.) for recording data information by using a specific graphic, and the data information contained in the graphic code can be identified and extracted by a graphic code identification function of the terminal device. The application of the graphic code is very wide, for example, payment, advertisement push, website link, etc. When the terminal device obtains the data information contained in the graphic code through the identification graphic code, the situation that a plurality of graphic codes enter the identification range at the same time is often encountered. At present, for a plurality of graphic codes which appear simultaneously in an identification range, a terminal device generally randomly locks one of the graphic codes for identification and extracts data information contained in the graphic code. However, the graphic code of the terminal device lock recognition may not be in accordance with the target graphic code required by the user.
Disclosure of Invention
The embodiment of the application provides a target graphic code identification method and device, which can effectively improve the identification efficiency of a target graphic code.
The embodiment of the application provides a target graphic code identification method, which comprises the following steps:
determining a graphic code in a target image, wherein the target image is an image in a graphic code identification area;
if the target image comprises at least two graphic codes, adding a triggerable control for any one of the at least two graphic codes;
and identifying the target graphic code by responding to the triggering operation of a triggerable control corresponding to the target graphic code in the at least two graphic codes.
The embodiment of the present application further provides a target pattern code recognition apparatus, including: the device comprises a determining unit, a control adding unit and an identifying unit, wherein:
the determining unit is used for determining the graphic code in a target image, wherein the target image is an image in a graphic code identification area;
the control adding unit is used for adding a triggerable control to any one of at least two graphic codes if the target image comprises the at least two graphic codes;
and the identification unit is used for identifying the target graphic code by responding to the triggering operation of the triggerable control corresponding to the target graphic code in the at least two graphic codes.
The embodiment of the present application further provides a target pattern code recognition apparatus, including: a memory and a processor, wherein:
the memory stores programs;
the processor executes the program stored in the memory, and specifically executes:
determining a graphic code in a target image, wherein the target image is an image in a graphic code identification area;
if the target image comprises at least two graphic codes, adding a triggerable control for any one of the at least two graphic codes;
and identifying the target graphic code by responding to the triggering operation of a triggerable control corresponding to the target graphic code in the at least two graphic codes.
Embodiments of the present application also provide a computer-readable storage medium storing one or more programs that, when executed by an electronic device including a plurality of application programs, cause the electronic device to perform the following method:
determining a graphic code in a target image, wherein the target image is an image in a graphic code identification area;
if the target image comprises at least two graphic codes, adding a triggerable control for any one of the at least two graphic codes;
and identifying the target graphic code by responding to the triggering operation of a triggerable control corresponding to the target graphic code in the at least two graphic codes.
The embodiment of the application provides a target graphic code method, which comprises the following steps:
determining a graphic code in a target image, wherein the target image is an image in a graphic code identification area;
if the target image comprises at least two graphic codes, receiving an identification instruction of the target graphic code in the at least two graphic codes;
and identifying the target graphic code according to the identification instruction.
The embodiment of the present application further provides a target pattern code recognition apparatus, including: a determining unit, a receiving unit and an identifying unit, wherein:
the determining unit is used for determining the graphic code in a target image, wherein the target image is an image in a graphic code identification area;
the receiving unit receives an identification instruction of a target graphic code in at least two graphic codes if the target image comprises the at least two graphic codes;
and the identification unit is used for identifying the target graphic code according to the identification instruction.
The embodiment of the present application further provides a target pattern code recognition apparatus, including: a memory and a processor, wherein:
the memory stores programs;
the processor executes the program stored in the memory, and specifically executes:
determining a graphic code in a target image, wherein the target image is an image in a graphic code identification area;
if the target image comprises at least two graphic codes, receiving an identification instruction of the target graphic code in the at least two graphic codes;
and identifying the target graphic code according to the identification instruction.
Embodiments of the present application also provide a computer-readable storage medium storing one or more programs that, when executed by an electronic device including a plurality of application programs, cause the electronic device to perform the following method:
determining a graphic code in a target image, wherein the target image is an image in a graphic code identification area;
if the target image comprises at least two graphic codes, receiving an identification instruction of the target graphic code in the at least two graphic codes;
and identifying the target graphic code according to the identification instruction.
The embodiment of the application adopts at least one technical scheme which can achieve the following beneficial effects:
if the target image in the graphic code identification area comprises at least two graphic codes, a triggerable control is added to any one of the at least two graphic codes, and then the target graphic code is quickly and effectively identified in the at least two graphic codes in the target image by responding to the triggering operation of the triggerable control corresponding to the target graphic code in the at least two graphic codes, so that the identification efficiency of the target graphic code is effectively improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic flowchart of a target pattern code identification method according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of a code-scanning page provided in an embodiment of the present application;
fig. 3 is a schematic diagram of a code scanning page after a triggerable control is added to a graphic code according to an embodiment of the present disclosure;
fig. 4 is a schematic view of a code-scanning page after clicking a target graphic code according to an embodiment of the present application;
fig. 5 is a schematic flowchart of a target pattern code identification method according to an embodiment of the present application;
fig. 6 is a schematic flow chart of a target pattern code identification method according to an embodiment of the present application
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a target pattern code recognition apparatus according to an embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a target pattern code identification device according to an embodiment of the present application.
Detailed Description
In order to achieve the purpose of the present application, an embodiment of the present application provides a target pattern code identification method and apparatus, where the method includes: after the target image in the graphic code identification area is determined to comprise at least two graphic codes, a triggerable control is added to any one of the at least two graphic codes, and then the target graphic code is quickly and effectively identified in the at least two graphic codes in the target image by responding to the triggering operation of the triggerable control corresponding to the target graphic code in the at least two graphic codes, so that the identification efficiency of the target graphic code is effectively improved.
The technical solutions of the present application will be described clearly and completely below with reference to the specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. 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 technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
Example 1
Fig. 1 is a schematic flowchart of a target pattern code identification method according to an embodiment of the present application. The method may be as follows.
Step 102: and determining the graphic code in the target image.
And the target image is an image in the graphic code identification area.
In the embodiment of the present application, determining a graphic code in a target image includes:
and determining the graphic code in the target image through graphic code scanning or AR scanning.
In the embodiment of the present application, the graphic code includes at least one of the following: bar code, two-dimensional code, AR identification code.
When a user needs to recognize the graphic code to acquire data information contained in the graphic code, the user can open a corresponding code scanning page by triggering a code scanning function in the terminal device, for example, clicking a scanning function control in the terminal device.
Fig. 2 is a schematic diagram of a code-scanning page provided in the embodiment of the present application.
As shown in fig. 2, the code scanning page at least includes a code scanning control and an AR control, and a user can switch between scanning the code scanning page corresponding to the graphic code scanning or scanning the code scanning page corresponding to the AR identification code by triggering the code scanning control or the AR control.
For convenience of description, the code scanning page corresponding to the graphic code scanning and the code scanning page corresponding to the AR scanning are referred to as code scanning pages hereinafter.
The code scanning page comprises a graphic code identification area, a user can align the camera with a graphic code by adjusting the position and the focal length of the camera, so that the graphic code is displayed in the graphic code identification area in the code scanning page, and a target image comprising the graphic code is obtained by scanning the camera.
In addition, the user can select a target image comprising a graphic code from a local album of the terminal equipment by clicking an album control in the code scanning page.
And for the target image which is determined by the terminal equipment and comprises the graphic code, determining the graphic code in the target image through a graphic code recognition function, and determining the position and the number of the graphic codes in the target image.
After the terminal device determines the positions and the number of the graphic codes included in the target image, a position identifier may be added to each graphic code according to the position of each graphic code, for example, the position of each graphic code in the target image is located by using an identifier frame, so that a user can clearly and quickly determine the position of each graphic code in the target image according to the position identifier.
It should be noted that, in addition to using the identification frame to locate the position of each graphic code in the target image, the position of each graphic code in the target image may also be located by using a position identification method, which is not specifically limited herein.
Step 104: and if the target image comprises at least two graphic codes, adding a triggerable control for any one of the at least two graphic codes.
After the terminal device determines that the target image includes at least two graphic codes, in order to quickly and accurately identify the target graphic code required by the user from the at least two graphic codes, the at least two graphic codes in the target image need to be correspondingly processed, and a triggerable control is added to each graphic code, so that the user can actively select and trigger the target graphic code required to be identified through triggering operation on the triggerable control.
It should be noted that the triggerable control corresponding to the graphic code may be added to the graphic code, or may be added to a preset position around the graphic code, which is not specifically limited herein.
After the position identification and the triggerable control are added to each graphic code in the target image, the target image is displayed in a code scanning page.
Fig. 3 is a schematic view of a code scanning page after a triggerable control is added to a graphic code according to an embodiment of the present disclosure.
As shown in fig. 3, the graphic code is a two-dimensional code, the target image displayed on the scanned page includes two-dimensional codes, and the positions of the two-dimensional codes in the target image are respectively located by the identification frames, that is, the square frame on the periphery of each two-dimensional code in fig. 3; the triggerable control corresponding to each two-dimensional code is a circular control at the central part of each two-dimensional code shown in fig. 3.
Step 106: and identifying the target graphic code by responding to the trigger operation of the triggerable control corresponding to the target graphic code in the at least two graphic codes.
For a target image displayed in a code scanning page, a user can determine the position of each graphic code included in the target image through a position identifier, and then the user can actively trigger a triggerable control corresponding to the target graphic code which needs to be identified by the user in the target image, so that the terminal equipment identifies the target graphic code by responding to the triggering operation of the triggerable control corresponding to the target graphic code.
It should be noted that the user may determine the target graphic code through a background portion of the target image except for each graphic code, may also determine the target graphic code by querying the graphic code provider under a line, and may also determine the target graphic code through other manners, which is not limited herein.
In an embodiment of the present application, the triggering operation includes one of: single click, double click, slide.
In this embodiment of the present application, when responding to a trigger operation on a triggerable control corresponding to a target graphical code in at least two graphical codes, the method further includes:
and setting the triggerable control corresponding to other graphic codes except the target graphic code into an unavailable state.
Fig. 4 is a schematic diagram of a code-scanning page after clicking a target graphic code according to an embodiment of the present application.
As shown in fig. 4, when the user clicks the triggerable control corresponding to the target graphic code, the terminal device responds to the clicking operation on the target graphic code, and in the process of identifying the target graphic code, the terminal device may set the triggerable controls corresponding to other graphic codes in the target image except the target graphic code to be in an unavailable state, so that in the process of identifying the target graphic code, the identification error caused by the user mistakenly triggering the triggerable controls corresponding to other graphic codes is avoided.
In this embodiment of the application, in scanning a code page, may further include: and scanning the code control again.
When at least two graphic codes included in the target image displayed in the code scanning page do not have the target graphic code which needs to be identified by the user, the user can trigger the code scanning re-control in the code scanning page to re-execute the code scanning operation.
In the embodiment of the present application, identifying a target graphic code includes:
acquiring an identification result page corresponding to the target graphic code;
and displaying the identification result page corresponding to the target graphic code to the user.
And responding to the triggering operation of the triggerable control corresponding to the target graphic code at the terminal equipment, identifying the data information contained in the target graphic code, namely acquiring an identification result page corresponding to the target graphic code, and pushing and displaying the identification result page corresponding to the target graphic code to the user.
In the embodiment of the application, the recognition result page includes one of the following: payment page, advertisement push page, website link page.
According to the technical scheme, after the target image in the graphic code identification area comprises at least two graphic codes, the triggerable control is added to any one of the at least two graphic codes, and the target graphic code is quickly and effectively identified in the at least two graphic codes in the target image by responding to the triggering operation of the triggerable control corresponding to the target graphic code in the at least two graphic codes, so that the identification efficiency of the target graphic code is effectively improved.
Example 2
Based on the same inventive concept, fig. 5 is a schematic flow chart of a target pattern code identification method provided in the embodiment of the present application. The method may be as follows.
Step 502: and determining the graphic code in the target image.
And the target image is an image in the graphic code identification area.
In the embodiment of the present application, determining a graphic code in a target image includes:
and determining the graphic code in the target image through graphic code scanning or AR scanning.
In the embodiment of the present application, the graphic code includes at least one of the following: bar code, two-dimensional code, AR identification code.
When a user needs to recognize the graphic code to acquire data information contained in the graphic code, the user can open a corresponding code scanning page by triggering a code scanning function in the terminal device, for example, clicking a scanning function control in the terminal device.
The code scanning page provided by the embodiment of the application is the same as the code scanning page shown in fig. 2 in the embodiment 1.
As shown in fig. 2, the code scanning page at least includes a code scanning control and an AR control, and a user can switch between scanning the code scanning page corresponding to the graphic code scanning or scanning the code scanning page corresponding to the AR identification code by triggering the code scanning control or the AR control.
For convenience of description, the code scanning page corresponding to the graphic code scanning and the code scanning page corresponding to the AR scanning are referred to as code scanning pages hereinafter.
The code scanning page comprises a graphic code identification area, a user can align the camera with a graphic code by adjusting the position and the focal length of the camera, so that the graphic code is displayed in the graphic code identification area in the code scanning page, and a target image comprising the graphic code is obtained by scanning the camera.
In addition, the user can select a target image comprising a graphic code from a local album of the terminal equipment by clicking an album control in the code scanning page.
Step 504: and if the target image comprises at least two graphic codes, receiving an identification instruction of the target graphic code in the at least two graphic codes.
After the terminal device determines that the target image includes at least two graphic codes, in order to quickly and accurately identify the target graphic code required by the user from the at least two graphic codes, the at least two graphic codes in the target image need to be correspondingly processed, so that the user can actively select the target graphic code required to be identified.
In the embodiment of the present application, the method further includes: and adding a triggerable control for any one of the at least two graphic codes.
After the terminal device determines the positions and the number of the graphic codes included in the target image, a position identifier may be added to each graphic code according to the position of each graphic code, for example, the position of each graphic code in the target image is located by using an identifier frame, so that a user can clearly and quickly determine the position of each graphic code in the target image according to the position identifier.
It should be noted that, in addition to using the identification frame to locate the position of each graphic code in the target image, the position of each graphic code in the target image may also be located by using a position identification method, which is not specifically limited herein.
After the position of each graphic code in the target image is determined, the terminal device can further add a triggerable control for each graphic code, and a user can recognize the graphic code by triggering the triggerable control corresponding to one graphic code.
It should be noted that the triggerable control corresponding to the graphic code may be added to the graphic code, or may be added to a preset position around the graphic code, which is not specifically limited herein.
After the position identification and the triggerable control are added to each graphic code in the target image, the target image is displayed in a code scanning page.
The code scanning page after the triggerable control is added to the graphic code provided by the embodiment of the application is the same as the code scanning page after the triggerable control is added to the graphic code shown in fig. 3 in the embodiment 1.
As shown in fig. 3, the graphic code is a two-dimensional code, the target image displayed on the scanned page includes two-dimensional codes, and the positions of the two-dimensional codes in the target image are respectively located by the identification frames, that is, the square frame on the periphery of each two-dimensional code in fig. 3; the triggerable control corresponding to each two-dimensional code is a circular control at the central part of each two-dimensional code shown in fig. 3.
In the embodiment of the present application, receiving an identification instruction for a target graphic code in at least two graphic codes includes:
and receiving an identification instruction for triggering operation triggering of a triggerable control corresponding to a target graphic code in at least two graphic codes.
In an embodiment of the present application, the triggering operation includes one of: single click, double click, slide.
For a target image displayed in a code scanning page, a user can determine the position of each graphic code included in the target image through a position identifier, and then the user can actively trigger a triggerable control corresponding to the target graphic code which needs to be identified by the user in the target image, so that the terminal device receives an identification instruction triggered by the trigger operation.
It should be noted that the user may determine the target graphic code through a background portion of the target image except for each graphic code, may also determine the target graphic code by querying the graphic code provider under a line, and may also determine the target graphic code through other manners, which is not limited herein.
In this embodiment of the application, after receiving an identification instruction triggered by a trigger operation of a triggerable control corresponding to a target graphical code in the at least two graphical codes, the method further includes:
and setting the triggerable control corresponding to other graphic codes except the target graphic code into an unavailable state.
The code scanning page provided in the embodiment of the present application after receiving the identification instruction is the same as the code scanning page after clicking the target graphic code shown in fig. 4 in embodiment 1.
As shown in fig. 4, after determining that the identification instruction for the target graphic code is received, the terminal device may set the triggerable controls corresponding to other graphic codes in the target image except for the target graphic code to be in an unavailable state, so that in the identification process for the target graphic code, an identification error caused by a user mistakenly triggering the triggerable controls corresponding to other graphic codes is avoided.
In this embodiment of the application, in scanning a code page, may further include: and scanning the code control again.
When at least two graphic codes included in the target image displayed in the code scanning page do not have the target graphic code which needs to be identified by the user, the user can trigger the code scanning re-control in the code scanning page to re-execute the code scanning operation.
Step 506: and identifying the target graphic code according to the identification instruction.
In the embodiment of the application, identifying the target graphic code according to the identification instruction includes:
acquiring an identification result page corresponding to the target graphic code;
and displaying the identification result page corresponding to the target graphic code to the user.
In the embodiment of the application, the recognition result page includes one of the following: payment page, advertisement push page, website link page.
After the terminal equipment determines that the identification instruction of the target graphic code is received, the data information contained in the target graphic code is identified, namely, an identification result page corresponding to the target graphic code is obtained, and then the identification result page corresponding to the target graphic code is pushed and displayed to a user.
According to the technical scheme, if the target image in the graphic code identification area comprises at least two graphic codes, the target graphic code is quickly and effectively identified in the plurality of graphic codes in the target image by receiving the identification instruction of the target graphic code in the at least two graphic codes according to the identification instruction, so that the identification efficiency of the target graphic code is effectively improved.
Example 3
Based on the inventive concept of the present application detailed in the foregoing embodiment 1 and/or embodiment 2, in order to better understand the technical features, means and effects of the present application, the following further description is made on the target pattern code identification method of the present application, thereby forming a further embodiment of the present application.
The target graphic code identification process in embodiment 3 of the present application is similar to the target graphic code identification process in embodiment 1 and/or embodiment 2, and other steps that are not introduced in embodiment 3 may refer to the relevant description in embodiment 1 and/or embodiment 2, and are not described herein again.
Before the implementation of the scheme is described in detail, a simple description is first given to the implementation scenario of the scheme.
The implementation scene is a code scanning payment scene, a user scans through terminal equipment to obtain a target image, and a graphic code included in the target image is a two-dimensional code provided by a merchant offline.
Based on the above scenario, fig. 6 is a schematic flow chart of a target pattern code identification method provided in the embodiment of the present application. The method may be as follows.
Step 601: the user triggers a scanning function control in the terminal equipment, opens a corresponding code scanning page, aligns a camera of the terminal equipment to a place with the two-dimensional code, and adjusts the position and the focal length of the camera, so that the two-dimensional code is displayed in a graphic code identification area in the code scanning page.
Step 602: and acquiring a target image comprising the two-dimensional code through the camera.
Step 603: determining the number of the two-dimensional codes included in the target image, and executing step 604 when the target image is determined to include one two-dimensional code; when it is determined that at least two-dimensional codes are included in the target image, step 605 is performed.
Step 604: and identifying a two-dimensional code included in the target image, acquiring a page corresponding to the two-dimensional code, and displaying the page corresponding to the two-dimensional code to a user.
Step 605: adding a triggerable control for any two-dimensional code of at least two-dimensional codes included in the target image, and displaying the target image added with the triggerable control for any two-dimensional code to a user in a code scanning page.
Step 606: and clicking a triggerable control corresponding to the target two-dimensional code to be identified in at least two-dimensional codes in the target image by the user.
Step 607: and receiving an identification instruction triggered by clicking a triggerable control corresponding to the target graphic code by a user, identifying the target two-dimensional code according to the identification instruction, acquiring an identification result page corresponding to the target two-dimensional code, and pushing and displaying the identification result page corresponding to the target two-dimensional code to the user.
Example 4
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 7, at the hardware level, the electronic device includes a processor, and optionally further includes an internal bus, a network interface, and a memory. The Memory may include a Memory, such as a Random-Access Memory (RAM), and may further include a non-volatile Memory, such as at least 1 disk Memory. Of course, the electronic device may also include hardware required for other services.
The processor, the network interface, and the memory may be connected to each other via an internal bus, which may be an ISA (Industry Standard Architecture) bus, a PCI (peripheral component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 6, but that does not indicate only one bus or one type of bus.
And the memory is used for storing programs. In particular, the program may include program code comprising computer operating instructions. The memory may include both memory and non-volatile storage and provides instructions and data to the processor.
The processor reads the corresponding computer program from the nonvolatile memory into the memory and then runs the computer program to form the target pattern code identification device on the logic level. The processor is used for executing the program stored in the memory and is specifically used for executing the following operations:
determining a graphic code in a target image, wherein the target image is an image in a graphic code identification area;
if the target image comprises at least two graphic codes, adding a triggerable control for any one of the at least two graphic codes;
and identifying the target graphic code by responding to the trigger operation of the triggerable control corresponding to the target graphic code in the at least two graphic codes.
The above-described methods as performed in embodiment 1 and/or embodiment 3 of the present application may be applied to or implemented by a processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
The electronic device may further execute the method executed in fig. 1 and/or fig. 6, and implement the functions of embodiment 1 and/or embodiment 3, which are not described herein again.
An embodiment of the present application further provides a computer-readable storage medium storing one or more programs, where the one or more programs include instructions, which, when executed by an electronic device including multiple application programs, enable the electronic device to perform the object graph code recognition method in the embodiment shown in fig. 1 and/or fig. 5, and are specifically configured to perform:
determining a graphic code in a target image, wherein the target image is an image in a graphic code identification area;
if the target image comprises at least two graphic codes, adding a triggerable control for any one of the at least two graphic codes;
and identifying the target graphic code by responding to the trigger operation of the triggerable control corresponding to the target graphic code in the at least two graphic codes.
Fig. 8 is a schematic structural diagram of a target pattern code identification device according to an embodiment of the present application. The apparatus 800 comprises: a determination unit 801, a control addition unit 802, and a recognition unit 803, wherein:
a determining unit 801, which determines a graphic code in a target image, wherein the target image is an image in a graphic code identification area;
a control adding unit 802, configured to add a triggerable control to any one of the at least two graphic codes if the target image includes the at least two graphic codes;
the identifying unit 803 identifies the target graphic code by responding to a trigger operation of a triggerable control corresponding to the target graphic code in the at least two graphic codes.
Optionally, the determining unit 801 determines a graphic code in the target image, including:
and determining the graphic code in the target image through graphic code scanning or AR scanning.
Optionally, the apparatus 800 further comprises: a processing unit, wherein:
and the processing unit is used for setting the triggerable controls corresponding to other graphic codes except the target graphic code into an unavailable state when responding to the triggering operation of the triggerable control corresponding to the target graphic code in the at least two graphic codes.
Optionally, the identifying unit 803 identifies the target graphic code, including:
acquiring an identification result page corresponding to the target graphic code;
and displaying the identification result page corresponding to the target graphic code to the user.
Optionally, the recognition result page includes one of: payment page, advertisement push page, website link page.
Optionally, the triggering operation comprises at least one of: single click, double click, slide.
Optionally, the graphic code comprises at least one of: bar code, two-dimensional code, AR identification code.
According to the target graphic code recognition device, the determining unit determines a graphic code in a target image, wherein the target image is an image in a graphic code recognition area; if the target image comprises at least two graphic codes, the adding unit adds a triggerable control for any one of the at least two graphic codes; the identification unit identifies the target graphic code by responding to the trigger operation of the triggerable control corresponding to the target graphic code in the at least two graphic codes, so that the target graphic code can be quickly and effectively identified in the at least two graphic codes in the target image, and the identification efficiency of the target graphic code is effectively improved.
Example 5
Fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 9, at the hardware level, the electronic device includes a processor, and optionally further includes an internal bus, a network interface, and a memory. The Memory may include a Memory, such as a Random-Access Memory (RAM), and may further include a non-volatile Memory, such as at least 1 disk Memory. Of course, the electronic device may also include hardware required for other services.
The processor, the network interface, and the memory may be connected to each other via an internal bus, which may be an ISA (Industry Standard Architecture) bus, a PCI (peripheral component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 6, but that does not indicate only one bus or one type of bus.
And the memory is used for storing programs. In particular, the program may include program code comprising computer operating instructions. The memory may include both memory and non-volatile storage and provides instructions and data to the processor.
The processor reads the corresponding computer program from the nonvolatile memory into the memory and then runs the computer program to form the target pattern code identification device on the logic level. The processor is used for executing the program stored in the memory and is specifically used for executing the following operations:
determining a graphic code in a target image, wherein the target image is an image in a graphic code identification area;
if the target image comprises at least two graphic codes, receiving an identification instruction of the target graphic code in the at least two graphic codes;
and identifying the target graphic code according to the identification instruction.
The above-described methods as performed in embodiment 2 and/or embodiment 3 of the present application may be applied to or implemented by a processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
The electronic device may further execute the method executed in fig. 5 and/or fig. 6, and implement the functions of embodiment 2 and/or embodiment 3, which are not described herein again.
An embodiment of the present application further provides a computer-readable storage medium storing one or more programs, where the one or more programs include instructions, which, when executed by an electronic device including multiple application programs, enable the electronic device to perform the object graph code recognition method in the embodiment shown in fig. 1 and/or fig. 5, and are specifically configured to perform:
determining a graphic code in a target image, wherein the target image is an image in a graphic code identification area;
if the target image comprises at least two graphic codes, receiving an identification instruction of the target graphic code in the at least two graphic codes;
and identifying the target graphic code according to the identification instruction.
Fig. 10 is a schematic structural diagram of a target pattern code identification device according to an embodiment of the present application. The apparatus 1000 comprises: a determining unit 1001, a receiving unit 1002, and an identifying unit 1002, wherein:
a determining unit 1001 that determines a graphic code in a target image, wherein the target image is an image in a graphic code recognition area;
a receiving unit 1002, configured to receive an identification instruction for a target graphics code of at least two graphics codes if the target image includes the at least two graphics codes;
the identifying unit 1003 identifies the target graphic code according to the identification instruction.
Alternatively, the determining unit 1001 determines a graphic code in the target image, including:
and determining the graphic code in the target image through graphic code scanning or AR scanning.
Optionally, the apparatus 1000 further comprises: a control adding unit, wherein:
and the control adding unit is used for adding a triggerable control to any one of the at least two graphic codes before receiving the identification instruction of the target graphic code in the at least two graphic codes.
Optionally, the receiving unit 1002 receives an identification instruction of a target graphics code of at least two graphics codes, including:
and receiving an identification instruction for triggering operation triggering of a triggerable control corresponding to a target graphic code in at least two graphic codes.
Optionally, the triggering operation comprises one of: single click, double click, slide.
Optionally, the apparatus 1000 further comprises: a processing unit, wherein:
and the processing unit is used for setting the triggerable controls corresponding to other graphic codes except the target graphic code into an unavailable state after receiving the identification instruction of the triggering operation trigger of the triggerable control corresponding to the target graphic code in the at least two graphic codes.
Optionally, the identifying unit 1003 identifies the target graphics code, including:
acquiring an identification result page corresponding to the target graphic code;
and displaying the identification result page corresponding to the target graphic code to the user.
Optionally, the recognition result page includes one of: payment page, advertisement push page, website link page.
Optionally, the graphic code comprises at least one of: bar code, two-dimensional code, AR identification code.
According to the target graphic code identification device, a determining unit determines a graphic code in a target image, wherein the target image is an image in a graphic code identification area; if the target image comprises at least two graphic codes, the receiving unit receives an identification instruction of the target graphic code in the at least two graphic codes; and the identification unit is used for identifying the target graphic code according to the identification instruction, so that the target graphic code can be quickly and effectively identified in a plurality of graphic codes in the target image, and the identification efficiency of the target graphic code is effectively improved.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually making an integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), ahdl (alternate Language Description Language), traffic, pl (core unified Programming Language), HDCal, JHDL (Java Hardware Description Language), langue, Lola, HDL, laspam, hardsradware (Hardware Description Language), vhjhd (Hardware Description Language), and vhigh-Language, which are currently used in most common. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that 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 an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.