CN112241642B - Two-dimensional code identification method, device, equipment and storage medium - Google Patents

Two-dimensional code identification method, device, equipment and storage medium Download PDF

Info

Publication number
CN112241642B
CN112241642B CN201910656705.1A CN201910656705A CN112241642B CN 112241642 B CN112241642 B CN 112241642B CN 201910656705 A CN201910656705 A CN 201910656705A CN 112241642 B CN112241642 B CN 112241642B
Authority
CN
China
Prior art keywords
dimensional code
image
code image
identified
images
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
CN201910656705.1A
Other languages
Chinese (zh)
Other versions
CN112241642A (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.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital 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 Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN201910656705.1A priority Critical patent/CN112241642B/en
Publication of CN112241642A publication Critical patent/CN112241642A/en
Application granted granted Critical
Publication of CN112241642B publication Critical patent/CN112241642B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/14172D bar codes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10544Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum
    • G06K7/10712Fixed beam scanning
    • G06K7/10722Photodetector array or CCD scanning
    • G06K7/10732Light sources
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/146Methods for optical code recognition the method including quality enhancement steps
    • G06K7/1491Methods for optical code recognition the method including quality enhancement steps the method including a reconstruction step, e.g. stitching two pieces of bar code together to derive the full bar code

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Image Analysis (AREA)

Abstract

The invention provides a two-dimensional code identification method, a device, equipment and a storage medium. The method comprises the following steps: when a two-dimensional code scanning mode is started, a flash trigger instruction is acquired, the flash trigger instruction is used for triggering a flash to be lightened and gradually extinguished, in the process that the flash is lightened and gradually extinguished, image acquisition is carried out on a two-dimensional code to be identified, at least two-dimensional code images are acquired, two-dimensional code identification is carried out on the at least two-dimensional code images, an identification result is acquired, the identification result comprises content or operation corresponding to the two-dimensional code to be identified, quick and accurate identification on the two-dimensional code is realized under the condition that a user does not need to manually adjust the angle of terminal equipment, convenience is improved, and user experience is improved.

Description

Two-dimensional code identification method, device, equipment and storage medium
Technical Field
The present invention relates to the field of two-dimensional code identification control, and in particular, to a two-dimensional code identification method, device, apparatus, and storage medium.
Background
Along with the continuous popularization of terminal devices, information is acquired through two-dimension codes and actual application operations are performed more and more frequently, and the two-dimension codes are widely applied to various scenes, such as payment, login, information inquiry, information sharing and the like, so that how to accurately and rapidly complete two-dimension code scanning and identification becomes important.
In the prior art, when two-dimensional code scanning is performed at night or in an environment with weaker surrounding light, an additional light source is required to be added to improve the recognition rate of the two-dimensional code, for example, the two-dimensional code is irradiated by a light source provided by a terminal device, such as a flash lamp installed on the terminal device, or a light source provided by other devices, so that the two-dimensional code is easier to recognize.
However, providing the light source through other equipment means that the user needs to carry more light source equipment, and the convenience is relatively poor, and when illuminating the two-dimensional code through the light source that terminal equipment itself provided, can produce the reflection of light facula on the two-dimensional code image, when the reflection of light facula is too big, the two-dimensional code still hardly is discerned, needs the angle and the position of user's multiple adjustment scanning to reduce the influence of reflection of light facula, and it can be seen that prior art's scheme can lead to the user to carry out the convenience when two-dimensional code scanning relatively poor to user experience is relatively poor.
Disclosure of Invention
The invention provides a two-dimensional code identification method, a device, equipment and a storage medium, which are convenient and quick in identification scheme under the condition that two-dimensional codes need to be identified when the light of the night or the surrounding is weak.
In a first aspect, the present invention provides a method for identifying a two-dimensional code, including:
when a two-dimension code scanning mode is started, a flash lamp triggering instruction is obtained; the flash trigger instruction is used for triggering the flash to be lightened and gradually extinguished;
in the process that the flash lamp is turned on and gradually turned off, acquiring images of two-dimensional codes to be identified, and acquiring at least two-dimensional code images;
and carrying out two-dimensional code recognition on the at least two-dimensional code images to obtain a recognition result, wherein the recognition result comprises content or operation corresponding to the two-dimensional code to be recognized.
In one possible implementation manner, the performing two-dimensional code recognition on the at least two-dimensional code images to obtain a recognition result includes:
performing traversal identification on each two-dimensional code image in the at least two-dimensional code images;
if a first two-dimensional code image exists in the at least two-dimensional code images and can be identified, acquiring the identification result according to the first two-dimensional code image.
Further, the method further comprises:
if the two-dimensional code images cannot be identified, acquiring a non-reflective area image in each two-dimensional code image;
Overlapping the non-reflective area image of each two-dimensional code image to obtain a second two-dimensional code image;
and identifying the second two-dimensional code image to obtain the identification result.
In one possible implementation manner, the performing two-dimensional code recognition on the at least two-dimensional code images includes:
sequentially identifying the at least two-dimensional code images according to a preset sequence;
if the current two-dimensional code image can be identified, acquiring the identification result according to the current two-dimensional code image, ending the identification process, otherwise, acquiring a non-reflective area image in the current two-dimensional code image, identifying the next two-dimensional code image according to the preset sequence, and repeating the steps until all the at least two-dimensional code images are processed;
overlapping the non-reflective area image corresponding to each two-dimensional code image to obtain a second two-dimensional code image;
and identifying the second two-dimensional code image to obtain the identification result.
In a specific implementation manner, the second two-dimensional code image includes a plurality of pixels, and the overlapping processing is performed on the non-reflective area image in each two-dimensional code image to obtain the second two-dimensional code image, including:
According to at least two non-reflective area images, calculating the gray value of each pixel point in the non-reflective area of the second two-dimensional code image;
and acquiring an average value of the gray value of each pixel point in the non-reflective area of the second two-dimensional code image, and taking the average value as the gray value of each pixel point in the reflective area of the second two-dimensional code image.
Specifically, the method further comprises the following steps:
acquiring a two-dimensional code area and a light reflecting area of a two-dimensional code image;
determining whether the light reflecting area is smaller than a preset value;
if the reflection area is smaller than a preset value, decoding the content of the two-dimensional code area, and determining whether the two-dimensional code image can be identified;
and if the light reflection area is larger than or equal to the preset value, determining that the two-dimensional code image cannot be identified.
Further, the decoding the content of the two-dimensional code area to determine whether the two-dimensional code image can be identified, includes:
if the two-dimensional code area is successfully decoded, determining that the two-dimensional code image can be identified;
and if the decoding of the two-dimensional code area fails, determining that the two-dimensional code image cannot be identified.
Optionally, the method further comprises:
If the second two-dimensional code image is failed to be identified, generating prompt information and pushing the prompt information; the prompt message is used for prompting: the scanning position or angle is adjusted, or the scanning is re-performed after the time when the flash is turned on and off is adjusted.
In a second aspect, the present invention provides a two-dimensional code identification device, including:
the acquisition module is used for acquiring a flash lamp triggering instruction after the two-dimensional code scanning mode is started; the flash trigger instruction is used for triggering the flash to be lightened and gradually extinguished;
the acquisition module is used for acquiring images of the two-dimensional code to be identified in the process of lighting and gradually extinguishing the flash lamp so as to acquire at least two-dimensional code images;
the processing module is used for carrying out two-dimensional code recognition on the at least two-dimensional code images to obtain a recognition result, wherein the recognition result comprises content or operation corresponding to the two-dimensional code to be recognized.
In a specific implementation, the processing module is specifically configured to:
performing traversal identification on each two-dimensional code image in the at least two-dimensional code images;
if a first two-dimensional code image exists in the at least two-dimensional code images and can be identified, acquiring the identification result according to the first two-dimensional code image.
Further, the processing module is specifically configured to:
if the two-dimensional code images cannot be identified, acquiring a non-reflective area image in each two-dimensional code image;
overlapping the non-reflective area image of each two-dimensional code image to obtain a second two-dimensional code image;
and identifying the second two-dimensional code image to obtain the identification result.
In a specific implementation, the processing module is specifically configured to:
sequentially identifying the at least two-dimensional code images according to a preset sequence;
if the current two-dimensional code image can be identified, acquiring the identification result according to the current two-dimensional code image, ending the identification process, otherwise, acquiring a non-reflective area image in the current two-dimensional code image, identifying the next two-dimensional code image according to the preset sequence, and repeating the steps until all the at least two-dimensional code images are processed;
overlapping the non-reflective area image corresponding to each two-dimensional code image to obtain a second two-dimensional code image;
and identifying the second two-dimensional code image to obtain the identification result.
In a specific implementation, the processing module is specifically configured to:
according to at least two non-reflective area images, calculating the gray value of each pixel point in the non-reflective area of the second two-dimensional code image;
and acquiring an average value of the gray value of each pixel point in the non-reflective area of the second two-dimensional code image, and taking the average value as the gray value of each pixel point in the reflective area of the second two-dimensional code image.
In particular, the method comprises the steps of,
the acquisition module is also used for acquiring a two-dimensional code area and a light reflecting area of the two-dimensional code image;
the processing module is further configured to:
determining whether the light reflecting area is smaller than a preset value;
if the reflection area is smaller than a preset value, decoding the content of the two-dimensional code area, and determining whether the two-dimensional code image can be identified;
and if the light reflection area is larger than or equal to the preset value, determining that the two-dimensional code image cannot be identified.
Further, the processing module is specifically configured to:
if the two-dimensional code area is successfully decoded, determining that the two-dimensional code image can be identified;
and if the decoding of the two-dimensional code area fails, determining that the two-dimensional code image cannot be identified.
Optionally, the processing module is further configured to:
if the second two-dimensional code image is failed to be identified, generating prompt information and pushing the prompt information; the prompt message is used for prompting: the scanning position or angle is adjusted, or the scanning is re-performed after the time when the flash is turned on and off is adjusted.
In a third aspect, the present invention provides a terminal device, including: a memory and a processor;
the memory stores computer-executable instructions;
the processor executes the computer-executable instructions stored in the memory, so that the processor executes the two-dimensional code identification method according to the first aspect.
In a fourth aspect, the present invention provides a storage medium comprising: a readable storage medium and a computer program for implementing the two-dimensional code identification method according to the first aspect.
According to the two-dimensional code identification method, device and equipment and storage medium, after a two-dimensional code scanning mode is started, a flash trigger instruction is acquired, the flash trigger instruction is used for triggering a flash to be turned on and turned off gradually, in the process of the flash being turned on and turned off gradually, image acquisition is carried out on the two-dimensional code to be identified, at least two-dimensional code images are acquired, two-dimensional code identification is carried out on the two-dimensional code images, and an identification result is acquired.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the prior art, the drawings that are needed in the embodiments or the description of the prior art will be briefly described below, it will be obvious that the drawings in the following description are some embodiments of the present invention, and that other drawings can be obtained according to these drawings without inventive effort to a person skilled in the art.
Fig. 1-a-1, fig. 1-a-2 and fig. 1-a-3 are schematic structural diagrams of a two-dimensional code according to an embodiment of the present invention;
fig. 1-b is a schematic diagram of a two-dimensional code according to an embodiment of the present invention;
fig. 1-c is a schematic diagram III of a two-dimensional code according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of an embodiment of a two-dimensional code identification method according to an embodiment of the present invention;
fig. 3 is a schematic diagram showing a change of a flash lamp intensity with time according to an identification method of a two-dimensional code according to an embodiment of the present invention;
fig. 4 is a schematic flow chart of a second embodiment of a two-dimensional code identification method according to an embodiment of the present invention;
fig. 5 is a schematic flow chart of a third embodiment of a two-dimensional code identification method according to the embodiment of the present invention;
Fig. 6 is a schematic flow chart of a fourth embodiment of a two-dimensional code identification method according to the embodiment of the present invention;
fig. 7 is a schematic flow chart of a fifth embodiment of a two-dimensional code identification method according to the embodiment of the present invention;
fig. 8 is a schematic structural diagram of a first embodiment of a two-dimensional code identification device according to an embodiment of the present invention;
fig. 9 is a schematic hardware structure of a terminal device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The terms "comprises," "comprising," and any variations thereof, as used herein, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed or inherent to such process, method, article, or apparatus.
Reference throughout this specification to "one embodiment" or "another embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in one embodiment" or "in this embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. It should be noted that, without conflict, the embodiments of the present invention and features of the embodiments may be combined with each other.
The two-dimensional code to be identified in the invention comprises but is not limited to the following three types: 1. the two-dimensional code (DM) code shown in figures 1-a-1, 1-a-2 and 1-a-3 comprises a position detection graph shown in figures 1-a-1 and 1-a-2 and a Data area shown in figures 1-a-3; 2. as shown in fig. 1-b, a two-dimensional code (QR) code, generally speaking, a QR code symbol is composed of the following parts: the method comprises the steps of a dead zone, a position detection graph, a correction graph (some versions do not have the part), a reference grid, version information, format information and a data zone, wherein the number of black points on the reference grid is called the version number of a QR code, the number of the QR code is 40 versions, and the components of each version are slightly different; 3. the two-dimensional Code (Maxi Code) shown in fig. 1-c is a two-dimensional Code with fixed size, fixed data capacity and fixed data arrangement sequence, and consists of a position detection pattern, a direction correction pattern, a data area, a reservation module and a dead zone. Unlike other two-dimensional codes, the shape of the smallest module is hexagonal, and it will be understood by those skilled in the art that the position of the two-dimensional code can be determined by the position detection pattern of the two-dimensional code, information of the two-dimensional code is obtained by identifying a data area of the two-dimensional code, and different types of two-dimensional codes have different data verification capabilities, for example, DM codes can still be successfully identified when about 40% of information is lost, and QR codes can still be successfully identified when about 30% of information is lost.
Based on the information, the invention provides a two-dimensional code identification method, so that the two-dimensional code to be identified can be quickly and accurately identified in the night or dark-light environment, and the identification method is described below through a plurality of specific embodiments.
Fig. 2 is a schematic flow chart of an embodiment of a two-dimensional code identification method provided by the embodiment of the present invention, where an execution subject of the present invention is a terminal device with a flash lamp and an image acquisition device, for example, a personal computer PC, a notebook, a tablet, a wearable product, an intelligent home appliance product, an intelligent robot, and other electronic devices with an image acquisition function, and as shown in fig. 2, the method includes:
s1: and after the two-dimension code scanning mode is started, acquiring a flash lamp triggering instruction.
It should be understood by those skilled in the art that when the two-dimensional code needs to be scanned, the terminal device may start the two-dimensional code scanning mode by receiving an instruction input by the user, or start the two-dimensional code scanning mode by calling of other modules, so as to identify the two-dimensional code to be identified.
In this step, a user can aim the camera of the terminal device at the two-dimensional code to be identified in the use process, and then acquire a flash trigger instruction, where the flash trigger instruction is used to trigger the flash to be turned on and gradually turned off, preferably, the terminal device controls the flash to be turned on instantly according to the flash trigger instruction and gradually turned off within 1-2 seconds, and fig. 3 is a schematic diagram of the change of the flash intensity with time in the two-dimensional code identification method provided by the embodiment of the invention, and fig. 3 is a schematic diagram of the change of the flash intensity with time in the process from turning on to gradually turning off.
In the specific implementation of the scheme, the specific modes for acquiring the flash lamp triggering instruction at least comprise the following steps:
in the first mode, a flash trigger instruction input by a user is received, for example, a flash control selected by the user through a man-machine interaction interface is received, or a flash trigger instruction input by the user according to a preset screen trigger mode (for example, double-click, finger joint touch, up-stroke and the like) is received.
In the second mode, a flash trigger instruction input by a user according to a preset key operation mode (for example, long-press of a volume key, etc.) is received.
In the third mode, the flash trigger instruction may be generated according to a preset condition, for example, the flash trigger instruction is generated when the acquisition device of the terminal device locates the two-dimensional code through the position detection pattern of the two-dimensional code, and for example, the flash trigger instruction is generated after the two-dimensional code scanning mode is started for 3 seconds.
S2: and in the process of lighting and gradually extinguishing the flash lamp, acquiring images of the two-dimensional code to be identified, and acquiring at least two-dimensional code images.
In this step, it should be understood that, in the process that the flash lights up and gradually extinguishes, the terminal device irradiates the two-dimensional code, a reflective light spot, that is, a reflective area is formed on the two-dimensional code, the size of the reflective area reaches the maximum after the flash lights instantly lights up, the reflective area gradually decreases in the process of gradually extinguishing, along with the change of the brightness of the flash lights, the terminal device controls its own image acquisition device, for example, a camera to perform image acquisition on the two-dimensional code to be identified, the image acquisition may be performed according to a preset acquisition frequency, the image acquisition may be performed according to a preset acquisition time point, the corresponding image acquisition may be performed according to a preset flash brightness value, and the setting of a time interval should consider the frame rate setting of the acquisition device itself.
Because the flash lamp irradiates, at least two collected two-dimensional code images have reflective areas with different degrees in the two-dimensional code areas, and the areas outside the reflective areas are non-reflective areas, so the at least two collected two-dimensional code images comprise reflective areas and non-reflective areas.
S3: and carrying out two-dimensional code recognition on at least two-dimensional code images to obtain a recognition result.
In this step, the identification result may be obtained by performing two-dimensional code identification on at least two-dimensional code images, specifically, by performing two-dimensional code identification on each two-dimensional code image and obtaining a decoding result of any two-dimensional code image that can be identified, and if at least two-dimensional code images cannot be identified as the identification result, performing superposition processing on at least two-dimensional code images, and then performing decoding on the second two-dimensional code image after superposition to obtain the identification result.
Further, before decoding according to the two-dimensional code pattern, whether the two-dimensional code pattern is decoded is confirmed according to the size of the light reflecting area in the two-dimensional code pattern, if the size of the light reflecting area in the current two-dimensional code pattern is larger than or equal to a preset value, the two-dimensional code pattern cannot be identified, if the size of the light reflecting area in the current two-dimensional code pattern is smaller than the preset value, the two-dimensional code pattern is decoded, and again, if decoding is successful, an identification result is obtained, and if decoding fails, the current two-dimensional code pattern cannot be identified is determined.
It will be understood by those skilled in the art that two-dimensional codes have different data verification capabilities according to different categories, and can overcome information loss of different degrees, so that when information loss caused by a light reflection area of any two-dimensional code image in at least two-dimensional code images does not exceed information loss which can be overcome by the two-dimensional code to be identified, the two-dimensional code image can be identified, and then, the non-reflective area in the two-dimensional code image is decoded to obtain an identification result, and further, at least two-dimensional code images cannot be identified, a second two-dimensional code image can be obtained by superposing the at least two-dimensional code images, the second two-dimensional code image is decoded, and the identification result is obtained.
The identification result includes content or operation corresponding to the two-dimensional code to be identified, for example: if the two-dimensional code is a two-dimensional code for payment, a payment page is obtained through identification, a user can complete payment operation, if the two-dimensional code is a personal two-dimensional code of an application, friend adding operation can be performed through identification, and if the two-dimensional code is a commodity two-dimensional code, commodity information of the commodity and the like can be obtained through identification.
According to the two-dimensional code identification method, after a two-dimensional code scanning mode is started, a flash lamp triggering instruction is acquired, the flash lamp triggering instruction is used for triggering the flash lamp to be lightened and gradually extinguished, in the process that the flash lamp is lightened and gradually extinguished, image acquisition is carried out on the two-dimensional code to be identified, at least two-dimensional code images are acquired, two-dimensional code identification is carried out on the two-dimensional code images, and an identification result is acquired.
Fig. 4 is a schematic flow chart of a second embodiment of a two-dimensional code identification method provided by the embodiment of the present invention, as shown in fig. 4, the embodiment still includes steps S1 and S2 in the embodiment shown in fig. 2, and after step S2, the embodiment further includes:
s301: and performing traversal identification on each two-dimensional code image in the at least two-dimensional code images.
In this step, the terminal device may identify each two-dimensional code image simultaneously, or may complete identifying each two-dimensional code image in a random order or a preset order, specifically, first, the terminal device determines whether each two-dimensional code image can be decoded, for example, determines whether the size of the reflective area is smaller than a preset value, if the size of the reflective area is smaller than the preset value, then decodes, otherwise, confirms that the two-dimensional code image cannot be identified, and second, decodes the two-dimensional code image confirmed to be decoded, obtains a decoding result, and takes the decoding result as an identification result.
S302: if the first two-dimensional code image exists in the at least two-dimensional code images and can be identified, an identification result is obtained according to the first two-dimensional code image.
The first two-dimensional code image is a two-dimensional code image of which any one can be identified. In this step, if the first two-dimensional code can be identified, the decoding result of the first two-dimensional code is used as the identification result, and the identification result is pushed to the user, and the identification process is ended.
In the embodiment, the terminal equipment performs traversal identification on each two-dimensional code image in at least two-dimensional code images, judges whether a first two-dimensional code image capable of being identified exists in the at least two-dimensional code images, acquires an identification result according to the first two-dimensional code image, and traverses and acquires the first two-dimensional code image capable of being identified in at least two-dimensional code images with different light reflection areas to acquire the identification result, so that quick identification of the two-dimensional code is realized.
In a specific implementation manner, fig. 5 is a schematic flow chart of a third embodiment of a two-dimensional code identification method provided by the embodiment of the present invention, and as shown in fig. 5, determining whether each two-dimensional code image in at least two-dimensional code images can be identified includes:
s401: and acquiring a two-dimensional code area and a light reflection area of the two-dimensional code image.
The terminal equipment locates the area of the two-dimension code in the image by running a two-dimension code identification algorithm, records the size of the two-dimension code area, detects the reflective area and records the size of the reflective area.
Specifically, detecting the light reflection area includes: and judging whether the gray value of each pixel is larger than a threshold value W (normally, the gray value range of the pixel in the two-dimensional code area is 0-255, 255 is a white gray value, 0 is a black gray value, and W is normally 255) pixel by pixel in the two-dimensional code area, if so, determining that the pixel is a reflective pixel, marking, traversing the whole two-dimensional code area, and counting the number of the determined reflective pixels to obtain the size of the reflective area.
S402: it is determined whether the retroreflective regions are less than a preset value.
In this step, a preset value is determined in advance according to the data verification capability of the two-dimensional codes of different types, where the preset value may be the proportion of the reflective area to the two-dimensional code area, or may be the pixel size of the reflective area, and further, the terminal device determines, by comparing the reflective area determined in step S401 with the preset value, whether the reflective area is smaller than the preset value.
S403: if the reflective area is smaller than the preset value, decoding the content of the two-dimensional code area to determine whether the two-dimensional code image can be identified.
When the reflective area is smaller than the preset value, decoding the content of the two-dimensional code area, namely decoding according to the content of the non-reflective area, and if the decoding of the two-dimensional code area is successful, determining that the two-dimensional code image can be identified; if the two-dimensional code region decoding is unsuccessful, the two-dimensional code image cannot be identified.
S404: if the light reflection area is larger than or equal to the preset value, it is determined that the two-dimensional code image cannot be identified.
If the reflective area is larger than or equal to the preset value, the information loss caused by the reflective area is larger than the data verification capability of the current two-dimensional code, and the two-dimensional code image is determined to be unable to be identified.
It can be seen that in the embodiment shown in fig. 5, in the case that the reflective area is smaller than the preset value, and the content of the corresponding two-dimensional code area can be successfully decoded, the two-dimensional code image can be identified, otherwise, the two-dimensional code image cannot be identified, the two-dimensional code image with the reflective area exceeding the preset value is determined to be the two-dimensional code image which cannot be identified by judging the size of the reflective area, and the two-dimensional code with the reflective area smaller than the preset value is decoded by trying, and the two-dimensional code image can be identified and the identification result can be obtained after the decoding is successfully decoded, so that the two-dimensional code can be identified rapidly and accurately.
On the basis of the embodiments shown in fig. 4 and fig. 5, fig. 6 is a schematic flow chart of a fourth embodiment of a two-dimensional code identification method provided by the embodiment of the present invention, and as shown in fig. 6, the method further includes:
s303: and if at least two-dimensional code images cannot be identified, acquiring a non-reflection area image in each two-dimensional code image.
According to the result of traversing the recognition in step S301, specifically, the method for determining whether each two-dimensional code image can be recognized may be a process as shown in fig. 5, and if it is determined that at least two-dimensional code images cannot be recognized, acquiring a non-reflective area image in the two-dimensional code images, and recording each non-reflective area image.
S304: and carrying out superposition processing on the non-reflection area image of each two-dimensional code image to obtain a second two-dimensional code image.
Specifically, according to at least two non-reflective area images, the gray value of each pixel point in the non-reflective area of the second two-dimensional code image is calculated, the average value of the gray values of each pixel point in the non-reflective area of the second two-dimensional code image is obtained, and the average value is used as the gray value of each pixel point in the reflective area of the second two-dimensional code image.
Further, according to at least two non-reflective area images, calculating a gray value of each pixel point in the non-reflective area of the second two-dimensional code image includes: and calculating the accumulated gray value of each pixel point and the non-reflective image count of each pixel point in the non-reflective area, wherein the accumulated gray value is the sum of the gray values of the pixel points in each non-reflective area image (the gray value is not counted when the gray value is more than or equal to 255), the non-reflective image count is the number of the images when the gray value of the pixel point in each Fei Fanguang area image is less than 255, and the gray value of each pixel point in the second two-dimensional code image is obtained by calculating the ratio of the accumulated gray value of each pixel point to the non-reflective image count, and the gray value of each pixel point in the non-reflective area of the second two-dimensional code image is obtained by carrying out the calculation pixel by pixel. It is understood that the second two-dimensional code image obtained through superposition processing can achieve maximization of the non-reflective area, and information loss caused by the reflective area is reduced.
S305: and identifying the second two-dimensional code image to obtain an identification result.
And identifying the second two-dimensional code image obtained through superposition processing, namely decoding the two-dimensional code area in the second two-dimensional code image to obtain an identification result.
In a specific implementation manner, if the second two-dimensional code image is failed to be identified, namely decoding is failed, for example, information loss caused by a light reflection area of the second two-dimensional code image exceeds the data verification capability of the two-dimensional code, so that decoding is failed, prompt information is generated, and the prompt information is pushed; the prompt message is used for prompting: the scanning position or angle is adjusted, or the scanning is re-performed after the time when the flash is turned on and off is adjusted.
In this embodiment, if at least two-dimensional code images cannot be identified, a non-reflective area image in each two-dimensional code image is obtained, the non-reflective area image of each two-dimensional code image is subjected to superposition processing to obtain a second two-dimensional code image, the second two-dimensional code image is identified, and an identification result is obtained, and the second two-dimensional code image obtained by superposition of a plurality of two-dimensional code images has a larger non-reflective area, so that information loss caused by the reflective area is reduced, the identification is easier, and the success rate of two-dimensional code identification is improved.
Fig. 7 is a schematic flow chart of a fifth embodiment of a two-dimensional code identification method provided by the embodiment of the present invention, as shown in fig. 7, the embodiment still includes steps S1 and S2 in the embodiment shown in fig. 2, and after step S2, the embodiment further includes:
s310: and sequentially identifying at least two-dimensional code images according to a preset sequence.
In this step, the terminal device sequentially identifies at least two-dimensional code images according to a preset sequence, wherein the preset sequence may be a time sequence when the at least two-dimensional code images are acquired, and identifies the two-dimensional code images acquired first.
S320: if the current two-dimensional code image can be identified, acquiring an identification result according to the current two-dimensional code image, ending the identification process, otherwise, acquiring a non-reflective area image in the current two-dimensional code image, identifying the next two-dimensional code image according to a preset sequence, and repeating the steps until at least two-dimensional code images are all processed.
In this step, the terminal device first determines whether the current two-dimensional code image can be identified, and in a specific implementation manner, determining whether the current two-dimensional code image can be identified may be performed by determining an embodiment as shown in fig. 5, and processing is performed according to a determination result: if the current two-dimensional code image can be identified, an identification result is obtained by decoding the two-dimensional code image, the identification result is returned and pushed to a user, the identification process is ended, and the two-dimensional code image after the current two-dimensional code image is not identified; if the current two-dimensional code image cannot be identified, acquiring a non-reflective area image in the current two-dimensional code image, storing the non-reflective area image, and identifying the next two-dimensional code image according to a preset sequence, wherein if any two-dimensional code image can be identified, deleting the non-reflective area image stored before to release a storage space, and repeating the steps until at least two-dimensional code images are processed completely, wherein unless an identification result can be acquired according to any two-dimensional code image, the identification process is ended.
S330: and carrying out superposition processing on the non-reflective area image corresponding to each two-dimensional code image to obtain a second two-dimensional code image.
If any two-dimensional code image which can be identified does not exist, superposition processing is performed according to at least two non-reflection area images stored in the step S320, and a second two-dimensional code image is obtained.
The specific implementation process of this step is similar to step S304, and will not be described here again.
S340: and identifying the second two-dimensional code image to obtain an identification result.
The specific implementation process of this step is similar to step S305, and will not be described here again.
In this embodiment, at least two-dimensional code images are sequentially identified according to a preset sequence, if the current two-dimensional code image can be identified, an identification result is obtained according to the current two-dimensional code image, and the identification process is ended, otherwise, if the current two-dimensional code image cannot be identified, a non-reflective area image in the current two-dimensional code image is obtained, and the next two-dimensional code image is identified according to the preset sequence, the steps are repeated until all the at least two-dimensional code images are processed, and the non-reflective area image corresponding to each two-dimensional code image is subjected to superposition processing, so that a second two-dimensional code image is obtained, and then the second two-dimensional code image is identified, so that an identification result is obtained.
Fig. 8 is a schematic structural diagram of a first embodiment of a two-dimensional code identification device according to an embodiment of the present invention, and as shown in fig. 8, the device 10 includes:
the acquisition module 11: when the two-dimension code scanning mode is started, the two-dimension code scanning mode is used for acquiring a flash lamp triggering instruction; the flash trigger instruction is used for triggering the flash to be lightened and gradually extinguished;
acquisition module 12: the method comprises the steps that in the process that a flash lamp is turned on and gradually turned off, image acquisition is carried out on a two-dimensional code to be identified, and at least two-dimensional code images are obtained;
the processing module 13: the two-dimensional code recognition method is used for carrying out two-dimensional code recognition on the at least two-dimensional code images to obtain recognition results, wherein the recognition results comprise contents or operations corresponding to the two-dimensional codes to be recognized.
The two-dimensional code identification device 10 provided in this embodiment includes: the method comprises the steps of acquiring a flash trigger instruction after a two-dimensional code scanning mode is started, wherein the flash trigger instruction is used for triggering a flash to be lightened and gradually extinguished, in the process of the flash to be lightened and gradually extinguished, image acquisition is carried out on two-dimensional codes to be identified, at least two-dimensional code images are acquired, two-dimensional code identification is carried out on the two-dimensional code images, and an identification result is acquired.
In a specific implementation, the processing module 13 is specifically configured to:
performing traversal identification on each two-dimensional code image in the at least two-dimensional code images;
if a first two-dimensional code image exists in the at least two-dimensional code images and can be identified, acquiring the identification result according to the first two-dimensional code image.
In a specific implementation, the processing module 13 is specifically configured to:
if the two-dimensional code images cannot be identified, acquiring a non-reflective area image in each two-dimensional code image;
overlapping the non-reflective area image of each two-dimensional code image to obtain a second two-dimensional code image;
and identifying the second two-dimensional code image to obtain the identification result.
In a specific implementation, the processing module 13 is specifically configured to:
sequentially identifying the at least two-dimensional code images according to a preset sequence;
if the current two-dimensional code image can be identified, acquiring the identification result according to the current two-dimensional code image, ending the identification process, otherwise, acquiring a non-reflective area image in the current two-dimensional code image, identifying the next two-dimensional code image according to the preset sequence, and repeating the steps until all the at least two-dimensional code images are processed;
Overlapping the non-reflective area image corresponding to each two-dimensional code image to obtain a second two-dimensional code image;
and identifying the second two-dimensional code image to obtain the identification result.
In a specific implementation, the processing module 13 is specifically configured to:
according to at least two non-reflective area images, calculating the gray value of each pixel point in the non-reflective area of the second two-dimensional code image;
and acquiring an average value of the gray value of each pixel point in the non-reflective area of the second two-dimensional code image, and taking the average value as the gray value of each pixel point in the reflective area of the second two-dimensional code image.
In a specific implementation manner, the obtaining module 11 is further configured to obtain a two-dimensional code area and a reflective area of the two-dimensional code image;
the processing module 13 is further configured to:
determining whether the light reflecting area is smaller than a preset value;
if the reflection area is smaller than a preset value, decoding the content of the two-dimensional code area, and determining whether the two-dimensional code image can be identified;
and if the light reflection area is larger than or equal to the preset value, determining that the two-dimensional code image cannot be identified.
In a specific implementation, the processing module 13 is specifically configured to:
If the two-dimensional code area is successfully decoded, determining that the two-dimensional code image can be identified;
and if the decoding of the two-dimensional code area fails, determining that the two-dimensional code image cannot be identified.
In a specific implementation, the processing module 13 is further configured to:
if the second two-dimensional code image is failed to be identified, generating prompt information and pushing the prompt information; the prompt message is used for prompting: the scanning position or angle is adjusted, or the scanning is re-performed after the time when the flash is turned on and off is adjusted.
The two-dimensional code identification device provided in this embodiment may execute the technical scheme of the method embodiment, and its implementation principle and technical effect are similar, and this embodiment is not repeated here.
The embodiment of the present invention further provides a terminal device, and referring to fig. 9, the embodiment of the present invention is illustrated only by taking fig. 9 as an example, and the present invention is not limited thereto.
Fig. 9 is a schematic hardware structure of a terminal device according to an embodiment of the present invention. The terminal device provided in this embodiment includes, but is not limited to, a mobile phone, a computer, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
As shown in fig. 9, the terminal device 20 provided in this embodiment may include: a memory 201, a processor 202, a flash 204, and an image capturing device 205; optionally, a bus 203 may also be included. Wherein the bus 203 is used to implement the connections between the elements.
The memory 201 stores computer-executable instructions;
the processor 202 executes the computer-executable instructions stored in the memory 201, so that the processor executes the two-dimensional code identification method provided in any one of the foregoing embodiments.
The memory 201 is directly or indirectly electrically connected to the processor 202, so as to realize data transmission or interaction. For example, the elements may be electrically coupled to each other via one or more communication buses or signal lines, such as via bus 203. Stored in the memory 201 are computer-executable instructions for implementing a data access control method, including at least one software functional module that may be stored in the memory 201 in the form of software or firmware, and the processor 202 executes various functional applications and data processing by running the software programs and modules stored in the memory 201.
The Memory 201 may be, but is not limited to, random access Memory (Random Access Memory, RAM), read Only Memory (ROM), programmable Read Only Memory (Programmable Read-Only Memory, PROM), erasable Read Only Memory (Erasable Programmable Read-Only Memory, EPROM), electrically erasable Read Only Memory (Electric Erasable Programmable Read-Only Memory, EEPROM), etc. The memory 201 is used for storing a program, and the processor 202 executes the program after receiving an execution instruction. Further, the software programs and modules within the memory 201 may also include an operating system, which may include various software components and/or drivers for managing system tasks (e.g., memory management, storage device control, power management, etc.), and may communicate with various hardware or software components to provide an operating environment for other software components.
The processor 202 may be an integrated circuit chip with signal processing capabilities. The processor 202 may be a general-purpose processor, including a central processing unit (Central Processing Unit, abbreviated as CPU), a network processor (Network Processor, abbreviated as NP), and the like. The disclosed methods, steps, and logic blocks in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. It will be appreciated that the configuration of fig. 9 is merely illustrative and may include more or fewer components than shown in fig. 9 or have a different configuration than shown in fig. 9. The components shown in fig. 9 may be implemented in hardware and/or software.
The embodiment of the invention also provides a computer readable storage medium, on which computer execution instructions are stored, which can realize the two-dimensional code identification method provided by any one of the method embodiments when being executed by a processor.
The computer readable storage medium in this embodiment may be any available medium that can be accessed by a computer or a data storage device such as a server, a data center, etc. that contains one or more available medium(s) integrated, and the available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., an SSD), etc.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the method embodiments described above may be performed by hardware associated with program instructions. The foregoing program may be stored in a computer readable storage medium. The program, when executed, performs steps including the method embodiments described above; and the aforementioned storage medium includes: various media that can store program code, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the invention.

Claims (12)

1. The two-dimensional code identification method is characterized by comprising the following steps of:
when a two-dimension code scanning mode is started, a flash lamp triggering instruction is obtained; the flash trigger instruction is used for triggering the flash to be lightened and gradually extinguished;
In the process that the flash lamp is turned on and gradually turned off, acquiring images of two-dimensional codes to be identified, and acquiring at least two-dimensional code images; each two-dimensional code image in the at least two-dimensional code images has reflective areas with different sizes under the irradiation of the reflective lamp; the two-dimensional code to be identified is subjected to image acquisition according to preset acquisition frequency, or is subjected to image acquisition according to preset acquisition time points, or is subjected to corresponding image acquisition aiming at preset flash lamp brightness values, and the acquisition time interval is set based on the frame rate of the acquisition device;
performing two-dimensional code recognition on the at least two-dimensional code images to obtain a recognition result, wherein the recognition result comprises content or operation corresponding to the two-dimensional code to be recognized;
the identification result is obtained by identifying a first two-dimensional code image which can be identified in the at least two-dimensional code images or identifying a second two-dimensional code image which is obtained by overlapping non-reflective area images of each two-dimensional code image in the at least two-dimensional code images;
the two-dimensional code identification is carried out on the at least two-dimensional code images, and an identification result is obtained, and the method comprises the following steps:
Performing traversal identification on each two-dimensional code image in the at least two-dimensional code images;
if a first two-dimensional code image exists in the at least two-dimensional code images and can be identified, acquiring an identification result according to the first two-dimensional code image;
if the two-dimensional code images cannot be identified, acquiring a non-reflective area image in each two-dimensional code image;
overlapping the non-reflective area image of each two-dimensional code image to obtain a second two-dimensional code image;
identifying the second two-dimensional code image to obtain the identification result;
or,
the two-dimensional code identification of the at least two-dimensional code images comprises the following steps:
sequentially identifying the at least two-dimensional code images according to a preset sequence;
if the current two-dimensional code image can be identified, acquiring the identification result according to the current two-dimensional code image, ending the identification process, otherwise, acquiring a non-reflective area image in the current two-dimensional code image, identifying the next two-dimensional code image according to the preset sequence, and repeating the steps until all the at least two-dimensional code images are processed;
Overlapping the non-reflective area image corresponding to each two-dimensional code image to obtain a second two-dimensional code image;
and identifying the second two-dimensional code image to obtain the identification result.
2. The method of claim 1, wherein the second two-dimensional code image includes a plurality of pixels, and the superimposing the non-reflective area image in each two-dimensional code image to obtain the second two-dimensional code image includes:
according to at least two non-reflective area images, calculating the gray value of each pixel point in the non-reflective area of the second two-dimensional code image;
and acquiring an average value of the gray value of each pixel point in the non-reflective area of the second two-dimensional code image, and taking the average value as the gray value of each pixel point in the reflective area of the second two-dimensional code image.
3. The method according to claim 1, wherein the method further comprises:
for any one frame of two-dimensional code image,
acquiring a two-dimensional code area and a light reflecting area of a two-dimensional code image;
determining whether the light reflecting area is smaller than a preset value;
if the reflection area is smaller than a preset value, decoding the content of the two-dimensional code area, and determining whether the two-dimensional code image can be identified;
And if the light reflection area is larger than or equal to the preset value, determining that the two-dimensional code image cannot be identified.
4. The method of claim 3, wherein decoding the content of the two-dimensional code region to determine whether the two-dimensional code image can be identified, comprises:
if the two-dimensional code area is successfully decoded, determining that the two-dimensional code image can be identified;
and if the decoding of the two-dimensional code area fails, determining that the two-dimensional code image cannot be identified.
5. The method according to claim 4, wherein the method further comprises:
if the second two-dimensional code image is failed to be identified, generating prompt information and pushing the prompt information; the prompt message is used for prompting: the scanning position or angle is adjusted, or the scanning is re-performed after the time when the flash is turned on and off is adjusted.
6. An identification device for a two-dimensional code, the device comprising:
the acquisition module is used for acquiring a flash lamp triggering instruction after the two-dimensional code scanning mode is started; the flash trigger instruction is used for triggering the flash to be lightened and gradually extinguished;
the acquisition module is used for acquiring images of the two-dimensional code to be identified in the process of lighting and gradually extinguishing the flash lamp so as to acquire at least two-dimensional code images; each two-dimensional code image in the at least two-dimensional code images has reflective areas with different sizes under the irradiation of the reflective lamp; the two-dimensional code to be identified is subjected to image acquisition according to preset acquisition frequency, or is subjected to image acquisition according to preset acquisition time points, or is subjected to corresponding image acquisition aiming at preset flash lamp brightness values, and the acquisition time interval is set based on the frame rate of the acquisition device;
The processing module is used for carrying out two-dimensional code recognition on the at least two-dimensional code images to obtain a recognition result, wherein the recognition result comprises content or operation corresponding to the two-dimensional code to be recognized;
the identification result is obtained by identifying a first two-dimensional code image which can be identified in the at least two-dimensional code images or identifying a second two-dimensional code image which is obtained by overlapping non-reflective area images of each two-dimensional code image in the at least two-dimensional code images;
the processing module is specifically configured to:
performing traversal identification on each two-dimensional code image in the at least two-dimensional code images;
if a first two-dimensional code image exists in the at least two-dimensional code images and can be identified, acquiring an identification result according to the first two-dimensional code image;
if the two-dimensional code images cannot be identified, acquiring a non-reflective area image in each two-dimensional code image;
overlapping the non-reflective area image of each two-dimensional code image to obtain a second two-dimensional code image;
identifying the second two-dimensional code image to obtain the identification result;
Alternatively, the processing module is specifically configured to:
sequentially identifying the at least two-dimensional code images according to a preset sequence;
if the current two-dimensional code image can be identified, acquiring the identification result according to the current two-dimensional code image, ending the identification process, otherwise, acquiring a non-reflective area image in the current two-dimensional code image, identifying the next two-dimensional code image according to the preset sequence, and repeating the steps until all the at least two-dimensional code images are processed;
overlapping the non-reflective area image corresponding to each two-dimensional code image to obtain a second two-dimensional code image;
and identifying the second two-dimensional code image to obtain the identification result.
7. The apparatus of claim 6, wherein the processing module is specifically configured to:
according to at least two non-reflective area images, calculating the gray value of each pixel point in the non-reflective area of the second two-dimensional code image;
and acquiring an average value of the gray value of each pixel point in the non-reflective area of the second two-dimensional code image, and taking the average value as the gray value of each pixel point in the reflective area of the second two-dimensional code image.
8. The apparatus of claim 6, wherein the device comprises a plurality of sensors,
the acquisition module is also used for acquiring a two-dimensional code area and a light reflecting area of the two-dimensional code image;
the processing module is further configured to:
determining whether the light reflecting area is smaller than a preset value;
if the reflection area is smaller than a preset value, decoding the content of the two-dimensional code area, and determining whether the two-dimensional code image can be identified;
and if the light reflection area is larger than or equal to the preset value, determining that the two-dimensional code image cannot be identified.
9. The apparatus of claim 8, wherein the processing module is specifically configured to:
if the two-dimensional code area is successfully decoded, determining that the two-dimensional code image can be identified;
and if the decoding of the two-dimensional code area fails, determining that the two-dimensional code image cannot be identified.
10. The apparatus of claim 9, wherein the processing module is further configured to:
if the second two-dimensional code image is failed to be identified, generating prompt information and pushing the prompt information; the prompt message is used for prompting: the scanning position or angle is adjusted, or the scanning is re-performed after the time when the flash is turned on and off is adjusted.
11. A terminal device, comprising: the device comprises a flash lamp, an image acquisition device, a memory and a processor;
the memory stores computer-executable instructions;
the processor executes the computer-executable instructions stored in the memory, so that the processor executes the two-dimensional code identification method according to any one of claims 1 to 5.
12. A storage medium, comprising: a readable storage medium and a computer program for implementing the two-dimensional code identification method according to any one of claims 1 to 5.
CN201910656705.1A 2019-07-19 2019-07-19 Two-dimensional code identification method, device, equipment and storage medium Active CN112241642B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910656705.1A CN112241642B (en) 2019-07-19 2019-07-19 Two-dimensional code identification method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910656705.1A CN112241642B (en) 2019-07-19 2019-07-19 Two-dimensional code identification method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112241642A CN112241642A (en) 2021-01-19
CN112241642B true CN112241642B (en) 2024-02-23

Family

ID=74168250

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910656705.1A Active CN112241642B (en) 2019-07-19 2019-07-19 Two-dimensional code identification method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112241642B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113436576B (en) * 2021-05-28 2022-05-06 荣耀终端有限公司 OLED display screen dimming method and device applied to two-dimensional code scanning
CN113607419A (en) * 2021-08-02 2021-11-05 广东工业大学 Engine cylinder block electronic tag detection device and method
CN114548136A (en) * 2021-11-18 2022-05-27 福建星网天合智能科技有限公司 Method, device, equipment and medium for analyzing light-reflecting two-dimensional code picture
CN116451719B (en) * 2023-04-17 2023-10-27 笃准机器人智能科技(苏州)有限公司 Method for identifying two-dimensional code and character code on surface of workpiece after electrophoresis
CN117787309B (en) * 2023-12-13 2024-07-26 佛山鑫码电子科技有限公司 Code scanning method and device based on double-color light source irradiation

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102625534A (en) * 2012-03-20 2012-08-01 惠州Tcl移动通信有限公司 Flash lamp control device for mobile terminal
CN106896994A (en) * 2015-12-21 2017-06-27 阿里巴巴集团控股有限公司 A kind of frame display methods and device
CN107220578A (en) * 2017-05-31 2017-09-29 维沃移动通信有限公司 A kind of two-dimensional code scanning recognition methods, device, mobile terminal and storage medium
CN107818283A (en) * 2017-11-02 2018-03-20 深圳天珑无线科技有限公司 Quick Response Code image pickup method, mobile terminal and computer-readable recording medium
CN107844730A (en) * 2017-11-07 2018-03-27 维沃移动通信有限公司 A kind of graphic code scan method and mobile terminal
CN107944321A (en) * 2017-11-28 2018-04-20 努比亚技术有限公司 A kind of image-recognizing method, terminal and computer-readable recording medium
CN108763999A (en) * 2018-04-17 2018-11-06 维沃移动通信有限公司 Barcode recognition method and terminal device
CN109190436A (en) * 2018-07-30 2019-01-11 努比亚技术有限公司 A kind of two-dimensional code identification method, mobile terminal and storage medium
JP2019046330A (en) * 2017-09-06 2019-03-22 キヤノン電子株式会社 Optical type information reading device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW434520B (en) * 1998-06-30 2001-05-16 Sony Corp Two-dimensional code recognition processing method, device therefor and medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102625534A (en) * 2012-03-20 2012-08-01 惠州Tcl移动通信有限公司 Flash lamp control device for mobile terminal
CN106896994A (en) * 2015-12-21 2017-06-27 阿里巴巴集团控股有限公司 A kind of frame display methods and device
CN107220578A (en) * 2017-05-31 2017-09-29 维沃移动通信有限公司 A kind of two-dimensional code scanning recognition methods, device, mobile terminal and storage medium
JP2019046330A (en) * 2017-09-06 2019-03-22 キヤノン電子株式会社 Optical type information reading device
CN107818283A (en) * 2017-11-02 2018-03-20 深圳天珑无线科技有限公司 Quick Response Code image pickup method, mobile terminal and computer-readable recording medium
CN107844730A (en) * 2017-11-07 2018-03-27 维沃移动通信有限公司 A kind of graphic code scan method and mobile terminal
CN107944321A (en) * 2017-11-28 2018-04-20 努比亚技术有限公司 A kind of image-recognizing method, terminal and computer-readable recording medium
CN108763999A (en) * 2018-04-17 2018-11-06 维沃移动通信有限公司 Barcode recognition method and terminal device
CN109190436A (en) * 2018-07-30 2019-01-11 努比亚技术有限公司 A kind of two-dimensional code identification method, mobile terminal and storage medium

Also Published As

Publication number Publication date
CN112241642A (en) 2021-01-19

Similar Documents

Publication Publication Date Title
CN112241642B (en) Two-dimensional code identification method, device, equipment and storage medium
CN107220578B (en) Two-dimensional code scanning and identifying method and device, mobile terminal and storage medium
CN109190539B (en) Face recognition method and device
US9412001B2 (en) Method and computer-readable recording medium for recognizing object using captured image
US11093773B2 (en) Liveness detection method, apparatus and computer-readable storage medium
US10438086B2 (en) Image information recognition processing method and device, and computer storage medium
US8965051B2 (en) Method and apparatus for providing hand detection
CN108090340B (en) Face recognition processing method, face recognition processing device and intelligent terminal
CN111523438A (en) Living body identification method, terminal device and electronic device
CN108280431B (en) Face recognition processing method, face recognition processing device and intelligent terminal
CN109615734A (en) It is a kind of for unlocking the method and apparatus of vehicle arrangement
CN107729833B (en) Face detection method and related product
CN108881875B (en) Image white balance processing method and device, storage medium and terminal
CN106934389B (en) A kind of fingerprint identification method and mobile terminal
CN105653171A (en) Fingerprint identification based terminal control method, terminal control apparatus and terminal
US20160078206A1 (en) Terminal device and method for controlling access to same
USRE47608E1 (en) Predictive triggering in an electronic device
CN111507122A (en) Graphic code identification method and device, storage medium and terminal
CN107808109B (en) Two-dimensional code image identification method and mobile terminal
CN111080665B (en) Image frame recognition method, device, equipment and computer storage medium
CN104376291A (en) Data processing method and device
CN109558719B (en) Unlocking method and terminal
US20140219517A1 (en) Methods, apparatuses and computer program products for efficiently recognizing faces of images associated with various illumination conditions
CN112749769A (en) Graphic code detection method and device, computer equipment and storage medium
WO2019165870A1 (en) Method, apparatus, and device for recognizing bar code

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