[go: up one dir, main page]

WO2017157034A1 - Method, device, and storage medium for identifying two-dimensional code - Google Patents

Method, device, and storage medium for identifying two-dimensional code Download PDF

Info

Publication number
WO2017157034A1
WO2017157034A1 PCT/CN2016/105732 CN2016105732W WO2017157034A1 WO 2017157034 A1 WO2017157034 A1 WO 2017157034A1 CN 2016105732 W CN2016105732 W CN 2016105732W WO 2017157034 A1 WO2017157034 A1 WO 2017157034A1
Authority
WO
WIPO (PCT)
Prior art keywords
dimensional code
image
recognized
position detection
identifying
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.)
Ceased
Application number
PCT/CN2016/105732
Other languages
French (fr)
Chinese (zh)
Inventor
肖斌
陈晓红
王聪
钱晨
韦玮
支周
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Publication of WO2017157034A1 publication Critical patent/WO2017157034A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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

Definitions

  • the present invention relates to image recognition technology, and in particular, to a method and device for identifying a two-dimensional code, and a storage medium.
  • Two-dimensional code is a simple, low-cost, and convenient new medium. kind of work and life scenes can be seen everywhere.
  • a two-dimensional code also known as a two-dimensional bar code, is a black and white graphic that is distributed in a plane (two-dimensional direction) according to a certain rule by a specific geometric figure.
  • the encoding of the two-dimensional code subtly utilizes the concept of "0" and "1" bit streams constituting the internal logic of the computer, and uses several geometric shapes corresponding to binary to represent the literal numerical information through the image input device or
  • the terminal such as the photoelectric scanning device automatically reads the information to realize automatic processing of information.
  • a two-dimensional code is a more advanced bar code format than a one-dimensional code. Since the one-dimensional code can only store information in one direction (generally horizontal), the two-dimensional code can store information in both horizontal and vertical directions; the one-dimensional code can only be composed of numbers and letters, and the two-dimensional code can Store Chinese characters, numbers and pictures, so the application of QR codes is much broader, such as: product anti-counterfeiting / traceability, advertising push, website link, data download, positioning / navigation, electronic voucher, vehicle management, information transfer Wait.
  • the current two-dimensional code recognition scene is mostly limited to the case of passive illumination, that is, the two-dimensional code is pasted on the surface of the generally non-lighting object, and the identification method of the two-dimensional code
  • image graying is to convert the captured color picture into grayscale image, the process can eliminate the color information in the color picture and reduce the complexity of subsequent processing; image filtering is very important in the process of two-dimensional code recognition.
  • a link can filter out Gaussian noise, salt and pepper noise generated during image acquisition, avoiding the influence of noise on decoding, and thus improve the recognition rate; binarization selects an appropriate threshold to convert the grayscale image into only " A binarized image of 0" and "1"; image correction is to use an spatial positional relationship to correct an image that interferes with decoding due to factors such as a wrong angle of shooting to a horizontal, easily decoded image.
  • LEDs light-emitting diodes
  • advantages such as high brightness, low power consumption, long life, fast start, no stroboscopic, and less prone to visual fatigue.
  • the LED has become the most popular and respected green lighting technology.
  • the LED since the LED also has the characteristics of short response time and high-speed modulation, it can be applied to visible light communication and indoor positioning while being illuminated. Therefore, the two-dimensional code based on the LED array display has been applied in many occasions.
  • the embodiment of the present invention is to provide a method and device for identifying a two-dimensional code and a storage medium, which can quickly and accurately identify a two-dimensional code that is actively illuminated by an LED array, and improve the efficiency of reading two-dimensional code information. , thereby improving the user's perception of use.
  • An embodiment of the present invention provides a method for identifying a two-dimensional code, where the method includes:
  • the collecting the image to be recognized including the two-dimensional code of the illuminating display comprises:
  • the collecting the image to be identified by using the metering mode corresponding to the selected working mode includes:
  • the selected working mode is a single two-dimensional code recognition mode
  • the two-dimensional code in the image to be recognized is read by using a central key metering method, and the two-dimensional code region of the black and white is highlighted, and the two-dimensional code is not included. Background area blurring;
  • the selected working mode is a multi-dimensional code recognition mode
  • the two-dimensional code in the image to be recognized is read by an average metering method, and the two-dimensional code is specially preprocessed.
  • the special preprocessing of the two-dimensional code includes: detecting a brightness distribution of the image to be recognized that includes the two-dimensional code, and performing corresponding processing according to different brightness distributions.
  • the detecting the brightness distribution of the image to be recognized including the two-dimensional code, and performing corresponding processing according to different brightness distributions including:
  • all the extracted position detection patterns are classified into one set, and any three position detection patterns in the collection are arranged and combined to detect whether each permutation combination satisfies certain conditions.
  • the two-dimensional code region is determined according to the permutation combination satisfying the condition.
  • the detecting whether each permutation combination satisfies certain conditions includes:
  • the corresponding position detection pattern is taken as a center
  • the detection of the horizontal and vertical directions of the line filters out the arrangement of the position detection patterns that do not conform to the black and white hopping pattern.
  • the method further includes:
  • the pre-processing includes: filtering out noise that interferes with the decoding of the two-dimensional code, and correcting the two-dimensional code in the two-dimensional code position.
  • the two-dimensional code is a two-dimensional code displayed based on an LED array.
  • An embodiment of the present invention further provides a device for identifying a two-dimensional code, where the device includes: an acquisition module and an identification module;
  • the acquiring module is configured to collect an image to be recognized that includes a two-dimensional code of the illuminating display
  • the identification module is configured to extract a position detection pattern in the image to be identified, determine a two-dimensional code position in the image to be recognized according to the position detection pattern, and identify a two-dimensional position in the two-dimensional code position code.
  • the collection module is further configured to:
  • the collection module is further configured to:
  • the selected working mode is a single two-dimensional code recognition mode
  • the two-dimensional code in the image to be recognized is read by using a central key metering method, and the two-dimensional code region of the black and white is highlighted, and the two-dimensional code is not included. Background area blurring;
  • the selected working mode is a multi-dimensional code recognition mode
  • the average metering mode is used to read The two-dimensional code in the image to be identified, and special preprocessing of the two-dimensional code.
  • the collecting module is further configured to: detect a brightness distribution of the image to be recognized that includes the two-dimensional code, and perform corresponding processing according to different brightness distributions.
  • the collection module is further configured to:
  • all the extracted position detection patterns are classified into one set, and any three position detection patterns in the collection are arranged and combined to detect whether each permutation combination satisfies certain conditions.
  • the two-dimensional code region is determined according to the permutation combination satisfying the condition.
  • the collection module is further configured to:
  • the horizontal direction and the vertical direction are respectively detected around the corresponding position detection pattern, and the arrangement combination of the position detection patterns that do not conform to the black-and-white hopping rule is filtered out.
  • the device further includes:
  • a pre-processing module configured to pre-process the two-dimensional code in the two-dimensional code position after the identification module determines the two-dimensional code position in the image to be identified;
  • a decoding module configured to decode the two-dimensional code preprocessed by the preprocessing module to obtain corresponding information
  • the pre-processing includes: filtering out noise that interferes with the decoding of the two-dimensional code, and correcting the two-dimensional code in the two-dimensional code position.
  • the two-dimensional code is a two-dimensional code displayed based on an LED array.
  • An embodiment of the present invention further provides a device for identifying a two-dimensional code, including a camera, a processor, and a memory;
  • the camera is configured to collect an image to be recognized that includes a two-dimensional code of the illuminating display
  • the embodiment of the invention further provides a storage medium, which stores executable instructions for performing the method for identifying the two-dimensional code provided by the embodiment of the invention.
  • the method and device for identifying a two-dimensional code and the storage medium collect an image to be recognized that includes a two-dimensional code of the light-emitting display; and extract a position detection pattern in the image to be recognized, according to the position detection pattern Determining a two-dimensional code position in the image to be identified and identifying a two-dimensional code within the two-dimensional code position.
  • the position detection pattern is used for calibrating the two-dimensional code
  • the position of the two-dimensional code is located by identifying the position detection pattern in the image to be identified, and the acquisition of the two-dimensional code may be neglected, and the acquisition of the parameter may result in the determination of the two-dimensional code.
  • the problem of imaging failure is based on the position of the positioned two-dimensional code, which in turn can identify the two-dimensional code displayed based on the LED array.
  • 1 is a two-dimensional code image of an active light display of an LED array according to the present invention
  • FIG. 2 is a schematic flowchart of an implementation process of a method for identifying a two-dimensional code according to an embodiment of the present invention
  • FIG. 3 is a schematic flowchart of a system for implementing a method for identifying a two-dimensional code according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of a device for identifying a two-dimensional code according to an embodiment of the present invention.
  • Figure 1 shows the two-dimensional code image displayed by the LED array active illumination.
  • the aperture of a single LED bead will affect the adjacent LED, and the general LED array Insufficient intensity will result in a grainy display, and irregular stripes will occur due to the inconsistency between the refresh rate of the control LED and the exposure time of the shot.
  • the brightness of the LED array is generally higher in practical applications. Therefore, exposure with an ordinary camera is prone to overexposure.
  • the ordinary two-dimensional code recognition software such as WeChat sweep, simply borrows the camera in the mobile phone system application, and can not adjust the aperture, focal length and other parameters of the camera, so it will not be based on the actual light like the normal photo scene. Strong automatic adjustment of exposure mode, etc. In this way, the two-dimensional code area will be bright, and it is very likely that the two-dimensional code cannot be recognized. Therefore, how to quickly and accurately identify the two-dimensional code displayed by the LED array active illumination is an urgent problem to be solved.
  • the implementation process of the method for identifying a two-dimensional code in the embodiment of the present invention includes the following steps:
  • Step 201 Acquire an image to be identified that includes a two-dimensional code of the illuminating display
  • the two-dimensional code is a two-dimensional code displayed based on an LED array.
  • This step 201 specifically includes:
  • the scanning parameters include: aperture, focal length and exposure mode.
  • the selected working mode of identifying the two-dimensional code comprises: a single two-dimensional code recognition mode and a multi-dimensional code recognition mode; the user may pre-select the identification form in the two-dimensional code scanning application software according to actual application requirements.
  • the two-dimensional code also recognizes the multi-dimensional code to facilitate the second terminal to adjust the subsequent corresponding processing according to different working modes, that is, selecting the identification single-dimensional code, and subsequently identifying The processing of the single two-dimensional code; selecting and identifying the multi-dimensional code, and subsequently performing the process of identifying the multi-dimensional code.
  • the terminal displaying the two-dimensional code is the first terminal
  • the terminal identifying the two-dimensional code is the second terminal
  • the second terminal may be a wireless terminal or a wired terminal, wherein the wireless terminal may be provided to the user.
  • each LED lamp bead is separately modulated by a Field-Programmable Gate Array (FPGA) program, and a black and white module in a two-dimensional code characterized by different gray values can be obtained.
  • FPGA Field-Programmable Gate Array
  • the collecting the image to be identified by using the metering mode corresponding to the selected working mode specifically includes:
  • the two-dimensional code in the image to be recognized is read by using a central key metering method, and the two-dimensional code region of the black and white is highlighted, and two The background area other than the dimension code is blurred; thus, the black-and-white module that can not distinguish the two-dimensional code due to the brightness of the LED array being too high can be avoided, so that the whole image is presented as a black and white QR code on the black matrix.
  • the area is very convenient for the identification and reading of QR codes. In this case, there is almost no redundant information in the image, no complicated filtering calculation is required, and only basic pre-processing can be performed to accurately decode. Therefore, the method of reading the two-dimensional code has a relatively fast speed and accuracy.
  • the basic pre-processing includes filtering out noise that interferes with the decoding of the two-dimensional code, and correcting the two-dimensional code in the two-dimensional code position.
  • the selected working mode of identifying the two-dimensional code is a multi-dimensional code recognition mode, since the unipolar effect of brightness does not occur in the case of multiple two-dimensional codes, and the luminance distribution under illumination of a plurality of LED arrays tends to be averaged, The over-exposure phenomenon does not occur, so the two-dimensional code in the image to be recognized is read by the average metering method, and the two-dimensional code is specially preprocessed.
  • a plurality of different two-dimensional codes in the active lighting scene can be distinguished according to different brightness distributions of the two-dimensional code regions.
  • the performing the special pre-processing on the two-dimensional code includes: detecting a brightness distribution of the image to be recognized that includes the two-dimensional code, and performing corresponding processing according to different brightness distributions;
  • a plurality of two-dimensional code areas are sequentially determined according to the brightness level
  • all the extracted position detection patterns are classified into one set, and any three position detection patterns in the collection are arranged and combined to detect whether each permutation combination satisfies certain conditions.
  • the two-dimensional code region is determined according to the permutation combination satisfying the condition.
  • the certain condition of the satisfaction is that the black and white hopping rule is met.
  • the second terminal cannot identify the position detecting pattern in the image to be recognized, or incorrectly A pseudo position detection pattern similar to the position detection pattern is recognized, which in turn causes the positioning and recognition of the two-dimensional code to fail.
  • the pseudo position detection pattern may be generated due to factors such as shooting conditions, LED light intensity, and the like. Therefore, the extracted position detection pattern is filtered, that is, the position detection pattern that does not conform to the black and white hopping rule is filtered out.
  • the arrangement of the arrays plays an important role in accurately locating the position of the two-dimensional code in the image to be identified.
  • the detecting whether each permutation combination satisfies certain conditions includes: performing detection in a horizontal direction and a vertical direction respectively according to a black and white hopping rule of the two-dimensional code, and filtering out the non-conformity in the horizontal direction and the vertical direction respectively Arrangement and combination of position detection patterns of black and white hopping rules.
  • the brightness can usually be represented by the gradation, so that the entire image to be recognized can be roughly divided according to the brightness by using the gray image, and several regions in which the average brightness level is sequentially decreased can be obtained, that is, each block
  • the area corresponds to a two-dimensional code.
  • a weighted averaging method may be used to convert it into a grayscale image.
  • the RGB values of each gray image pixel point will also be extracted to represent the brightness signal. interest.
  • a quick response (QR, Quick Response) code is taken as an example, and any three corners of the four corners of the QR code are printed with a smaller word like "back".
  • the square pattern, the position detection pattern can be seen in Figure 1.
  • the three position detection patterns are patterns for positioning the decoding software, and satisfy the geometric positional relationship of a certain triangle.
  • the three position detection patterns of each QR code are respectively located at three vertices of the QR code to form an isosceles right angle. triangle.
  • the second terminal After obtaining the image to be identified through the finder frame, the second terminal searches for the position detection pattern in the image to be recognized according to the black and white hopping rule unique to the two-dimensional code, and the same as the existing two-dimensional code recognition method, the image can be detected by three positions. (such as the back of the QR code) to determine the edge and outline of the QR code.
  • the edge and contour of the two-dimensional code belongs to the prior art, and details are not described herein again.
  • the terminal with the camera function can be used to collect the image to be recognized that includes the two-dimensional code; the two-dimensional code scanning application software used can be selected according to the selection.
  • the recognition mode of the two-dimensional code access and call the second terminal, such as the bottom layer of the mobile phone camera, adjust parameters such as aperture, focal length, and change the exposure mode of the camera.
  • the bottom layer of the camera may be adjusted according to factors such as the spatial position relationship between the two-dimensional code displayed on the LED array and the camera in the second terminal, and the distance between the two-dimensional code and the camera in the second terminal.
  • Parameters and change the exposure mode of the camera are a prior art, and will not be described here.
  • Step 202 Extract a position detection pattern in the image to be identified, determine a two-dimensional code position in the image to be recognized according to the position detection pattern, and identify a two-dimensional code in the two-dimensional code position.
  • the method may further include: pre-processing the two-dimensional code in the two-dimensional code position, and The processed two-dimensional code is decoded to obtain corresponding information.
  • the pre-processing includes: filtering out noise that interferes with the decoding of the two-dimensional code, and correcting the two-dimensional code in the two-dimensional code position.
  • the histogram fit can be used to calculate the threshold and the large window median filter is used to reduce its effect.
  • the two-dimensional code can be corrected according to the Haval space transform.
  • FIG. 3 is a schematic flowchart showing an implementation of a specific method for identifying a two-dimensional code according to the present invention. As shown in FIG. 3, the embodiment includes the following steps:
  • Step 301 The user selects an operation mode for identifying the two-dimensional code
  • the two-dimensional code is a two-dimensional code based on an LED array display, wherein the LED array illumination display belongs to one type of active illumination display, which is different from most existing passive illumination displays, that is, on a surface of a generally non-emitting object. Paste the QR code.
  • Step 302 Determine the type of the selected working mode, if the selected working mode is a single two-dimensional code recognition mode, step 303 is performed, otherwise step 304 is performed;
  • the working mode of the selected two-dimensional code selected by the user is divided into two types: a single two-dimensional code recognition mode and a multi-dimensional code recognition mode; the user can pre-select in the two-dimensional code scanning application software according to actual application requirements. Whether to identify a single two-dimensional code, or to identify a multi-dimensional code, and then adjust the steps that need to be performed according to different recognition modes.
  • Step 303 reading the two-dimensional code in the image to be recognized by using the central key metering method, highlighting the black and white two-dimensional code region, and blurring the background region other than the two-dimensional code;
  • a two-dimensional code displayed by the LED array can be quickly identified, and the entire image is presented as a black and white two-dimensional code region on the black background without additional processing, which is very convenient. Identification and reading of the dimension code.
  • Step 304 Read the two-dimensional code in the image to be identified by using the average metering method, and compare the two The dimension code performs the preprocessing as in step 305;
  • Step 305 Detecting a brightness distribution of the image to be recognized that includes the two-dimensional code
  • a plurality of different two-dimensional codes in the active lighting scene can be distinguished according to different brightness distributions of the two-dimensional code regions.
  • Step 306 If the difference in brightness distribution of different two-dimensional code regions is large, step 307 is performed;
  • Step 307 sequentially determine a plurality of two-dimensional code regions according to the brightness level, and end the current processing flow;
  • Step 308 If the difference in the brightness distribution of the different two-dimensional code area is small, step 309 is performed;
  • Step 309 classify all the extracted position detection patterns into a set, and select and combine the three position detection patterns in the collection to detect whether each permutation combination satisfies certain conditions, and determine the two-dimensional code according to the permutation combination satisfying the conditions. region.
  • the detecting whether each permutation combination satisfies certain conditions includes:
  • the horizontal direction and the vertical direction are respectively detected around the corresponding position detection pattern, and the arrangement combination of the position detection patterns that do not conform to the black-and-white hopping rule is filtered out.
  • the certain condition of the satisfaction is a black and white hopping rule conforming to the two-dimensional code.
  • the embodiment of the invention provides a method for recognizing a two-dimensional code in an active illumination scenario, as in an application example in which a two-dimensional code is displayed by an LED array, image graininess caused by LED illumination effect and shooting time can be avoided.
  • the interference caused by the stripe phenomenon caused by the unsuitable exposure time, the application scenario of the two-dimensional code recognition technology is broadened, and the reading rate of the two-dimensional code in the complex scene is improved.
  • the embodiment of the present invention is based on Different brightness distributions in the image to be identified can also read a single two-dimensional code or multiple two-dimensional codes in different working modes, and adjust the image acquisition mode according to user requirements, which can speed up the reading speed of a single two-dimensional code, and The identification of multiple two-dimensional codes has higher reading efficiency.
  • an embodiment of the present invention further provides a device for identifying a two-dimensional code.
  • the device includes an acquisition module 41 and an identification module 42.
  • the acquiring module 41 is configured to collect an image to be recognized that includes a two-dimensional code of the illuminating display
  • the identification module 42 is configured to extract a position detection pattern in the image to be identified, determine a two-dimensional code position in the image to be recognized according to the position detection pattern, and identify two in the two-dimensional code position. Dimension code.
  • the two-dimensional code is a two-dimensional code displayed based on an LED array.
  • the apparatus further includes: a pre-processing module 43 configured to pre-process the two-dimensional code in the two-dimensional code position after the identification module 42 determines the two-dimensional code position in the image to be identified ;
  • the decoding module 44 is configured to decode the two-dimensional code preprocessed by the preprocessing module 43 to obtain corresponding information.
  • the pre-processing includes: filtering out noise that interferes with the decoding of the two-dimensional code, and correcting the two-dimensional code in the two-dimensional code position.
  • the collection module 41 is further configured to:
  • the collection module 41 is further configured to:
  • the selected working mode is a single two-dimensional code recognition mode
  • the two-dimensional code in the image to be recognized is read by using a central key metering method, and the two-dimensional code region of the black and white is highlighted, and the two-dimensional code is not included. Background area blurring;
  • the selected working mode is a multi-dimensional code recognition mode
  • the two-dimensional code in the image to be recognized is read by an average metering method, and the two-dimensional code is specially preprocessed.
  • the acquisition module 41 is further configured to: detect a brightness distribution of the image to be recognized that includes the two-dimensional code, and perform corresponding processing according to different brightness distributions.
  • a plurality of two-dimensional code areas are sequentially determined according to the brightness level
  • all the extracted position detection patterns are classified into one set, and any three position detection patterns in the collection are arranged and combined to detect whether each permutation combination satisfies certain conditions.
  • the two-dimensional code region is determined according to the permutation combination satisfying the condition.
  • the collection module 41 is further configured to:
  • the horizontal direction and the vertical direction are respectively detected around the corresponding position detection pattern, and the arrangement combination of the position detection patterns that do not conform to the black-and-white hopping rule is filtered out.
  • the acquisition module 41, the identification module 42, the pre-processing module 43, and the decoding module 44 may each be a central processing unit (CPU) located on a terminal displaying the two-dimensional code, and a microprocessor (MPU). , Micro Processor Unit), digital signal processor (DSP, Digital Signal Processor), or Field Programmable Gate Array (FPGA).
  • CPU central processing unit
  • MPU microprocessor
  • DSP digital signal processor
  • FPGA Field Programmable Gate Array
  • the embodiment of the present invention collects an image to be recognized that includes a two-dimensional code of the illuminating display; extracts a position detecting pattern in the image to be recognized, determines a position of the two-dimensional code in the image to be recognized according to the position detecting pattern, and identifies A two-dimensional code within the two-dimensional code position.
  • the two-dimensional code in the image to be recognized collected by using different metering methods is processed correspondingly, and the two-dimensional code displayed based on the LED array can be identified; optionally, the present invention
  • the embodiment of the invention can also adjust the subsequent corresponding processing for the working mode of the user-selected identification two-dimensional code, and use different processing methods to quickly and accurately identify the single or multiple two-dimensional codes displayed by the LED array, which has high recognition efficiency. , thereby improving user perception of use, and two-dimensional code recognition technology The development is of great significance.
  • An embodiment of the present invention discloses a method for recognizing a two-dimensional code, comprising: acquiring an image to be recognized that includes a two-dimensional code of a light-emitting display; extracting a position detection pattern in the image to be recognized, and determining, according to the position detection pattern, The two-dimensional code position in the identified image is referred to, and the two-dimensional code within the two-dimensional code position is identified.
  • the embodiment of the invention also discloses a two-dimensional code identification device and a storage medium.

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Electromagnetism (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Image Analysis (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Abstract

Disclosed in the present invention are a method of identifying a two-dimensional code, comprising: acquiring an image to be identified that contains a two-dimensional code on a light-emitting display; and extracting a position detection pattern from the image to be identified, determining, according to the position detection pattern, the location of the two-dimensional code in the image to be identified, and identifying the two-dimensional code at the location. Also disclosed in the present invention are a device and a storage medium for identifying a two-dimensional code.

Description

一种二维码的识别方法及装置、存储介质Method and device for identifying two-dimensional code and storage medium 技术领域Technical field

本发明涉及图像识别技术,尤其涉及一种二维码的识别方法及装置、存储介质。The present invention relates to image recognition technology, and in particular, to a method and device for identifying a two-dimensional code, and a storage medium.

背景技术Background technique

随着信息技术的高速发展,越来越多的不同信息媒介得到广泛应用,二维码(Two-dimensional code)作为一种简单、低成本、且传播方便的新型媒介,如今已在各式各样的工作和生活场景中随处可见。二维码,又称二维条码,是用特定的几何图形按一定规律在平面(二维方向)上分布的黑白相间的图形。此外,二维码的编码巧妙地利用了构成计算机内部逻辑基础的“0”、“1”比特流的概念,使用若干个与二进制相对应的几何形体来表示文字数值信息,通过图像输入设备或光电扫描设备等终端自动识读,以实现信息的自动处理。With the rapid development of information technology, more and more different information media are widely used. Two-dimensional code is a simple, low-cost, and convenient new medium. Kind of work and life scenes can be seen everywhere. A two-dimensional code, also known as a two-dimensional bar code, is a black and white graphic that is distributed in a plane (two-dimensional direction) according to a certain rule by a specific geometric figure. In addition, the encoding of the two-dimensional code subtly utilizes the concept of "0" and "1" bit streams constituting the internal logic of the computer, and uses several geometric shapes corresponding to binary to represent the literal numerical information through the image input device or The terminal such as the photoelectric scanning device automatically reads the information to realize automatic processing of information.

与一维码相比,二维码是一种更高级的条码格式。由于一维码只能在一个方向(一般为水平方向)上存储信息,而二维码在水平、垂直方向上都可以存储信息;一维码只能由数字和字母组成,而二维码可以存储汉字、数字和图片等信息,因此,二维码的应用领域要广得多,如:产品防伪/溯源、广告推送、网站链接、数据下载、定位/导航、电子凭证、车辆管理、信息传递等。A two-dimensional code is a more advanced bar code format than a one-dimensional code. Since the one-dimensional code can only store information in one direction (generally horizontal), the two-dimensional code can store information in both horizontal and vertical directions; the one-dimensional code can only be composed of numbers and letters, and the two-dimensional code can Store Chinese characters, numbers and pictures, so the application of QR codes is much broader, such as: product anti-counterfeiting / traceability, advertising push, website link, data download, positioning / navigation, electronic voucher, vehicle management, information transfer Wait.

通过对相关二维码识别技术的检索和调研发现:目前的二维码识别场景大多局限于被动发光的情况下,即在一般不发光物体表面上粘贴二维码,且二维码的识别方法虽然很多,但大体都是按照如下处理流程:图像灰度化、图像增强、图像滤波处理、光照不均处理、二值化、边缘检测、图像 定位、图像校正和畸变校正等。其中,图像灰度化是将拍摄的彩色图片转换为灰度化图像,该处理过程能够消除彩色图片中的色彩信息,减少后续处理的复杂度;图像滤波是二维码识别过程中非常重要的一个环节,能将获取图像过程中产生的高斯噪声、椒盐噪声等滤除,避免噪声对解码的影响,进而提高识别率;二值化即选取合适的阈值,将灰度化图像转变成只有“0”和“1”的二值化图像;图像校正是利用空间位置关系,将因拍摄角度不正等因素而干扰解码的图像纠正为水平的、易于解码的图像。Through the retrieval and investigation of the relevant two-dimensional code recognition technology, it is found that the current two-dimensional code recognition scene is mostly limited to the case of passive illumination, that is, the two-dimensional code is pasted on the surface of the generally non-lighting object, and the identification method of the two-dimensional code Although many, it is generally in accordance with the following processing flow: image graying, image enhancement, image filtering processing, uneven illumination processing, binarization, edge detection, image Positioning, image correction, and distortion correction. Among them, image graying is to convert the captured color picture into grayscale image, the process can eliminate the color information in the color picture and reduce the complexity of subsequent processing; image filtering is very important in the process of two-dimensional code recognition. A link can filter out Gaussian noise, salt and pepper noise generated during image acquisition, avoiding the influence of noise on decoding, and thus improve the recognition rate; binarization selects an appropriate threshold to convert the grayscale image into only " A binarized image of 0" and "1"; image correction is to use an spatial positional relationship to correct an image that interferes with decoding due to factors such as a wrong angle of shooting to a horizontal, easily decoded image.

通过上述处理流程,能够快速、且准确率较高地识别出现有一般的二维码,而对于如何识别主动发光情景下的二维码,目前尚未提出很好的解决方案。特别地,随着发光二极管(LED,Light Emitting Diode)作为新一代绿色光源的普及,LED凭借高亮度、低功耗、长寿命、快启动、无频闪、不容易产生视觉疲劳等优点,已逐渐取代传统的节能灯和白炽灯,成为最受关注和推崇的绿色照明技术。除此之外,由于LED还具有响应时间短和高速调制的特性,使其在照明的同时,还能应用于可见光通信和室内定位等。因此,基于LED阵列显示的二维码在很多场合都得到了应用。Through the above processing flow, a general two-dimensional code can be recognized quickly and accurately, and a good solution has not been proposed for how to identify the two-dimensional code in the active lighting scene. In particular, with the popularity of light-emitting diodes (LEDs) as a new generation of green light sources, LEDs have advantages such as high brightness, low power consumption, long life, fast start, no stroboscopic, and less prone to visual fatigue. Gradually replacing traditional energy-saving lamps and incandescent lamps, it has become the most popular and respected green lighting technology. In addition, since the LED also has the characteristics of short response time and high-speed modulation, it can be applied to visible light communication and indoor positioning while being illuminated. Therefore, the two-dimensional code based on the LED array display has been applied in many occasions.

但是,如何快速、准确地识别由LED阵列主动发光显示的二维码,尚无有效解决方案。However, there is no effective solution for quickly and accurately identifying the two-dimensional code that is actively illuminated by the LED array.

发明内容Summary of the invention

有鉴于此,本发明实施例期望提供一种二维码的识别方法及装置、存储介质,能够快速、准确地识别由LED阵列主动发光显示的二维码,提高读取二维码信息的效率,从而提升用户的使用感知。In view of this, the embodiment of the present invention is to provide a method and device for identifying a two-dimensional code and a storage medium, which can quickly and accurately identify a two-dimensional code that is actively illuminated by an LED array, and improve the efficiency of reading two-dimensional code information. , thereby improving the user's perception of use.

为达到上述目的,本发明实施例的技术方案是这样实现的:To achieve the above objective, the technical solution of the embodiment of the present invention is implemented as follows:

本发明实施例提供一种二维码的识别方法,所述方法包括:An embodiment of the present invention provides a method for identifying a two-dimensional code, where the method includes:

采集包含发光显示的二维码的待识别图像;Acquiring an image to be recognized containing a two-dimensional code of the illuminating display;

提取所述待识别图像中的位置探测图形,根据所述位置探测图形确定 所述待识别图像中的二维码位置,并识别所述二维码位置内的二维码。Extracting a position detection pattern in the image to be identified, and determining according to the position detection pattern The two-dimensional code position in the image to be identified, and identifying the two-dimensional code in the two-dimensional code position.

上述方案中,所述采集包含发光显示的二维码的待识别图像包括:In the above solution, the collecting the image to be recognized including the two-dimensional code of the illuminating display comprises:

选择识别二维码的工作模式;Select a working mode for identifying the two-dimensional code;

根据所述选择的工作模式访问并调用识别二维码的终端摄像头的底层,调整扫描参数,并采用所述选择的工作模式对应的测光方式采集所述待识别图像。Accessing and calling the bottom layer of the terminal camera identifying the two-dimensional code according to the selected working mode, adjusting the scanning parameter, and collecting the image to be recognized by using the metering mode corresponding to the selected working mode.

上述方案中,所述采用所述选择的工作模式对应的测光方式采集所述待识别图像,包括:In the above solution, the collecting the image to be identified by using the metering mode corresponding to the selected working mode includes:

所述选择的工作模式为单二维码识别模式时,采用中央重点测光方式读取所述待识别图像中的二维码,将黑白的二维码区域凸显,并将二维码以外的背景区域虚化;When the selected working mode is a single two-dimensional code recognition mode, the two-dimensional code in the image to be recognized is read by using a central key metering method, and the two-dimensional code region of the black and white is highlighted, and the two-dimensional code is not included. Background area blurring;

所述选择的工作模式为多二维码识别模式时,采用平均测光方式读取所述待识别图像中的二维码,并对所述二维码进行特殊预处理。When the selected working mode is a multi-dimensional code recognition mode, the two-dimensional code in the image to be recognized is read by an average metering method, and the two-dimensional code is specially preprocessed.

上述方案中,所述对所述二维码进行特殊预处理,包括:检测所述包含二维码的待识别图像的亮度分布,根据不同的亮度分布进行相应处理。In the above solution, the special preprocessing of the two-dimensional code includes: detecting a brightness distribution of the image to be recognized that includes the two-dimensional code, and performing corresponding processing according to different brightness distributions.

上述方案中,所述检测所述包含二维码的待识别图像的亮度分布,根据不同的亮度分布进行相应处理,包括:In the above solution, the detecting the brightness distribution of the image to be recognized including the two-dimensional code, and performing corresponding processing according to different brightness distributions, including:

若所述位置探测图形符合二维码的几何位置关系,且不同二维码区域的亮度分布有明显差异,则根据亮度等级依次确定多个二维码区域;If the position detection pattern conforms to the geometric positional relationship of the two-dimensional code, and the brightness distribution of the different two-dimensional code areas is significantly different, a plurality of two-dimensional code areas are sequentially determined according to the brightness level;

若不同二维码区域的亮度分布无明显差异,则将提取的所有位置探测图形归为一个集合,任取集合内的三个位置探测图形进行排列组合,检测每种排列组合是否满足一定条件,并根据满足条件的排列组合确定二维码区域。If there is no significant difference in the brightness distribution of different two-dimensional code regions, all the extracted position detection patterns are classified into one set, and any three position detection patterns in the collection are arranged and combined to detect whether each permutation combination satisfies certain conditions. The two-dimensional code region is determined according to the permutation combination satisfying the condition.

上述方案中,所述检测每种排列组合是否满足一定条件,包括:In the above solution, the detecting whether each permutation combination satisfies certain conditions includes:

根据所述二维码的黑白跳变规律,以相应位置探测图形为中心分别进 行水平方向和垂直方向的探测,过滤掉不符合黑白跳变规律的位置探测图形的排列组合。According to the black-and-white hopping rule of the two-dimensional code, the corresponding position detection pattern is taken as a center The detection of the horizontal and vertical directions of the line filters out the arrangement of the position detection patterns that do not conform to the black and white hopping pattern.

上述方案中,在所述确定所述待识别图像中的二维码位置之后,所述方法还包括:In the above solution, after the determining the location of the two-dimensional code in the image to be identified, the method further includes:

对所述二维码位置内的二维码进行预处理,将经过预处理后的二维码进行译码得到相应信息;Preprocessing the two-dimensional code in the two-dimensional code position, and decoding the pre-processed two-dimensional code to obtain corresponding information;

其中,所述预处理包括:滤除干扰二维码解码的噪声、以及对所述二维码位置内的二维码进行校正。The pre-processing includes: filtering out noise that interferes with the decoding of the two-dimensional code, and correcting the two-dimensional code in the two-dimensional code position.

上述方案中,所述二维码为基于LED阵列显示的二维码。In the above solution, the two-dimensional code is a two-dimensional code displayed based on an LED array.

本发明实施例还提供一种二维码的识别装置,所述装置包括:采集模块、识别模块;其中,An embodiment of the present invention further provides a device for identifying a two-dimensional code, where the device includes: an acquisition module and an identification module;

所述采集模块,配置为采集包含发光显示的二维码的待识别图像;The acquiring module is configured to collect an image to be recognized that includes a two-dimensional code of the illuminating display;

所述识别模块,配置为提取所述待识别图像中的位置探测图形,根据所述位置探测图形确定所述待识别图像中的二维码位置,并识别所述二维码位置内的二维码。The identification module is configured to extract a position detection pattern in the image to be identified, determine a two-dimensional code position in the image to be recognized according to the position detection pattern, and identify a two-dimensional position in the two-dimensional code position code.

上述方案中,所述采集模块还配置为:In the above solution, the collection module is further configured to:

选择识别二维码的工作模式;Select a working mode for identifying the two-dimensional code;

根据所述选择的工作模式访问并调用识别二维码的终端摄像头的底层,调整扫描参数,并采用所述选择的工作模式对应的测光方式采集所述待识别图像。Accessing and calling the bottom layer of the terminal camera identifying the two-dimensional code according to the selected working mode, adjusting the scanning parameter, and collecting the image to be recognized by using the metering mode corresponding to the selected working mode.

上述方案中,所述采集模块还配置为:In the above solution, the collection module is further configured to:

所述选择的工作模式为单二维码识别模式时,采用中央重点测光方式读取所述待识别图像中的二维码,将黑白的二维码区域凸显,并将二维码以外的背景区域虚化;When the selected working mode is a single two-dimensional code recognition mode, the two-dimensional code in the image to be recognized is read by using a central key metering method, and the two-dimensional code region of the black and white is highlighted, and the two-dimensional code is not included. Background area blurring;

所述选择的工作模式为多二维码识别模式时,采用平均测光方式读取 所述待识别图像中的二维码,并对所述二维码进行特殊预处理。When the selected working mode is a multi-dimensional code recognition mode, the average metering mode is used to read The two-dimensional code in the image to be identified, and special preprocessing of the two-dimensional code.

上述方案中,所述采集模块还配置为:检测所述包含二维码的待识别图像的亮度分布,根据不同的亮度分布进行相应处理。In the above solution, the collecting module is further configured to: detect a brightness distribution of the image to be recognized that includes the two-dimensional code, and perform corresponding processing according to different brightness distributions.

上述方案中,所述采集模块还配置为:In the above solution, the collection module is further configured to:

若所述位置探测图形符合二维码的几何位置关系,且不同二维码区域的亮度分布有明显差异,则根据亮度等级依次确定多个二维码区域;If the position detection pattern conforms to the geometric positional relationship of the two-dimensional code, and the brightness distribution of the different two-dimensional code areas is significantly different, a plurality of two-dimensional code areas are sequentially determined according to the brightness level;

若不同二维码区域的亮度分布无明显差异,则将提取的所有位置探测图形归为一个集合,任取集合内的三个位置探测图形进行排列组合,检测每种排列组合是否满足一定条件,并根据满足条件的排列组合确定二维码区域。If there is no significant difference in the brightness distribution of different two-dimensional code regions, all the extracted position detection patterns are classified into one set, and any three position detection patterns in the collection are arranged and combined to detect whether each permutation combination satisfies certain conditions. The two-dimensional code region is determined according to the permutation combination satisfying the condition.

上述方案中,所述采集模块还配置为:In the above solution, the collection module is further configured to:

根据所述二维码的黑白跳变规律,以相应位置探测图形为中心分别进行水平方向和垂直方向的探测,过滤掉不符合黑白跳变规律的位置探测图形的排列组合。According to the black-and-white hopping rule of the two-dimensional code, the horizontal direction and the vertical direction are respectively detected around the corresponding position detection pattern, and the arrangement combination of the position detection patterns that do not conform to the black-and-white hopping rule is filtered out.

上述方案中,所述装置还包括:In the above solution, the device further includes:

预处理模块,配置为在所述识别模块确定所述待识别图像中的二维码位置之后,对所述二维码位置内的二维码进行预处理;a pre-processing module, configured to pre-process the two-dimensional code in the two-dimensional code position after the identification module determines the two-dimensional code position in the image to be identified;

解码模块,配置为将经过所述预处理模块预处理后的二维码进行译码得到相应信息;a decoding module, configured to decode the two-dimensional code preprocessed by the preprocessing module to obtain corresponding information;

其中,所述预处理包括:滤除干扰二维码解码的噪声、以及对所述二维码位置内的二维码进行校正。The pre-processing includes: filtering out noise that interferes with the decoding of the two-dimensional code, and correcting the two-dimensional code in the two-dimensional code position.

上述方案中,所述二维码为基于LED阵列显示的二维码。In the above solution, the two-dimensional code is a two-dimensional code displayed based on an LED array.

本发明实施例还提供一种二维码的识别装置,包括摄像头、处理器和存储器;An embodiment of the present invention further provides a device for identifying a two-dimensional code, including a camera, a processor, and a memory;

所述摄像头,用于采集包含发光显示的二维码的待识别图像; The camera is configured to collect an image to be recognized that includes a two-dimensional code of the illuminating display;

所述存储器中存储有可执行指令,用于引起所述处理器执行以下的操作:提取所述待识别图像中的位置探测图形,根据所述位置探测图形确定所述待识别图像中的二维码位置,并识别所述二维码位置内的二维码。Storing executable instructions for causing the processor to perform an operation of: extracting a position detection pattern in the image to be identified, and determining a two-dimensional image in the image to be recognized according to the position detection pattern The code position and identifying the two-dimensional code within the two-dimensional code position.

本发明实施例还提供一种存储介质,存储有可执行指令,用于执行本发明实施例提供的二维码的识别方法。The embodiment of the invention further provides a storage medium, which stores executable instructions for performing the method for identifying the two-dimensional code provided by the embodiment of the invention.

本发明实施例所提供的二维码的识别方法及装置、存储介质,采集包含发光显示的二维码的待识别图像;提取所述待识别图像中的位置探测图形,根据所述位置探测图形确定所述待识别图像中的二维码位置,并识别所述二维码位置内的二维码。The method and device for identifying a two-dimensional code and the storage medium provided by the embodiment of the present invention collect an image to be recognized that includes a two-dimensional code of the light-emitting display; and extract a position detection pattern in the image to be recognized, according to the position detection pattern Determining a two-dimensional code position in the image to be identified and identifying a two-dimensional code within the two-dimensional code position.

由于的位置探测图形是用于标定二维码的,借由识别待识别图像中位置探测图形的方式定位二维码的位置,可以忽略采集二维码的图像时采集参数不当导致确定二维码成像失败的问题,基于定位的二维码的位置,进而能识别基于LED阵列显示的二维码。Since the position detection pattern is used for calibrating the two-dimensional code, the position of the two-dimensional code is located by identifying the position detection pattern in the image to be identified, and the acquisition of the two-dimensional code may be neglected, and the acquisition of the parameter may result in the determination of the two-dimensional code. The problem of imaging failure is based on the position of the positioned two-dimensional code, which in turn can identify the two-dimensional code displayed based on the LED array.

附图说明DRAWINGS

图1为本发明由LED阵列主动发光显示的二维码图像;1 is a two-dimensional code image of an active light display of an LED array according to the present invention;

图2为本发明实施例二维码的识别方法的实现流程示意图;2 is a schematic flowchart of an implementation process of a method for identifying a two-dimensional code according to an embodiment of the present invention;

图3为本发明实施例具体实现二维码的识别方法的系统流程示意图;3 is a schematic flowchart of a system for implementing a method for identifying a two-dimensional code according to an embodiment of the present invention;

图4为本发明实施例二维码的识别装置的组成结构示意图。FIG. 4 is a schematic structural diagram of a device for identifying a two-dimensional code according to an embodiment of the present invention.

具体实施方式detailed description

为了能够更加详尽地了解本发明实施例的特点与技术内容,下面结合附图对本发明实施例的实现进行详细阐述,所附附图仅供参考说明之用,并非用来限定本发明。The embodiments of the present invention are described in detail with reference to the accompanying drawings.

图1给出了由LED阵列主动发光显示的二维码图像,如图1所示,由于单个LED灯珠发光的光圈会影响到邻近的LED,且一般的LED阵列因 密集程度不够,会形成颗粒感的显示效果,以及因控制LED亮暗的刷新率与拍摄的曝光时间不协调,会产生不规则条纹。这些不利因素都会使利用普通二维码识别方法来识别主动发光情景下的二维码的难度加大,从而导致二维码的读取时间变长,或者无法正确读取该二维码。Figure 1 shows the two-dimensional code image displayed by the LED array active illumination. As shown in Figure 1, the aperture of a single LED bead will affect the adjacent LED, and the general LED array Insufficient intensity will result in a grainy display, and irregular stripes will occur due to the inconsistency between the refresh rate of the control LED and the exposure time of the shot. These unfavorable factors make it difficult to identify the two-dimensional code in the active lighting scene by using the ordinary two-dimensional code recognition method, thereby causing the reading time of the two-dimensional code to become longer, or the two-dimensional code cannot be correctly read.

同时,为了兼顾照明功能,LED阵列在实际应用中的亮度一般较高,因此,用普通摄像头进行曝光,很容易出现过曝现象。此外,普通的二维码识别软件如微信扫一扫,只是单纯的借用手机系统应用中的相机,并不能对摄像头的光圈、焦距等参数进行调整,所以不会像普通照相情景一样根据实际光强自动调节曝光模式等。这样,将会使得二维码区域一片亮光,很有可能无法识别读取该二维码。因此,如何快速、准确地识别由LED阵列主动发光显示的二维码,是亟待解决的问题。At the same time, in order to balance the lighting function, the brightness of the LED array is generally higher in practical applications. Therefore, exposure with an ordinary camera is prone to overexposure. In addition, the ordinary two-dimensional code recognition software, such as WeChat sweep, simply borrows the camera in the mobile phone system application, and can not adjust the aperture, focal length and other parameters of the camera, so it will not be based on the actual light like the normal photo scene. Strong automatic adjustment of exposure mode, etc. In this way, the two-dimensional code area will be bright, and it is very likely that the two-dimensional code cannot be recognized. Therefore, how to quickly and accurately identify the two-dimensional code displayed by the LED array active illumination is an urgent problem to be solved.

如图2所示,本发明实施例中二维码的识别方法的实现流程,包括以下步骤:As shown in FIG. 2, the implementation process of the method for identifying a two-dimensional code in the embodiment of the present invention includes the following steps:

步骤201:采集包含发光显示的二维码的待识别图像;Step 201: Acquire an image to be identified that includes a two-dimensional code of the illuminating display;

其中,所述二维码为基于LED阵列显示的二维码。Wherein, the two-dimensional code is a two-dimensional code displayed based on an LED array.

本步骤201具体包括:This step 201 specifically includes:

选择识别二维码的工作模式;Select a working mode for identifying the two-dimensional code;

根据所述选择的工作模式访问并调用识别二维码的终端摄像头的底层,调整扫描参数,并采用所述选择的工作模式对应的测光方式采集所述待识别图像。Accessing and calling the bottom layer of the terminal camera identifying the two-dimensional code according to the selected working mode, adjusting the scanning parameter, and collecting the image to be recognized by using the metering mode corresponding to the selected working mode.

其中,所述扫描参数包括:光圈、焦距和曝光方式。Wherein, the scanning parameters include: aperture, focal length and exposure mode.

这里,所述选择的识别二维码的工作模式包括:单二维码识别模式和多二维码识别模式;用户可根据实际应用需求,在二维码扫码应用软件中预先选择是识别单二维码,还是识别多二维码,以方便第二终端根据不同的工作模式调整后续相应处理,即:选择识别单二维码,后续就进行识别 单二维码的处理;选择识别多二维码,后续就进行识别多二维码的处理。Here, the selected working mode of identifying the two-dimensional code comprises: a single two-dimensional code recognition mode and a multi-dimensional code recognition mode; the user may pre-select the identification form in the two-dimensional code scanning application software according to actual application requirements. The two-dimensional code also recognizes the multi-dimensional code to facilitate the second terminal to adjust the subsequent corresponding processing according to different working modes, that is, selecting the identification single-dimensional code, and subsequently identifying The processing of the single two-dimensional code; selecting and identifying the multi-dimensional code, and subsequently performing the process of identifying the multi-dimensional code.

这里,显示二维码的终端为第一终端,识别二维码的终端为第二终端,所述第二终端既可以是无线终端,也可以是有线终端,其中,无线终端可以是指向用户提供语音和/或数据连通性的设备、具有无线连接功能的手持式设备、或连接到无线调制解调器的其它处理设备。Here, the terminal displaying the two-dimensional code is the first terminal, and the terminal identifying the two-dimensional code is the second terminal, and the second terminal may be a wireless terminal or a wired terminal, wherein the wireless terminal may be provided to the user. A device for voice and/or data connectivity, a handheld device with wireless connectivity, or other processing device connected to a wireless modem.

本发明实施例中,通过现场可编程门阵列(FPGA,Field-Programmable Gate Array)程序对每一个LED灯珠进行单独调制,可以得到用不同灰度值表征的二维码中的黑白模块。这里,具体如何对每一个LED灯珠进行单独调制属于现有技术,在此不再赘述。In the embodiment of the present invention, each LED lamp bead is separately modulated by a Field-Programmable Gate Array (FPGA) program, and a black and white module in a two-dimensional code characterized by different gray values can be obtained. Here, how to individually modulate each LED lamp bead belongs to the prior art, and details are not described herein again.

这里,所述采用所述选择的工作模式对应的测光方式采集所述待识别图像,具体包括:Here, the collecting the image to be identified by using the metering mode corresponding to the selected working mode, specifically includes:

若选择的识别二维码的工作模式为单二维码识别模式,则采用中央重点测光方式读取所述待识别图像中的二维码,将黑白的二维码区域凸显,并将二维码以外的背景区域虚化;这样,可以避免因LED阵列亮度太高而导致光晕模糊,无法分辨二维码的黑白模块,使得整个图像呈现为在黑底上有一块黑白的二维码区域,非常方便二维码的识别和读取。在这种情况下,图像中几乎没有多余信息,无需进行繁杂的滤波计算,只需经过基本的预处理即可准确解码。因此,该二维码的读取方法具有较快的速度及准确性。If the selected working mode of identifying the two-dimensional code is a single two-dimensional code recognition mode, the two-dimensional code in the image to be recognized is read by using a central key metering method, and the two-dimensional code region of the black and white is highlighted, and two The background area other than the dimension code is blurred; thus, the black-and-white module that can not distinguish the two-dimensional code due to the brightness of the LED array being too high can be avoided, so that the whole image is presented as a black and white QR code on the black matrix. The area is very convenient for the identification and reading of QR codes. In this case, there is almost no redundant information in the image, no complicated filtering calculation is required, and only basic pre-processing can be performed to accurately decode. Therefore, the method of reading the two-dimensional code has a relatively fast speed and accuracy.

其中,所述基本的预处理包括:滤除干扰二维码解码的噪声、以及对所述二维码位置内的二维码进行校正。The basic pre-processing includes filtering out noise that interferes with the decoding of the two-dimensional code, and correcting the two-dimensional code in the two-dimensional code position.

若选择的识别二维码的工作模式为多二维码识别模式,由于多个二维码的情况下不会出现亮度的单极效应,且多个LED阵列光照下的亮度分布趋向平均化,不会出现过曝现象,故采用平均测光方式读取所述待识别图像中的二维码,并对所述二维码进行特殊预处理。 If the selected working mode of identifying the two-dimensional code is a multi-dimensional code recognition mode, since the unipolar effect of brightness does not occur in the case of multiple two-dimensional codes, and the luminance distribution under illumination of a plurality of LED arrays tends to be averaged, The over-exposure phenomenon does not occur, so the two-dimensional code in the image to be recognized is read by the average metering method, and the two-dimensional code is specially preprocessed.

这里,可根据二维码区域的亮度分布不同,来区分主动发光情景下的多个不同的二维码。Here, a plurality of different two-dimensional codes in the active lighting scene can be distinguished according to different brightness distributions of the two-dimensional code regions.

其中,所述对所述二维码进行特殊预处理,包括:检测所述包含二维码的待识别图像的亮度分布,根据不同的亮度分布进行相应处理;The performing the special pre-processing on the two-dimensional code includes: detecting a brightness distribution of the image to be recognized that includes the two-dimensional code, and performing corresponding processing according to different brightness distributions;

例如,若所述位置探测图形符合二维码的几何位置关系,且不同二维码区域的亮度分布有明显差异,则根据亮度等级依次确定多个二维码区域;For example, if the position detection pattern conforms to the geometric positional relationship of the two-dimensional code, and the brightness distribution of the different two-dimensional code areas is significantly different, a plurality of two-dimensional code areas are sequentially determined according to the brightness level;

若不同二维码区域的亮度分布无明显差异,则将提取的所有位置探测图形归为一个集合,任取集合内的三个位置探测图形进行排列组合,检测每种排列组合是否满足一定条件,并根据满足条件的排列组合确定二维码区域。If there is no significant difference in the brightness distribution of different two-dimensional code regions, all the extracted position detection patterns are classified into one set, and any three position detection patterns in the collection are arranged and combined to detect whether each permutation combination satisfies certain conditions. The two-dimensional code region is determined according to the permutation combination satisfying the condition.

这里,所述满足的一定条件为符合黑白跳变规律,一旦在识别二维码时第一终端不能满足上述条件,第二终端便无法识别所述待识别图像中的位置探测图形,或者错误地识别出类似于位置探测图形的伪位置探测图形,进而导致二维码的定位和识别失败。其中,所述伪位置探测图形可能是由于拍摄条件、LED光强度等因素的限制产生的,因此,对提取到的位置探测图形进行过滤,即:过滤掉不符合黑白跳变规律的位置探测图形的排列组合,对所述待识别图像中的二维码的位置进行精确定位具有重要作用。Here, the certain condition of the satisfaction is that the black and white hopping rule is met. Once the first terminal cannot satisfy the above condition when the two-dimensional code is recognized, the second terminal cannot identify the position detecting pattern in the image to be recognized, or incorrectly A pseudo position detection pattern similar to the position detection pattern is recognized, which in turn causes the positioning and recognition of the two-dimensional code to fail. The pseudo position detection pattern may be generated due to factors such as shooting conditions, LED light intensity, and the like. Therefore, the extracted position detection pattern is filtered, that is, the position detection pattern that does not conform to the black and white hopping rule is filtered out. The arrangement of the arrays plays an important role in accurately locating the position of the two-dimensional code in the image to be identified.

例如,所述检测每种排列组合是否满足一定条件,包括:根据所述二维码的黑白跳变规律,以相应位置探测图形为中心,分别进行水平方向和垂直方向的探测,过滤掉不符合黑白跳变规律的位置探测图形的排列组合。For example, the detecting whether each permutation combination satisfies certain conditions includes: performing detection in a horizontal direction and a vertical direction respectively according to a black and white hopping rule of the two-dimensional code, and filtering out the non-conformity in the horizontal direction and the vertical direction respectively Arrangement and combination of position detection patterns of black and white hopping rules.

这里,在图像处理中,亮度通常可以由灰度来表示,故可以利用灰度图像对整个待识别图像根据亮度做大致的区域划分,可以得到平均亮度等级依次下降的几块区域,即每块区域对应一个二维码。其中,对待识别图像进行灰度化的过程中,可采用加权平均法,将其转变为灰度图像。另外,在灰度化的过程中,还将提取每个灰度图像像素点的RGB值来表征亮度信 息。Here, in the image processing, the brightness can usually be represented by the gradation, so that the entire image to be recognized can be roughly divided according to the brightness by using the gray image, and several regions in which the average brightness level is sequentially decreased can be obtained, that is, each block The area corresponds to a two-dimensional code. In the process of grading the image to be recognized, a weighted averaging method may be used to convert it into a grayscale image. In addition, in the process of graying, the RGB values of each gray image pixel point will also be extracted to represent the brightness signal. interest.

需要说明的是,在二维码中,以快速响应(QR,Quick Response)码为例,在QR码的四个角落中的任意三个角落中,印有较小的像“回”字的正方图案,即位置探测图形,在图1中可以看出。这三个位置探测图形是供解码软件定位用的图案,满足一定的三角形的几何位置关系,例如,每一个QR码的三个位置探测图形分别位于QR码的三个顶点上,构成等腰直角三角形。第二终端通过取景框获取待识别图像后,根据二维码特有的黑白跳变规律搜索待识别图像内的位置探测图形,与现有的二维码识别方法一样,即可由三个位置探测图形(如QR码的回字形)来确定二维码的边缘及轮廓。这里,具体是如何确定二维码的边缘及轮廓属于现有技术,在此不再赘述。It should be noted that in the two-dimensional code, a quick response (QR, Quick Response) code is taken as an example, and any three corners of the four corners of the QR code are printed with a smaller word like "back". The square pattern, the position detection pattern, can be seen in Figure 1. The three position detection patterns are patterns for positioning the decoding software, and satisfy the geometric positional relationship of a certain triangle. For example, the three position detection patterns of each QR code are respectively located at three vertices of the QR code to form an isosceles right angle. triangle. After obtaining the image to be identified through the finder frame, the second terminal searches for the position detection pattern in the image to be recognized according to the black and white hopping rule unique to the two-dimensional code, and the same as the existing two-dimensional code recognition method, the image can be detected by three positions. (such as the back of the QR code) to determine the edge and outline of the QR code. Here, in particular, how to determine the edge and contour of the two-dimensional code belongs to the prior art, and details are not described herein again.

这里,当用户需要通过第二终端识别二维码时,优选地,可使用带有摄像头功能的终端采集包含二维码的待识别图像;所采用的二维码扫码应用软件可依据选定的识别二维码的工作模式,访问并调用第二终端如手机摄像头的底层,对如光圈、焦距等参数进行调整,并更改摄像头的曝光方式。Here, when the user needs to recognize the two-dimensional code through the second terminal, preferably, the terminal with the camera function can be used to collect the image to be recognized that includes the two-dimensional code; the two-dimensional code scanning application software used can be selected according to the selection. The recognition mode of the two-dimensional code, access and call the second terminal, such as the bottom layer of the mobile phone camera, adjust parameters such as aperture, focal length, and change the exposure mode of the camera.

在实际应用中,具体可根据基于LED阵列显示的二维码与第二终端中摄像头的空间位置关系、以及该二维码与第二终端中摄像头之间的距离等因素,来调整摄像头的底层参数,并更改摄像头的曝光方式。这里,具体如何调整底层参数和更改曝光方式属于现有技术,在此不再赘述。In practical applications, the bottom layer of the camera may be adjusted according to factors such as the spatial position relationship between the two-dimensional code displayed on the LED array and the camera in the second terminal, and the distance between the two-dimensional code and the camera in the second terminal. Parameters and change the exposure mode of the camera. Here, how to adjust the underlying parameters and change the exposure mode is a prior art, and will not be described here.

步骤202:提取所述待识别图像中的位置探测图形,根据所述位置探测图形确定所述待识别图像中的二维码位置,并识别所述二维码位置内的二维码。Step 202: Extract a position detection pattern in the image to be identified, determine a two-dimensional code position in the image to be recognized according to the position detection pattern, and identify a two-dimensional code in the two-dimensional code position.

在步骤202中,在所述确定所述待识别图像中的二维码位置之后,所述方法还可以包括:对所述二维码位置内的二维码进行预处理,将经过预 处理后的二维码进行译码得到相应信息。In step 202, after the determining the location of the two-dimensional code in the image to be identified, the method may further include: pre-processing the two-dimensional code in the two-dimensional code position, and The processed two-dimensional code is decoded to obtain corresponding information.

其中,所述预处理包括:滤除干扰二维码解码的噪声、以及对所述二维码位置内的二维码进行校正。The pre-processing includes: filtering out noise that interferes with the decoding of the two-dimensional code, and correcting the two-dimensional code in the two-dimensional code position.

这里,考虑到LED显示屏光晕会形成边缘锯齿、以及由点阵屏所引起的颗粒感,可以采用直方图拟合计算阈值,并使用大窗口中值滤波来降低其影响。此外,还可以根据哈弗空间变换对二维码进行校正。这里,上述过程具体是如何实现的属于现有技术,在此不再赘述。Here, considering that the LED display halo will form edge sawtooth and the graininess caused by the dot matrix screen, the histogram fit can be used to calculate the threshold and the large window median filter is used to reduce its effect. In addition, the two-dimensional code can be corrected according to the Haval space transform. Here, the above-mentioned process is specifically implemented in the prior art, and details are not described herein again.

图3示出了本发明二维码的识别方法的具体实施例的实现流程示意,如图3所示,所述实施例包括下述步骤:FIG. 3 is a schematic flowchart showing an implementation of a specific method for identifying a two-dimensional code according to the present invention. As shown in FIG. 3, the embodiment includes the following steps:

步骤301:用户选择识别二维码的工作模式;Step 301: The user selects an operation mode for identifying the two-dimensional code;

这里,所述二维码为基于LED阵列显示的二维码,其中,LED阵列发光显示属于主动发光显示的一种,区别于现有大部分的被动发光显示,即在一般不发光物体表面上粘贴二维码。Here, the two-dimensional code is a two-dimensional code based on an LED array display, wherein the LED array illumination display belongs to one type of active illumination display, which is different from most existing passive illumination displays, that is, on a surface of a generally non-emitting object. Paste the QR code.

步骤302:判别所述选择的工作模式的类型,若所述选择的工作模式为单二维码识别模式,则执行步骤303,否则执行步骤304;Step 302: Determine the type of the selected working mode, if the selected working mode is a single two-dimensional code recognition mode, step 303 is performed, otherwise step 304 is performed;

这里,用户选择的识别二维码的工作模式分为两种类型:单二维码识别模式和多二维码识别模式;用户可根据实际应用需求,在二维码扫码应用软件中预先选择是识别单二维码,还是识别多二维码,然后根据不同的识别模式,调整后续需要执行的步骤。Here, the working mode of the selected two-dimensional code selected by the user is divided into two types: a single two-dimensional code recognition mode and a multi-dimensional code recognition mode; the user can pre-select in the two-dimensional code scanning application software according to actual application requirements. Whether to identify a single two-dimensional code, or to identify a multi-dimensional code, and then adjust the steps that need to be performed according to different recognition modes.

步骤303:采用中央重点测光方式读取待识别图像中的二维码,将黑白的二维码区域凸显,并将二维码以外的背景区域虚化;Step 303: reading the two-dimensional code in the image to be recognized by using the central key metering method, highlighting the black and white two-dimensional code region, and blurring the background region other than the two-dimensional code;

这里,采用该步骤303的方法,可以快速识别一个由LED阵列显示的二维码,不需要额外的处理过程就使得整个图像呈现为在黑底上有一块黑白的二维码区域,非常方便二维码的识别和读取。Here, using the method of step 303, a two-dimensional code displayed by the LED array can be quickly identified, and the entire image is presented as a black and white two-dimensional code region on the black background without additional processing, which is very convenient. Identification and reading of the dimension code.

步骤304:采用平均测光方式读取待识别图像中的二维码,并对所述二 维码进行如步骤305的预处理;Step 304: Read the two-dimensional code in the image to be identified by using the average metering method, and compare the two The dimension code performs the preprocessing as in step 305;

步骤305:检测包含二维码的待识别图像的亮度分布;Step 305: Detecting a brightness distribution of the image to be recognized that includes the two-dimensional code;

这里,可根据二维码区域的亮度分布不同,来区分主动发光情景下的多个不同的二维码。Here, a plurality of different two-dimensional codes in the active lighting scene can be distinguished according to different brightness distributions of the two-dimensional code regions.

步骤306:若不同二维码区域的亮度分布差异较大,则执行步骤307;Step 306: If the difference in brightness distribution of different two-dimensional code regions is large, step 307 is performed;

这里,需要一个前提条件,即所述不同二维码区域的位置探测图形均符合二维码的几何位置关系。Here, a precondition is required that the position detection patterns of the different two-dimensional code regions conform to the geometric positional relationship of the two-dimensional code.

步骤307:根据亮度等级依次确定多个二维码区域,结束本次处理流程;Step 307: sequentially determine a plurality of two-dimensional code regions according to the brightness level, and end the current processing flow;

步骤308:若不同二维码区域的亮度分布差异较小,则执行步骤309;Step 308: If the difference in the brightness distribution of the different two-dimensional code area is small, step 309 is performed;

步骤309:将提取的所有位置探测图形归为一个集合,任取集合内的三个位置探测图形进行排列组合,检测每种排列组合是否满足一定条件,并根据满足条件的排列组合确定二维码区域。Step 309: classify all the extracted position detection patterns into a set, and select and combine the three position detection patterns in the collection to detect whether each permutation combination satisfies certain conditions, and determine the two-dimensional code according to the permutation combination satisfying the conditions. region.

这里,所述检测每种排列组合是否满足一定条件,包括:Here, the detecting whether each permutation combination satisfies certain conditions includes:

根据所述二维码的黑白跳变规律,以相应位置探测图形为中心分别进行水平方向和垂直方向的探测,过滤掉不符合黑白跳变规律的位置探测图形的排列组合。According to the black-and-white hopping rule of the two-dimensional code, the horizontal direction and the vertical direction are respectively detected around the corresponding position detection pattern, and the arrangement combination of the position detection patterns that do not conform to the black-and-white hopping rule is filtered out.

其中,所述满足的一定条件为符合二维码的黑白跳变规律。Wherein, the certain condition of the satisfaction is a black and white hopping rule conforming to the two-dimensional code.

本发明实施例提出的是一种针对主动发光情景下的二维码识别方法,正如在由LED阵列显示二维码的应用实例中,能避免因LED光照效果导致的图像颗粒感、拍摄时因不合适的曝光时间引起的条纹现象等对解码造成的干扰,拓宽了二维码识别技术的应用场景,提高了二维码在复杂场景下的读取率;可选地,本发明实施例根据待识别图像中不同的亮度分布,还能以不同的工作模式读取单个二维码或多个二维码,根据用户需求调整图像获取方式,能加快单个二维码的读取速度,且对多二维码的识别有更高的读取效率。 The embodiment of the invention provides a method for recognizing a two-dimensional code in an active illumination scenario, as in an application example in which a two-dimensional code is displayed by an LED array, image graininess caused by LED illumination effect and shooting time can be avoided. The interference caused by the stripe phenomenon caused by the unsuitable exposure time, the application scenario of the two-dimensional code recognition technology is broadened, and the reading rate of the two-dimensional code in the complex scene is improved. Optionally, the embodiment of the present invention is based on Different brightness distributions in the image to be identified can also read a single two-dimensional code or multiple two-dimensional codes in different working modes, and adjust the image acquisition mode according to user requirements, which can speed up the reading speed of a single two-dimensional code, and The identification of multiple two-dimensional codes has higher reading efficiency.

为实现上述方法,本发明实施例还提供了一种二维码的识别装置,如图4所示,该装置包括采集模块41、识别模块42;其中,In order to achieve the above method, an embodiment of the present invention further provides a device for identifying a two-dimensional code. As shown in FIG. 4, the device includes an acquisition module 41 and an identification module 42.

所述采集模块41,配置为采集包含发光显示的二维码的待识别图像;The acquiring module 41 is configured to collect an image to be recognized that includes a two-dimensional code of the illuminating display;

所述识别模块42,配置为提取所述待识别图像中的位置探测图形,根据所述位置探测图形确定所述待识别图像中的二维码位置,并识别所述二维码位置内的二维码。The identification module 42 is configured to extract a position detection pattern in the image to be identified, determine a two-dimensional code position in the image to be recognized according to the position detection pattern, and identify two in the two-dimensional code position. Dimension code.

其中,所述二维码为基于LED阵列显示的二维码。Wherein, the two-dimensional code is a two-dimensional code displayed based on an LED array.

这里,所述装置还包括:预处理模块43,配置为在所述识别模块42确定所述待识别图像中的二维码位置之后,对所述二维码位置内的二维码进行预处理;Here, the apparatus further includes: a pre-processing module 43 configured to pre-process the two-dimensional code in the two-dimensional code position after the identification module 42 determines the two-dimensional code position in the image to be identified ;

解码模块44,配置为将经过所述预处理模块43预处理后的二维码进行译码得到相应信息。The decoding module 44 is configured to decode the two-dimensional code preprocessed by the preprocessing module 43 to obtain corresponding information.

其中,所述预处理包括:滤除干扰二维码解码的噪声、以及对所述二维码位置内的二维码进行校正。The pre-processing includes: filtering out noise that interferes with the decoding of the two-dimensional code, and correcting the two-dimensional code in the two-dimensional code position.

这里,所述采集模块41还配置为:Here, the collection module 41 is further configured to:

选择识别二维码的工作模式;Select a working mode for identifying the two-dimensional code;

根据所述选择的工作模式访问并调用识别二维码的终端摄像头的底层,调整扫描参数,并采用所述选择的工作模式对应的测光方式采集所述待识别图像。Accessing and calling the bottom layer of the terminal camera identifying the two-dimensional code according to the selected working mode, adjusting the scanning parameter, and collecting the image to be recognized by using the metering mode corresponding to the selected working mode.

其中,所述采集模块41还配置为:The collection module 41 is further configured to:

所述选择的工作模式为单二维码识别模式时,采用中央重点测光方式读取所述待识别图像中的二维码,将黑白的二维码区域凸显,并将二维码以外的背景区域虚化;When the selected working mode is a single two-dimensional code recognition mode, the two-dimensional code in the image to be recognized is read by using a central key metering method, and the two-dimensional code region of the black and white is highlighted, and the two-dimensional code is not included. Background area blurring;

所述选择的工作模式为多二维码识别模式时,采用平均测光方式读取所述待识别图像中的二维码,并对所述二维码进行特殊预处理。 When the selected working mode is a multi-dimensional code recognition mode, the two-dimensional code in the image to be recognized is read by an average metering method, and the two-dimensional code is specially preprocessed.

这里,所述采集模块41还配置为:检测所述包含二维码的待识别图像的亮度分布,根据不同的亮度分布进行相应处理。Here, the acquisition module 41 is further configured to: detect a brightness distribution of the image to be recognized that includes the two-dimensional code, and perform corresponding processing according to different brightness distributions.

例如,若所述位置探测图形符合二维码的几何位置关系,且不同二维码区域的亮度分布有明显差异,则根据亮度等级依次确定多个二维码区域;For example, if the position detection pattern conforms to the geometric positional relationship of the two-dimensional code, and the brightness distribution of the different two-dimensional code areas is significantly different, a plurality of two-dimensional code areas are sequentially determined according to the brightness level;

若不同二维码区域的亮度分布无明显差异,则将提取的所有位置探测图形归为一个集合,任取集合内的三个位置探测图形进行排列组合,检测每种排列组合是否满足一定条件,并根据满足条件的排列组合确定二维码区域。If there is no significant difference in the brightness distribution of different two-dimensional code regions, all the extracted position detection patterns are classified into one set, and any three position detection patterns in the collection are arranged and combined to detect whether each permutation combination satisfies certain conditions. The two-dimensional code region is determined according to the permutation combination satisfying the condition.

其中,所述采集模块41还配置为:The collection module 41 is further configured to:

根据所述二维码的黑白跳变规律,以相应位置探测图形为中心分别进行水平方向和垂直方向的探测,过滤掉不符合黑白跳变规律的位置探测图形的排列组合。According to the black-and-white hopping rule of the two-dimensional code, the horizontal direction and the vertical direction are respectively detected around the corresponding position detection pattern, and the arrangement combination of the position detection patterns that do not conform to the black-and-white hopping rule is filtered out.

在实际应用中,所述采集模块41、识别模块42、预处理模块43、解码模块44均可由位于显示二维码的终端上的中央处理器(CPU,Central Processing Unit)、微处理器(MPU,Micro Processor Unit)、数字信号处理器(DSP,Digital Signal Processor)、或现场可编程门阵列(FPGA,Field Programmable Gate Array)等实现。In an actual application, the acquisition module 41, the identification module 42, the pre-processing module 43, and the decoding module 44 may each be a central processing unit (CPU) located on a terminal displaying the two-dimensional code, and a microprocessor (MPU). , Micro Processor Unit), digital signal processor (DSP, Digital Signal Processor), or Field Programmable Gate Array (FPGA).

本发明实施例采集包含发光显示的二维码的待识别图像;提取所述待识别图像中的位置探测图形,根据所述位置探测图形确定所述待识别图像中的二维码位置,并识别所述二维码位置内的二维码。如此,根据不同二维码区域的平均亮度的差异,对采用不同测光方式采集的待识别图像中的二维码进行相应处理,能识别基于LED阵列显示的二维码;可选地,本发明实施例还能针对用户选择的识别二维码的工作模式调整后续相应处理,利用不同的处理方式快速、准确地识别单个或多个由LED阵列显示的二维码,具有较高的识别效率,从而提升用户的使用感知,对二维码识别技术 的发展具有重要意义。The embodiment of the present invention collects an image to be recognized that includes a two-dimensional code of the illuminating display; extracts a position detecting pattern in the image to be recognized, determines a position of the two-dimensional code in the image to be recognized according to the position detecting pattern, and identifies A two-dimensional code within the two-dimensional code position. In this way, according to the difference of the average brightness of different two-dimensional code regions, the two-dimensional code in the image to be recognized collected by using different metering methods is processed correspondingly, and the two-dimensional code displayed based on the LED array can be identified; optionally, the present invention The embodiment of the invention can also adjust the subsequent corresponding processing for the working mode of the user-selected identification two-dimensional code, and use different processing methods to quickly and accurately identify the single or multiple two-dimensional codes displayed by the LED array, which has high recognition efficiency. , thereby improving user perception of use, and two-dimensional code recognition technology The development is of great significance.

以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above is only the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in Within the scope of protection of the present invention.

工业实用性Industrial applicability

本发明实施例公开了一种二维码的识别方法,包括:采集包含发光显示的二维码的待识别图像;提取所述待识别图像中的位置探测图形,根据所述位置探测图形确定所述待识别图像中的二维码位置,并识别所述二维码位置内的二维码。本发明实施例还同时公开了一种二维码的识别装置和存储介质。实施本发明,能够快速、准确地识别由LED阵列主动发光显示的二维码。 An embodiment of the present invention discloses a method for recognizing a two-dimensional code, comprising: acquiring an image to be recognized that includes a two-dimensional code of a light-emitting display; extracting a position detection pattern in the image to be recognized, and determining, according to the position detection pattern, The two-dimensional code position in the identified image is referred to, and the two-dimensional code within the two-dimensional code position is identified. The embodiment of the invention also discloses a two-dimensional code identification device and a storage medium. By implementing the present invention, it is possible to quickly and accurately identify a two-dimensional code that is actively illuminated by an LED array.

Claims (18)

一种二维码的识别方法,所述方法包括:A method for identifying a two-dimensional code, the method comprising: 采集包含发光显示的二维码的待识别图像;Acquiring an image to be recognized containing a two-dimensional code of the illuminating display; 提取所述待识别图像中的位置探测图形,根据所述位置探测图形确定所述待识别图像中的二维码位置,并识别所述二维码位置内的二维码。Extracting a position detection pattern in the image to be identified, determining a two-dimensional code position in the image to be recognized according to the position detection pattern, and identifying a two-dimensional code in the two-dimensional code position. 根据权利要求1所述的方法,其中,所述采集包含发光显示的二维码的待识别图像包括:The method of claim 1, wherein the acquiring the image to be recognized comprising the two-dimensional code of the illuminating display comprises: 选择识别二维码的工作模式;Select a working mode for identifying the two-dimensional code; 根据所述选择的工作模式访问并调用识别二维码的终端摄像头的底层,调整扫描参数,并采用所述选择的工作模式对应的测光方式采集所述待识别图像。Accessing and calling the bottom layer of the terminal camera identifying the two-dimensional code according to the selected working mode, adjusting the scanning parameter, and collecting the image to be recognized by using the metering mode corresponding to the selected working mode. 根据权利要求2所述的方法,其中,所述采用所述选择的工作模式对应的测光方式采集所述待识别图像,包括:The method according to claim 2, wherein the collecting the image to be recognized by using the photometry corresponding to the selected working mode comprises: 所述选择的工作模式为单二维码识别模式时,采用中央重点测光方式读取所述待识别图像中的二维码,将黑白的二维码区域凸显,并将二维码以外的背景区域虚化;When the selected working mode is a single two-dimensional code recognition mode, the two-dimensional code in the image to be recognized is read by using a central key metering method, and the two-dimensional code region of the black and white is highlighted, and the two-dimensional code is not included. Background area blurring; 所述选择的工作模式为多二维码识别模式时,采用平均测光方式读取所述待识别图像中的二维码,并对所述二维码进行特殊预处理。When the selected working mode is a multi-dimensional code recognition mode, the two-dimensional code in the image to be recognized is read by an average metering method, and the two-dimensional code is specially preprocessed. 根据权利要求3所述的方法,其中,所述对所述二维码进行特殊预处理,包括:检测所述包含二维码的待识别图像的亮度分布,根据不同的亮度分布进行相应处理。The method according to claim 3, wherein said performing special pre-processing on said two-dimensional code comprises: detecting a brightness distribution of said image to be recognized containing said two-dimensional code, and performing corresponding processing according to different brightness distributions. 根据权利要求4所述的方法,其中,所述检测所述包含二维码的待识别图像的亮度分布,根据不同的亮度分布进行相应处理,包括:The method according to claim 4, wherein the detecting the brightness distribution of the image to be recognized containing the two-dimensional code and performing corresponding processing according to different brightness distributions comprises: 若所述位置探测图形符合二维码的几何位置关系,且不同二维码区域的亮度分布有明显差异,则根据亮度等级依次确定多个二维码区域; If the position detection pattern conforms to the geometric positional relationship of the two-dimensional code, and the brightness distribution of the different two-dimensional code areas is significantly different, a plurality of two-dimensional code areas are sequentially determined according to the brightness level; 若不同二维码区域的亮度分布无明显差异,则将提取的所有位置探测图形归为一个集合,任取集合内的三个位置探测图形进行排列组合,检测每种排列组合是否满足一定条件,并根据满足条件的排列组合确定二维码区域。If there is no significant difference in the brightness distribution of different two-dimensional code regions, all the extracted position detection patterns are classified into one set, and any three position detection patterns in the collection are arranged and combined to detect whether each permutation combination satisfies certain conditions. The two-dimensional code region is determined according to the permutation combination satisfying the condition. 根据权利要求5所述的方法,其中,所述检测每种排列组合是否满足一定条件,包括:The method according to claim 5, wherein said detecting whether each permutation combination satisfies certain conditions includes: 根据所述二维码的黑白跳变规律,以相应位置探测图形为中心分别进行水平方向和垂直方向的探测,过滤掉不符合黑白跳变规律的位置探测图形的排列组合。According to the black-and-white hopping rule of the two-dimensional code, the horizontal direction and the vertical direction are respectively detected around the corresponding position detection pattern, and the arrangement combination of the position detection patterns that do not conform to the black-and-white hopping rule is filtered out. 根据权利要求1所述的方法,其中,在所述确定所述待识别图像中的二维码位置之后,所述方法还包括:The method of claim 1, wherein after the determining the location of the two-dimensional code in the image to be identified, the method further comprises: 对所述二维码位置内的二维码进行预处理,将经过预处理后的二维码进行译码得到相应信息;Preprocessing the two-dimensional code in the two-dimensional code position, and decoding the pre-processed two-dimensional code to obtain corresponding information; 其中,所述预处理包括:滤除干扰二维码解码的噪声、以及对所述二维码位置内的二维码进行校正。The pre-processing includes: filtering out noise that interferes with the decoding of the two-dimensional code, and correcting the two-dimensional code in the two-dimensional code position. 根据权利要求1至7任一项所述的方法,其中,所述二维码为基于发光二极管LED阵列显示的二维码。The method according to any one of claims 1 to 7, wherein the two-dimensional code is a two-dimensional code displayed based on an LED array of light-emitting diodes. 一种二维码的识别装置,所述装置包括:采集模块和识别模块;其中,A device for identifying a two-dimensional code, the device comprising: an acquisition module and an identification module; wherein 所述采集模块,配置为采集包含发光显示的二维码的待识别图像;The acquiring module is configured to collect an image to be recognized that includes a two-dimensional code of the illuminating display; 所述识别模块,配置为提取所述待识别图像中的位置探测图形,根据所述位置探测图形确定所述待识别图像中的二维码位置,并识别所述二维码位置内的二维码。The identification module is configured to extract a position detection pattern in the image to be identified, determine a two-dimensional code position in the image to be recognized according to the position detection pattern, and identify a two-dimensional position in the two-dimensional code position code. 根据权利要求9所述的装置,其中,The apparatus according to claim 9, wherein 所述采集模块,还配置为选择识别二维码的工作模式;根据所述选择 的工作模式访问并调用识别二维码的终端摄像头的底层,调整扫描参数,并采用所述选择的工作模式对应的测光方式采集所述待识别图像。The collection module is further configured to select an operation mode for identifying the two-dimensional code; according to the selection The working mode accesses and calls the bottom layer of the terminal camera that identifies the two-dimensional code, adjusts the scanning parameters, and collects the image to be recognized by using the metering mode corresponding to the selected working mode. 根据权利要求10所述的装置,其中,The device according to claim 10, wherein 所述采集模块,还配置为所述选择的工作模式为单二维码识别模式时,采用中央重点测光方式读取所述待识别图像中的二维码,将黑白的二维码区域凸显,并将二维码以外的背景区域虚化;The collecting module is further configured to read the two-dimensional code in the image to be recognized by using a central key metering mode when the selected working mode is a single two-dimensional code recognition mode, and highlight the two-dimensional code area of the black and white And blurring the background area other than the QR code; 所述采集模块,还配置为所述选择的工作模式为多二维码识别模式时,采用平均测光方式读取所述待识别图像中的二维码,并对所述二维码进行特殊预处理。The collecting module is further configured to: when the selected working mode is a multi-dimensional code recognition mode, read the two-dimensional code in the image to be recognized by using an average metering mode, and perform special on the two-dimensional code Pretreatment. 根据权利要求11所述的装置,其中,所述采集模块,还配置为检测所述包含二维码的待识别图像的亮度分布,根据不同的亮度分布进行相应处理。The apparatus according to claim 11, wherein the acquisition module is further configured to detect a brightness distribution of the image to be recognized including the two-dimensional code, and perform corresponding processing according to different brightness distributions. 根据权利要求12所述的装置,其中,The device according to claim 12, wherein 所述采集模块,还配置为若所述位置探测图形符合二维码的几何位置关系,且不同二维码区域的亮度分布有明显差异,则根据亮度等级依次确定多个二维码区域;The acquiring module is further configured to: if the position detecting pattern meets the geometric positional relationship of the two-dimensional code, and the brightness distribution of the different two-dimensional code areas is significantly different, determining a plurality of two-dimensional code areas according to the brightness level; 所述采集模块,还配置为若不同二维码区域的亮度分布无明显差异,则将提取的所有位置探测图形归为一个集合,任取集合内的三个位置探测图形进行排列组合,检测每种排列组合是否满足一定条件,并根据满足条件的排列组合确定二维码区域。The collecting module is further configured to classify all the extracted position detection images into one set if the brightness distribution of the different two-dimensional code areas is not significantly different, and arrange and combine the three position detection patterns in the collection, and detect each Whether the combination of the arrays satisfies certain conditions, and determines the two-dimensional code region according to the arrangement and combination of the satisfied conditions. 根据权利要求13所述的装置,其中,The device according to claim 13, wherein 所述采集模块,还配置为根据所述二维码的黑白跳变规律,以相应位置探测图形为中心分别进行水平方向和垂直方向的探测,过滤掉不符合黑白跳变规律的位置探测图形的排列组合。The acquiring module is further configured to detect the horizontal direction and the vertical direction respectively according to the black and white hopping rule of the two-dimensional code, and filter the position detecting patterns that do not conform to the black and white hopping rule. Permutations. 根据权利要求9所述的装置,其中,所述装置还包括: The apparatus of claim 9 wherein said apparatus further comprises: 预处理模块,配置为在所述识别模块确定所述待识别图像中的二维码位置之后,对所述二维码位置内的二维码进行预处理;a pre-processing module, configured to pre-process the two-dimensional code in the two-dimensional code position after the identification module determines the two-dimensional code position in the image to be identified; 解码模块,配置为将经过所述预处理模块预处理后的二维码进行译码得到相应信息;a decoding module, configured to decode the two-dimensional code preprocessed by the preprocessing module to obtain corresponding information; 其中,所述预处理包括:滤除干扰二维码解码的噪声、以及对所述二维码位置内的二维码进行校正。The pre-processing includes: filtering out noise that interferes with the decoding of the two-dimensional code, and correcting the two-dimensional code in the two-dimensional code position. 根据权利要求9至15任一项所述的装置,其中,所述二维码为基于LED阵列显示的二维码。The apparatus according to any one of claims 9 to 15, wherein the two-dimensional code is a two-dimensional code displayed based on an LED array. 一种二维码的识别装置,包括摄像头、处理器和存储器;A two-dimensional code recognition device, comprising a camera, a processor and a memory; 所述摄像头,用于采集包含发光显示的二维码的待识别图像;The camera is configured to collect an image to be recognized that includes a two-dimensional code of the illuminating display; 所述存储器中存储有可执行指令,用于引起所述处理器执行以下的操作:提取所述待识别图像中的位置探测图形,根据所述位置探测图形确定所述待识别图像中的二维码位置,并识别所述二维码位置内的二维码。Storing executable instructions for causing the processor to perform an operation of: extracting a position detection pattern in the image to be identified, and determining a two-dimensional image in the image to be recognized according to the position detection pattern The code position and identifying the two-dimensional code within the two-dimensional code position. 一种存储介质,存储有可执行指令,用于执行权利要求1至8任一项所述的二维码的识别方法。 A storage medium storing executable instructions for performing the method of identifying a two-dimensional code according to any one of claims 1 to 8.
PCT/CN2016/105732 2016-03-15 2016-11-14 Method, device, and storage medium for identifying two-dimensional code Ceased WO2017157034A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610145981.8A CN107194301A (en) 2016-03-15 2016-03-15 A kind of recognition methods of Quick Response Code and device
CN201610145981.8 2016-03-15

Publications (1)

Publication Number Publication Date
WO2017157034A1 true WO2017157034A1 (en) 2017-09-21

Family

ID=59851906

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/105732 Ceased WO2017157034A1 (en) 2016-03-15 2016-11-14 Method, device, and storage medium for identifying two-dimensional code

Country Status (2)

Country Link
CN (1) CN107194301A (en)
WO (1) WO2017157034A1 (en)

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109902527A (en) * 2019-02-26 2019-06-18 凌云光技术集团有限责任公司 A kind of QR code automatically identifying and reading method and apparatus
CN109977714A (en) * 2019-01-04 2019-07-05 上海大学 A kind of integrated vision positioning method of the more QR codes of warehoused cargo
CN110263596A (en) * 2019-06-25 2019-09-20 北京慧眼智行科技有限公司 A kind of two dimensional code detection system and method
CN110399956A (en) * 2019-07-31 2019-11-01 中国工商银行股份有限公司 The method, apparatus of two dimensional code, electronic equipment and medium for identification
CN110427794A (en) * 2019-07-31 2019-11-08 中国工商银行股份有限公司 The method, apparatus of two dimensional code, electronic equipment and medium for identification
CN111091016A (en) * 2018-10-23 2020-05-01 北京鼎九信息工程研究院有限公司 A kind of Dingjiu code reading method, device and mobile terminal
CN112016339A (en) * 2020-08-18 2020-12-01 中移(杭州)信息技术有限公司 Two-dimensional code identification and defect repair method, device, electronic device and storage medium
CN112055010A (en) * 2020-08-31 2020-12-08 中国平安财产保险股份有限公司 Two-dimensional code picture intercepting method and device, electronic equipment and storage medium
CN112417918A (en) * 2020-11-13 2021-02-26 珠海格力电器股份有限公司 Two-dimensional code identification method and device, storage medium and electronic equipment
CN112580383A (en) * 2020-12-29 2021-03-30 科大讯飞(苏州)科技有限公司 Two-dimensional code identification method and device, electronic equipment and storage medium
CN112906421A (en) * 2021-04-08 2021-06-04 苏州华兴源创科技股份有限公司 Product two-dimensional code identification method
CN113312930A (en) * 2020-02-27 2021-08-27 特斯科(上海)机电测试技术有限公司 Method for reading two-dimensional code by using COGNEX camera on turbocharger cold test bench
CN113537420A (en) * 2021-06-10 2021-10-22 西安图迹信息科技有限公司 Two-dimensional code inspection method based on big data
CN113792564A (en) * 2021-09-29 2021-12-14 北京航空航天大学 Indoor positioning method based on invisible projection two-dimensional code
CN114186575A (en) * 2021-12-16 2022-03-15 北京声智科技有限公司 Image code processing method, device, equipment and storage medium
CN114254666A (en) * 2021-09-23 2022-03-29 中国烟草总公司天津市公司物流中心 Visual code reading equipment and two-dimensional code identification method
CN114742787A (en) * 2022-04-02 2022-07-12 中山大学 A new type of rapid detection method and system for two-dimensional code
CN114754810A (en) * 2021-01-08 2022-07-15 中国石油天然气集团有限公司 System for acquiring anti-corrosion joint coating data
CN115719374A (en) * 2022-11-24 2023-02-28 凌云光技术股份有限公司 A two-dimensional code detection method and system
CN119313736A (en) * 2024-10-12 2025-01-14 深圳市满亿光电有限公司 Visual positioning system and method for alignment and assembly of display screen modules

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108062579B (en) * 2018-02-08 2024-07-05 科大讯飞股份有限公司 Two-dimensional code module and equipment with two-dimensional code
WO2020057583A1 (en) * 2018-09-20 2020-03-26 Gmkw Technology Wuxi Co., Ltd. Luminescent symbol and method for fixing luminescent symbol to tangible object
CN111488751A (en) * 2019-01-29 2020-08-04 北京骑胜科技有限公司 Two-dimensional code image processing method and device, electronic equipment and storage medium
JP6790185B1 (en) * 2019-06-28 2020-11-25 キヤノン株式会社 Display control devices, display control methods, programs, systems, and recording devices
CN110475079A (en) * 2019-09-10 2019-11-19 上海快仓智能科技有限公司 A kind of image exposure luminance regulating method, system and associated component
CN112508145B (en) * 2020-12-16 2023-05-23 平安银行股份有限公司 Electronic seal generation and verification method and device, electronic equipment and storage medium
CN117744683A (en) * 2021-04-01 2024-03-22 支付宝(杭州)信息技术有限公司 Two-dimensional code identification method, device and equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103699869A (en) * 2013-12-30 2014-04-02 优视科技有限公司 Method and device for recognizing two-dimension codes
CN103714313A (en) * 2013-12-30 2014-04-09 优视科技有限公司 Two-dimension code recognizing method and device
CN204010630U (en) * 2014-07-08 2014-12-10 顾宗 A kind of LED screen of energy two-dimensional code display
CN104268498A (en) * 2014-09-29 2015-01-07 杭州华为数字技术有限公司 Two-dimension code recognition method and terminal

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100553315C (en) * 2002-07-11 2009-10-21 精工爱普生株式会社 Output image adjustment of image data
JP4306752B2 (en) * 2007-03-19 2009-08-05 ソニー株式会社 Imaging device, photometry method, luminance calculation method, program
CN102043975B (en) * 2009-10-16 2013-03-06 致伸科技股份有限公司 QR code processing method and related device
US9483677B2 (en) * 2010-09-20 2016-11-01 Hid Global Corporation Machine-readable symbols
CN103400099B (en) * 2013-07-29 2016-06-08 宇龙计算机通信科技(深圳)有限公司 Terminal and two-dimensional code identification method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103699869A (en) * 2013-12-30 2014-04-02 优视科技有限公司 Method and device for recognizing two-dimension codes
CN103714313A (en) * 2013-12-30 2014-04-09 优视科技有限公司 Two-dimension code recognizing method and device
CN204010630U (en) * 2014-07-08 2014-12-10 顾宗 A kind of LED screen of energy two-dimensional code display
CN104268498A (en) * 2014-09-29 2015-01-07 杭州华为数字技术有限公司 Two-dimension code recognition method and terminal

Cited By (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111091016B (en) * 2018-10-23 2023-06-16 北京鼎九信息工程研究院有限公司 A Dingjiu code reading method, device and mobile terminal
CN111091016A (en) * 2018-10-23 2020-05-01 北京鼎九信息工程研究院有限公司 A kind of Dingjiu code reading method, device and mobile terminal
CN109977714A (en) * 2019-01-04 2019-07-05 上海大学 A kind of integrated vision positioning method of the more QR codes of warehoused cargo
CN109977714B (en) * 2019-01-04 2022-06-10 上海大学 A multi-QR code integrated visual positioning method for warehouse goods
CN109902527A (en) * 2019-02-26 2019-06-18 凌云光技术集团有限责任公司 A kind of QR code automatically identifying and reading method and apparatus
CN109902527B (en) * 2019-02-26 2022-06-07 凌云光技术股份有限公司 Automatic QR code recognizing and reading method and device
CN110263596A (en) * 2019-06-25 2019-09-20 北京慧眼智行科技有限公司 A kind of two dimensional code detection system and method
CN110427794A (en) * 2019-07-31 2019-11-08 中国工商银行股份有限公司 The method, apparatus of two dimensional code, electronic equipment and medium for identification
CN110399956A (en) * 2019-07-31 2019-11-01 中国工商银行股份有限公司 The method, apparatus of two dimensional code, electronic equipment and medium for identification
CN113312930B (en) * 2020-02-27 2024-01-30 特斯科(上海)机电测试技术有限公司 Method for reading two-dimensional code by using COGNEX camera on turbocharger cold test bench
CN113312930A (en) * 2020-02-27 2021-08-27 特斯科(上海)机电测试技术有限公司 Method for reading two-dimensional code by using COGNEX camera on turbocharger cold test bench
CN112016339A (en) * 2020-08-18 2020-12-01 中移(杭州)信息技术有限公司 Two-dimensional code identification and defect repair method, device, electronic device and storage medium
CN112016339B (en) * 2020-08-18 2023-12-29 中移(杭州)信息技术有限公司 Two-dimensional code identification and defect repair method and device, electronic equipment and storage medium
CN112055010A (en) * 2020-08-31 2020-12-08 中国平安财产保险股份有限公司 Two-dimensional code picture intercepting method and device, electronic equipment and storage medium
CN112055010B (en) * 2020-08-31 2022-07-05 中国平安财产保险股份有限公司 Two-dimensional code picture intercepting method and device, electronic equipment and storage medium
CN112417918A (en) * 2020-11-13 2021-02-26 珠海格力电器股份有限公司 Two-dimensional code identification method and device, storage medium and electronic equipment
CN112580383B (en) * 2020-12-29 2023-08-29 科大讯飞(苏州)科技有限公司 Two-dimensional code identification method and device, electronic equipment and storage medium
CN112580383A (en) * 2020-12-29 2021-03-30 科大讯飞(苏州)科技有限公司 Two-dimensional code identification method and device, electronic equipment and storage medium
CN114754810A (en) * 2021-01-08 2022-07-15 中国石油天然气集团有限公司 System for acquiring anti-corrosion joint coating data
CN112906421A (en) * 2021-04-08 2021-06-04 苏州华兴源创科技股份有限公司 Product two-dimensional code identification method
CN113537420B (en) * 2021-06-10 2022-12-13 西安图迹信息科技有限公司 Two-dimensional code inspection method based on big data
CN113537420A (en) * 2021-06-10 2021-10-22 西安图迹信息科技有限公司 Two-dimensional code inspection method based on big data
CN114254666A (en) * 2021-09-23 2022-03-29 中国烟草总公司天津市公司物流中心 Visual code reading equipment and two-dimensional code identification method
CN113792564B (en) * 2021-09-29 2023-11-10 北京航空航天大学 Indoor positioning method based on invisible projected QR code
CN113792564A (en) * 2021-09-29 2021-12-14 北京航空航天大学 Indoor positioning method based on invisible projection two-dimensional code
CN114186575A (en) * 2021-12-16 2022-03-15 北京声智科技有限公司 Image code processing method, device, equipment and storage medium
CN114742787A (en) * 2022-04-02 2022-07-12 中山大学 A new type of rapid detection method and system for two-dimensional code
CN115719374A (en) * 2022-11-24 2023-02-28 凌云光技术股份有限公司 A two-dimensional code detection method and system
CN119313736A (en) * 2024-10-12 2025-01-14 深圳市满亿光电有限公司 Visual positioning system and method for alignment and assembly of display screen modules

Also Published As

Publication number Publication date
CN107194301A (en) 2017-09-22

Similar Documents

Publication Publication Date Title
WO2017157034A1 (en) Method, device, and storage medium for identifying two-dimensional code
EP3520390B1 (en) Recolorization of infrared image streams
RU2543569C1 (en) Device and method for automatic recognition of qr-code
US7894666B2 (en) Image processing method and apparatus, image sensing apparatus, and program
US9256928B2 (en) Image processing apparatus, image processing method, and storage medium capable of determining a region corresponding to local light from an image
US8300928B2 (en) System and method for locating a target region in an image
CN101599175B (en) Detection method for determining alteration of shooting background and image processing device
EP3000073A1 (en) Identifying one- or two-dimensional bar codes via weighted image data combination
US20160321825A1 (en) Measuring apparatus, system, and program
CN111311500B (en) A method and device for color restoration of an image
JP6890427B2 (en) Car number recognition device
CN111712021A (en) A kind of art museum lighting intelligent adjustment method, device and system
US12035040B2 (en) Collation device and non-transitory computer readable medium storing program
US8885971B2 (en) Image processing apparatus, image processing method, and storage medium
US8498496B2 (en) Method and apparatus for filtering red and/or golden eye artifacts
CN119379539B (en) Image stitching method, system and readable storage medium
US20120008004A1 (en) Lighting identification
CN110532860A (en) Visible light bar code modulation and recognition method based on RGB LED lamps
WO2023134304A1 (en) Optical information collection apparatus and optical information collection method
CN114821078A (en) A license plate recognition method, device, electronic device and storage medium
JP2012023572A (en) White balance coefficient calculating device and program
CN115866385A (en) Collation device, storage medium, and collation method
CN118397664A (en) Method and device for detecting fingerprint residues of shell
JP2023061880A (en) Collation device and program
CN117475421A (en) License plate exposure compensation method and device and electronic equipment

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16894193

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16894193

Country of ref document: EP

Kind code of ref document: A1