CN115014142A - Steel tape scale error measuring method based on machine vision - Google Patents

Steel tape scale error measuring method based on machine vision Download PDF

Info

Publication number
CN115014142A
CN115014142A CN202210593103.8A CN202210593103A CN115014142A CN 115014142 A CN115014142 A CN 115014142A CN 202210593103 A CN202210593103 A CN 202210593103A CN 115014142 A CN115014142 A CN 115014142A
Authority
CN
China
Prior art keywords
steel tape
image information
printed
scale error
machine vision
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.)
Pending
Application number
CN202210593103.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.)
Henan University
Original Assignee
Henan University
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 Henan University filed Critical Henan University
Priority to CN202210593103.8A priority Critical patent/CN115014142A/en
Publication of CN115014142A publication Critical patent/CN115014142A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B3/00Measuring instruments characterised by the use of mechanical techniques
    • G01B3/10Measuring tapes
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B21/00Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant
    • G01B21/02Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant for measuring length, width, or thickness
    • G01B21/04Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant for measuring length, width, or thickness by measuring coordinates of points
    • G01B21/045Correction of measurements
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Abstract

The invention provides a machine vision-based steel tape scale error measuring method, which comprises the following steps of: step one, acquiring image information of a steel tape in a production process; step two, preprocessing the image information to obtain the actual length b of a single pixel on the image information and the pixel number n between 1mm printed on the steel tape 2 (ii) a Step three, obtaining the pixel number n between 1mm printed on the steel tape by using the obtained pixel actual length b 2 Calculating the actual length of 1mm printed on the ruler, thereby obtaining the error between the actual length and the 1mm printed on the steel tape; the scale error measurement is carried out on the steel tape in the production and printing process of the steel tape, so that the step of separately measuring the scale error after the steel tape is printed is omitted, and the production efficiency is greatly improved.

Description

Steel tape scale error measuring method based on machine vision
Technical Field
The invention relates to the technical field of steel tape calibration, in particular to a method for measuring scale errors of a steel tape based on machine vision.
Background
The steel tape is a basic length measuring instrument, is a common tool for building and decoration, and is widely applied to daily life. The verification process adopted by the current steel tape production enterprises is as follows: the method comprises the steps of placing a steel tape to be detected (a detected ruler) and a standard steel tape (a standard ruler) on a verification platform, aligning zero scale marks of the detected ruler and the standard ruler, and then adopting a measurement mode of comparing the scale marks of the detected ruler with the scale marks of the standard ruler. The manual comparison has the inevitable defects:
1. the step of measuring the scale error can be carried out only after the steel tape is produced, and the scale error cannot be measured in the process of producing and printing the steel tape.
2. The eyes can be tired due to long-time work of the workers, and the manual reading error is easy to occur.
3. The qualified standards of the quality cannot be completely unified, and different people detecting the same product may make different judgments on the product due to subjective consciousness.
4. Slow, costly, inefficient, and require a significant amount of labor and capital.
Therefore, based on the above problems, a new method for measuring the scale error of the steel tape is urgently needed to replace the manual work, so that the production efficiency is improved.
Disclosure of Invention
In view of the above problems, the present application provides a method for measuring scale errors of a steel tape based on machine vision, so as to solve at least one technical problem in the prior art and improve the calibration efficiency of the steel tape.
The invention provides a machine vision-based method for measuring scale errors of a steel tape, which comprises the following steps of:
step one, acquiring image information of a steel tape in a production process;
step two, preprocessing the image information to obtain the actual length b of a single pixel on the image information and the pixel number n between 1mm printed on the steel tape 2
Step three, obtaining the pixel number n between 1mm printed on the steel tape by using the obtained pixel actual length b 2 And calculating the actual length of 1mm printed on the ruler, thereby obtaining the error between the actual length and the 1mm printed on the steel tape.
Further, the formula for calculating the scale error of the steel tape measure is as follows: delta ═ n 2 *b-1
Wherein, the Delta is the scale error of the steel tape with the length of 1 m.
Further, in the first step, a CMOS linear array industrial camera is used for collecting image information of the steel tape on the rotating wheel.
Furthermore, marks are arranged on the rotating wheel at positions which are not shielded by the steel tape, and in the second step, the distance L between the marks and the number n of pixels between the marks are obtained by obtaining the positions of the marks on the rotating wheel in the image information 1 So as to obtain the actual length b of a single pixel as L/n 1
Further, in the second step, the preprocessing the image information includes: firstly, graying and binaryzation processing are carried out on the image information, then corrosion and expansion operation are carried out firstly, noise points and burrs are eliminated, then the image is segmented, and column areas where numbers and scales are located are extracted; and then, scales and numbers on the ruler are arranged at the frame by utilizing a circumscribed rectangle algorithm.
Further, in step two, the number n of pixels printed on the steel tape measure between 1mm is obtained 2 The method comprises the following steps: comparing the intercepted numbers in the rectangular frame with template numbers by using a template matching method, so as to identify the numbers in the rectangular frame and further determine the positions of the steel tape at intervals of 1 m; then scanning the vicinity of the digital positions of the starting point and the end point of the 1m interval to find the position of the long scale mark closest to the starting point and the end point of the 1m interval, taking the center of the circumscribed rectangle of the long scale mark as the specific scale coordinate position of the starting point and the end point of the 1m interval, and accurately calculating the number n of pixels at the 1m interval according to the scale coordinates 2
The invention provides a method for measuring scale errors of a steel tape based on machine vision, which has the following beneficial effects:
(1) according to the invention, the scale error is measured in the production and printing processes of the steel tape, so that the step of separately measuring the scale error after the steel tape is printed is omitted, and the production efficiency is greatly improved.
(2) According to the method for measuring the scale error of the steel tape based on the machine vision, the CMOS linear array industrial camera is used for collecting images, the line frequency of the camera is high, 50000 lines of pixels can be collected every second, the collected high-resolution images are obtained, and the detection precision is improved.
(3) According to the steel tape scale error measuring method based on machine vision, the numbers on the steel tape are identified through the template matching method, the identification speed is high, and the efficiency is improved.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings.
Fig. 1 is a schematic diagram of a method for measuring scale errors of a steel tape based on machine vision according to the present invention.
FIG. 2 is a flow chart of a steel tape scale error measurement method based on machine vision provided by the invention.
Fig. 3 is a schematic structural view of the steel tape and the rotating wheel.
FIG. 4 is a gray scale view of a steel tape with a marker.
FIG. 5 is a binarized image of a steel tape with a marker.
Fig. 6 is an effect diagram of dividing scales, numbers and markers from the steel tape binary image.
Fig. 7 is an effect diagram of a circumscribed rectangle drawn to a scale frame.
Figure 8 is a digital view taken on a steel tape.
Fig. 9 is a template number for identifying a number.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
The invention provides a machine vision-based method for measuring scale errors of a steel tape, which is taken as a specific implementation mode and refers to figures 1 and 2, and comprises the following steps:
step one, acquiring image information of a steel tape in a production process;
step two, preprocessing the image information to obtain the actual length b of a single pixel on the image information and the pixel number n between 1mm printed on the steel tape 2
Step three, obtaining the pixel number n between 1mm printed on the steel tape by using the obtained pixel actual length b 2 And calculating the actual length of 1mm printed on the ruler, thereby obtaining the error between the actual length and the 1mm printed on the steel tape.
Further, the formula for calculating the scale error of the steel tape measure is as follows: delta ═ n 2 *b-1
Wherein, the Delta is the scale error of the steel tape with the length of 1 m.
Specifically, it will be appreciated that, with reference to fig. 3, the process of printing the steel tape scale is: the steel belt 2 is wound on the rotating wheel 1, the rotating wheel is driven by the driving motor to drive the steel belt to be conveyed, and the scales are printed on the steel belt through the screen printing plate in the conveying process.
Further, as a preferred real-time mode, in the step one, a CMOS linear array industrial camera is used for collecting image information of the steel tape on the rotating wheel, the CMOS linear array industrial camera is used for collecting images, the line frequency of the camera is high, 50000 lines of pixels can be collected per second, the collected high-resolution images can be obtained, and the detection precision can be improved.
Further, as a specific embodiment, a mark 3 is provided on a position of the wheel not covered by the steel tape, and in the second step, the distance L between marks and the number n of pixels between marks are obtained by obtaining the position of the mark on the wheel in the image information 1 So as to obtain the actual length b of a single pixel as L/n 1
Specifically, the mark 3 on the wheel may be an indication line set on the wheel 1, as a specific embodiment, the scale mark may be set to be one, during the rotation of the wheel, the picture information including the indication line is obtained through the obtained image information, when the wheel rotates for one or more cycles, the picture information of the indication line is obtained again, and then the number n of pixels between the indication lines in two adjacent pictures is obtained 1 Then, the distance L is obtained according to the number of turns of the rotating wheel and the perimeter of the rotating wheel, so that the actual length of a single pixel can be calculated; it will be appreciated that, as another practical implementation, the indicator lines may be set to have a known distance of two, so that the actual length of a single pixel can be obtained by only obtaining the number of pixels between the two indicator lines in the actual operation process.
Further, in step two, the preprocessing the image information includes: firstly, graying and binaryzation processing are carried out on the image information, then corrosion and expansion operation are carried out firstly, noise points and burrs are eliminated, then the image is segmented, and column areas where numbers and scales are located are extracted; and then, scales and numbers on the ruler are arranged at the frame by utilizing a circumscribed rectangle algorithm.
Specifically, referring to fig. 4 to 9, after the CMOS linear array industrial camera is used to collect the image information of the steel tape on the rotating wheel, the collected image is preprocessed first, and the image is grayed, in the process, the RGB image may be grayed by using a weighted average method, so as to enhance the image contrast and highlight the details of the image; the influence of illumination unevenness can be eliminated by utilizing a Gaussian homomorphic filter; eliminating salt and pepper noise by adopting a median filtering method; segmenting the image by utilizing an Otsu algorithm, distinguishing a background from a target area, and highlighting scale information; secondly, extracting the scales and numbers in the image information, and marking points with obvious brightness change in the image by adopting a canny edge detection method in the process; filling holes existing in the target area by utilizing expansion operation and eliminating small particle noise contained in the target area; accurately extracting the image information of the ruler by using a method of small-area image elimination and target defect graphic marking; referring to fig. 4, a pattern after graying image information is performed, referring to fig. 6, a pattern after binarization processing is performed on a grayed image, and a processing mode of removing noise and burrs through operations of etching and expanding is performed first, so that an interference item of a background image can be removed, and the recognition accuracy is improved, referring to fig. 7, the image is divided, a number and a column area where the scale is located are extracted, then an external matrix algorithm is adopted, the scale and the number of the ruler on the picture are framed, and the number on the picture is intercepted (refer to fig. 8).
Further, in the second step, the number n of pixels printed on the steel tape measure and between 1mm is obtained 2 The method comprises the following steps: using a template matching method, referring to fig. 9, to identify the template numbers for the numbers, comparing the numbers in the cut rectangular frame with the template numbers, thereby identifying the numbers in the rectangular frame and further determining the positions of the steel tape at intervals of 1m printed thereon; then scanning the vicinity of the digital positions of the starting point and the end point of the 1m interval to find the position of the long scale mark closest to the starting point and the end point of the 1m interval, taking the center of the circumscribed rectangle of the long scale mark as the specific scale coordinate position of the starting point and the end point of the 1m interval, and accurately calculating the number n of pixels at the 1m interval according to the scale coordinates 2 Specifically, the speed of recognizing the numbers on the steel tape can be increased by a template matching method, and the detection efficiency is further increased.
The foregoing description is only exemplary of the preferred embodiments of the application and is illustrative of the principles of the technology employed. It will be appreciated by a person skilled in the art that the scope of the invention according to the present application is not limited to the specific combination of the above-mentioned features, but also covers other embodiments where any combination of the above-mentioned features or their equivalents is made without departing from the inventive concept. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (6)

1. A steel tape scale error measuring method based on machine vision is characterized by comprising the following steps:
step one, acquiring image information of a steel tape in a production process;
step two, preprocessing the image information to obtain the actual length b of a single pixel on the image information and the pixel number n between 1mm printed on the steel tape 2
Step three, obtaining the pixel number n between 1mm printed on the steel tape by using the obtained pixel actual length b 2 And calculating the actual length of 1mm printed on the ruler, thereby obtaining the error between the actual length and the 1mm printed on the steel tape.
2. The machine vision-based steel tape scale error measuring method of claim 1, wherein the formula for calculating the steel tape scale error is as follows: delta ═ n 2 *b-1
Wherein, the Delta is the scale error of the steel tape with the length of 1 m.
3. The machine vision-based steel tape scale error measuring method as claimed in claim 1, wherein in the first step, a CMOS line array industrial camera is used to collect image information of the steel tape on the rotating wheel.
4. The machine vision-based steel tape scale error measuring method according to claim 3, wherein marks are provided on the rotating wheel at positions not covered by the steel tape, and in the second step, the distance L between the marks and the number n of pixels between the marks are obtained by obtaining the positions of the marks on the rotating wheel in the image information 1 So as to obtain the actual length b of a single pixel as L/n 1
5. The machine vision-based steel tape scale error measurement method of claim 2, wherein in step two, the preprocessing of the image information comprises: firstly, graying and binaryzation processing are carried out on the image information, then corrosion and expansion operation are carried out firstly, noise points and burrs are eliminated, then the image is segmented, and column areas where numbers and scales are located are extracted; and then, scales and numbers on the ruler are arranged at the frame by utilizing a circumscribed rectangle algorithm.
6. The machine vision-based steel tape scale error measuring method as claimed in claim 5, wherein in step two, the number n of pixels printed on the steel tape with the thickness of 1mm is obtained 2 The method comprises the following steps: comparing the intercepted numbers in the rectangular frame with template numbers by using a template matching method, so as to identify the numbers in the rectangular frame and further determine the positions of the steel tape at intervals of 1 m; then scanning the vicinity of the digital positions of the starting point and the end point of the 1m interval to find the position of the long scale mark closest to the starting point and the end point of the 1m interval, taking the center of the circumscribed rectangle of the long scale mark as the specific scale coordinate position of the starting point and the end point of the 1m interval, and accurately calculating the number n of pixels at the 1m interval according to the scale coordinates 2
CN202210593103.8A 2022-05-27 2022-05-27 Steel tape scale error measuring method based on machine vision Pending CN115014142A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210593103.8A CN115014142A (en) 2022-05-27 2022-05-27 Steel tape scale error measuring method based on machine vision

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210593103.8A CN115014142A (en) 2022-05-27 2022-05-27 Steel tape scale error measuring method based on machine vision

Publications (1)

Publication Number Publication Date
CN115014142A true CN115014142A (en) 2022-09-06

Family

ID=83071677

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210593103.8A Pending CN115014142A (en) 2022-05-27 2022-05-27 Steel tape scale error measuring method based on machine vision

Country Status (1)

Country Link
CN (1) CN115014142A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116972709A (en) * 2023-09-25 2023-10-31 天津金色方圆仪器仪表有限公司 Steel tape verification error analysis method and system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09229635A (en) * 1996-02-23 1997-09-05 Matsushita Electric Ind Co Ltd Actual space length measuring method by photographing means, calibrating method in optical system and reference standard used for calibration in optical system
US20050199831A1 (en) * 2002-03-27 2005-09-15 Metso Automation Oy Method for determining the scale of an observation area
CN105135966A (en) * 2015-07-24 2015-12-09 成都市计量检定测试院 Steel tape automatic detecting system and detecting method thereof
CN105180732A (en) * 2015-07-24 2015-12-23 成都市计量检定测试院 Steel band tape scale error measuring method
CN207147337U (en) * 2017-07-03 2018-03-27 中国计量大学 A kind of steel tape error of indication calibrating installation
CN109657667A (en) * 2018-12-12 2019-04-19 南京华研科贸实业有限公司 A kind of digital tape measure based on image procossing
CN209512678U (en) * 2019-04-02 2019-10-18 厦门市计量检定测试院 A kind of calibrating installation of steel tape
CN110688996A (en) * 2019-09-23 2020-01-14 天津大学 Embedded automatic ruler reading device and method based on visual sensing

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09229635A (en) * 1996-02-23 1997-09-05 Matsushita Electric Ind Co Ltd Actual space length measuring method by photographing means, calibrating method in optical system and reference standard used for calibration in optical system
US20050199831A1 (en) * 2002-03-27 2005-09-15 Metso Automation Oy Method for determining the scale of an observation area
CN105135966A (en) * 2015-07-24 2015-12-09 成都市计量检定测试院 Steel tape automatic detecting system and detecting method thereof
CN105180732A (en) * 2015-07-24 2015-12-23 成都市计量检定测试院 Steel band tape scale error measuring method
CN207147337U (en) * 2017-07-03 2018-03-27 中国计量大学 A kind of steel tape error of indication calibrating installation
CN109657667A (en) * 2018-12-12 2019-04-19 南京华研科贸实业有限公司 A kind of digital tape measure based on image procossing
CN209512678U (en) * 2019-04-02 2019-10-18 厦门市计量检定测试院 A kind of calibrating installation of steel tape
CN110688996A (en) * 2019-09-23 2020-01-14 天津大学 Embedded automatic ruler reading device and method based on visual sensing

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
谢小光等: "数字识别技术在钢卷尺自动检定系统中的应用", 《机电工程》 *
魏彩乔等: "基于图 像处理的钢卷尺自动检定系统", 《仪表技术与传感器》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116972709A (en) * 2023-09-25 2023-10-31 天津金色方圆仪器仪表有限公司 Steel tape verification error analysis method and system
CN116972709B (en) * 2023-09-25 2023-12-19 天津金色方圆仪器仪表有限公司 Steel tape verification error analysis method and system

Similar Documents

Publication Publication Date Title
CN108918526B (en) Notch defect detection method for flexible IC packaging substrate circuit
CN109900711A (en) Workpiece, defect detection method based on machine vision
CN108960237B (en) Reading identification method for pointer type oil level indicator
CN112613429B (en) Pointer type instrument reading method suitable for multi-view images based on machine vision
CN106248686A (en) Glass surface defects based on machine vision detection device and method
CN107945155B (en) Toothpaste tube shoulder defect detection method based on Gabor filter
CN109284718B (en) Inspection robot-oriented variable-view-angle multi-instrument simultaneous identification method
CN112258460A (en) Printed product quality real-time monitoring and quality inspection system based on image recognition
CN1633592A (en) Web inspection method and device
CN109115800B (en) Method for rapidly detecting burrs of product and accurately measuring length
CN115375686B (en) Glass edge flaw detection method based on image processing
CN104050446A (en) Meter pointer image identification method based on pointer width character
CN114486732B (en) Ceramic tile defect online detection method based on line scanning three-dimension
CN107796826A (en) Miniature duplicate gear broken teeth defect inspection method based on the analysis of tooth heart distance Curve
CN115014142A (en) Steel tape scale error measuring method based on machine vision
CN111507186A (en) Substation pointer instrument reading identification method
CN116109577A (en) Printing label defect detection system and method
CN111476792B (en) Extraction method of strip steel image contour
CN110516725B (en) Machine vision-based wood board stripe spacing and color detection method
CN111815575A (en) Bearing steel ball part detection method based on machine vision
CN109886911B (en) Leveling bubble reticle defect detection method based on image processing technology
CN113538323A (en) Defect detection method and system based on deep learning
CN113008267B (en) Level bar limit inclination qualification detection system and method based on image processing technology
CN112329770B (en) Instrument scale identification method and device
CN113269749A (en) Strip position image data collection method and visual detection method thereof

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20220906

RJ01 Rejection of invention patent application after publication