CN106845314A - A kind of method for rapidly positioning of Quick Response Code - Google Patents

A kind of method for rapidly positioning of Quick Response Code Download PDF

Info

Publication number
CN106845314A
CN106845314A CN201611232321.XA CN201611232321A CN106845314A CN 106845314 A CN106845314 A CN 106845314A CN 201611232321 A CN201611232321 A CN 201611232321A CN 106845314 A CN106845314 A CN 106845314A
Authority
CN
China
Prior art keywords
image
quick response
response code
spacing
code
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.)
Granted
Application number
CN201611232321.XA
Other languages
Chinese (zh)
Other versions
CN106845314B (en
Inventor
胡建国
李仕仁
邓诚谦
梁津铨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Development Research Institute Of Guangzhou Smart City
Guangzhou Bochuang Information Technology Co ltd
Original Assignee
Guangzhou Smart City Development Research Institute
Guangzhou Shizhen Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Smart City Development Research Institute, Guangzhou Shizhen Information Technology Co Ltd filed Critical Guangzhou Smart City Development Research Institute
Priority to CN201611232321.XA priority Critical patent/CN106845314B/en
Publication of CN106845314A publication Critical patent/CN106845314A/en
Application granted granted Critical
Publication of CN106845314B publication Critical patent/CN106845314B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1439Methods for optical code recognition including a method step for retrieval of the optical code
    • G06K7/1443Methods for optical code recognition including a method step for retrieval of the optical code locating of the code in an image
    • 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

Abstract

The present invention proposes a kind of method for rapidly positioning of Quick Response Code, comprises the following steps:S1, obtains pending image in 2 D code;S2, gray level image is converted to by the image in 2 D code that step S1 is obtained;S3, medium filtering;S4, rim detection;S5, parallel coordinates positioning;Wherein, the step S5 specifically includes following steps:S51, the edge image that step S4 gets is mapped on parallel coordinates;S52, the edge image that step S4 is got is rotated along Y-axis, and postrotational edge image is mapped on parallel coordinates;S53, comparison step S51 obtain image on each intersection point spacing and step S52 obtain image on each intersection point spacing, the coordinate corresponding to the equal point of spacing describe Quick Response Code jointly where region.A kind of method for rapidly positioning of Quick Response Code that the present invention is provided, under complex background, is quickly positioned to Quick Response Code region.

Description

A kind of method for rapidly positioning of Quick Response Code
Technical field
The present invention relates to Quick Response Code field, and in particular to a kind of method for rapidly positioning of Quick Response Code.
Background technology
Quick Response Code be with certain specific geometric figure according to certain rules in plane i.e. two-dimensional directional be distributed it is black White alternate graphic recording data symbol information;Dexterously using constituting computer-internal logical foundations on coding " 0 ", the concept of " 1 " bit stream, the geometrical body corresponding with binary system using several represents word numerical information, passes through Image input device or photoelectric scanning device automatically identifying and reading are automatically processed with realizing information:It has barcode technology some be total to Property:Every kind of code system has its specific character set;Each character occupies certain width;With certain verifying function etc..Simultaneously Also there is the information automatic identification function and the treatment rotationally-varying point of figure to not going together.Quick Response Code is a kind of image identification skill Art, because having the advantages of memory capacity is big, and storage information species is more, error correcting capability is strong, in article code, the neck such as mobile payment Domain is widely used.
Quick Response Code has a wide range of application, therefore its applied environment is relative complex.The picture for getting, often has the back of the body of complexity Scape, in decoding process, need to navigate to the specific region of Quick Response Code from picture.Common method disappears in Quick Response Code positioning stage Time-consuming is long.
The content of the invention
In order to solve the above problems, the invention provides a kind of method for rapidly positioning of Quick Response Code.The one of present invention offer The method for rapidly positioning of Quick Response Code is planted, under complex background, Quick Response Code region is quickly positioned.
The technical solution adopted by the present invention is as follows:
A kind of method for rapidly positioning of Quick Response Code, comprises the following steps:
S1, obtains pending image in 2 D code;
S2, gray level image is converted to by the image in 2 D code that step S1 is obtained;
S3, medium filtering;
S4, rim detection;
S5, parallel coordinates positioning;
Wherein, the step S5 specifically includes following steps:
S51, the edge image that step S4 gets is mapped on parallel coordinates;
S52, the edge image that step S4 is got rotates along Y-axis, and postrotational edge image is mapped to parallel On coordinate;
On the image that the spacing and step S52 of each intersection point on image that S53, comparison step S51 are obtained are obtained The spacing of each intersection point, the coordinate corresponding to the equal point of spacing describe Quick Response Code jointly where region.
A kind of method for rapidly positioning of above-mentioned Quick Response Code, wherein, the step S4 specifically includes use " Canny " operator Extract the edge of image.
A kind of method for rapidly positioning of above-mentioned Quick Response Code, wherein, the step S2 is specifically included:The figure that step S1 is obtained Picture, the red, green, blue component of each pixel in coloured image is represented with R, G, B respectively, the corresponding picture of gray level image after conversion The brightness value of vegetarian refreshments is I, then:
I=0.3*R+0.59*G+0.11*B.
The present invention provide the beneficial effects of the present invention are:Examined by carrying out gradation conversion, medium filtering, edge to image After survey, the edge line of image is obtained, whether edge line is determined whether to being converted to for parallel coordinates using cartesian coordinate Correctly.Its is simple to operate, is not related to complicated calculations, and by Mathematical Modeling, lifts precision.Under complex background, to Quick Response Code Region is quickly positioned, applied widely.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, without having to pay creative labor, may be used also Other accompanying drawings are obtained with according to these accompanying drawings.
Fig. 1 is a kind of flow chart of the method for rapidly positioning of Quick Response Code of the invention;
Fig. 2 be a kind of Quick Response Code of the invention method for rapidly positioning in an image in 2 D code example;
Fig. 3 be a kind of Quick Response Code of the invention method for rapidly positioning in edge line example corresponding with Fig. 2;
Fig. 4 is that cartesian coordinate point (0,2) and (2,0) in a kind of method for rapidly positioning of Quick Response Code of the invention is mapped to The schematic diagram of parallel coordinates.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
Embodiment
As shown in figure 1, a kind of method for rapidly positioning of Quick Response Code, comprises the following steps:
S1, obtains pending image in 2 D code;Equipment obtains the coloured image of thecamera head.
S2, gray level image is converted to by the image in 2 D code that step S1 is obtained;Gray level image is that image brightness values are arrived 0 255 image.The image that step S1 is obtained, the red, green, blue component of each pixel in coloured image is represented with R, G, B respectively, The brightness value of the corresponding pixel of gray level image after changing is I, then:I=0.3*R+0.59*G+0.11*B.
S3, medium filtering;Because camera and transmitting procedure can factor be influenceed by electric current is unstable etc., image can go out Existing other bright spot, i.e. salt-pepper noise.In order to eliminate the influence of salt-pepper noise, it is necessary to carry out medium filtering to image.Intermediate value is filtered Ripple is a kind of nonlinear filter.In the window of definition, it is ranked up by the pixel value size of image, takes the number in centre position As the result that wave filter is exported.
S4, rim detection;Use the edge of " Canny " operator extraction image.Side by after rim detection, obtaining image Edge, edge is made up of line.It is exactly some parallel lines, as shown in Figure 2 and Figure 3 after Quick Response Code rim detection.
S5, parallel coordinates positioning;
Wherein, the step S5 specifically includes following steps:
S51, the edge image that step S4 gets is mapped on parallel coordinates;According to parallel coordinates principle, by two dimension Code is considered as the image in cartesian coordinate, then the straight line of cartesian coordinate is mapped as the point of parallel coordinates, but can only be to negative Slope straight line maps.Cartesian coordinate point (0,2) and (2,0) is mapped to parallel coordinates, as shown in Figure 4.
S52, the edge image that step S4 is got rotates along Y-axis, and postrotational edge image is mapped to parallel On coordinate;Because parallel coordinates can only detect the straight line of negative slope, this step rotates edge image along y-axis, re-maps flat On row coordinate, the straight line of positive slope in original image can be now detected.
On the image that the spacing and step S52 of each intersection point on image that S53, comparison step S51 are obtained are obtained The spacing of each intersection point, the coordinate corresponding to the equal point of spacing describe Quick Response Code jointly where region.In two images, The equal point of spacing is exactly Quick Response Code region.The straight line of negative slope in image is detected in step S51, is examined in step S52 Measure the straight line of image positive slope.In addition, the spacing of each parallel lines is equal, therefore, the image after mapping two width is compared, The equal point of spacing is exactly the intersecting region of two groups of parallel lines, you can orientate Quick Response Code region as.
Presently preferred embodiments of the present invention is the foregoing is only, is not intended to limit the invention, it is all in essence of the invention Within god and principle, any modification, equivalent substitution and improvements made etc. should be included within the scope of the present invention.

Claims (3)

1. a kind of method for rapidly positioning of Quick Response Code, it is characterised in that comprise the following steps:
S1, obtains pending image in 2 D code;
S2, gray level image is converted to by the image in 2 D code that step S1 is obtained;
S3, medium filtering;
S4, rim detection;
S5, parallel coordinates positioning;
Wherein, the step S5 specifically includes following steps:
S51, the edge image that step S4 gets is mapped on parallel coordinates;
S52, the edge image that step S4 is got is rotated along Y-axis, and postrotational edge image is mapped into parallel coordinates On;
S53, comparison step S51 obtain image on each intersection point spacing and step S52 obtain image on each The spacing of intersection point, the coordinate corresponding to the equal point of spacing describe Quick Response Code jointly where region.
2. the method for rapidly positioning of a kind of Quick Response Code according to claim 1, it is characterised in that the step S4 is specifically wrapped Include the edge of use " Canny " operator extraction image.
3. a kind of method for rapidly positioning of Quick Response Code according to claim 1 and 2, it is characterised in that the step S2 tools Body includes:The image that step S1 is obtained, the red, green, blue component of each pixel in coloured image is represented with R, G, B respectively, is turned The brightness value of the corresponding pixel of gray level image after changing is I, then:I=0.3*R+0.59*G+0.11*B.
CN201611232321.XA 2016-12-28 2016-12-28 A kind of method for rapidly positioning of two dimensional code Active CN106845314B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611232321.XA CN106845314B (en) 2016-12-28 2016-12-28 A kind of method for rapidly positioning of two dimensional code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611232321.XA CN106845314B (en) 2016-12-28 2016-12-28 A kind of method for rapidly positioning of two dimensional code

Publications (2)

Publication Number Publication Date
CN106845314A true CN106845314A (en) 2017-06-13
CN106845314B CN106845314B (en) 2019-07-12

Family

ID=59113057

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611232321.XA Active CN106845314B (en) 2016-12-28 2016-12-28 A kind of method for rapidly positioning of two dimensional code

Country Status (1)

Country Link
CN (1) CN106845314B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108985129A (en) * 2018-08-02 2018-12-11 谷东科技(广州)有限公司 The positioning of two dimensional code and method for detecting
CN106845314B (en) * 2016-12-28 2019-07-12 广州智慧城市发展研究院 A kind of method for rapidly positioning of two dimensional code
CN110348265A (en) * 2019-07-19 2019-10-18 福建工程学院 A kind of novel matrix code restoring method based on parallel coordinate system
CN111178111A (en) * 2019-12-31 2020-05-19 航天信息股份有限公司 Two-dimensional code detection method, electronic device, storage medium and system
CN116776909A (en) * 2023-08-28 2023-09-19 四川星点网络技术有限公司 Bottle lid two-dimensional code system of tracing to source

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040114707A1 (en) * 2002-09-23 2004-06-17 Herbert Bruder Method of creating images in computed tomography (CT), and CT device
CN102074051A (en) * 2011-01-13 2011-05-25 深圳市蓝韵实业有限公司 Fast locating method for data bonding volume of volume rendering parallel projection
CN103354928A (en) * 2012-02-03 2013-10-16 日本电气株式会社 Device, method, and program for visualization of multi-dimensional data

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106845314B (en) * 2016-12-28 2019-07-12 广州智慧城市发展研究院 A kind of method for rapidly positioning of two dimensional code

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040114707A1 (en) * 2002-09-23 2004-06-17 Herbert Bruder Method of creating images in computed tomography (CT), and CT device
CN102074051A (en) * 2011-01-13 2011-05-25 深圳市蓝韵实业有限公司 Fast locating method for data bonding volume of volume rendering parallel projection
CN103354928A (en) * 2012-02-03 2013-10-16 日本电气株式会社 Device, method, and program for visualization of multi-dimensional data

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106845314B (en) * 2016-12-28 2019-07-12 广州智慧城市发展研究院 A kind of method for rapidly positioning of two dimensional code
CN108985129A (en) * 2018-08-02 2018-12-11 谷东科技(广州)有限公司 The positioning of two dimensional code and method for detecting
CN108985129B (en) * 2018-08-02 2021-11-23 谷东科技有限公司 Two-dimensional code positioning and detecting method
CN110348265A (en) * 2019-07-19 2019-10-18 福建工程学院 A kind of novel matrix code restoring method based on parallel coordinate system
CN110348265B (en) * 2019-07-19 2022-04-05 福建工程学院 Novel matrix code restoration method based on parallel coordinate system
CN111178111A (en) * 2019-12-31 2020-05-19 航天信息股份有限公司 Two-dimensional code detection method, electronic device, storage medium and system
CN116776909A (en) * 2023-08-28 2023-09-19 四川星点网络技术有限公司 Bottle lid two-dimensional code system of tracing to source
CN116776909B (en) * 2023-08-28 2023-11-03 四川星点网络技术有限公司 Bottle lid two-dimensional code system of tracing to source

Also Published As

Publication number Publication date
CN106845314B (en) 2019-07-12

Similar Documents

Publication Publication Date Title
CN106845314A (en) A kind of method for rapidly positioning of Quick Response Code
CN112348815B (en) Image processing method, image processing apparatus, and non-transitory storage medium
US10924729B2 (en) Method and device for calibration
CN111008597B (en) Space identification method and device for CAD drawing, electronic equipment and storage medium
US9721532B2 (en) Color chart detection apparatus, color chart detection method, and color chart detection computer program
CN108090486B (en) Image processing method and device in billiard game
CN109993019A (en) Two-dimensional code identification method, system and equipment and medium based on connected domain analysis
US20140050387A1 (en) System and Method for Machine Vision Inspection
WO2020220388A1 (en) Qr code recognition method and apparatus, qr code generation method and apparatus, qr code and trolley
CN106845313A (en) A kind of binary processing method of Quick Response Code
CN107192716A (en) A kind of workpiece, defect quick determination method based on contour feature
CN104794704A (en) Calibration template and template detection method, device and terminal
CN108564082A (en) Image processing method, device, server and medium
CN115131444A (en) Calibration method based on monocular vision dispensing platform
CN110443245A (en) Localization method, device and the equipment of a kind of license plate area under unrestricted scene
CN114638294A (en) Data enhancement method and device, terminal equipment and storage medium
CN107316298A (en) A kind of method for real-time measurement of welded gaps, device and electronic equipment
CN114037992A (en) Instrument reading identification method and device, electronic equipment and storage medium
CN100383810C (en) Distorted QR code image correction method
CN113643386B (en) Calibration method and device, electronic equipment and computer readable storage medium
CN105373793A (en) Vertex positioning method for QR code image geometric correction
CN115187769A (en) Positioning method and device
CN115205361A (en) Depth image completion method, device, equipment and storage medium
CN107358138A (en) Bearing calibration, mobile terminal and the storage device of nonlinear distortion EAN bar codes
CN111415384B (en) Industrial image component accurate positioning system based on deep learning

Legal Events

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

Effective date of registration: 20230417

Address after: 6 / F, block a, 88 Tiangui Road, Huadu District, Guangzhou, Guangdong 510800

Patentee after: DEVELOPMENT Research Institute OF GUANGZHOU SMART CITY

Patentee after: GUANGZHOU BOCHUANG INFORMATION TECHNOLOGY CO.,LTD.

Patentee after: Guangzhou Zhongke Integrated Circuit Design Co.,Ltd.

Address before: 6 / F, block a, 88 Tiangui Road, Huadu District, Guangzhou, Guangdong 510800

Patentee before: DEVELOPMENT Research Institute OF GUANGZHOU SMART CITY

Patentee before: GUANGZHOU BOCHUANG INFORMATION TECHNOLOGY CO.,LTD.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20231117

Address after: 6 / F, block a, 88 Tiangui Road, Huadu District, Guangzhou, Guangdong 510800

Patentee after: DEVELOPMENT Research Institute OF GUANGZHOU SMART CITY

Patentee after: GUANGZHOU BOCHUANG INFORMATION TECHNOLOGY CO.,LTD.

Address before: 6 / F, block a, 88 Tiangui Road, Huadu District, Guangzhou, Guangdong 510800

Patentee before: DEVELOPMENT Research Institute OF GUANGZHOU SMART CITY

Patentee before: GUANGZHOU BOCHUANG INFORMATION TECHNOLOGY CO.,LTD.

Patentee before: Guangzhou Zhongke Integrated Circuit Design Co.,Ltd.