CN109840444B - Code scanning identification method, equipment and computer readable storage medium - Google Patents

Code scanning identification method, equipment and computer readable storage medium Download PDF

Info

Publication number
CN109840444B
CN109840444B CN201910071188.1A CN201910071188A CN109840444B CN 109840444 B CN109840444 B CN 109840444B CN 201910071188 A CN201910071188 A CN 201910071188A CN 109840444 B CN109840444 B CN 109840444B
Authority
CN
China
Prior art keywords
image
dimensional code
area
background
features
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910071188.1A
Other languages
Chinese (zh)
Other versions
CN109840444A (en
Inventor
邓博
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201910071188.1A priority Critical patent/CN109840444B/en
Publication of CN109840444A publication Critical patent/CN109840444A/en
Application granted granted Critical
Publication of CN109840444B publication Critical patent/CN109840444B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Image Analysis (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a code scanning identification method, equipment and a computer readable storage medium, wherein the method comprises the following steps: acquiring and analyzing an image containing a two-dimensional code, and determining a two-dimensional code area, a characteristic area and a background area in the image; then analyzing the characteristic region, identifying image characteristics and character characteristics in the characteristic region, and simultaneously analyzing the background region and identifying the background characteristics of the background region; then, determining a target program of the two-dimensional code by combining the image features, the text features and the background features; and finally, calling the target program, and identifying the two-dimensional code area through the target program to obtain a code scanning result. The humanized code scanning identification scheme is realized, so that a user can adaptively determine a target application program corresponding to the two-dimensional code according to an image containing the two-dimensional code, the code scanning efficiency of the two-dimensional code is improved, the user operation is simplified, and the user experience is improved.

Description

Code scanning identification method, equipment and computer readable storage medium
Technical Field
The present invention relates to the field of mobile communications, and in particular, to a method and apparatus for identifying a code, and a computer readable storage medium.
Background
In the prior art, along with the rapid development of intelligent terminal equipment, the user performs code scanning operation through the intelligent terminal equipment more and more frequently. However, the two-dimensional code of each two-dimensional code provider can be correctly identified only by scanning the code with the corresponding application program. Therefore, the problem in the prior art is that the two-dimensional codes among different application programs are not universal, for example, when the WeChat application program in the intelligent terminal device receives the two-dimensional code of one payment device application program, only the picture of the two-dimensional code can be stored first and then enters the payment device application program, and the code scanning operation is performed by manually selecting the picture mode which is just stored, so that the code scanning scheme in the prior art is not perfect, the operation is complicated, the practicability is not high, and the user experience is not good.
Disclosure of Invention
In order to solve the technical defects in the prior art, the invention provides a code scanning identification method, which comprises the following steps:
acquiring and analyzing an image containing a two-dimensional code, and determining a two-dimensional code area, a characteristic area and a background area in the image;
Analyzing the characteristic region, identifying image characteristics and text characteristics in the characteristic region, and simultaneously analyzing the background region and identifying background characteristics of the background region;
determining a target program of the two-dimensional code by combining the image features, the text features and the background features;
and calling the target program, and identifying the two-dimensional code area through the target program to obtain a code scanning result.
Optionally, the acquiring and analyzing the image including the two-dimensional code, and determining the two-dimensional code area, the feature area and the background area in the image includes:
shooting the image containing the two-dimensional code through terminal equipment, or calling the image containing the two-dimensional code through the terminal equipment;
and identifying and dividing at least three areas in the image, wherein the at least three areas comprise the two-dimensional code area, the characteristic area and the background area.
Optionally, the analyzing the feature area, identifying the image feature and the text feature in the feature area, and simultaneously analyzing the background area, and identifying the background feature of the background area includes:
analyzing the characteristic region, and identifying image features and character features in the characteristic region, wherein the image features comprise image color features and image shape features, and the character features comprise keywords and character fonts;
Analyzing the background area, and identifying background characteristics of the background area, wherein the background characteristics comprise identification information of the place and commodity information.
Optionally, the determining the target program of the two-dimensional code by combining the image feature, the text feature and the background feature includes:
acquiring one or more of the image features, the text features and the background features corresponding to at least one target program through a network terminal;
determining an identification template of the target program according to the one or more features;
and determining the calling probability of the target program according to the matching degree of the recognition templates.
Optionally, the target program is called, and the two-dimensional code area is identified through the target program, so as to obtain a code scanning result, including:
determining the target program with the highest probability according to the calling probability of the target program;
invoking the target program and transmitting the image of the two-dimensional code area to the target program;
and identifying the two-dimensional code area through the target program to obtain the code scanning result.
The invention also provides a code scanning identification device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the computer program is realized when being executed by the processor:
Acquiring and analyzing an image containing a two-dimensional code, and determining a two-dimensional code area, a characteristic area and a background area in the image;
analyzing the characteristic region, identifying image characteristics and text characteristics in the characteristic region, and simultaneously analyzing the background region and identifying background characteristics of the background region;
determining a target program of the two-dimensional code by combining the image features, the text features and the background features;
and calling the target program, and identifying the two-dimensional code area through the target program to obtain a code scanning result.
Optionally, the computer program is implemented when executed by the processor:
shooting the image containing the two-dimensional code through terminal equipment, or calling the image containing the two-dimensional code through the terminal equipment;
and identifying and dividing at least three areas in the image, wherein the at least three areas comprise the two-dimensional code area, the characteristic area and the background area.
Optionally, the computer program is implemented when executed by the processor:
analyzing the characteristic region, and identifying image features and character features in the characteristic region, wherein the image features comprise image color features and image shape features, and the character features comprise keywords and character fonts;
Analyzing the background area, and identifying background characteristics of the background area, wherein the background characteristics comprise identification information of the place and commodity information.
Optionally, the computer program is implemented when executed by the processor:
acquiring one or more of the image features, the text features and the background features corresponding to at least one target program through a network terminal;
determining an identification template of the target program according to the one or more features;
determining the calling probability of the target program according to the matching degree of the recognition template;
determining the target program with the highest probability according to the calling probability of the target program;
invoking the target program and transmitting the image of the two-dimensional code area to the target program;
and identifying the two-dimensional code area through the target program to obtain the code scanning result.
The invention also provides a computer readable storage medium, wherein the computer readable storage medium stores a code scanning identification program, and the code scanning identification program realizes the steps of the code scanning identification method when being executed by a processor.
By implementing the code scanning identification method, the code scanning identification equipment and the computer readable storage medium, the two-dimensional code area, the characteristic area and the background area in the image are determined by acquiring and analyzing the image containing the two-dimensional code; then analyzing the characteristic region, identifying image characteristics and character characteristics in the characteristic region, and simultaneously analyzing the background region and identifying the background characteristics of the background region; then, determining a target program of the two-dimensional code by combining the image features, the text features and the background features; and finally, calling the target program, and identifying the two-dimensional code area through the target program to obtain a code scanning result. The humanized code scanning identification scheme is realized, so that a user can adaptively determine a target application program corresponding to the two-dimensional code according to an image containing the two-dimensional code, the code scanning efficiency of the two-dimensional code is improved, the user operation is simplified, and the user experience is improved.
Drawings
The invention will be further described with reference to the accompanying drawings and examples, in which:
fig. 1 is a schematic diagram of a hardware structure of a mobile terminal according to the present invention;
fig. 2 is a schematic diagram of a communication network system according to an embodiment of the present invention;
FIG. 3 is a flowchart of a first embodiment of a code scanning identification method according to the present invention;
FIG. 4 is a flowchart of a second embodiment of the code scanning identification method of the present invention;
FIG. 5 is a flowchart of a third embodiment of a code scanning identification method according to the present invention;
FIG. 6 is a flowchart of a fourth embodiment of the code scanning recognition method of the present invention;
fig. 7 is a flowchart of a fifth embodiment of the code scanning recognition method of the present invention.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
In the following description, suffixes such as "module", "component", or "unit" for representing elements are used only for facilitating the description of the present invention, and have no specific meaning per se. Thus, "module," "component," or "unit" may be used in combination.
The terminal may be implemented in various forms. For example, the terminals described in the present invention may include mobile terminals such as cell phones, tablet computers, notebook computers, palm computers, personal digital assistants (Personal Digital Assistant, PDA), portable media players (Portable Media Player, PMP), navigation devices, wearable devices, smart bracelets, pedometers, and fixed terminals such as digital TVs, desktop computers, and the like.
The following description will be given taking a mobile terminal as an example, and those skilled in the art will understand that the configuration according to the embodiment of the present invention can be applied to a fixed type terminal in addition to elements particularly used for a moving purpose.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention, the mobile terminal 100 may include: an RF (Radio Frequency) unit 101, a WiFi module 102, an audio output unit 103, an a/V (audio/video) input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110, and a power supply 111. Those skilled in the art will appreciate that the mobile terminal structure shown in fig. 1 is not limiting of the mobile terminal and that the mobile terminal may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
The following describes the components of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be used for receiving and transmitting signals during the information receiving or communication process, specifically, after receiving downlink information of the base station, processing the downlink information by the processor 110; and, the uplink data is transmitted to the base station. Typically, the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication, global System for Mobile communications), GPRS (General Packet Radio Service ), CDMA2000 (Code Division Multiple Access, CDMA 2000), WCDMA (Wideband Code Division Multiple Access ), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, time Division synchronous code Division multiple Access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency Division Duplex Long term evolution), and TDD-LTE (Time Division Duplexing-Long Term Evolution, time Division Duplex Long term evolution), etc.
WiFi belongs to a short-distance wireless transmission technology, and a mobile terminal can help a user to send and receive e-mails, browse web pages, access streaming media and the like through the WiFi module 102, so that wireless broadband Internet access is provided for the user. Although fig. 1 shows a WiFi module 102, it is understood that it does not belong to the necessary constitution of a mobile terminal, and can be omitted entirely as required within a range that does not change the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a talk mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output (e.g., a call signal reception sound, a message reception sound, etc.) related to a specific function performed by the mobile terminal 100. The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive an audio or video signal. The a/V input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, the graphics processor 1041 processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 can receive sound (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, and the like, and can process such sound into audio data. The processed audio (voice) data may be converted into a format output that can be transmitted to the mobile communication base station via the radio frequency unit 101 in the case of a telephone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting the audio signal.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and the proximity sensor can turn off the display panel 1061 and/or the backlight when the mobile terminal 100 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and direction when stationary, and can be used for applications of recognizing the gesture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; as for other sensors such as fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured in the mobile phone, the detailed description thereof will be omitted.
The display unit 106 is used to display information input by a user or information provided to the user. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the mobile terminal. In particular, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch panel 1071 or thereabout by using any suitable object or accessory such as a finger, a stylus, etc.) and drive the corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends the touch point coordinates to the processor 110, and can receive and execute commands sent from the processor 110. Further, the touch panel 1071 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 107 may include other input devices 1072 in addition to the touch panel 1071. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc., as specifically not limited herein.
Further, the touch panel 1071 may overlay the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or thereabout, the touch panel 1071 is transferred to the processor 110 to determine the type of touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of touch event. Although in fig. 1, the touch panel 1071 and the display panel 1061 are two independent components for implementing the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 may be integrated with the display panel 1061 to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 108 serves as an interface through which at least one external device can be connected with the mobile terminal 100. For example, the external devices may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and an external device.
Memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area that may store an operating system, application programs required for at least one function (such as a sound playing function, an image playing function, etc.), and a storage data area; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. In addition, memory 109 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by running or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power source 111 (e.g., a battery) for supplying power to the respective components, and preferably, the power source 111 may be logically connected to the processor 110 through a power management system, so as to perform functions of managing charging, discharging, and power consumption management through the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described herein.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the mobile terminal of the present invention is based will be described below.
Referring to fig. 2, fig. 2 is a schematic diagram of a communication network system according to an embodiment of the present invention, where the communication network system is an LTE system of a general mobile communication technology, and the LTE system includes a UE (User Equipment) 201, an e-UTRAN (Evolved UMTS Terrestrial Radio Access Network ) 202, an epc (Evolved Packet Core, evolved packet core) 203, and an IP service 204 of an operator that are sequentially connected in communication.
Specifically, the UE201 may be the terminal 100 described above, and will not be described herein.
The E-UTRAN202 includes eNodeB2021 and other eNodeB2022, etc. The eNodeB2021 may be connected with other eNodeB2022 by a backhaul (e.g., an X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide access from the UE201 to the EPC 203.
EPC203 may include MME (Mobility Management Entity ) 2031, hss (Home Subscriber Server, home subscriber server) 2032, other MMEs 2033, SGW (Serving Gate Way) 2034, pgw (PDN Gate Way) 2035 and PCRF (Policy and Charging Rules Function, policy and tariff function entity) 2036, and so on. The MME2031 is a control node that handles signaling between the UE201 and EPC203, providing bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location registers (not shown) and to hold user specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034 and PGW2035 may provide IP address allocation and other functions for UE201, PCRF2036 is a policy and charging control policy decision point for traffic data flows and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem ), or other IP services, etc.
Although the LTE system is described above as an example, it should be understood by those skilled in the art that the present invention is not limited to LTE systems, but may be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the above mobile terminal hardware structure and the communication network system, various embodiments of the method of the present invention are provided.
Example 1
FIG. 3 is a flowchart of a first embodiment of the code scanning identification method of the present invention. A method of identifying a scan code, the method comprising:
s1, acquiring and analyzing an image containing a two-dimensional code, and determining a two-dimensional code area, a characteristic area and a background area in the image;
s2, analyzing the characteristic region, identifying image characteristics and text characteristics in the characteristic region, and simultaneously analyzing the background region and identifying background characteristics of the background region;
s3, determining a target program of the two-dimensional code by combining the image features, the text features and the background features;
s4, calling the target program, and identifying the two-dimensional code area through the target program to obtain a code scanning result.
In this embodiment, firstly, an image including a two-dimensional code is acquired and analyzed, and a two-dimensional code area, a feature area and a background area in the image are determined; then analyzing the characteristic region, identifying image characteristics and character characteristics in the characteristic region, and simultaneously analyzing the background region and identifying the background characteristics of the background region; then, determining a target program of the two-dimensional code by combining the image features, the text features and the background features; and finally, calling the target program, and identifying the two-dimensional code area through the target program to obtain a code scanning result.
Specifically, in this embodiment, first, an image including a two-dimensional code is acquired and analyzed, and a two-dimensional code area, a feature area, and a background area in the image are determined. In this embodiment, the method is suitable for a user to analyze an image including a two-dimensional code by using a camera program of the system, and is also suitable for analyzing an image including a two-dimensional code by using an image browsing program or an image recognition program of the system, and is also suitable for invoking a shooting function by using a third party application program such as a browser, so as to analyze an image including a two-dimensional code, and is also suitable for invoking an image including a two-dimensional code in the system or at a network end by using an image recognition function of the third party application program, so as to analyze the image including a two-dimensional code. In this embodiment, the objective of the analysis is to determine one or more of a two-dimensional code region, a feature region, and a background region within the image.
Specifically, in this embodiment, the feature region is parsed, the image features and the text features in the feature region are identified, and at the same time, the background region is parsed, and the background features of the background region are identified. In this embodiment, an image including a two-dimensional code is analyzed, where the analysis mode is classification analysis performed by a preset rule, and one rule is that firstly, a region of the two-dimensional code is determined, then, other regions except for the region of the two-dimensional code in the image are determined, then, a peripheral region surrounding the region of the two-dimensional code is determined, and finally, other regions except for the peripheral region are determined. It can be understood that, in the existing two-dimensional code image scene, the image containing the two-dimensional code may include the two-dimensional code image itself, and further include information such as a style, a color, a frame type, a background color, a text identifier, a font character identifier, and if the image is shot by the user, surrounding environment, advertisement propaganda content, and the like of the two-dimensional code.
Specifically, in this embodiment, the image feature, the text feature, and the background feature are combined to determine the target program of the two-dimensional code. In this embodiment, the target program corresponding to the two-dimensional code is determined according to one or more of the features, and optionally, if a unique target program cannot be determined according to all the features, probabilities of multiple selectable target programs are determined according to the features, that is, the code scanning probabilities of the multiple selectable target programs are determined according to the matching degree of the features and the target programs.
Specifically, in this embodiment, the target program is called, and the two-dimensional code area is identified by the target program, so as to obtain a code scanning result. In this embodiment, the camera program of the system of the above embodiment, or the image browsing program of the system itself, or the image recognition program, or the third party application program such as the browser, calls the determined target program, and recognizes the two-dimensional code in the image by the target program.
The method has the beneficial effects that the two-dimensional code area, the characteristic area and the background area in the image are determined by acquiring and analyzing the image containing the two-dimensional code; then analyzing the characteristic region, identifying image characteristics and character characteristics in the characteristic region, and simultaneously analyzing the background region and identifying the background characteristics of the background region; then, determining a target program of the two-dimensional code by combining the image features, the text features and the background features; and finally, calling the target program, and identifying the two-dimensional code area through the target program to obtain a code scanning result. The humanized code scanning identification scheme is realized, so that a user can adaptively determine a target application program corresponding to the two-dimensional code according to an image containing the two-dimensional code, the code scanning efficiency of the two-dimensional code is improved, the user operation is simplified, and the user experience is improved.
Example two
Fig. 4 is a flowchart of a second embodiment of the code scanning identification method according to the present invention, based on the above embodiment, the acquiring and analyzing an image including a two-dimensional code, determining a two-dimensional code area, a feature area and a background area in the image includes:
s11, shooting the image containing the two-dimensional code through terminal equipment, or calling the image containing the two-dimensional code through the terminal equipment;
s12, identifying and dividing at least three areas in the image, wherein the at least three areas comprise the two-dimensional code area, the characteristic area and the background area.
In this embodiment, first, the image including the two-dimensional code is photographed by a terminal device, or the image including the two-dimensional code is called by the terminal device; then, at least three regions within the image are identified and partitioned, wherein the at least three regions include the two-dimensional code region, the feature region, and the background region.
Specifically, in this embodiment, first, an image including a two-dimensional code is acquired and analyzed, and a two-dimensional code area, a feature area, and a background area in the image are determined. In this embodiment, the method is suitable for a user to analyze an image including a two-dimensional code by using a camera program of the system, and is also suitable for analyzing an image including a two-dimensional code by using an image browsing program or an image recognition program of the system, and is also suitable for invoking a shooting function by using a third party application program such as a browser, so as to analyze an image including a two-dimensional code, and is also suitable for invoking an image including a two-dimensional code in the system or at a network end by using an image recognition function of the third party application program, so as to analyze the image including a two-dimensional code. In this embodiment, the objective of the analysis is to determine one or more of a two-dimensional code region, a feature region, and a background region within the image.
Optionally, determining one or more of the three areas according to the geographic position including the two-dimensional code image, for example, in an indoor area, preferentially identifying the two-dimensional code area and the characteristic area, and in an outdoor place, preferentially identifying the two-dimensional code area and the background area;
alternatively, the background area includes a marker within the background image, which may be, for example, a shop name, a commodity object, or the like.
The method has the advantages that the two-dimensional code-containing image is shot through the terminal equipment, or the two-dimensional code-containing image is called through the terminal equipment; then, at least three regions within the image are identified and partitioned, wherein the at least three regions include the two-dimensional code region, the feature region, and the background region. The code scanning identification scheme with more humanization is realized, so that a user can adaptively determine a target application program corresponding to the two-dimensional code according to an image containing the two-dimensional code, the code scanning efficiency of the two-dimensional code is improved, the user operation is simplified, and the user experience is improved.
Example III
Fig. 5 is a flowchart of a third embodiment of the code scanning identification method according to the present invention, based on the above embodiment, the analyzing the feature region, identifying image features and text features in the feature region, and simultaneously analyzing the background region, identifying background features of the background region, including:
S21, analyzing the characteristic region, and identifying image features and character features in the characteristic region, wherein the image features comprise image color features and image shape features, and the character features comprise keywords and character fonts;
s22, analyzing the background area, and identifying background characteristics of the background area, wherein the background characteristics comprise identification information of the place and commodity information.
In this embodiment, first, the feature area is parsed, and image features and text features in the feature area are identified, wherein the image features include image color features and image shape features, and the text features include keywords and text fonts; and then analyzing the background area, and identifying background characteristics of the background area, wherein the background characteristics comprise identification information of the place and commodity information.
Specifically, in this embodiment, the feature region is parsed, the image features and the text features in the feature region are identified, and at the same time, the background region is parsed, and the background features of the background region are identified. In this embodiment, an image including a two-dimensional code is analyzed, where the analysis mode is classification analysis performed by a preset rule, and one rule is that firstly, a region of the two-dimensional code is determined, then, other regions except for the region of the two-dimensional code in the image are determined, then, a peripheral region surrounding the region of the two-dimensional code is determined, and finally, other regions except for the peripheral region are determined. It can be understood that, in the existing two-dimensional code image scene, the image containing the two-dimensional code may include the two-dimensional code image itself, and further include information such as a style, a color, a frame type, a background color, a text identifier, a font character identifier, and if the image is shot by the user, surrounding environment, advertisement propaganda content, and the like of the two-dimensional code.
Optionally, analyzing the feature area, and identifying image features and text features in the feature area, wherein the image features comprise image color features and image shape features, and specifically, determining the matching degree of the image color features and the color features of the standard two-dimensional code corresponding to the target program;
optionally, determining the matching degree of the shape features of the image and the shape features of the standard two-dimensional code corresponding to the target program;
optionally, analyzing the background area, and identifying background features of the background area, wherein the background features comprise identification information of the place and commodity information;
optionally, the identification information of the location comprises text identification information and image identification information, wherein the image identification information comprises a trademark identification and a product propaganda identification;
optionally, the commodity information includes a commodity category and a commodity label.
The method has the advantages that the image features and the character features in the feature areas are identified through analyzing the feature areas, wherein the image features comprise image color features and image shape features, and the character features comprise keywords and character fonts; and then analyzing the background area, and identifying background characteristics of the background area, wherein the background characteristics comprise identification information of the place and commodity information. The code scanning identification scheme with more humanization is realized, so that a user can adaptively determine a target application program corresponding to the two-dimensional code according to an image containing the two-dimensional code, the code scanning efficiency of the two-dimensional code is improved, the user operation is simplified, and the user experience is improved.
Example IV
Fig. 6 is a flowchart of a fourth embodiment of the code scanning identification method according to the present invention, based on the above embodiment, optionally, the target program for determining the two-dimensional code by combining the image feature, the text feature, and the background feature includes:
s31, acquiring one or more of the image features, the text features and the background features corresponding to at least one target program through a network terminal;
s32, determining an identification template of the target program according to the one or more characteristics;
s33, determining the calling probability of the target program according to the matching degree of the recognition templates.
In this embodiment, first, one or more of the image feature, the text feature, and the background feature corresponding to at least one target program are acquired through a network side; then, determining an identification template of the target program according to the one or more features; and finally, determining the calling probability of the target program according to the matching degree of the recognition template.
Specifically, in this embodiment, the image feature, the text feature, and the background feature are combined to determine the target program of the two-dimensional code. In this embodiment, the target program corresponding to the two-dimensional code is determined according to one or more of the features, and optionally, if a unique target program cannot be determined according to all the features, probabilities of multiple selectable target programs are determined according to the features, that is, the code scanning probabilities of the multiple selectable target programs are determined according to the matching degree of the features and the target programs.
Optionally, acquiring one or more of the image feature, the text feature and the background feature corresponding to at least one target program through a network side;
optionally, extracting analysis data of the plurality of features through a history code scanning record, and determining an identification template of the target program according to the analysis data;
optionally, through big data learning at the network end, extracting optimal adaptation data to determine analysis data of the plurality of features, and determining an identification template of the target program according to the analysis data;
optionally, determining the respective calling probabilities of the multiple target programs according to the matching degree of the recognition templates, and determining the calling order from high to low according to the calling probabilities.
The method has the advantages that one or more of the image features, the text features and the background features corresponding to at least one target program are acquired through a network side; then, determining an identification template of the target program according to the one or more features; and finally, determining the calling probability of the target program according to the matching degree of the recognition template. The code scanning identification scheme with more humanization is realized, so that a user can adaptively determine a target application program corresponding to the two-dimensional code according to an image containing the two-dimensional code, the code scanning efficiency of the two-dimensional code is improved, the user operation is simplified, and the user experience is improved.
Example five
Fig. 7 is a flowchart of a fifth embodiment of the code scanning identification method according to the present invention, based on the above embodiment, the target program is called, and the two-dimensional code area is identified by the target program, so as to obtain a code scanning result, which includes:
s41, determining a target program with highest probability according to the calling probability of the target program;
s42, calling the target program, and transmitting the image of the two-dimensional code area to the target program;
s43, identifying the two-dimensional code area through the target program to obtain the code scanning result.
In this embodiment, first, determining a target program with a highest probability according to a calling probability of the target program; then, calling the target program, and transmitting the image of the two-dimensional code area to the target program; and finally, identifying the two-dimensional code area through the target program to obtain the code scanning result.
Specifically, in this embodiment, the target program is called, and the two-dimensional code area is identified by the target program, so as to obtain a code scanning result. In this embodiment, the camera program of the system of the above embodiment, or the image browsing program of the system itself, or the image recognition program, or the third party application program such as the browser, calls the determined target program, and recognizes the two-dimensional code in the image by the target program.
Optionally, determining the target program with the highest probability according to the calling probability of the target program;
optionally, in the display area of the image including the two-dimensional code according to this embodiment, the target program with the highest probability is displayed in a display manner with preset transparency;
optionally, in the display area of the image including the two-dimensional code according to this embodiment, the target program with the highest probability displayed above is adjusted before the jump, for example, the target program with the highest probability is switched to the target program with the second highest probability by a sliding operation, so as to implement manual correction of the target program.
The method has the advantages that the target program with the highest probability is determined according to the calling probability of the target program; then, calling the target program, and transmitting the image of the two-dimensional code area to the target program; and finally, identifying the two-dimensional code area through the target program to obtain the code scanning result. The code scanning identification scheme with more humanization is realized, so that a user can adaptively determine a target application program corresponding to the two-dimensional code according to an image containing the two-dimensional code, the code scanning efficiency of the two-dimensional code is improved, the user operation is simplified, and the user experience is improved.
Example six
Based on the above embodiment, the present invention further provides a code scanning identification device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the computer program is implemented when executed by the processor:
acquiring and analyzing an image containing a two-dimensional code, and determining a two-dimensional code area, a characteristic area and a background area in the image;
analyzing the characteristic region, identifying image characteristics and text characteristics in the characteristic region, and simultaneously analyzing the background region and identifying background characteristics of the background region;
determining a target program of the two-dimensional code by combining the image features, the text features and the background features;
and calling the target program, and identifying the two-dimensional code area through the target program to obtain a code scanning result.
In this embodiment, firstly, an image including a two-dimensional code is acquired and analyzed, and a two-dimensional code area, a feature area and a background area in the image are determined; then analyzing the characteristic region, identifying image characteristics and character characteristics in the characteristic region, and simultaneously analyzing the background region and identifying the background characteristics of the background region; then, determining a target program of the two-dimensional code by combining the image features, the text features and the background features; and finally, calling the target program, and identifying the two-dimensional code area through the target program to obtain a code scanning result.
Specifically, in this embodiment, first, an image including a two-dimensional code is acquired and analyzed, and a two-dimensional code area, a feature area, and a background area in the image are determined. In this embodiment, the method is suitable for a user to analyze an image including a two-dimensional code by using a camera program of the system, and is also suitable for analyzing an image including a two-dimensional code by using an image browsing program or an image recognition program of the system, and is also suitable for invoking a shooting function by using a third party application program such as a browser, so as to analyze an image including a two-dimensional code, and is also suitable for invoking an image including a two-dimensional code in the system or at a network end by using an image recognition function of the third party application program, so as to analyze the image including a two-dimensional code. In this embodiment, the objective of the analysis is to determine one or more of a two-dimensional code region, a feature region, and a background region within the image.
Specifically, in this embodiment, the feature region is parsed, the image features and the text features in the feature region are identified, and at the same time, the background region is parsed, and the background features of the background region are identified. In this embodiment, an image including a two-dimensional code is analyzed, where the analysis mode is classification analysis performed by a preset rule, and one rule is that firstly, a region of the two-dimensional code is determined, then, other regions except for the region of the two-dimensional code in the image are determined, then, a peripheral region surrounding the region of the two-dimensional code is determined, and finally, other regions except for the peripheral region are determined. It can be understood that, in the existing two-dimensional code image scene, the image containing the two-dimensional code may include the two-dimensional code image itself, and further include information such as a style, a color, a frame type, a background color, a text identifier, a font character identifier, and if the image is shot by the user, surrounding environment, advertisement propaganda content, and the like of the two-dimensional code.
Specifically, in this embodiment, the image feature, the text feature, and the background feature are combined to determine the target program of the two-dimensional code. In this embodiment, the target program corresponding to the two-dimensional code is determined according to one or more of the features, and optionally, if a unique target program cannot be determined according to all the features, probabilities of multiple selectable target programs are determined according to the features, that is, the code scanning probabilities of the multiple selectable target programs are determined according to the matching degree of the features and the target programs.
Specifically, in this embodiment, the target program is called, and the two-dimensional code area is identified by the target program, so as to obtain a code scanning result. In this embodiment, the camera program of the system of the above embodiment, or the image browsing program of the system itself, or the image recognition program, or the third party application program such as the browser, calls the determined target program, and recognizes the two-dimensional code in the image by the target program.
The method has the beneficial effects that the two-dimensional code area, the characteristic area and the background area in the image are determined by acquiring and analyzing the image containing the two-dimensional code; then analyzing the characteristic region, identifying image characteristics and character characteristics in the characteristic region, and simultaneously analyzing the background region and identifying the background characteristics of the background region; then, determining a target program of the two-dimensional code by combining the image features, the text features and the background features; and finally, calling the target program, and identifying the two-dimensional code area through the target program to obtain a code scanning result. The humanized code scanning identification scheme is realized, so that a user can adaptively determine a target application program corresponding to the two-dimensional code according to an image containing the two-dimensional code, the code scanning efficiency of the two-dimensional code is improved, the user operation is simplified, and the user experience is improved.
Example seven
Based on the above embodiments, the computer program when executed by the processor implements:
shooting the image containing the two-dimensional code through terminal equipment, or calling the image containing the two-dimensional code through the terminal equipment;
and identifying and dividing at least three areas in the image, wherein the at least three areas comprise the two-dimensional code area, the characteristic area and the background area.
In this embodiment, first, the image including the two-dimensional code is photographed by a terminal device, or the image including the two-dimensional code is called by the terminal device; then, at least three regions within the image are identified and partitioned, wherein the at least three regions include the two-dimensional code region, the feature region, and the background region.
Specifically, in this embodiment, first, an image including a two-dimensional code is acquired and analyzed, and a two-dimensional code area, a feature area, and a background area in the image are determined. In this embodiment, the method is suitable for a user to analyze an image including a two-dimensional code by using a camera program of the system, and is also suitable for analyzing an image including a two-dimensional code by using an image browsing program or an image recognition program of the system, and is also suitable for invoking a shooting function by using a third party application program such as a browser, so as to analyze an image including a two-dimensional code, and is also suitable for invoking an image including a two-dimensional code in the system or at a network end by using an image recognition function of the third party application program, so as to analyze the image including a two-dimensional code. In this embodiment, the objective of the analysis is to determine one or more of a two-dimensional code region, a feature region, and a background region within the image.
Optionally, determining one or more of the three areas according to the geographic position including the two-dimensional code image, for example, in an indoor area, preferentially identifying the two-dimensional code area and the characteristic area, and in an outdoor place, preferentially identifying the two-dimensional code area and the background area;
alternatively, the background area includes a marker within the background image, which may be, for example, a shop name, a commodity object, or the like.
The method has the advantages that the two-dimensional code-containing image is shot through the terminal equipment, or the two-dimensional code-containing image is called through the terminal equipment; then, at least three regions within the image are identified and partitioned, wherein the at least three regions include the two-dimensional code region, the feature region, and the background region. The code scanning identification scheme with more humanization is realized, so that a user can adaptively determine a target application program corresponding to the two-dimensional code according to an image containing the two-dimensional code, the code scanning efficiency of the two-dimensional code is improved, the user operation is simplified, and the user experience is improved.
Example eight
Based on the above embodiments, the computer program when executed by the processor implements:
Analyzing the characteristic region, and identifying image features and character features in the characteristic region, wherein the image features comprise image color features and image shape features, and the character features comprise keywords and character fonts;
analyzing the background area, and identifying background characteristics of the background area, wherein the background characteristics comprise identification information of the place and commodity information.
In this embodiment, first, the feature area is parsed, and image features and text features in the feature area are identified, wherein the image features include image color features and image shape features, and the text features include keywords and text fonts; and then analyzing the background area, and identifying background characteristics of the background area, wherein the background characteristics comprise identification information of the place and commodity information.
Specifically, in this embodiment, the feature region is parsed, the image features and the text features in the feature region are identified, and at the same time, the background region is parsed, and the background features of the background region are identified. In this embodiment, an image including a two-dimensional code is analyzed, where the analysis mode is classification analysis performed by a preset rule, and one rule is that firstly, a region of the two-dimensional code is determined, then, other regions except for the region of the two-dimensional code in the image are determined, then, a peripheral region surrounding the region of the two-dimensional code is determined, and finally, other regions except for the peripheral region are determined. It can be understood that, in the existing two-dimensional code image scene, the image containing the two-dimensional code may include the two-dimensional code image itself, and further include information such as a style, a color, a frame type, a background color, a text identifier, a font character identifier, and if the image is shot by the user, surrounding environment, advertisement propaganda content, and the like of the two-dimensional code.
Optionally, analyzing the feature area, and identifying image features and text features in the feature area, wherein the image features comprise image color features and image shape features, and specifically, determining the matching degree of the image color features and the color features of the standard two-dimensional code corresponding to the target program;
optionally, determining the matching degree of the shape features of the image and the shape features of the standard two-dimensional code corresponding to the target program;
optionally, analyzing the background area, and identifying background features of the background area, wherein the background features comprise identification information of the place and commodity information;
optionally, the identification information of the location comprises text identification information and image identification information, wherein the image identification information comprises a trademark identification and a product propaganda identification;
optionally, the commodity information includes a commodity category and a commodity label.
The method has the advantages that the image features and the character features in the feature areas are identified through analyzing the feature areas, wherein the image features comprise image color features and image shape features, and the character features comprise keywords and character fonts; and then analyzing the background area, and identifying background characteristics of the background area, wherein the background characteristics comprise identification information of the place and commodity information. The code scanning identification scheme with more humanization is realized, so that a user can adaptively determine a target application program corresponding to the two-dimensional code according to an image containing the two-dimensional code, the code scanning efficiency of the two-dimensional code is improved, the user operation is simplified, and the user experience is improved.
Example nine
Based on the above embodiments, the computer program when executed by the processor implements:
acquiring one or more of the image features, the text features and the background features corresponding to at least one target program through a network terminal;
determining an identification template of the target program according to the one or more features;
determining the calling probability of the target program according to the matching degree of the recognition template;
determining the target program with the highest probability according to the calling probability of the target program;
invoking the target program and transmitting the image of the two-dimensional code area to the target program;
and identifying the two-dimensional code area through the target program to obtain the code scanning result.
In this embodiment, first, one or more of the image feature, the text feature, and the background feature corresponding to at least one target program are acquired through a network side; then, determining an identification template of the target program according to the one or more features; and finally, determining the calling probability of the target program according to the matching degree of the recognition template.
Specifically, in this embodiment, the image feature, the text feature, and the background feature are combined to determine the target program of the two-dimensional code. In this embodiment, the target program corresponding to the two-dimensional code is determined according to one or more of the features, and optionally, if a unique target program cannot be determined according to all the features, probabilities of multiple selectable target programs are determined according to the features, that is, the code scanning probabilities of the multiple selectable target programs are determined according to the matching degree of the features and the target programs.
Optionally, acquiring one or more of the image feature, the text feature and the background feature corresponding to at least one target program through a network side;
optionally, extracting analysis data of the plurality of features through a history code scanning record, and determining an identification template of the target program according to the analysis data;
optionally, through big data learning at the network end, extracting optimal adaptation data to determine analysis data of the plurality of features, and determining an identification template of the target program according to the analysis data;
optionally, determining the respective calling probabilities of the multiple target programs according to the matching degree of the recognition templates, and determining the calling order from high to low according to the calling probabilities.
Specifically, in this embodiment, the target program is called, and the two-dimensional code area is identified by the target program, so as to obtain a code scanning result. In this embodiment, the camera program of the system of the above embodiment, or the image browsing program of the system itself, or the image recognition program, or the third party application program such as the browser, calls the determined target program, and recognizes the two-dimensional code in the image by the target program.
Optionally, determining the target program with the highest probability according to the calling probability of the target program;
optionally, in the display area of the image including the two-dimensional code according to this embodiment, the target program with the highest probability is displayed in a display manner with preset transparency;
optionally, in the display area of the image including the two-dimensional code according to this embodiment, the target program with the highest probability displayed above is adjusted before the jump, for example, the target program with the highest probability is switched to the target program with the second highest probability by a sliding operation, so as to implement manual correction of the target program.
The method has the advantages that the target program with the highest probability is determined according to the calling probability of the target program; then, calling the target program, and transmitting the image of the two-dimensional code area to the target program; and finally, identifying the two-dimensional code area through the target program to obtain the code scanning result. The code scanning identification scheme with more humanization is realized, so that a user can adaptively determine a target application program corresponding to the two-dimensional code according to an image containing the two-dimensional code, the code scanning efficiency of the two-dimensional code is improved, the user operation is simplified, and the user experience is improved.
Examples ten
Based on the above embodiment, the present invention further proposes a computer readable storage medium having stored thereon a code scanning identification program, which when executed by a processor, implements the steps of the code scanning identification method as described in any one of the above.
By implementing the code scanning identification method, the code scanning identification equipment and the computer readable storage medium, the two-dimensional code area, the characteristic area and the background area in the image are determined by acquiring and analyzing the image containing the two-dimensional code; then analyzing the characteristic region, identifying image characteristics and character characteristics in the characteristic region, and simultaneously analyzing the background region and identifying the background characteristics of the background region; then, determining a target program of the two-dimensional code by combining the image features, the text features and the background features; and finally, calling the target program, and identifying the two-dimensional code area through the target program to obtain a code scanning result. The humanized code scanning identification scheme is realized, so that a user can adaptively determine a target application program corresponding to the two-dimensional code according to an image containing the two-dimensional code, the code scanning efficiency of the two-dimensional code is improved, the user operation is simplified, and the user experience is improved.
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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The embodiments of the present invention have been described above with reference to the accompanying drawings, but the present invention is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present invention and the scope of the claims, which are to be protected by the present invention.

Claims (6)

1. A method for identifying a scan code, the method comprising:
acquiring and analyzing an image containing a two-dimensional code, and determining a two-dimensional code area, a characteristic area and a background area in the image;
analyzing the characteristic region, identifying image characteristics and text characteristics in the characteristic region, and simultaneously analyzing the background region and identifying background characteristics of the background region;
determining a target program of the two-dimensional code by combining the image features, the text features and the background features;
invoking the target program, and identifying the two-dimensional code area through the target program to obtain a code scanning result;
the acquiring and analyzing the image containing the two-dimensional code, determining the two-dimensional code area, the characteristic area and the background area in the image comprises the following steps:
Shooting the image containing the two-dimensional code through terminal equipment, or calling the image containing the two-dimensional code through the terminal equipment;
identifying and dividing at least three areas in the image, wherein the at least three areas comprise the two-dimensional code area, the characteristic area and the background area;
the analyzing the characteristic region, identifying the image characteristic and the text characteristic in the characteristic region, and simultaneously analyzing the background region, identifying the background characteristic of the background region, comprising:
analyzing the characteristic region, and identifying image features and character features in the characteristic region, wherein the image features comprise image color features and image shape features, and the character features comprise keywords and character fonts;
analyzing the background area, and identifying background characteristics of the background area, wherein the background characteristics comprise identification information of a place and commodity information;
wherein,,
in the indoor area, the two-dimensional code area and the characteristic area are preferentially identified, and in the outdoor place, the two-dimensional code area and the background area are preferentially identified;
the background area comprises a marker in the background image, wherein the marker comprises a shop name and a commodity object;
Determining the matching degree of the color features of the image and the color features of the standard two-dimensional code corresponding to the target program;
determining the matching degree of the shape features of the image and the shape features of the standard two-dimensional code corresponding to the target program;
the identification information of the place comprises character identification information and image identification information;
the image identification information comprises a trademark identification and a product propaganda identification;
the commodity information includes a commodity category and a commodity label.
2. The method for identifying a scan code according to claim 1, wherein the determining the target program of the two-dimensional code by combining the image feature, the text feature and the background feature comprises:
acquiring one or more of the image features, the text features and the background features corresponding to at least one target program through a network terminal;
determining an identification template of the target program according to the one or more features;
and determining the calling probability of the target program according to the matching degree of the recognition templates.
3. The scan code identification method according to claim 2, wherein calling the target program and identifying the two-dimensional code region by the target program to obtain a scan code result comprises:
Determining the target program with the highest probability according to the calling probability of the target program;
invoking the target program and transmitting the image of the two-dimensional code area to the target program;
and identifying the two-dimensional code area through the target program to obtain the code scanning result.
4. A code scanning identification device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the computer program being implemented when executed by the processor:
acquiring and analyzing an image containing a two-dimensional code, and determining a two-dimensional code area, a characteristic area and a background area in the image;
analyzing the characteristic region, identifying image characteristics and text characteristics in the characteristic region, and simultaneously analyzing the background region and identifying background characteristics of the background region;
determining a target program of the two-dimensional code by combining the image features, the text features and the background features;
invoking the target program, and identifying the two-dimensional code area through the target program to obtain a code scanning result;
the acquiring and analyzing the image containing the two-dimensional code, determining the two-dimensional code area, the characteristic area and the background area in the image comprises the following steps:
Shooting the image containing the two-dimensional code through terminal equipment, or calling the image containing the two-dimensional code through the terminal equipment;
identifying and dividing at least three areas in the image, wherein the at least three areas comprise the two-dimensional code area, the characteristic area and the background area;
the analyzing the characteristic region, identifying the image characteristic and the text characteristic in the characteristic region, and simultaneously analyzing the background region, identifying the background characteristic of the background region, comprising:
analyzing the characteristic region, and identifying image features and character features in the characteristic region, wherein the image features comprise image color features and image shape features, and the character features comprise keywords and character fonts;
analyzing the background area, and identifying background characteristics of the background area, wherein the background characteristics comprise identification information of a place and commodity information;
wherein,,
in the indoor area, the two-dimensional code area and the characteristic area are preferentially identified, and in the outdoor place, the two-dimensional code area and the background area are preferentially identified;
the background area comprises a marker in the background image, wherein the marker comprises a shop name and a commodity object;
Determining the matching degree of the color features of the image and the color features of the standard two-dimensional code corresponding to the target program;
determining the matching degree of the shape features of the image and the shape features of the standard two-dimensional code corresponding to the target program;
the identification information of the place comprises character identification information and image identification information;
the image identification information comprises a trademark identification and a product propaganda identification;
the commodity information includes a commodity category and a commodity label.
5. The code scanning identification device of claim 4, wherein the computer program, when executed by the processor, implements:
acquiring one or more of the image features, the text features and the background features corresponding to at least one target program through a network terminal;
determining an identification template of the target program according to the one or more features;
determining the calling probability of the target program according to the matching degree of the recognition template;
determining the target program with the highest probability according to the calling probability of the target program;
invoking the target program and transmitting the image of the two-dimensional code area to the target program;
and identifying the two-dimensional code area through the target program to obtain the code scanning result.
6. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a code scanning identification program, which when executed by a processor, implements the steps of the code scanning identification method according to any one of claims 1 to 3.
CN201910071188.1A 2019-01-25 2019-01-25 Code scanning identification method, equipment and computer readable storage medium Active CN109840444B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910071188.1A CN109840444B (en) 2019-01-25 2019-01-25 Code scanning identification method, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910071188.1A CN109840444B (en) 2019-01-25 2019-01-25 Code scanning identification method, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109840444A CN109840444A (en) 2019-06-04
CN109840444B true CN109840444B (en) 2023-07-21

Family

ID=66884193

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910071188.1A Active CN109840444B (en) 2019-01-25 2019-01-25 Code scanning identification method, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109840444B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112492200B (en) * 2020-11-24 2022-10-04 维沃移动通信有限公司 Photographing method and device, electronic equipment and storage medium
CN112800788A (en) * 2020-12-31 2021-05-14 同智伟业软件股份有限公司 Method for confirming and processing code values of multiple two-dimensional code reading devices
CN113486996A (en) * 2021-06-25 2021-10-08 青岛海尔科技有限公司 Two-dimensional code image processing method and device, storage medium and electronic device
CN117077703A (en) * 2023-09-14 2023-11-17 荣耀终端有限公司 Image processing method and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105260693A (en) * 2015-12-01 2016-01-20 浙江工业大学 Laser two-dimensional code positioning method
CN107273777A (en) * 2017-04-26 2017-10-20 广东顺德中山大学卡内基梅隆大学国际联合研究院 A kind of Quick Response Code identification of code type method matched based on slide unit
CN107748856A (en) * 2017-10-27 2018-03-02 努比亚技术有限公司 Two-dimensional code identification method, terminal and computer-readable recording medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
SE523700C2 (en) * 2001-06-26 2004-05-11 Anoto Ab Method, device and memory medium for position determination
JP2005004574A (en) * 2003-06-13 2005-01-06 Dt Research Japan Kk Information processing apparatus whose operation can be controlled by bar-code system and service provision system using the apparatus
US9600703B2 (en) * 2013-03-15 2017-03-21 Cognex Corporation Systems and methods for sorting image acquisition settings for pattern stitching and decoding using multiple captured images
CN103488528B (en) * 2013-09-05 2017-06-16 优视科技有限公司 A kind of Quick Response Code processing method and processing device based on mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105260693A (en) * 2015-12-01 2016-01-20 浙江工业大学 Laser two-dimensional code positioning method
CN107273777A (en) * 2017-04-26 2017-10-20 广东顺德中山大学卡内基梅隆大学国际联合研究院 A kind of Quick Response Code identification of code type method matched based on slide unit
CN107748856A (en) * 2017-10-27 2018-03-02 努比亚技术有限公司 Two-dimensional code identification method, terminal and computer-readable recording medium

Also Published As

Publication number Publication date
CN109840444A (en) 2019-06-04

Similar Documents

Publication Publication Date Title
CN108572764B (en) Character input control method and device and computer readable storage medium
CN109840444B (en) Code scanning identification method, equipment and computer readable storage medium
CN109471571B (en) Display method of suspension control, mobile terminal and computer readable storage medium
CN107547741B (en) Information processing method and device and computer readable storage medium
CN108449513B (en) Interactive regulation and control method, equipment and computer readable storage medium
CN109584897B (en) Video noise reduction method, mobile terminal and computer readable storage medium
CN109976859B (en) Screenshot method, terminal and computer readable storage medium
CN109683797B (en) Display area control method and device and computer readable storage medium
CN112566197B (en) Network switching control method, equipment and computer readable storage medium
CN110069320B (en) Classification correction method, terminal, system and storage medium for application program
CN109948368B (en) Privacy authority control method, device and computer readable storage medium
CN109711850B (en) Secure payment method, device and computer readable storage medium
CN112346824A (en) Screen projection application control method and device and computer readable storage medium
CN109710168B (en) Screen touch method and device and computer readable storage medium
CN109684020B (en) Theme switching method, device and computer readable storage medium
CN108900696B (en) Data processing method, terminal and computer readable storage medium
CN107766544B (en) Information management method, terminal and computer readable storage medium
CN111476231B (en) Image area identification method, device and computer readable storage medium
CN109656658B (en) Editing object processing method and device and computer readable storage medium
CN112015508B (en) Screen-throwing interaction control method, equipment and computer-readable storage medium
CN111612688B (en) Image processing method, device and computer readable storage medium
CN110275667B (en) Content display method, mobile terminal, and computer-readable storage medium
CN110764852B (en) Screenshot method, terminal and computer readable storage medium
CN109544170B (en) Transaction snapshot verification method, device and computer readable storage medium
CN109543172B (en) Editing object regulation and control method, equipment and computer readable storage medium

Legal Events

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