CN102829731B - 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
CN102829731B
CN102829731B CN201210296972.0A CN201210296972A CN102829731B CN 102829731 B CN102829731 B CN 102829731B CN 201210296972 A CN201210296972 A CN 201210296972A CN 102829731 B CN102829731 B CN 102829731B
Authority
CN
China
Prior art keywords
straight lines
edge
sub
image
objects
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
Application number
CN201210296972.0A
Other languages
Chinese (zh)
Other versions
CN102829731A (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

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 sub-pixel precision measuring method
Technical field:
The present invention relates to physical field, relate in particular to measuring technique, particularly in field of machine vision, measure the technology of air line distance, concrete is that a kind of improved two rectilineal intervals are from sub-pixel precision measuring method.
Background technology:
In prior art, machine vision metrology method can be divided into monocular vision measurement, binocular vision measurement in space and used for multi-vision visual according to the number of the sensor adopting and measure three kinds of forms.Wherein, it is high to hardware requirement that binocular vision measurement in space and used for multi-vision visual are measured form, complicated to the demarcation of camera and registration process, and in the online application scenario of measuring in real time, measuring speed is slower.And monocular vision measurement form adopts geometric similarity mensuration, there is feature simple in structure, without complicated demarcation and registration process, still, the geometric distortion meeting of image makes linearity not enough, and measuring error is larger.
Summary of the invention:
The object of the present invention is to provide a kind of improved two rectilineal intervals from sub-pixel precision measuring method, described this improved two rectilineal intervals will solve in prior art piecture geometry fault in monocular camera machine vision measuring method from sub-pixel precision measuring method and cause the technical matters that measuring error is larger.
This improved two rectilineal intervals of the present invention are from sub-pixel precision measuring method, comprise a step of utilizing single camera to gather objects' contour image, an employing sub-pixel edge extraction algorithm obtains the step at edge and sub-pix contour edge is pruned to the step that obtains better linearity from objects' contour image, , wherein, after the described step that obtains edge from objects' contour image completes, from edge, filter out two objective straight lines, then two objective straight lines are pruned respectively, improve the linearity of target line, finally measure the distance between two objective straight lines after pruning.
Further, before the step that adopts sub-pixel edge extraction algorithm to obtain edge from objects' contour image is carried out, the threshold value that image is cut apart is first set, then the objects' contour image of camera being obtained is made Threshold segmentation, select the highlighted part of objects' contour image, then reject fringe region part in addition, select again background area, 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, retain possible boundary profile, then do circular expander computing, obtain the region of edge in-scope, again the field of definition of objects' contour image is dwindled to the size of target area for this reason, then the image in this field of definition is offered to sub-pixel edge extraction algorithm and ask marginal operation.
Further, after the described step that obtains edge from objects' contour image completes, using RAMER algorithm is polygon by edge fitting, and segmenting edge profile, straight-line segment is split and defined ± 10 intervals of spending angles filter out two objective straight lines.
The present invention and prior art are compared, and its effect is actively with obvious.The present invention uses the geometric similarity mensuration in monocular vision measurement, the optical axis of the object plane of testee and one camera system is vertical and be parallel to picture plane, object and its image meet similarity relation, read pixel point parameter from image, and be multiplied by enlargement factor, can obtain the physical dimension parameter of object reality.First from image, obtain the edge of two sub-pixs between straight line, then edge prunes, improve linearity, correct distortion, the image after pruning is carried out to the matching of straight line, finally measure the distance of calculating between two straight lines.The present invention compares binocular and multi-view stereo vision, has feature simple in structure, without complicated demarcation and registration process, has reduced the error that piecture geometry fault produces simultaneously.
Accompanying drawing explanation:
Fig. 1 is that improved two rectilineal intervals of the present invention are from the schematic diagram of an embodiment of sub-pixel precision measuring method.
To be improved two rectilineal intervals of the present invention use from camera in an embodiment of sub-pixel precision measuring method the image obtaining after backlight illumination to Fig. 2 to the right side of target object.
Fig. 3 be improved two rectilineal intervals of the present invention from use in an embodiment of sub-pixel precision measuring method canny operator in field of definition, ask edge, according to the schematic diagram at the resulting three sections of edges of ramer linear feature dividing wheel profile.
Fig. 4 is improved two rectilineal intervals of the present invention from the schematic diagram of the linear edge blocking in an embodiment of sub-pixel precision measuring method.
Fig. 5 is the schematic diagram of the linear edge after improved two rectilineal intervals of the present invention are optimized from an embodiment cathetus degree of sub-pixel precision measuring method.
Embodiment:
Embodiment 1:
As depicted in figs. 1 and 2, improved two rectilineal intervals of the present invention are from sub-pixel precision measuring method, comprise that one is utilized step and the employing sub-pixel edge extraction algorithm that single camera 4 gathers target object 2 contour images from target object 2 contour images, to obtain the step at edge, wherein, after the described step that obtains edge from target object 2 contour images completes, from edge, filter out two objective straight lines, then two objective straight lines are pruned respectively, improve the linearity of target line, finally measure the distance between two objective straight lines after pruning.
At the described single camera 4 that utilizes, gather in the step of target object 2 contour images, utilize 1 pair of target object 2 of a back light to do dark ground illumination, by 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 that image is cut apart is first set, and the annular object contour images of then camera being obtained is made Threshold segmentation, selects the highlighted part of target object 2 contour images.
Owing to there being noise, can first calculate the connected region at two places, left and right.
By the area of screening connected region, region, two of the left and right that comprises annular object elevation information is elected, reject unwanted region.
Then select background area, 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, retain interested boundary profile, then do circular expander computing, obtain the target area that comprises needed two straight lines, again the field of definition of target object 2 contour images is dwindled to the size of target area for this reason, then the image in this field of definition is offered to sub-pixel edge extraction algorithm and ask marginal operation.
Re-using the image of canny operator in this field of definition carries out sub-pix and asks marginal operation.Alpha value is made as 1.
As shown in Figure 3, after obtaining edge, using RAMER algorithm is polygon by edge fitting, and segmenting edge profile, straight-line segment is split and defined ± 10 intervals of spending angles filter out two objective straight lines.
As shown in Figure 4, the linear edge blocking, curvature changes greatly.
As shown in Figure 5, before carrying out line measurement, target line is pruned, the straight-line segment that curvature is larger blocks certain distance from end points, and the distance in the present embodiment is 5 to put pixel, to improve linearity, corrects distortion.Finally by calculating, going up each point on outline line, to the vertical range of lower whorl profile, uses the method for adding up to try to achieve the mean distance between the straight line of matching.

Claims (2)

1. improved two rectilineal intervals are from sub-pixel precision measuring method, comprise a step of utilizing single camera to gather objects' contour image, an employing sub-pixel edge extraction algorithm obtains the step at edge and sub-pix contour edge is pruned to the step that obtains better linearity from objects' contour image, it is characterized in that: after the described step that obtains edge from objects' contour image completes, from edge, filter out two objective straight lines, then two objective straight lines are pruned respectively, improve the linearity of target line, finally measure the distance between two objective straight lines after pruning, before the step that adopts sub-pixel edge extraction algorithm to obtain edge from objects' contour image is carried out, the threshold value that image is cut apart is first set, then the objects' contour image of camera being obtained is made Threshold segmentation, select objects' contour image, then reject fringe region part in addition, select again background area, 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, retain possible boundary profile, then do circular expander computing, obtain the region of edge in-scope, again the field of definition of objects' contour image is dwindled to the size of target area for this reason, then the image in this field of definition is offered to sub-pixel edge extraction algorithm and ask marginal operation.
2. improved two rectilineal intervals as claimed in claim 1 are from sub-pixel precision measuring method, it is characterized in that: after the described step that obtains edge from objects' contour image completes, using RAMER algorithm is polygon by edge fitting, and segmenting edge profile, straight-line segment is split and defined ± 10 intervals of spending angles filter out two objective 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 CN102829731A (en) 2012-12-19
CN102829731B true 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)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103471531B (en) * 2013-09-27 2016-01-20 吉林大学 The online non-contact measurement method of axial workpiece linearity
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
CN113124819B (en) * 2021-06-17 2021-09-10 中国空气动力研究与发展中心低速空气动力研究所 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 (4)

* Cited by examiner, † Cited by third party
Title
一种基于视觉的瓷砖尺寸在线检测系统;张帅等;《北京机械工业学院学报》;20081231;第23卷(第4期);第20-23页 *
多边形图像与背景分离方法研究;杨洁等;《计算机工程与设计》;20111231;第32卷(第8期);第2772-2775页 *
张帅等.一种基于视觉的瓷砖尺寸在线检测系统.《北京机械工业学院学报》.2008,第23卷(第4期),第20-23页.
杨洁等.多边形图像与背景分离方法研究.《计算机工程与设计》.2011,第32卷(第8期),第2772-2775页.

Also Published As

Publication number Publication date
CN102829731A (en) 2012-12-19

Similar Documents

Publication Publication Date Title
CN109003258B (en) High-precision sub-pixel circular part measuring method
US20200132451A1 (en) Structural Light Parameter Calibration Device and Method Based on Front-Coating Plane Mirror
CN102589516B (en) Dynamic distance measuring system based on binocular line scan cameras
CN104236498B (en) Method for measuring end size of switch rail
CN102829731B (en) Improved sub-pixel precision measurement method for distance between two straight lines
CN107578464A (en) A kind of conveyor belt workpieces measuring three-dimensional profile method based on line laser structured light
CN103615980B (en) Method and system for measuring parameters of round holes in plate
US10271039B2 (en) Structured light matching of a set of curves from two cameras
CN103535960B (en) Human body three-dimensional measurement method based on digital images
CN110298853B (en) Visual inspection method for surface difference
CN102927908A (en) Robot eye-on-hand system structured light plane parameter calibration device and method
CN104061879A (en) Continuous-scanning structured light three-dimensional surface shape perpendicular measuring method
CN102798349A (en) Three-dimensional surface extraction method based on equal-gray line search
US20200124406A1 (en) Method for referencing a plurality of sensors and associated measuring device
CN204070693U (en) A kind of three-dimensional human body measurement device of structure based light technology
CN109507198B (en) Mask detection system and method based on fast Fourier transform and linear Gaussian
CN104236479A (en) Line structured optical three-dimensional measurement system and three-dimensional texture image construction algorithm
CN111260708A (en) Line structure optical center extraction method and system
Flesia et al. Sub-pixel straight lines detection for measuring through machine vision
CN104794717A (en) Binocular vision system based depth information comparison method
CN105335931A (en) Board card image stitching method, processing device and system
Li et al. 3D measurement system based on divergent multi-line structured light projection, its accuracy analysis
CN103247032A (en) Method for positioning slight expanded target based on gesture compensation
CN110118646B (en) Glasses parameter detection device and method based on synthetic moire fringe technology
CN103884294A (en) Wide view field type infrared light three-dimensional morphology measurement method and device thereof

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
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.