CN111597856A - Concrete mark extraction method based on photochromic material - Google Patents

Concrete mark extraction method based on photochromic material Download PDF

Info

Publication number
CN111597856A
CN111597856A CN202010455212.4A CN202010455212A CN111597856A CN 111597856 A CN111597856 A CN 111597856A CN 202010455212 A CN202010455212 A CN 202010455212A CN 111597856 A CN111597856 A CN 111597856A
Authority
CN
China
Prior art keywords
image
setting
identification
color
pixels
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
CN202010455212.4A
Other languages
Chinese (zh)
Other versions
CN111597856B (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.)
CHENGDU PENGYE SOFTWARE CO LTD
Original Assignee
CHENGDU PENGYE SOFTWARE 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 CHENGDU PENGYE SOFTWARE CO LTD filed Critical CHENGDU PENGYE SOFTWARE CO LTD
Priority to CN202010455212.4A priority Critical patent/CN111597856B/en
Publication of CN111597856A publication Critical patent/CN111597856A/en
Application granted granted Critical
Publication of CN111597856B publication Critical patent/CN111597856B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/14172D bar codes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Commerce
    • G06Q30/018Certifying 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, the extraction of complex information is realized, and the safety of the concrete identification is enhanced.

Description

Concrete mark extraction method based on photochromic material
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, identifying the color of the identification image, judging whether the color block is a preset color, if so, extracting the color block;
s3, fitting the minimum circumscribed circle of the extracted color block;
s4, taking the color block nearest 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 the 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 as a height direction index, i in a range of [0, M-1], j as a width direction index, j in a range of [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, setting A [ i, j ] as T; otherwise, a [ i, j ] ═ 255;
and S6, generating the 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 with a height h M and a width w N; setting x to represent a width direction position, setting y to represent a height direction position, setting the position of any pixel point in the image as (x, y), wherein x ranges from [0, w-1], y ranges from [0, h-1], and setting f (x, y) to be a value of the pixel point, and setting a pixel value of the generated two-dimensional code image as f (x, y) ═ a [ y// p, x// p ], wherein// represents an integer division symbol;
s7, determining an image positioning area according to the image positioning points, and filling the positioning area;
and S8, identifying the two-dimensional code and finishing 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, the 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 a generated two-dimensional code image.
In the figure: 1-internal wireframe; 2-middle line frame; 3-outer wire frame.
Detailed Description
The invention will be further described with reference to the accompanying drawings in which:
as shown in the attached figure 1, the method for extracting the concrete mark based on the photochromic material comprises the following steps:
s1, acquiring a concrete identification image under ultraviolet rays, and zooming the concrete identification image;
s2, identifying the color of the identification image, judging whether the color block is a preset color, if so, extracting the color block;
s3, fitting the minimum circumscribed circle of the extracted color block;
s4, taking the color block nearest 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 the 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 as a height direction index, i in a range of [0, M-1], j as a width direction index, j in a range of [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, setting A [ i, j ] as T; otherwise, a [ i, j ] ═ 255;
and S6, generating the 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 with a height h M and a width w N; setting x to represent a width direction position, setting y to represent a height direction position, setting the position of any pixel point in the image as (x, y), wherein x ranges from [0, w-1], y ranges from [0, h-1], and setting f (x, y) to be a value of the pixel point, and setting a pixel value of the generated two-dimensional code image as f (x, y) ═ a [ y// p, x// p ], wherein// represents an integer division symbol;
s7, determining an image positioning area according to the image positioning points, and filling the positioning area;
and S8, identifying the two-dimensional code and finishing 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 by P pixels, setting the pixels in the leftmost column and the bottommost row of the expanded pixels to be 0, dividing the pixels in the topmost row of the expanded pixels into N +2 groups by P groups from left to right, and alternately setting the pixels to be 0 and 255 from left to right. Specifically, the image is expanded outward 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 by 5 groups, the groups are sequentially and alternately set to be 0 and 255 pixels, then the right pixels are divided into M +2 groups from top to bottom by 5 groups, the groups are alternately arranged in a 255 and 0 pixel mode, and the filling of the positioning area is completed, as shown in fig. 3, between the middle wire frame and the inner wire frame, the filled image is further expanded outward by 5 pixels, all the outward expansion 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, identifying the color of the identification image, judging whether the color block is a preset color, if so, extracting the color block;
s3, fitting the minimum circumscribed circle of the extracted color block;
s4, taking the color block nearest 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 the 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 as a height direction index, i in a range of [0, M-1], j as a width direction index, j in a range of [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, setting A [ i, j ] as T; otherwise, a [ i, j ] ═ 255;
and S6, generating the 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 with a height h M and a width w N; setting x to represent a width direction position, setting y to represent a height direction position, setting the position of any pixel point in the image as (x, y), wherein x ranges from [0, w-1], y ranges from [0, h-1], and setting f (x, y) to be a value of the pixel point, and setting a pixel value of the generated two-dimensional code image as f (x, y) ═ a [ y// p, x// p ], wherein// represents an integer division symbol;
s7, determining an image positioning area according to the image positioning points, and filling the positioning area;
and S8, identifying the two-dimensional code and finishing 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 by P pixels, setting the pixels in the leftmost column and the bottommost row of the expanded pixels to be 0, dividing the pixels in the topmost row of the expanded pixels into N +2 groups by P groups from left to right, and alternately setting the pixels to be 0 and 255 from left to right.
CN202010455212.4A 2020-05-26 2020-05-26 Concrete mark extraction method based on photochromic material Active CN111597856B (en)

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 true CN111597856A (en) 2020-08-28
CN111597856B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114758260A (en) * 2022-06-15 2022-07-15 成都鹏业软件股份有限公司 Construction site safety protection net detection method and system

Citations (12)

* Cited by examiner, † Cited by third party
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
US20150178612A1 (en) * 2013-12-20 2015-06-25 Alfa Wassermann, Inc. Optical machine readable coded labels
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

Patent Citations (12)

* Cited by examiner, † Cited by third party
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
US20150178612A1 (en) * 2013-12-20 2015-06-25 Alfa Wassermann, Inc. Optical machine readable coded labels
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)

* Cited by examiner, † Cited by third party
Title
张明正等: "上海南翔陈翔路站综合体装配式混凝土(PC)结构建造全过程BIM应用", 《土木建筑工程信息技术》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114758260A (en) * 2022-06-15 2022-07-15 成都鹏业软件股份有限公司 Construction site safety protection net detection method and system
CN114758260B (en) * 2022-06-15 2022-10-18 成都鹏业软件股份有限公司 Construction site safety protection net detection method and system

Also Published As

Publication number Publication date
CN111597856B (en) 2023-04-07

Similar Documents

Publication Publication Date Title
CN111723585B (en) Style-controllable image text real-time translation and conversion method
CN112767357A (en) Yolov 4-based concrete structure disease detection method
EP3330887B1 (en) Chinese-sensitive code feature pattern detection method and system
CN109753949B (en) Multi-window traffic sign detection method based on deep learning
CN101609555B (en) Gray level template matching method based on gray level co-occurrence matrixes
CN112200117B (en) Form identification method and device
CN112508090A (en) External package defect detection method
US20180173918A1 (en) Primary Localization Method and System for QR Codes
CN109685788B (en) Automatic detection method for floor defect image based on morphological characteristics
CN113392669B (en) Image information detection method, detection device and storage medium
CN109767479B (en) Dynamic boundary group sequence-based primitive filling method and system
CN111582093A (en) Automatic small target detection method in high-resolution image based on computer vision and deep learning
CN102682266B (en) Cylindrical surface bidimensional bar code reading method based on image splicing
CN111597856B (en) Concrete mark extraction method based on photochromic material
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
CN114219790B (en) Steel surface defect significance detection method based on edge information
CN111614974A (en) Video image restoration method and system
CN113610052A (en) Tunnel water leakage automatic identification method based on deep learning
CN107832732A (en) Method for detecting lane lines based on ternary tree traversal
CN111047614B (en) Feature extraction-based method for extracting target corner of complex scene image
CN104331883A (en) Image boundary extraction method based on non-symmetry and anti-packing model
CN111814795A (en) Character segmentation method, device and computer readable storage medium
CN108492345B (en) Data block dividing method based on scale transformation
CN111597853B (en) Concrete mark extraction 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
GR01 Patent grant
GR01 Patent grant