CN111597856B - Concrete mark extraction method based on photochromic material - Google Patents
Concrete mark extraction method based on photochromic material Download PDFInfo
- Publication number
- CN111597856B CN111597856B CN202010455212.4A CN202010455212A CN111597856B CN 111597856 B CN111597856 B CN 111597856B CN 202010455212 A CN202010455212 A CN 202010455212A CN 111597856 B CN111597856 B CN 111597856B
- Authority
- CN
- China
- Prior art keywords
- image
- identification
- color
- pixels
- dimensional 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/14—Methods 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/1404—Methods for optical code recognition
- G06K7/1408—Methods for optical code recognition the method being specifically adapted for the type of code
- G06K7/1417—2D bar codes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/14—Methods 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/1404—Methods for optical code recognition
- G06K7/1439—Methods for optical code recognition including a method step for retrieval of the optical code
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/018—Certifying business or products
Abstract
The invention discloses a concrete mark extraction method based on a photochromic material, which comprises the following steps: acquiring an image and zooming the image; color identification, extracting color blocks; performing minimum circumscribed circle fitting on the extracted color blocks; rotating the image to determine the position of the positioning point; dividing the image into M-N rectangular blocks, establishing a coordinate system and generating an array; generating a two-dimensional code according to the array; filling the positioning area; and identifying the two-dimensional code to finish decoding. According to the invention, the identification information is extracted through the color of the identification image, and the identification information based on the photochromic material is converted into the two-dimensional code image, so that the situation that the identification information cannot be accurately identified due to the abrasion of the identification in the traditional mode can be avoided; on the premise of simple identification mode, extraction of complex information is realized, and the safety of the concrete identification is enhanced.
Description
Technical Field
The invention relates to image processing, in particular to a concrete mark extraction method based on a photochromic material.
Background
The concrete is easy to wear in the transportation process or long-term placement, and the mark is easy to wash, so that the mark cannot be identified, and whether the concrete product is a genuine product cannot be checked; limited by an identification extraction mode, the traditional concrete marking and identification mode is low, the identification characteristic information is less, the safety is poor, and the identification is very easy to copy or replace; after concrete is identified, some identification points are arranged on the surface of the concrete, and the identification points cannot be accurately identified by a traditional identification mode, so that the identification error is large.
Disclosure of Invention
The invention aims to solve the problems and provide a concrete mark extraction method based on a photochromic material, which comprises the following steps:
s1, acquiring a concrete identification image under ultraviolet rays, and zooming the concrete identification image;
s2, carrying out color recognition on the identification image, judging whether the color block is a preset color, and if so, extracting the color block;
s3, performing minimum circumscribed circle fitting on the extracted color blocks;
s4, taking the color block closest to the corner of the image as an image positioning point, and rotating the image to enable the image positioning point to be positioned at a set position in the image;
s5, establishing a coordinate system, generating an array: setting M as a height value, N as a width value, i representing a height direction index, i ranging from [0, M-1], j representing a width direction index, j ranging from [0, N-1], setting a value of a preset color as T, dividing an image in a positioning point into M × N rectangular blocks, detecting whether a circumscribed circle exists in each rectangular block, establishing a coordinate system by taking the image positioning point as an original point, generating an array A [ i, j ], judging that the circumscribed circle exists in the rectangular block at the position (i, j) and the preset color exists in the circumscribed circle, and if so, determining that A [ i, j ] = T; otherwise a [ i, j ] =255;
s6, generating a two-dimensional code according to the array: setting h as the image height, w as the image width and p as a multiple constant; creating an image of height h = p M and width w = p N; if x represents the position in the width direction and y represents the position in the height direction, the position of any pixel point in the image is (x, y), wherein the range of x is [0, w-1], the range of y is [0, h-1], and f (x, y) is the value of the pixel point, so that the pixel value of the generated two-dimensional code image is f (x, y) = A [ y// p, x// p ], wherein// represents the integer division symbol;
s7, determining an image positioning area according to the image positioning point, and filling the positioning area;
and S8, identifying the two-dimensional code to finish decoding.
The invention has the beneficial effects that: according to the invention, the identification information is extracted through the color of the identification image, and the identification information based on the photochromic material is converted into the two-dimensional code image, so that the situation that the identification information cannot be accurately identified due to the abrasion of the identification in the traditional mode can be avoided; on the premise of simple identification mode, extraction of complex information is realized, and the safety of the concrete identification is enhanced.
Drawings
FIG. 1 is a flow chart of the present invention;
FIG. 2 is a schematic diagram of an image before two-dimensional code generation;
fig. 3 is a schematic diagram of the generated two-dimensional code image.
In the figure: 1-internal wireframe; 2-middle line frame; 3-outer wireframe.
Detailed Description
The invention is further described below with reference to the accompanying drawings:
as shown in the attached figure 1, the invention relates to a method for extracting a concrete mark based on a photochromic material, which comprises the following steps:
s1, acquiring a concrete identification image under ultraviolet rays, and zooming the concrete identification image;
s2, carrying out color recognition on the identification image, judging whether the color block is a preset color, and if so, extracting the color block;
s3, performing minimum circumscribed circle fitting on the extracted color blocks;
s4, taking the color block closest to the corner of the image as an image positioning point, and rotating the image to enable the image positioning point to be positioned at a set position in the image;
s5, establishing a coordinate system, generating an array: setting M as a height value, N as a width value, i representing a height direction index, i ranging from [0, M-1], j representing a width direction index, j ranging from [0, N-1], setting a value of a preset color as T, dividing an image in a positioning point into M × N rectangular blocks, detecting whether a circumscribed circle exists in each rectangular block, establishing a coordinate system by taking the image positioning point as an original point, generating an array A [ i, j ], judging that the circumscribed circle exists in the rectangular block at the position (i, j) and the preset color exists in the circumscribed circle, and if so, determining that A [ i, j ] = T; otherwise a [ i, j ] =255;
s6, generating a two-dimensional code according to the array: setting h as the image height, w as the image width and p as a multiple constant; creating an image of height h = p M and width w = p N; if x represents the position in the width direction and y represents the position in the height direction, the position of any pixel point in the image is (x, y), wherein the range of x is [0, w-1], the range of y is [0, h-1], and f (x, y) is the value of the pixel point, so that the pixel value of the generated two-dimensional code image is f (x, y) = A [ y// p, x// p ], wherein// represents the integer division symbol;
s7, determining an image positioning area according to the image positioning point, and filling the positioning area;
and S8, identifying the two-dimensional code to finish decoding.
Further, the specific process of determining the image positioning region according to the image positioning point is as follows: and expanding the image generated in the step S6 outwards by P pixels, setting the pixels of the leftmost column and the bottommost row of the expanded pixels as 0, dividing the pixels of the uppermost row of the expanded pixels into N +2 groups according to P groups from left to right, and alternately setting the pixels as 0 and 255 from left to right. Specifically, the image is expanded outwards by 5 pixels, the expanded leftmost and bottommost pixels are set to be 0, the expanded upper pixels are divided into N +2 groups from left to right, each 5 groups are sequentially and alternately set to be 0 and 255 pixels, then each 5 groups of the right pixels are divided into M +2 groups from top to bottom, and the groups are alternately arranged in a 255 and 0 pixel mode to complete the filling of the positioning area, as shown in fig. 3, between the middle wire frame and the inner wire frame, the filled image is further expanded outwards by 5 × 2 pixels, all the outwards expanded pixels are set to be 255, and the middle wire frame and the outer wire frame are the results.
In the identification extraction process, obtaining a color block with a preset color through image color extraction and identification, and performing minimum circumcircle fitting on the color block; firstly, finding out locating points, then detecting all identification points in a rectangular range of the locating points, and then corresponding the identification points to all grids, thereby completing the extraction of the coding lattice and generating the two-dimensional code according to the lattice.
According to the invention, the identification information is extracted through the color of the identification image, and the identification information based on the photochromic material is converted into the two-dimensional code image, so that the situation that the identification information cannot be accurately identified due to the abrasion of the identification in the traditional mode can be avoided; on the premise of simple identification mode, the extraction of complex information is realized, and the safety of the concrete identification is enhanced.
The technical solution of the present invention is not limited to the limitations of the above specific embodiments, and all technical modifications made according to the technical solution of the present invention fall within the protection scope of the present invention.
Claims (2)
1. A concrete mark extraction method based on photochromic materials is characterized by comprising the following steps:
s1, acquiring a concrete identification image under ultraviolet rays, and zooming the concrete identification image;
s2, carrying out color recognition on the identification image, judging whether the color block is a preset color, and if so, extracting the color block;
s3, fitting the minimum circumscribed circle of the extracted color block;
s4, taking the color block closest to the corner of the image as an image positioning point, and rotating the image to enable the image positioning point to be positioned at a set position in the image;
s5, establishing a coordinate system, generating an array: setting M as a height value, N as a width value, i representing a height direction index, i ranging from [0, M-1], j representing a width direction index, j ranging from [0, N-1], setting a value of a preset color as T, dividing an image in a positioning point into M × N rectangular blocks, detecting whether a circumscribed circle exists in each rectangular block, establishing a coordinate system by taking the image positioning point as an original point, generating an array A [ i, j ], judging that the circumscribed circle exists in the rectangular block at the position (i, j) and the preset color exists in the circumscribed circle, and if so, determining that A [ i, j ] = T; otherwise a [ i, j ] =255;
s6, generating a two-dimensional code according to the array: setting h as the image height, w as the image width and p as a multiple constant; creating an image of height h = p M and width w = p N; if x represents the position in the width direction and y represents the position in the height direction, the position of any pixel point in the image is (x, y), wherein x ranges from [0, w-1] to [0, h-1], and if f (x, y) is the value of the pixel point, the pixel value of the generated two-dimensional code image is f (x, y) = A [ y// p, x// p ], wherein// represents the integer division symbol;
s7, determining an image positioning area according to the image positioning point, and filling the positioning area;
and S8, identifying the two-dimensional code to finish decoding.
2. The method for extracting the concrete mark based on the photochromic material is characterized in that the specific process of determining the image positioning area according to the image positioning points is as follows: and expanding the image generated in the step S6 outwards by P pixels, setting the pixels of the leftmost column and the bottommost row of the expanded pixels as 0, dividing the pixels of the uppermost row of the expanded pixels into N +2 groups according to P groups from left to right, and alternately setting the pixels as 0 and 255 from left to right.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010455212.4A CN111597856B (en) | 2020-05-26 | 2020-05-26 | Concrete mark extraction method based on photochromic material |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010455212.4A CN111597856B (en) | 2020-05-26 | 2020-05-26 | Concrete mark extraction method based on photochromic material |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111597856A CN111597856A (en) | 2020-08-28 |
CN111597856B true CN111597856B (en) | 2023-04-07 |
Family
ID=72190637
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010455212.4A Active CN111597856B (en) | 2020-05-26 | 2020-05-26 | Concrete mark extraction method based on photochromic material |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111597856B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114758260B (en) * | 2022-06-15 | 2022-10-18 | 成都鹏业软件股份有限公司 | Construction site safety protection net detection method and system |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1885311A (en) * | 2006-05-29 | 2006-12-27 | 深圳矽感科技有限公司 | Two-dimensional code, encoding and decoding method thereof |
CN102708349A (en) * | 2012-05-11 | 2012-10-03 | 深圳市天朗时代科技有限公司 | Method for decoding matrix two-dimensional code |
CN103325075A (en) * | 2012-11-22 | 2013-09-25 | 长沙建研信息技术有限公司 | Concrete test block locating method based on two-dimensional bar codes |
CN103531086A (en) * | 2013-10-09 | 2014-01-22 | 湖北金三峡印务有限公司 | Printing structure capable of displaying two-dimensional code through thermal alteration |
CN105654015A (en) * | 2014-11-18 | 2016-06-08 | 康耐视公司 | Systems and methods for decoding two-dimensional matrix symbols |
CN106372562A (en) * | 2016-08-31 | 2017-02-01 | 王薇 | Packaging coiled material, method and system for position two-dimensional code position of coiled material |
CN107451640A (en) * | 2017-07-20 | 2017-12-08 | 福州觉感视觉软件科技有限公司 | A kind of method for anti-counterfeit based on Quick Response Code |
CN107491801A (en) * | 2017-07-13 | 2017-12-19 | 海南亚元防伪技术研究所(普通合伙) | The endowed method and system of artificial intelligence |
CN108351979A (en) * | 2015-11-09 | 2018-07-31 | 三星电子株式会社 | Electronic equipment and its operating method |
TWI646467B (en) * | 2017-09-30 | 2019-01-01 | 元智大學 | Method and system for generating two dimensional barcode with hidden data |
US10552788B1 (en) * | 2016-09-20 | 2020-02-04 | Amazon Technologies, Inc. | User tracking system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150178612A1 (en) * | 2013-12-20 | 2015-06-25 | Alfa Wassermann, Inc. | Optical machine readable coded labels |
-
2020
- 2020-05-26 CN CN202010455212.4A patent/CN111597856B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1885311A (en) * | 2006-05-29 | 2006-12-27 | 深圳矽感科技有限公司 | Two-dimensional code, encoding and decoding method thereof |
CN102708349A (en) * | 2012-05-11 | 2012-10-03 | 深圳市天朗时代科技有限公司 | Method for decoding matrix two-dimensional code |
CN103325075A (en) * | 2012-11-22 | 2013-09-25 | 长沙建研信息技术有限公司 | Concrete test block locating method based on two-dimensional bar codes |
CN103531086A (en) * | 2013-10-09 | 2014-01-22 | 湖北金三峡印务有限公司 | Printing structure capable of displaying two-dimensional code through thermal alteration |
CN105654015A (en) * | 2014-11-18 | 2016-06-08 | 康耐视公司 | Systems and methods for decoding two-dimensional matrix symbols |
CN108351979A (en) * | 2015-11-09 | 2018-07-31 | 三星电子株式会社 | Electronic equipment and its operating method |
CN106372562A (en) * | 2016-08-31 | 2017-02-01 | 王薇 | Packaging coiled material, method and system for position two-dimensional code position of coiled material |
US10552788B1 (en) * | 2016-09-20 | 2020-02-04 | Amazon Technologies, Inc. | User tracking system |
CN107491801A (en) * | 2017-07-13 | 2017-12-19 | 海南亚元防伪技术研究所(普通合伙) | The endowed method and system of artificial intelligence |
CN107451640A (en) * | 2017-07-20 | 2017-12-08 | 福州觉感视觉软件科技有限公司 | A kind of method for anti-counterfeit based on Quick Response Code |
TWI646467B (en) * | 2017-09-30 | 2019-01-01 | 元智大學 | Method and system for generating two dimensional barcode with hidden data |
Non-Patent Citations (1)
Title |
---|
上海南翔陈翔路站综合体装配式混凝土(PC)结构建造全过程BIM应用;张明正等;《土木建筑工程信息技术》(第05期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN111597856A (en) | 2020-08-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111723585B (en) | Style-controllable image text real-time translation and conversion method | |
CN105989317B (en) | Two-dimensional code identification method and device | |
EP3330887B1 (en) | Chinese-sensitive code feature pattern detection method and system | |
CN112767357A (en) | Yolov 4-based concrete structure disease detection method | |
US10354111B2 (en) | Primary localization method and system for QR codes | |
CN111144411B (en) | Irregular text correction and identification method and system based on saliency map | |
CN112508090A (en) | External package defect detection method | |
CN113392669B (en) | Image information detection method, detection device and storage medium | |
CN109685788B (en) | Automatic detection method for floor defect image based on morphological characteristics | |
CN111597856B (en) | Concrete mark extraction method based on photochromic material | |
US8534565B2 (en) | Two-dimensional optical identification device with same gray level for quick decoding and decoding method therefor | |
CN114724155A (en) | Scene text detection method, system and equipment based on deep convolutional neural network | |
CN106407973A (en) | Robust recognition method for AR code marked on cylinder | |
CN106909869A (en) | A kind of sampling grid partitioning method and device of matrix two-dimensional code | |
CN107369162B (en) | Method and system for generating insulator candidate target area | |
CN111047614B (en) | Feature extraction-based method for extracting target corner of complex scene image | |
CN107832732A (en) | Method for detecting lane lines based on ternary tree traversal | |
CN108492345B (en) | Data block dividing method based on scale transformation | |
CN111597853B (en) | Concrete mark extraction method | |
CN112926581B (en) | Text detection method based on contour modeling | |
CN113516123A (en) | Detection and identification method for tire embossed characters | |
CN113723414A (en) | Mask face shelter segmentation method and device | |
CN112330659A (en) | Geometric tolerance symbol segmentation method combining LSD (least squares) linear detection and connected domain marking method | |
CN112949755B (en) | OCR data synthesis method based on image structure information | |
CN107194328B (en) | Feature extraction method for circular image |
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 |