CN107194301A - A kind of recognition methods of Quick Response Code and device - Google Patents

A kind of recognition methods of Quick Response Code and device Download PDF

Info

Publication number
CN107194301A
CN107194301A CN201610145981.8A CN201610145981A CN107194301A CN 107194301 A CN107194301 A CN 107194301A CN 201610145981 A CN201610145981 A CN 201610145981A CN 107194301 A CN107194301 A CN 107194301A
Authority
CN
China
Prior art keywords
quick response
response code
code
recognized
images
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN201610145981.8A
Other languages
Chinese (zh)
Inventor
肖斌
陈晓红
王聪
钱晨
韦玮
支周
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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
Priority to CN201610145981.8A priority Critical patent/CN107194301A/en
Priority to PCT/CN2016/105732 priority patent/WO2017157034A1/en
Publication of CN107194301A publication Critical patent/CN107194301A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/14172D bar codes

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

The invention discloses a kind of recognition methods of Quick Response Code, including:The images to be recognized of Quick Response Code of the collection comprising luminescence display;The position sensing figure in the images to be recognized is extracted, the two-dimentional code position in the images to be recognized is determined according to the position sensing figure, and recognize the Quick Response Code in the two-dimentional code position.The present invention further simultaneously discloses a kind of identifying device of Quick Response Code.

Description

A kind of recognition methods of Quick Response Code and device
Technical field
The present invention relates to recognition methods and the device of image identification technical field, more particularly to a kind of Quick Response Code.
Background technology
With the rapid development of information technology, increasing difference information media is used widely, two dimension Code (Two-dimensional code) is as a kind of simple, low cost and propagates convenient new medium, Nowadays it is seen everywhere in miscellaneous work and living scene.Quick Response Code, also known as two-dimensional bar code, be The chequered with black and white figure being distributed according to certain rules in plane (two-dimensional directional) with specific geometric figure. In addition, the coding of Quick Response Code dexterously make use of " 0 ", " 1 " bit for constituting computer-internal logical foundations The concept of stream, the geometrical body corresponding with binary system using several represents word numerical information, passes through The terminal automatically identifying and reading such as image input device or photoelectric scanning device, to realize automatically processing for information.
Compared with one-dimension code, Quick Response Code is a kind of barcode standard of higher level.Because one-dimension code can only be at one Storage information on direction (generally horizontal direction), and Quick Response Code can be deposited in level, vertical direction Store up information;One-dimension code can only be made up of numeral and letter, and Quick Response Code can store Chinese character, numeral and picture Etc. information, therefore, the application field of Quick Response Code is much broader, such as:Product false proof/trace to the source, advertisement pushing, Web site url, data download, positioning/navigation, electronic certificate, vehicle management, information transmission etc..
Found by the retrieval to related Quick Response Code identification technology and investigation:Current Quick Response Code identification scene is big Be confined to it is passive it is luminous in the case of, i.e., typically do not pasting Quick Response Code on luminous object surface, and two-dimentional Substantially all it is according to following handling process although the recognition methods of code is a lot:Image gray processing, image increase By force, image filtering processing, uneven illumination processing, binaryzation, rim detection, framing, image rectification With distortion correction etc..Wherein, image gray processing is that the colour picture of shooting is converted into gray level image, should Processing procedure can eliminate the color information in colour picture, reduce the complexity of subsequent treatment;Image filtering It is a very important link in Quick Response Code identification process, the Gauss produced in acquisition image process can be made an uproar Sound, salt-pepper noise etc. are filtered out, it is to avoid influence of the noise to decoding, and then improve discrimination;Binaryzation is choosing Suitable threshold value is taken, gray level image is transformed into the binary image of only " 0 " and " 1 ";Image calibration Exactly utilization space position relationship, will not just etc. disturb the image rectification of decoding factor because of shooting angle is water Flat, image that is being easy to decoding.
By above-mentioned handling process, can quickly and accuracy rate recognizes have general Quick Response Code higher, And for how to recognize the Quick Response Code actively lighted under scene, good solution is not yet proposed at present.It is special Not, as light emitting diode (LED, Light Emitting Diode) is used as the general of new generation of green light source And, LED by high brightness, low-power consumption, the long-life, it is fast start, without stroboscopic, do not allow to be also easy to produce vision it is tired The advantages of labor, traditional electricity-saving lamp and incandescent lamp is gradually replaced, shone as green that is of greatest concern and praising highly Bright technology.In addition, because LED also has response time short and High Speed Modulation characteristic, shining it While bright, moreover it is possible to applied to visible light communication and indoor positioning etc..Therefore, shown based on LED array Quick Response Code is obtained for application in many occasions.
Fig. 1 is given by the image in 2 D code of LED array active luminescence display, as shown in figure 1, due to list The luminous aperture of individual LED lamp bead influences whether neighbouring LED, and general LED array is because of dense degree Not enough, the display effect of granular sensation can be formed, and because of the control bright dark refresh rates of LED and the exposure of shooting Time is uncoordinated, can produce random stripe.These unfavorable factors can all make to utilize ordinary two dimensional code identification side Method come recognize the Quick Response Code under the scene that actively lights difficulty increase, so as to cause the read access time of Quick Response Code to become It is long, or can not correctly read the Quick Response Code.
Meanwhile, in order to take into account illumination functions, the brightness of LED array in actual applications is general higher, therefore, It is exposed with common camera, it is easy to overexposure phenomenon occur.In addition, common Quick Response Code identification software Sweep and sweep such as wechat, simply the simple camera borrowed in cell phone system application, can not be to the light of camera The parameters such as circle, focal length are adjusted, so will not automatically be adjusted according to actual light intensity as common photograph scene Save exposure mode etc..So, it will so that a piece of light of two-dimension code area, it is more likely that None- identified is read The Quick Response Code.Therefore, how quickly and accurately to recognize by the Quick Response Code of LED array active luminescence display, It is urgent problem to be solved.
The content of the invention
In view of this, the embodiment of the present invention is expected to provide recognition methods and the device of a kind of Quick Response Code, can be fast Speed, recognize exactly by the Quick Response Code of LED array active luminescence display, improve the effect for reading 2 D code information Rate, so that the use for lifting user is perceived.
To reach above-mentioned purpose, what the technical scheme of the embodiment of the present invention was realized in:
The embodiment of the present invention provides a kind of recognition methods of Quick Response Code, and methods described includes:
The images to be recognized of Quick Response Code of the collection comprising luminescence display;
The position sensing figure in the images to be recognized is extracted, according to being determined the position sensing figure Two-dimentional code position in images to be recognized, and recognize the Quick Response Code in the two-dimentional code position.
In such scheme, the images to be recognized of the Quick Response Code of the collection comprising luminescence display includes:
The mode of operation of selection identification Quick Response Code;
The bottom of the terminal camera of identification Quick Response Code is accessed and called according to the mode of operation of the selection, is adjusted Whole sweep parameter, and the images to be recognized is gathered using the corresponding Exposure Metering of mode of operation of the selection.
In such scheme, wait to know described in the corresponding Exposure Metering collection of the mode of operation using the selection Other image, including:
When the mode of operation of the selection is single Quick Response Code recognition mode, read using central heavy spot light-metering mode Quick Response Code in the images to be recognized, the two-dimension code area of black and white is highlighted, and by the back of the body beyond Quick Response Code Scene area is blurred;
When the mode of operation of the selection is many Quick Response Code recognition modes, read using average metering mode described Quick Response Code in images to be recognized, and special pre-treatment is carried out to the Quick Response Code.
It is described to Quick Response Code progress special pre-treatment in such scheme, including:Detection is described to include two The Luminance Distribution of the images to be recognized of code is tieed up, respective handling is carried out according to different Luminance Distributions.
In such scheme, the Luminance Distribution of the images to be recognized comprising Quick Response Code described in the detection, according to not Same Luminance Distribution carries out respective handling, including:
If the position sensing figure meets the geometry site of Quick Response Code, and different two-dimension code areas is bright Notable difference is distributed with degree, then determines multiple two-dimension code areas successively according to brightness degree;
If the Luminance Distribution no significant difference of different two-dimension code areas, by all position sensing figures of extraction A set is classified as, appoints and takes three position sensing figures in set to carry out permutation and combination, detect every kind of arrangement Whether combination meets certain condition, and determines two-dimension code area according to the permutation and combination for the condition that meets.
In such scheme, whether the every kind of permutation and combination of detection meets certain condition, including:
According to the black and white saltus step rule of the Quick Response Code, water-filling is entered respectively centered on relevant position detection figure Square to the detection with vertical direction, the arrangement for the position sensing figure for not meeting black and white saltus step rule is filtered out Combination.
In such scheme, after the two-dimentional code position in the determination images to be recognized, methods described Also include:
Quick Response Code in the two-dimentional code position is pre-processed, will be carried out by pretreated Quick Response Code Decoding obtains corresponding information;
Wherein, the pretreatment includes:Filter out the noise of interference Quick Response Code decoding and to the Quick Response Code Quick Response Code in position is corrected.
In such scheme, the Quick Response Code is the Quick Response Code shown based on LED array.
The embodiment of the present invention also provides a kind of identifying device of Quick Response Code, and described device includes:Acquisition module, Identification module;Wherein,
The acquisition module, the images to be recognized for gathering the Quick Response Code comprising luminescence display;
The identification module, for extracting the position sensing figure in the images to be recognized, according to institute's rheme Put detection figure and determine two-dimentional code position in the images to be recognized, and recognize in the two-dimentional code position Quick Response Code.
In such scheme, the images to be recognized of the Quick Response Code of the acquisition module collection comprising luminescence display includes:
The mode of operation of selection identification Quick Response Code;
The bottom of the terminal camera of identification Quick Response Code is accessed and called according to the mode of operation of the selection, is adjusted Whole sweep parameter, and the images to be recognized is gathered using the corresponding Exposure Metering of mode of operation of the selection.
In such scheme, the acquisition module is gathered using the corresponding Exposure Metering of mode of operation of the selection The images to be recognized, including:
When the mode of operation of the selection is single Quick Response Code recognition mode, read using central heavy spot light-metering mode Quick Response Code in the images to be recognized, the two-dimension code area of black and white is highlighted, and by the back of the body beyond Quick Response Code Scene area is blurred;
When the mode of operation of the selection is many Quick Response Code recognition modes, read using average metering mode described Quick Response Code in images to be recognized, and special pre-treatment is carried out to the Quick Response Code.
It is described to Quick Response Code progress special pre-treatment in such scheme, including:Detection is described to include two The Luminance Distribution of the images to be recognized of code is tieed up, respective handling is carried out according to different Luminance Distributions.
In such scheme, the Luminance Distribution of the images to be recognized comprising Quick Response Code described in the detection, according to not Same Luminance Distribution carries out respective handling, including:
If the position sensing figure meets the geometry site of Quick Response Code, and different two-dimension code areas is bright Notable difference is distributed with degree, then determines multiple two-dimension code areas successively according to brightness degree;
If the Luminance Distribution no significant difference of different two-dimension code areas, by all position sensing figures of extraction A set is classified as, appoints and takes three position sensing figures in set to carry out permutation and combination, detect every kind of arrangement Whether combination meets certain condition, and determines two-dimension code area according to the permutation and combination for the condition that meets.
In such scheme, whether the every kind of permutation and combination of detection meets certain condition, including:
According to the black and white saltus step rule of the Quick Response Code, water-filling is entered respectively centered on relevant position detection figure Square to the detection with vertical direction, the arrangement for the position sensing figure for not meeting black and white saltus step rule is filtered out Combination.
In such scheme, described device also includes:
Pretreatment module, for determining the images to be recognized in the identification module in two-dimentional code position it Afterwards, the Quick Response Code in the two-dimentional code position is pre-processed;
Decoder module, phase is obtained for that will enter row decoding by the pretreated Quick Response Code of the pretreatment module Answer information;
Wherein, the pretreatment includes:Filter out the noise of interference Quick Response Code decoding and to the Quick Response Code Quick Response Code in position is corrected.
In such scheme, the Quick Response Code is the Quick Response Code shown based on LED array.
The recognition methods for the Quick Response Code that the embodiment of the present invention is provided and device, collection include the two of luminescence display Tie up the images to be recognized of code;The position sensing figure in the images to be recognized is extracted, is visited according to the position Mapping shape determines the two-dimentional code position in the images to be recognized, and recognizes the two dimension in the two-dimentional code position Code.In this way, according to the difference of the mean flow rate of different two-dimension code areas, to using the collection of different Exposure Meterings Images to be recognized in Quick Response Code carry out respective handling, the Quick Response Code shown based on LED array can be recognized; Further, the mode of operation adjustment for the identification Quick Response Code that the embodiment of the present invention can also be selected for user is follow-up Respective handling, is quickly and accurately recognized using different processing modes and single or multiple is shown by LED array Quick Response Code, with higher recognition efficiency, thus lifted user use perceive, to Quick Response Code recognize skill The development of art is significant.
Brief description of the drawings
Fig. 1 is the image in 2 D code of the invention by LED array active luminescence display;
Fig. 2 is the implementation process schematic diagram of the recognition methods of Quick Response Code of the embodiment of the present invention;
Fig. 3 is the system flow schematic diagram for the recognition methods that the embodiment of the present invention implements Quick Response Code;
Fig. 4 is the composition structural representation of the identifying device of Quick Response Code of the embodiment of the present invention.
Embodiment
The characteristics of in order to more fully hereinafter understand the embodiment of the present invention and technology contents, below in conjunction with the accompanying drawings Realization to the embodiment of the present invention is described in detail, appended accompanying drawing purposes of discussion only for reference, is not used for Limit the present invention.
As shown in Fig. 2 in the embodiment of the present invention recognition methods of Quick Response Code implementation process, including following step Suddenly:
Step 201:The images to be recognized of Quick Response Code of the collection comprising luminescence display;
Wherein, the Quick Response Code is the Quick Response Code shown based on LED array.
This step 201 is specifically included:
The mode of operation of selection identification Quick Response Code;
The bottom of the terminal camera of identification Quick Response Code is accessed and called according to the mode of operation of the selection, is adjusted Whole sweep parameter, and the images to be recognized is gathered using the corresponding Exposure Metering of mode of operation of the selection.
Wherein, the sweep parameter includes:Aperture, focal length, Exposure mode.
Here, the mode of operation of the identification Quick Response Code of the selection includes:Single Quick Response Code recognition mode and many two Tie up code recognition mode;User can be pre-selected according to practical application request in Quick Response Code barcode scanning application software It is the single Quick Response Code of identification, or recognizes many Quick Response Codes, facilitates second terminal to be adjusted according to different mode of operations Whole follow-up respective handling, i.e.,:The single Quick Response Code of selection identification, is subsequently just identified the processing of single Quick Response Code; The many Quick Response Codes of selection identification, are subsequently just identified the processing of many Quick Response Codes.
Here, the terminal of two-dimensional code display is first terminal, and the terminal of identification Quick Response Code is second terminal, institute It both can be wireless terminal or catv terminal to state second terminal, wherein, wireless terminal can refer to Provide a user the equipment of voice and/or data connectivity, the portable equipment with wireless connecting function or It is connected to other processing equipments of radio modem.
In the embodiment of the present invention, pass through field programmable gate array (FPGA, Field-Programmable Gate Array) program is individually modulated to each LED lamp bead, can obtain what is characterized with different gray values Black and white module in Quick Response Code.Here, individually modulation specifically how is carried out to each LED lamp bead and belongs to existing There is technology, will not be repeated here.
Here, the corresponding Exposure Metering of the mode of operation using the selection gathers the images to be recognized, Specifically include:
If the mode of operation of the identification Quick Response Code of selection is single Quick Response Code recognition mode, surveyed using central emphasis Light mode reads the Quick Response Code in the images to be recognized, and the two-dimension code area of black and white is highlighted, and by two dimension Background area virtualization beyond code;This way it is possible to avoid cause halation to obscure because LED array brightness is too high, The black and white module of Quick Response Code can not be differentiated so that whole image is rendered as the two dimension for having one piece of black and white in black matrix Code region, the identification and reading of very convenient Quick Response Code.In this case, it is almost not unnecessary in image Information, is calculated without carrying out numerous and diverse filtering, only need to can accurately be decoded by basic pretreatment.Therefore, The read method of the Quick Response Code has faster speed and accuracy.
Wherein, the basic pretreatment includes:Filter out the noise of interference Quick Response Code decoding and to described Quick Response Code in two-dimentional code position is corrected.
If the mode of operation of the identification Quick Response Code of selection is many Quick Response Code recognition modes, due to multiple Quick Response Codes In the case of be not in brightness monopole effect, and Luminance Distribution under multiple LED array illumination tends to average Change, be not in overexposure phenomenon, therefore the Quick Response Code in the images to be recognized is read using average metering mode, And special pre-treatment is carried out to the Quick Response Code.
Here, can be different according to the Luminance Distribution of two-dimension code area, it is multiple under the scene that actively lights to distinguish Different Quick Response Codes.
Wherein, it is described to Quick Response Code progress special pre-treatment, including:Quick Response Code is included described in detection The Luminance Distribution of images to be recognized, respective handling is carried out according to different Luminance Distributions;
Specifically, if the position sensing figure meets the geometry site of Quick Response Code, and different Quick Response Codes The Luminance Distribution in region has notable difference, then determines multiple two-dimension code areas successively according to brightness degree;
If the Luminance Distribution no significant difference of different two-dimension code areas, by all position sensing figures of extraction A set is classified as, appoints and takes three position sensing figures in set to carry out permutation and combination, detect every kind of arrangement Whether combination meets certain condition, and determines two-dimension code area according to the permutation and combination for the condition that meets.
Here, the certain condition of the satisfaction is meets black and white saltus step rule, the when Quick Response Code is being recognized One terminal can not meet above-mentioned condition, the position sensing of second terminal just in images to be recognized described in None- identified Figure, or the pseudo- position sensing figure similar to position sensing figure is mistakenly identified, and then cause two Tie up positioning and the recognition failures of code.Wherein, the pseudo- position sensing figure is probably due to shooting condition, LED What the limitation of the factors such as luminous intensity was produced, therefore, the position sensing figure extracted is filtered, i.e.,: The permutation and combination for the position sensing figure for not meeting black and white saltus step rule is filtered out, in the images to be recognized The position of Quick Response Code be accurately positioned and play an important roll.
Specifically, whether the every kind of permutation and combination of detection meets certain condition, including:According to the two dimension The black and white saltus step rule of code, centered on relevant position detection figure, carries out horizontal direction and Vertical Square respectively To detection, filter out the permutation and combination for the position sensing figure for not meeting black and white saltus step rule.
Here, in image procossing, brightness can generally be represented by gray scale, therefore can utilize gray level image Region division substantially is done according to brightness to whole images to be recognized, under average illumination level can be obtained successively Several pieces of regions of drop, i.e., every piece region one Quick Response Code of correspondence.Wherein, gray processing is carried out to images to be recognized During, weighted mean method can be used, gray level image is transformed into.In addition, in the process of gray processing In, the rgb value for extracting each gray level image pixel is also characterized into monochrome information.
It should be noted that in Quick Response Code, by taking quick response (QR, Quick Response) code as an example, In any three corners in four corners of QR codes, the square pattern that less picture " returns " word is printed on, I.e. position sensing figure, can be seen that in Fig. 1.These three position sensing figures are for decoding software positioning Pattern, meets the geometry site of certain triangle, for example, three positions of each QR code Detection figure is put respectively on three summits of QR codes, composition isosceles right triangle.Second terminal is led to Cross view-finder to obtain after images to be recognized, images to be recognized is searched for according to the distinctive black and white saltus step rule of Quick Response Code Interior position sensing figure, as existing two-dimensional code identification method, you can by three position sensing figures (such as QR codes is three-back-shaped) determines the edge and profile of Quick Response Code.Here, it is specifically how to determine two The edge and profile for tieing up code belong to prior art, will not be repeated here.
Here, when user needs to recognize Quick Response Code by second terminal, it is preferable that can be used with shooting The terminal collection of camera function includes the images to be recognized of Quick Response Code;The Quick Response Code barcode scanning application software used can According to the mode of operation of selected identification Quick Response Code, the bottom of second terminal such as mobile phone camera is accessed and calls, Such as parameter such as aperture, focal length is adjusted, and changes the Exposure mode of camera.
In actual applications, it can specifically be imaged according in the Quick Response Code and second terminal shown based on LED array The factor such as the distance between camera, comes in the spatial relation and the Quick Response Code and second terminal of head The bottom parameter of camera is adjusted, and changes the Exposure mode of camera.Here, specifically how bottom is adjusted Parameter and change Exposure mode belong to prior art, will not be repeated here.
Step 202:The position sensing figure in the images to be recognized is extracted, according to the position sensing figure Shape determines the two-dimentional code position in the images to be recognized, and recognizes the Quick Response Code in the two-dimentional code position.
In step 202., after the two-dimentional code position in the determination images to be recognized, the side Method can also include:Quick Response Code in the two-dimentional code position is pre-processed, will be passed through pretreated Quick Response Code enters row decoding and obtains corresponding information.
Wherein, the pretreatment includes:Filter out the noise of interference Quick Response Code decoding and to the Quick Response Code Quick Response Code in position is corrected.
Here, it is contemplated that LED display halation can form edge sawtooth and as caused by dot matrix screen Grain sense, can use histogram-fitting calculating threshold value, and reduce its using big window medium filtering influences. Further, it is also possible to be corrected according to not spatial alternation is breathed out to Quick Response Code.Here, said process is specifically such as What, which was realized, belongs to prior art, will not be repeated here.
Fig. 3 shows the implementation process signal of the specific embodiment of the recognition methods of Quick Response Code of the present invention, such as schemes Shown in 3, the embodiment comprises the steps:
Step 301:The mode of operation of user's selection identification Quick Response Code;
Here, the Quick Response Code is the Quick Response Code shown based on LED array, wherein, LED array lights Display belongs to one kind of active luminescence display, is different from existing most passive luminescence display, i.e., general Quick Response Code is not pasted on luminous object surface.
Step 302:The type of the mode of operation of the selection is differentiated, if the mode of operation of the selection is single Quick Response Code recognition mode, then perform step 303, otherwise performs step 304;
Here, the mode of operation of the identification Quick Response Code of user's selection is divided into two types:Single Quick Response Code recognizes mould Formula and many Quick Response Code recognition modes;User can be according to practical application request, in Quick Response Code barcode scanning application software It is the single Quick Response Code of identification to be pre-selected, or recognizes many Quick Response Codes, then according to different recognition modes, is adjusted It is whole follow-up the step of need to perform.
Step 303:The Quick Response Code in images to be recognized is read using central heavy spot light-metering mode, by black and white Two-dimension code area is highlighted, and the background area beyond Quick Response Code is blurred;
Here, using the method for the step 303, a two dimension shown by LED array can quickly be recognized Code, it is not necessary to which extra processing procedure allows for the two dimension that whole image is rendered as having one piece of black and white in black matrix Code region, the identification and reading of very convenient Quick Response Code.
Step 304:The Quick Response Code in images to be recognized is read using average metering mode, and to the two dimension Code carries out the pretreatment such as step 305;
Step 305:The Luminance Distribution of images to be recognized of the detection comprising Quick Response Code;
Here, can be different according to the Luminance Distribution of two-dimension code area, it is multiple under the scene that actively lights to distinguish Different Quick Response Codes.
Step 306:If the Luminance Distribution difference of different two-dimension code areas is larger, step 307 is performed;
Here, it is necessary to which a precondition, i.e., the position sensing figure of described different two-dimension code areas meets The geometry site of Quick Response Code.
Step 307:Determine multiple two-dimension code areas successively according to brightness degree, terminate this handling process;
Step 308:If the Luminance Distribution difference of different two-dimension code areas is smaller, step 309 is performed;
Step 309:All position sensing figures of extraction are classified as a set, appoint three taken in set Position sensing figure carries out permutation and combination, detects whether every kind of permutation and combination meets certain condition, and according to full The permutation and combination of sufficient condition determines two-dimension code area.
Here, whether the every kind of permutation and combination of detection meets certain condition, including:
According to the black and white saltus step rule of the Quick Response Code, water-filling is entered respectively centered on relevant position detection figure Square to the detection with vertical direction, the arrangement for the position sensing figure for not meeting black and white saltus step rule is filtered out Combination.
Wherein, the certain condition of the satisfaction is the black and white saltus step rule for meeting Quick Response Code.
What the embodiment of the present invention was proposed is a kind of two-dimensional code identification method for actively lighting under scene, as In the application example by LED array two-dimensional code display, the image caused by LED illumination effect is avoided that The interference that fringe phenomena etc. caused by inappropriate time for exposure is caused to decoding when granular sensation, shooting, is opened up The wide application scenarios of Quick Response Code identification technology, improve read rate of the Quick Response Code under complex scene;Enter one Step ground, the embodiment of the present invention is according to Luminance Distribution different in images to be recognized, moreover it is possible to different Working moulds Formula reads single Quick Response Code or multiple Quick Response Codes, and image acquisition mode is adjusted according to user's request, can accelerate single The reading speed of individual Quick Response Code, and have higher reading efficiency to the identification of many Quick Response Codes.
To realize the above method, the embodiment of the present invention additionally provides a kind of identifying device of Quick Response Code, such as Fig. 4 Shown, the device includes acquisition module 41, identification module 42;Wherein,
The acquisition module 41, the images to be recognized for gathering the Quick Response Code comprising luminescence display;
The identification module 42, for extracting the position sensing figure in the images to be recognized, according to described Position sensing figure determines the two-dimentional code position in the images to be recognized, and recognizes in the two-dimentional code position Quick Response Code.
Wherein, the Quick Response Code is the Quick Response Code shown based on LED array.
Here, described device also includes:Pretreatment module 43, for determining institute in the identification module 42 State after the two-dimentional code position in images to be recognized, the Quick Response Code in the two-dimentional code position is pre-processed;
Decoder module 44, for row decoding will to be entered by the pretreated Quick Response Code of the pretreatment module 43 Obtain corresponding information.
Wherein, the pretreatment includes:Filter out the noise of interference Quick Response Code decoding and to the Quick Response Code Quick Response Code in position is corrected.
Here, the images to be recognized of the Quick Response Code of the collection of acquisition module 41 comprising luminescence display includes:
The mode of operation of selection identification Quick Response Code;
The bottom of the terminal camera of identification Quick Response Code is accessed and called according to the mode of operation of the selection, is adjusted Whole sweep parameter, and the images to be recognized is gathered using the corresponding Exposure Metering of mode of operation of the selection.
Wherein, the acquisition module 41 is described using the corresponding Exposure Metering collection of mode of operation of the selection Images to be recognized, including:
When the mode of operation of the selection is single Quick Response Code recognition mode, read using central heavy spot light-metering mode Quick Response Code in the images to be recognized, the two-dimension code area of black and white is highlighted, and by the back of the body beyond Quick Response Code Scene area is blurred;
When the mode of operation of the selection is many Quick Response Code recognition modes, read using average metering mode described Quick Response Code in images to be recognized, and special pre-treatment is carried out to the Quick Response Code.
Here, it is described to Quick Response Code progress special pre-treatment, including:Quick Response Code is included described in detection The Luminance Distribution of images to be recognized, respective handling is carried out according to different Luminance Distributions.
Specifically, if the position sensing figure meets the geometry site of Quick Response Code, and different Quick Response Codes The Luminance Distribution in region has notable difference, then determines multiple two-dimension code areas successively according to brightness degree;
If the Luminance Distribution no significant difference of different two-dimension code areas, by all position sensing figures of extraction A set is classified as, appoints and takes three position sensing figures in set to carry out permutation and combination, detect every kind of arrangement Whether combination meets certain condition, and determines two-dimension code area according to the permutation and combination for the condition that meets.
Wherein, whether the every kind of permutation and combination of detection meets certain condition, including:
According to the black and white saltus step rule of the Quick Response Code, water-filling is entered respectively centered on relevant position detection figure Square to the detection with vertical direction, the arrangement for the position sensing figure for not meeting black and white saltus step rule is filtered out Combination.
In actual applications, the acquisition module 41, identification module 42, pretreatment module 43, decoding mould Block 44 can be by central processing unit (CPU, the Central Processing in the terminal of two-dimensional code display Unit), microprocessor (MPU, Micro Processor Unit), digital signal processor (DSP, Digital Signal Processor) or field programmable gate array (FPGA, Field Programmable Gate Array) Deng realization.
The images to be recognized of Quick Response Code of the collection of the embodiment of the present invention comprising luminescence display;Extract described to be identified Position sensing figure in image, the two dimension in the images to be recognized is determined according to the position sensing figure Code position, and recognize the Quick Response Code in the two-dimentional code position.In this way, according to the flat of different two-dimension code areas The difference of equal brightness, corresponding position is carried out to the Quick Response Code in the images to be recognized using the collection of different Exposure Meterings Reason, can recognize the Quick Response Code shown based on LED array;Further, the embodiment of the present invention can also be for using The mode of operation of the identification Quick Response Code of family selection adjusts follow-up respective handling, using different processing modes it is quick, The single or multiple Quick Response Codes shown by LED array are recognized exactly, with higher recognition efficiency, so that The use for lifting user is perceived, and the development to Quick Response Code identification technology is significant.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the protection model of the present invention Enclose, any modifications, equivalent substitutions and improvements made within the spirit and principles of the invention etc. all should Within protection scope of the present invention.

Claims (16)

1. a kind of recognition methods of Quick Response Code, it is characterised in that methods described includes:
The images to be recognized of Quick Response Code of the collection comprising luminescence display;
The position sensing figure in the images to be recognized is extracted, according to being determined the position sensing figure Two-dimentional code position in images to be recognized, and recognize the Quick Response Code in the two-dimentional code position.
2. according to the method described in claim 1, it is characterised in that the collection includes the two of luminescence display The images to be recognized of dimension code includes:
The mode of operation of selection identification Quick Response Code;
The bottom of the terminal camera of identification Quick Response Code is accessed and called according to the mode of operation of the selection, is adjusted Whole sweep parameter, and the images to be recognized is gathered using the corresponding Exposure Metering of mode of operation of the selection.
3. method according to claim 2, it is characterised in that the Working mould using the selection The corresponding Exposure Metering of formula gathers the images to be recognized, including:
When the mode of operation of the selection is single Quick Response Code recognition mode, read using central heavy spot light-metering mode Quick Response Code in the images to be recognized, the two-dimension code area of black and white is highlighted, and by the back of the body beyond Quick Response Code Scene area is blurred;
When the mode of operation of the selection is many Quick Response Code recognition modes, read using average metering mode described Quick Response Code in images to be recognized, and special pre-treatment is carried out to the Quick Response Code.
4. method according to claim 3, it is characterised in that described special to Quick Response Code progress Pretreatment, including:The Luminance Distribution of the detection images to be recognized comprising Quick Response Code, according to different bright Degree distribution carries out respective handling.
5. method according to claim 4, it is characterised in that Quick Response Code is included described in the detection The Luminance Distribution of images to be recognized, respective handling is carried out according to different Luminance Distributions, including:
If the position sensing figure meets the geometry site of Quick Response Code, and different two-dimension code areas is bright Notable difference is distributed with degree, then determines multiple two-dimension code areas successively according to brightness degree;
If the Luminance Distribution no significant difference of different two-dimension code areas, by all position sensing figures of extraction A set is classified as, appoints and takes three position sensing figures in set to carry out permutation and combination, detect every kind of arrangement Whether combination meets certain condition, and determines two-dimension code area according to the permutation and combination for the condition that meets.
6. method according to claim 5, it is characterised in that whether the every kind of permutation and combination of detection Certain condition is met, including:
According to the black and white saltus step rule of the Quick Response Code, water-filling is entered respectively centered on relevant position detection figure Square to the detection with vertical direction, the arrangement for the position sensing figure for not meeting black and white saltus step rule is filtered out Combination.
7. according to the method described in claim 1, it is characterised in that determine the images to be recognized described In two-dimentional code position after, methods described also includes:
Quick Response Code in the two-dimentional code position is pre-processed, will be carried out by pretreated Quick Response Code Decoding obtains corresponding information;
Wherein, the pretreatment includes:Filter out the noise of interference Quick Response Code decoding and to the Quick Response Code Quick Response Code in position is corrected.
8. the method according to any one of claim 1 to 7, it is characterised in that the Quick Response Code is base The Quick Response Code shown in LED array.
9. a kind of identifying device of Quick Response Code, it is characterised in that described device includes:Acquisition module, identification Module;Wherein,
The acquisition module, the images to be recognized for gathering the Quick Response Code comprising luminescence display;
The identification module, for extracting the position sensing figure in the images to be recognized, according to institute's rheme Put detection figure and determine two-dimentional code position in the images to be recognized, and recognize in the two-dimentional code position Quick Response Code.
10. device according to claim 9, it is characterised in that the acquisition module collection includes hair The images to be recognized for the Quick Response Code that light is shown includes:
The mode of operation of selection identification Quick Response Code;
The bottom of the terminal camera of identification Quick Response Code is accessed and called according to the mode of operation of the selection, is adjusted Whole sweep parameter, and the images to be recognized is gathered using the corresponding Exposure Metering of mode of operation of the selection.
11. device according to claim 10, it is characterised in that the acquisition module uses the choosing The corresponding Exposure Metering of mode of operation selected gathers the images to be recognized, including:
When the mode of operation of the selection is single Quick Response Code recognition mode, read using central heavy spot light-metering mode Quick Response Code in the images to be recognized, the two-dimension code area of black and white is highlighted, and by the back of the body beyond Quick Response Code Scene area is blurred;
When the mode of operation of the selection is many Quick Response Code recognition modes, read using average metering mode described Quick Response Code in images to be recognized, and special pre-treatment is carried out to the Quick Response Code.
12. device according to claim 11, it is characterised in that described that spy is carried out to the Quick Response Code Different pretreatment, including:The Luminance Distribution of the detection images to be recognized comprising Quick Response Code, according to different Luminance Distribution carries out respective handling.
13. device according to claim 12, it is characterised in that Quick Response Code is included described in the detection Images to be recognized Luminance Distribution, respective handling is carried out according to different Luminance Distribution, including:
If the position sensing figure meets the geometry site of Quick Response Code, and different two-dimension code areas is bright Notable difference is distributed with degree, then determines multiple two-dimension code areas successively according to brightness degree;
If the Luminance Distribution no significant difference of different two-dimension code areas, by all position sensing figures of extraction A set is classified as, appoints and takes three position sensing figures in set to carry out permutation and combination, detect every kind of arrangement Whether combination meets certain condition, and determines two-dimension code area according to the permutation and combination for the condition that meets.
14. device according to claim 13, it is characterised in that the every kind of permutation and combination of detection is It is no to meet certain condition, including:
According to the black and white saltus step rule of the Quick Response Code, water-filling is entered respectively centered on relevant position detection figure Square to the detection with vertical direction, the arrangement for the position sensing figure for not meeting black and white saltus step rule is filtered out Combination.
15. device according to claim 9, it is characterised in that described device also includes:
Pretreatment module, for determining the images to be recognized in the identification module in two-dimentional code position it Afterwards, the Quick Response Code in the two-dimentional code position is pre-processed;
Decoder module, phase is obtained for that will enter row decoding by the pretreated Quick Response Code of the pretreatment module Answer information;
Wherein, the pretreatment includes:Filter out the noise of interference Quick Response Code decoding and to the Quick Response Code Quick Response Code in position is corrected.
16. the device according to any one of claim 9 to 15, it is characterised in that the Quick Response Code is The Quick Response Code shown based on LED array.
CN201610145981.8A 2016-03-15 2016-03-15 A kind of recognition methods of Quick Response Code and device Withdrawn CN107194301A (en)

Priority Applications (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
PCT/CN2016/105732 WO2017157034A1 (en) 2016-03-15 2016-11-14 Method, device, and storage medium for identifying two-dimensional code

Applications Claiming Priority (1)

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

Publications (1)

Publication Number Publication Date
CN107194301A true CN107194301A (en) 2017-09-22

Family

ID=59851906

Family Applications (1)

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

Country Status (2)

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

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108062579A (en) * 2018-02-08 2018-05-22 科大讯飞股份有限公司 Quick Response Code module and the equipment with Quick Response Code
CN110475079A (en) * 2019-09-10 2019-11-19 上海快仓智能科技有限公司 A kind of image exposure luminance regulating method, system and associated component
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
CN112150958A (en) * 2019-06-28 2020-12-29 佳能株式会社 Display control apparatus, display control method and system
CN112508145A (en) * 2020-12-16 2021-03-16 平安银行股份有限公司 Electronic seal generation and verification method and device, electronic equipment and storage medium
CN113065374A (en) * 2021-04-01 2021-07-02 支付宝(杭州)信息技术有限公司 Two-dimensional code identification method, device and equipment

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111091016B (en) * 2018-10-23 2023-06-16 北京鼎九信息工程研究院有限公司 Tripod nine-code reading method and device and mobile terminal
CN109977714B (en) * 2019-01-04 2022-06-10 上海大学 Multi-QR-code integrated visual positioning method for warehoused goods
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
CN112016339B (en) * 2020-08-18 2023-12-29 中移(杭州)信息技术有限公司 Two-dimensional code identification and defect repair 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
CN112417918B (en) * 2020-11-13 2022-03-18 珠海格力电器股份有限公司 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
CN113537420B (en) * 2021-06-10 2022-12-13 西安图迹信息科技有限公司 Two-dimensional code inspection method based on big data
CN113792564B (en) * 2021-09-29 2023-11-10 北京航空航天大学 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

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1669313A (en) * 2002-07-11 2005-09-14 精工爱普生株式会社 Adjustment for output image of image data
CN101272458A (en) * 2007-03-19 2008-09-24 索尼株式会社 Image capturing apparatus, light metering method, luminance calculation method, and program
CN102043975A (en) * 2009-10-16 2011-05-04 致伸科技股份有限公司 Processing method of QR (Quick Response) code and related device thereof
US20120211555A1 (en) * 2010-09-20 2012-08-23 Lumidigm, Inc. Machine-readable symbols
CN103400099A (en) * 2013-07-29 2013-11-20 宇龙计算机通信科技(深圳)有限公司 Terminal and two-dimension code identification method
CN104268498A (en) * 2014-09-29 2015-01-07 杭州华为数字技术有限公司 Two-dimension code recognition method and terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103699869B (en) * 2013-12-30 2017-02-01 优视科技有限公司 Method and device for recognizing two-dimension codes
CN103714313B (en) * 2013-12-30 2016-07-06 优视科技有限公司 Two-dimensional code identification method and device
CN204010630U (en) * 2014-07-08 2014-12-10 顾宗 A kind of LED screen of energy two-dimensional code display

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1669313A (en) * 2002-07-11 2005-09-14 精工爱普生株式会社 Adjustment for output image of image data
CN101272458A (en) * 2007-03-19 2008-09-24 索尼株式会社 Image capturing apparatus, light metering method, luminance calculation method, and program
CN102043975A (en) * 2009-10-16 2011-05-04 致伸科技股份有限公司 Processing method of QR (Quick Response) code and related device thereof
US20120211555A1 (en) * 2010-09-20 2012-08-23 Lumidigm, Inc. Machine-readable symbols
CN103400099A (en) * 2013-07-29 2013-11-20 宇龙计算机通信科技(深圳)有限公司 Terminal and two-dimension code identification method
CN104268498A (en) * 2014-09-29 2015-01-07 杭州华为数字技术有限公司 Two-dimension code recognition method and terminal

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108062579A (en) * 2018-02-08 2018-05-22 科大讯飞股份有限公司 Quick Response Code module and the equipment with Quick Response 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
CN112150958A (en) * 2019-06-28 2020-12-29 佳能株式会社 Display control apparatus, display control method and system
CN110475079A (en) * 2019-09-10 2019-11-19 上海快仓智能科技有限公司 A kind of image exposure luminance regulating method, system and associated component
CN112508145A (en) * 2020-12-16 2021-03-16 平安银行股份有限公司 Electronic seal generation and verification method and device, electronic equipment and storage medium
CN113065374A (en) * 2021-04-01 2021-07-02 支付宝(杭州)信息技术有限公司 Two-dimensional code identification method, device and equipment
CN113065374B (en) * 2021-04-01 2023-10-27 支付宝(杭州)信息技术有限公司 Two-dimensional code identification method, device and equipment

Also Published As

Publication number Publication date
WO2017157034A1 (en) 2017-09-21

Similar Documents

Publication Publication Date Title
CN107194301A (en) A kind of recognition methods of Quick Response Code and device
CN109661666B (en) Optical communication device and system, and corresponding information transmission and reception method
CN107992794B (en) A kind of biopsy method, device and storage medium
CN103559857B (en) A kind of method towards the detection of OLED screen picture element flaw and device
CN106101547A (en) The processing method of a kind of view data, device and mobile terminal
US11253191B2 (en) Skin detection device
CN108323204A (en) A kind of method and intelligent terminal of detection face flaw point
CN107103606A (en) A kind of image-recognizing method and device
CN105809647A (en) Automatic defogging photographing method, device and equipment
US10007822B2 (en) Graphical barcode readers that are configured for glare reduction
CN107864337A (en) Sketch image processing method, device and equipment
US7874496B2 (en) Optically readable tag
CN109191520A (en) A kind of Measurement Approach of Leaf Area and system based on color calibration
CN107085737A (en) Coding/decoding system, generation method and the device of Quick Response Code, recognition methods and device
CN104463105A (en) Guide board recognizing method and device
CN106210517A (en) The processing method of a kind of view data, device and mobile terminal
CN106446883A (en) Scene reconstruction method based on light label
CN101593271B (en) System for identifying figures in card game machine
CN109408008A (en) Image identification system and information display method thereof
CN101937505B (en) Target detection method and equipment and used image acquisition device thereof
CN109936712B (en) Positioning method and system based on optical label
CN111712021A (en) Intelligent adjusting method, device and system for lamplight of art gallery
CN109194954A (en) Fish-eye camera performance parameter test method, apparatus, equipment and can storage medium
CN110070080A (en) A kind of character detecting method and device, equipment and computer readable storage medium
CN111460848A (en) Reading equipment capable of identifying bar codes of various materials and color bar codes and identification method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20170922