CN102829731A - Improved sub-pixel precision measurement method for distance between two straight lines - Google Patents

Improved sub-pixel precision measurement method for distance between two straight lines Download PDF

Info

Publication number
CN102829731A
CN102829731A CN2012102969720A CN201210296972A CN102829731A CN 102829731 A CN102829731 A CN 102829731A CN 2012102969720 A CN2012102969720 A CN 2012102969720A CN 201210296972 A CN201210296972 A CN 201210296972A CN 102829731 A CN102829731 A CN 102829731A
Authority
CN
China
Prior art keywords
straight lines
edge
sub
target
target object
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
CN2012102969720A
Other languages
Chinese (zh)
Other versions
CN102829731B (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.)
SHANGHAI CHINESE CAR RIBERD INTELLIGENT SYSTEM Co.,Ltd.
Original Assignee
Shanghai Ruibode Intelligent System Sci & Tech 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 Shanghai Ruibode Intelligent System Sci & Tech Co Ltd filed Critical Shanghai Ruibode Intelligent System Sci & Tech Co Ltd
Priority to CN201210296972.0A priority Critical patent/CN102829731B/en
Publication of CN102829731A publication Critical patent/CN102829731A/en
Application granted granted Critical
Publication of CN102829731B publication Critical patent/CN102829731B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Analysis (AREA)
  • Image Processing (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Abstract

An improved sub-pixel precision measurement method for a distance between two straight lines includes a step of using a single camera to acquire a target object outline image and a step of using a sub-pixel edge extraction algorithm to obtain edges from the target object outline image. The method further includes: after the edges are obtained, screening out two target straight lines from the edges, trimming non-linear portions of the two target straight lines respectively to improve straightness of the target straight lines, and finally measuring the distance between the two trimmed target straight lines. By means of a geometric similarity measurement method, an object plane of a measured object is perpendicular to an optical axis of a single-camera system and parallel to an image plane, and the object and the image thereof meet the similar relation. The sub-pixel precision edges of the two straight lines are obtained from the image, the non-linear portions of the edges are trimmed to improve the straightness, the trimmed image is subjected to straight line fitting, and finally the distance between the two straight lines is measured. The improved sub-pixel precision measurement method for the distance between two straight lines is simple in structure, complex calibration and rectification processes are not avoided, and errors are reduced.

Description

Improved two rectilineal intervals are from the sub-pixel precision measuring method
Technical field:
The present invention relates to physical field, relate in particular to measuring technique, particularly measure the technology of air line distance in the field of machine vision, concrete is that a kind of improved two rectilineal intervals are from the sub-pixel precision measuring method.
Background technology:
In the prior art, the machine vision metrology method can be divided into monocular vision measurement, binocular vision measurement in space and three kinds of forms of used for multi-vision visual measurement according to the number of the sensor that adopts.Wherein, it is high to hardware requirement that binocular vision measurement in space and used for multi-vision visual are measured form, and complicated to the demarcation and the registration process of camera, measuring speed is slower in the application scenario that online in real time is measured.And monocular vision measurement form adopts the geometric similarity mensuration, has characteristic of simple structure, need not complicated demarcation and registration process, and still, the geometric distortion meeting of image makes linearity not enough, and measuring error is bigger.
Summary of the invention:
The object of the present invention is to provide a kind of improved two rectilineal intervals from the sub-pixel precision measuring method, described this improved two rectilineal intervals will solve in the prior art from the sub-pixel precision measuring method that piecture geometry fault causes the bigger technical matters of measuring error in the monocular camera machine vision measuring method.
This improved two rectilineal intervals of the present invention are from the sub-pixel precision measuring method; Comprise a step of utilizing single camera to gather the target object contour images, a step that adopts the sub-pixel edge extraction algorithm from the target object contour images, to obtain the step at edge and the sub-pix contour edge pruned the better linearity of acquisition; Wherein, After the described step that from the target object contour images, obtains the edge is accomplished, from the edge, filter out two target straight lines, then two target straight lines are pruned respectively; Improve the linearity of target line, measure the distance between two target straight lines after pruning at last.
Further, before the step that adopts the sub-pixel edge extraction algorithm from the target object contour images, to obtain the edge is carried out, the threshold value of image segmentation is set earlier; The target object contour images of then camera being obtained is made Threshold Segmentation, selects the high bright parts of target object contour images, rejects the part beyond the fringe region then; Select the background area again, the structural element of use 3 * 3 corrodes conversion to inside, background area, obtains the border of background area; Then this border is carried out just pruning; Keep possible boundary profile, do the circular expander computing then, obtain the zone of edge in-scope; Again the field of definition of target object contour images is dwindled the size of target area for this reason, will offer the sub-pixel edge extraction algorithm then at the image in this field of definition and ask marginal operation.
Further; After the described step that from the target object contour images, obtains the edge is accomplished; Use the RAMER algorithm that edge fitting is polygon, and the segmenting edge profile, straight-line segment is split and defines ± interval at 10 degree angles filters out two target straight lines.
The present invention and prior art are compared, and its effect is actively with tangible.The present invention uses the geometric similarity mensuration in the monocular vision measurement; The optical axis of the object plane of testee and one camera system is vertical and be parallel to the picture plane; Object and its image satisfy similarity relation; Read pixel point parameter from image, and multiply by enlargement factor, can obtain the actual physical dimension parameter of object.From image, obtain the edge of the sub-pix between two straight lines earlier, again the edge is pruned, improve linearity, correct distortion, the image after pruning is carried out the match of straight line, measure the distance of calculating between two straight lines at last.The present invention compares binocular and multi-eye stereo vision, has characteristic of simple structure, need not complicated demarcation and registration process, has reduced the error that piecture geometry fault produces simultaneously.
Description of drawings:
Fig. 1 is the synoptic diagram of improved two rectilineal intervals of the present invention from an embodiment of sub-pixel precision measuring method.
Fig. 2 is the improved two rectilineal intervals of the present invention images that camera uses backlight illumination back to obtain to the right side of target object in an embodiment of sub-pixel precision measuring method.
Fig. 3 to be improved two rectilineal intervals of the present invention use in an embodiment of the sub-pixel precision measuring method canny operator asks in field of definition edge, according to the synoptic diagram at the resulting three sections edges of ramer linear feature dividing wheel profile.
Fig. 4 is the synoptic diagram that improved two rectilineal intervals of the present invention leave the linear edge that blocks among the embodiment of sub-pixel precision measuring method.
Fig. 5 is the synoptic diagram of the linear edge of improved two rectilineal intervals of the present invention after an embodiment cathetus degree of sub-pixel precision measuring method is optimized.
Embodiment:
Embodiment 1:
As depicted in figs. 1 and 2; Improved two rectilineal intervals of the present invention are from the sub-pixel precision measuring method; Comprise a step and a step that adopts the sub-pixel edge extraction algorithm from target object 2 contour images, to obtain the edge of utilizing single camera 4 to gather target object 2 contour images, wherein, after the described step that from target object 2 contour images, obtains the edge is accomplished; From the edge, filter out two target straight lines; Then two target straight lines are pruned respectively, improved the linearity of target line, measure the distance between two target straight lines after pruning at last.
Utilize in the step that single camera 4 gathers target objects 2 contour images described, utilize 1 pair of target object 2 of a back light to do dark ground illumination, with the optical axis of camera 4 perpendicular to back light 1.
Target object 2 in the present embodiment is annular objects.Target object 2 is placed on the table top of a worktable 3, and the optical axis of camera 4 is parallel with the table top of worktable 3
The threshold value of image segmentation is set earlier, and the annular object contour images of then camera being obtained is made Threshold Segmentation, selects the high bright parts of target object 2 contour images.
Owing to have noise, the connected region at two places about can calculating earlier.
Through the screening connected region area, will comprise annular object elevation information about two zones elect, reject unwanted zone.
Select the background area then, the structural element of use 3 * 3 corrodes conversion to inside, background area, obtains the border of background area; Then this border is carried out just pruning; Keep interested boundary profile, do the circular expander computing then, obtain comprising the target area of needed two straight lines; Again the field of definition of target object 2 contour images is dwindled the size of target area for this reason, will offer the sub-pixel edge extraction algorithm then at the image in this field of definition and ask marginal operation.
Re-using the image of canny operator in this field of definition carries out sub-pix and asks marginal operation.The Alpha value is made as 1.
As shown in Figure 3, after obtaining the edge, use the RAMER algorithm that edge fitting is polygon, and the segmenting edge profile, straight-line segment is split and defines ± interval at 10 degree angles filters out two target straight lines.
Linear edge as shown in Figure 4, as to block, curved transition is big.
As shown in Figure 5, before carrying out line measurement, target line is done pruning, the straight-line segment that curvature is bigger blocks certain distance from end points, and the distance in the present embodiment is 5 to put pixel, to improve linearity, corrects distortion.Each puts the vertical range of lower whorl profile on the outline line through calculating at last, uses the method for adding up to try to achieve the mean distance between the straight line of match.

Claims (3)

1. improved two rectilineal intervals are from the sub-pixel precision measuring method; Comprise the step that a step of utilizing single camera to gather the target object contour images, adopt the sub-pixel edge extraction algorithm from the target object contour images, to obtain the step at edge and the sub-pix contour edge pruned the better linearity of acquisition; It is characterized in that: after the described step that from the target object contour images, obtains the edge is accomplished; From the edge, filter out two target straight lines; Then two target straight lines are pruned respectively, improved the linearity of target line, measure the distance between two target straight lines after pruning at last.
2. improved two rectilineal intervals as claimed in claim 1 is characterized in that from the sub-pixel precision measuring method: before the step that adopts the sub-pixel edge extraction algorithm from the target object contour images, to obtain the edge is carried out, the threshold value of image segmentation is set earlier; The target object contour images of then camera being obtained is made Threshold Segmentation; Select the target object contour images, reject the part beyond the fringe region then, select the background area again; The structural element of use 3 * 3 corrodes conversion to inside, background area; Obtain the border of background area, then this border is carried out just pruning, keep possible boundary profile; Do the circular expander computing then; Obtain the zone of edge in-scope, again the field of definition of target object contour images is dwindled the size of target area for this reason, will offer the sub-pixel edge extraction algorithm then at the image in this field of definition and ask marginal operation.
3. improved two rectilineal intervals as claimed in claim 1 are from the sub-pixel precision measuring method; It is characterized in that: after the described step that from the target object contour images, obtains the edge is accomplished; Use the RAMER algorithm that edge fitting is polygon; And the segmenting edge profile, straight-line segment is split and defines ± interval at 10 degree angles filters out two target straight lines.
CN201210296972.0A 2012-08-20 2012-08-20 Improved sub-pixel precision measurement method for distance between two straight lines Active CN102829731B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210296972.0A CN102829731B (en) 2012-08-20 2012-08-20 Improved sub-pixel precision measurement method for distance between two straight lines

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210296972.0A CN102829731B (en) 2012-08-20 2012-08-20 Improved sub-pixel precision measurement method for distance between two straight lines

Publications (2)

Publication Number Publication Date
CN102829731A true CN102829731A (en) 2012-12-19
CN102829731B CN102829731B (en) 2014-10-15

Family

ID=47332952

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210296972.0A Active CN102829731B (en) 2012-08-20 2012-08-20 Improved sub-pixel precision measurement method for distance between two straight lines

Country Status (1)

Country Link
CN (1) CN102829731B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103471531A (en) * 2013-09-27 2013-12-25 吉林大学 On-line non-contact measurement method for straightness of axis parts
CN109099818A (en) * 2018-06-27 2018-12-28 武汉理工大学 Portable micron order high definition range-measurement system
CN109215068A (en) * 2017-07-06 2019-01-15 深圳华大智造科技有限公司 Image magnification ratio measurement method and device
CN113124819A (en) * 2021-06-17 2021-07-16 中国空气动力研究与发展中心低速空气动力研究所 Monocular distance measuring method based on plane mirror

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1680072A (en) * 2004-04-08 2005-10-12 电子科技大学 Precisive measurement of static knife profile
CN101982729A (en) * 2010-08-27 2011-03-02 中国计量学院 Rack measuring method by utilizing image method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1680072A (en) * 2004-04-08 2005-10-12 电子科技大学 Precisive measurement of static knife profile
CN101982729A (en) * 2010-08-27 2011-03-02 中国计量学院 Rack measuring method by utilizing image method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张帅等: "一种基于视觉的瓷砖尺寸在线检测***", 《北京机械工业学院学报》 *
杨洁等: "多边形图像与背景分离方法研究", 《计算机工程与设计》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103471531A (en) * 2013-09-27 2013-12-25 吉林大学 On-line non-contact measurement method for straightness of axis parts
CN103471531B (en) * 2013-09-27 2016-01-20 吉林大学 The online non-contact measurement method of axial workpiece linearity
CN109215068A (en) * 2017-07-06 2019-01-15 深圳华大智造科技有限公司 Image magnification ratio measurement method and device
CN109215068B (en) * 2017-07-06 2021-05-28 深圳华大智造科技股份有限公司 Image magnification measuring method and device
CN109099818A (en) * 2018-06-27 2018-12-28 武汉理工大学 Portable micron order high definition range-measurement system
CN113124819A (en) * 2021-06-17 2021-07-16 中国空气动力研究与发展中心低速空气动力研究所 Monocular distance measuring method based on plane mirror

Also Published As

Publication number Publication date
CN102829731B (en) 2014-10-15

Similar Documents

Publication Publication Date Title
Chen et al. High-accuracy multi-camera reconstruction enhanced by adaptive point cloud correction algorithm
CN102589516B (en) Dynamic distance measuring system based on binocular line scan cameras
CN102829731B (en) Improved sub-pixel precision measurement method for distance between two straight lines
CN104236498B (en) Method for measuring end size of switch rail
CN109345554A (en) A kind of adhesion mushroom vision in-situ measuring method based on RGB-D camera
CN110298853B (en) Visual inspection method for surface difference
CN107633502B (en) Target center identification method for automatic centering of shaft hole assembly
CN102798349A (en) Three-dimensional surface extraction method based on equal-gray line search
CN105241389A (en) Machine visual sense based detection system for blunt round radius of cutting edge of milling cutter
CN105242568B (en) Tobacco leaf based on Digital Image Processing accurately rejects control method
CN107239742A (en) A kind of gauge pointer scale value calculating method
CN110763136B (en) High-precision three-dimensional workpiece size detection system and method
Flesia et al. Sub-pixel straight lines detection for measuring through machine vision
CN111260708A (en) Line structure optical center extraction method and system
CN105072330A (en) Linear array camera automatic focusing method
CN107507185B (en) Method for rapidly detecting circle suitable for industrial detection
CN109387524A (en) Thread defect detection method and device based on linearly polarized photon
CN103900499B (en) Cigarette package poster region area assay method based on computer vision technique
CN103337067B (en) The visible detection method of single needle scan-type screw measurement instrument probe X-axis rotating deviation
CN111815575B (en) Bearing steel ball part detection method based on machine vision
KR101733028B1 (en) Method For Estimating Edge Displacement Againt Brightness
CN103493096B (en) The analysis of the digital picture of tire inner surface and the processing of pseudo-measurement point
CN105823430B (en) Image Acquisition when visual field is less than flexible annular accessory size and joining method
CN107833217B (en) Graph card detection method based on mathematical morphology
CN105654473A (en) Sub-pixel edge detection method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 200335, Shanghai, Changning District, No. 3, No. 8 Canton Road

Patentee after: SHANGHAI RUIBODE INTELLIGENT SYSTEMS Co.,Ltd.

Address before: 200335, Shanghai, Changning District, No. 3, No. 8 Canton Road

Patentee before: SHANGHAI RO-INTELLIGENT SYSTEM Co.,Ltd.

Address after: 200335, Shanghai, Changning District, No. 3, No. 8 Canton Road

Patentee after: SHANGHAI CHINESE CAR RIBERD INTELLIGENT SYSTEM Co.,Ltd.

Address before: 200335, Shanghai, Changning District, No. 3, No. 8 Canton Road

Patentee before: SHANGHAI RUIBODE INTELLIGENT SYSTEMS Co.,Ltd.

CP01 Change in the name or title of a patent holder