CN102519400B - Large slenderness ratio shaft part straightness error detection method based on machine vision - Google Patents

Large slenderness ratio shaft part straightness error detection method based on machine vision Download PDF

Info

Publication number
CN102519400B
CN102519400B CN201110419626.2A CN201110419626A CN102519400B CN 102519400 B CN102519400 B CN 102519400B CN 201110419626 A CN201110419626 A CN 201110419626A CN 102519400 B CN102519400 B CN 102519400B
Authority
CN
China
Prior art keywords
camera
image
axis
coordinate
distance
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.)
Expired - Fee Related
Application number
CN201110419626.2A
Other languages
Chinese (zh)
Other versions
CN102519400A (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.)
Nanjing Institute of Technology
Southeast University
Original Assignee
Nanjing Institute of Technology
Southeast 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 Nanjing Institute of Technology, Southeast University filed Critical Nanjing Institute of Technology
Priority to CN201110419626.2A priority Critical patent/CN102519400B/en
Publication of CN102519400A publication Critical patent/CN102519400A/en
Application granted granted Critical
Publication of CN102519400B publication Critical patent/CN102519400B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Length Measuring Devices By Optical Means (AREA)

Abstract

The invention, which belongs to a shaft part straightness error detection field, discloses a large slenderness ratio shaft part straightness error detection method based on machine vision. The method comprises the following steps: (1) installing standard components; (2) installing a camera; (3) installing workpiece; (4) collecting an image; (5) processing the image; (6) establishing a coordinate system; (7) calculating and acquiring a position coordinate of a center of a circle; (8) unifying the coordinate; (9) according to the coordinate of the center of the circle of a cross section, using a current straightness evaluation method to calculate the straightness. According to the invention, a position relation between the standard components is taken as a link and a coordinate position relation between the images is established so as to avoid using an image splicing technology with long time consuming. Simultaneously, a distance from the camera to the part does not need to be the same with the distance from the camera to the standard components. Measuring difficulty can be reduced and measuring precision can be increased.

Description

Big L/D ratio axial workpiece straightness error detection method based on machine vision
Technical field
The present invention relates to a kind of axial workpiece straightness error detection method, more particularly, relate to a kind of big L/D ratio axial workpiece straightness error detection method based on machine vision.
Background technology
Vision is human perception and the world of understanding periphery, obtains the topmost means of knowledge from the Nature.In the information of obtaining the mankind, 80% from vision, and remaining is 20% from the sense of hearing, the sense of taste, sense of touch etc.Machine vision, refers to and utilizes computing machine and some utility appliance to realize people's visual performance, thereby realizes by the extraneous things of two dimensional image perception and objective three-dimensional world, is an emerging subject, is one of interesting research frontier.
Along with the development of machine vision technique, there is a kind of means or the new detection method that carrier is used, i.e. image detecting technique based on machine vision of image being used as to detection and transmission of information.It is to take contemporary optics as basis, melts the modern detecting that the science and technology such as optoelectronics, computer graphics, information processing, machine vision are integrated.The instrument and equipment of the image detecting technique based on machine vision can be realized intellectuality, digitizing, miniaturization, networking and multifunction, possess online detection, real-time analysis, the real-time ability of controlling, in fields such as military affairs, industry, medical science, obtain extensive concern and application.
Image detecting method based on machine vision has had application in mechanical component physical dimension detects, and mainly concentrates on dimensional measurement and the dimensional measurement based on Image Mosaics based on single image.Single image detection method is with piece image, to show the overall picture of whole part, obtains the physical dimension of part by image operation.But because the field range of camera suffers restraints, because the method is only applicable to the measurement of smaller parts.For heavy parts, image detecting technique can be taken the different parts of part, obtain several local overlapping high precision images, then utilize the information redundancy between image to carry out the complete image that Image Mosaics obtains part, to spliced image analysis, can obtain the complete structure size of part.A large amount of documents and materials point out, this detection method need to be carried out a large amount of data storage and computing, certainly will affect the real-time of detection method.
Existing mechanical component verticality measuring method, mainly concentrates on the straight line degree measurement based on single image.Verticality measuring method based on single image is with piece image, to show the overall picture of measured axis, by the calculation process of this piece image being obtained to the straightness error of part.But because field range and the precision of camera is inversely prroportional relationship, in order to obtain higher accuracy of detection, the physical dimension of tested part must retrain within the specific limits.The post-doctoral research work report < < vision criteria line Measurement Technique research > > of University Of Tianjin (Lu Rongsheng) is 140mm to diameter, length is that the Linearity surveying method of the weldless steel tube of 1.5m is studied, and is the domestic big L/D ratio axial workpiece Linearity surveying method research scholar early that carries out.The method adopting in its report is a kind of laser vision method, and checkout equipment precision is higher, but comparison in equipment is expensive.In addition, need to carry out global calibration to imageing sensor, algorithm real-time is subject to certain restrictions.
1. prior art one related to the present invention
The technical scheme of prior art one: certain rail vehicle door is about 2m with change lead screw, and diameter is about 2cm, and length-diameter ratio is 100, belongs to big L/D ratio axial workpiece.Its linearity is the important indicator of quality control, is also its its functional attributes, from client's feedack, even detect at production link, uses after a period of time, and its linearity still there will be larger error.Research is found, is mainly because the precision of detection means is not high enough.
At present, production line is that leading screw is placed on work top in the detection method of use, goes to observe the situation that contacts of leading screw and work top with eyes, and the local feeler gauge by standard of printing opacity goes detection, and somewhere can be put feeler gauge into, the straightness error at this place has been described
The shortcoming of prior art one: above-mentioned detection method exists following shortcoming:
(1) can not accurately provide the data of straightness error;
(2) can not formulate rational correcting scheme according to data;
(3) this post is larger to workman's skills involved in the labour dependence;
(4) workman's labour intensity is larger;
(5) detection speed is slow, cannot realize production line automation.
2. prior art two related to the present invention
The technical scheme of prior art two: Fig. 1 selects from the Lu Rong of University Of Tianjin victory post-doctoral performance report < < vision criteria line Measurement Technique research > >, this test macro sends light beam plane by semiconductor laser LD, after it cuts mutually with weldless steel tube, outer round surface at steel pipe forms an elliptic arc, by CCD gamma camera, received the image of each elliptic arc, machine realtime graphic is processed and is tried to achieve each coordinate of elliptic arc center in world coordinate system as calculated, use corresponding algorithm, obtain the straightness error of steel pipe.
The shortcoming of prior art two: adopted the semiconductor laser projector in Fig. 1, this element belongs to high-precision product, price comparison is expensive.In method, adopt a plurality of ccd video cameras to gather image, need the image unification gathering can carry out the calculating of linearity under same coordinate system, therefore need comparatively complicated calibration algorithm.Demarcation is a difficult point in machine vision, and existing various calibration techniques have certain limitation, available in certain accuracy rating.As low in linear calibration's computational accuracy, nonlinear calibration needs repeatedly nonlinear iteration, and computing velocity is low, thus calibration technique become a bottleneck.Therefore, said method again by other high precision apparatus carried out global calibration, this has brought difficulty just to the popularization of method.
3. prior art three related to the present invention
The technical scheme of prior art three: the part planar dimension of the academic dissertation < < of Shandong University based on machine vision automatically measured and write the linearity that detects part by machine vision method in > > (Marvin's is beautiful), detailed process is as follows: image capture device obtains the overall picture of part, use image processing method to obtain gray-scale map, gray-scale map is carried out to binary conversion treatment, use again edge detection operator, obtain edge pixel level point set, if need further to improve precision, re-use sub-pixel edge location technology, obtain sub-pixel edge point set, edge point set carries out least square fitting and obtains ideal line, marginal point is concentrated and apart from maximal value, is considered to straightness error apart from ideal line.
The shortcoming of prior art three: the verticality measuring method based on single image is to show the overall picture of tested part with piece image, by the calculation process of this piece image being obtained to the straightness error of part.But because field range and the precision of camera is inversely prroportional relationship, in order to obtain the overall picture of part, must sacrifice certain precision; Or in order to obtain higher accuracy of detection, the physical dimension of tested part must retrain within the specific limits.
Summary of the invention
1. the technical matters that invention will solve
The invention reside in and overcome deficiency of the prior art, a kind of big L/D ratio axial workpiece straightness error detection method based on machine vision is provided, by the high precision image of quick each regional area of acquisition measured axis, adopt simple image processing algorithm to obtain the centre coordinate of a plurality of positions, the evaluation of straightness error will be carried out again under separate central point unification to coordinate system, to obtain whole axle straightness error value, and overproof part is carried out to record, for follow-up correction provides data.
2. technical scheme
For achieving the above object, technical scheme provided by the invention is:
A kind of big L/D ratio axial workpiece straightness error detection method based on machine vision of the present invention, the steps include:
(1) standard component is installed:
Many groups of the contour installations of standard component, the corresponding sides of all standard components are parallel to each other, and the physical dimension of two standard components and the position relationship between standard component adopt conventional high precision testing tool to measure and obtain;
(2) camera is installed:
Guarantee that imaging plane is parallel with the upper surface of standard component, and phase function is along the axis direction of measured axis with move perpendicular to work top direction;
(3) workpiece is installed:
Measured axis is placed in visual field, adjusts position, make the axis of measured axis parallel or vertical with standard component limit;
(4) image acquisition:
When camera is in i sample point, adjust camera position, making camera is D to the distance of measured axis 1, gather 1 width image, be designated as image 1i, adjust camera position, making camera is D to measured axis distance 2, then gather 1 width image, be designated as image 2i; Along measured axis axis direction, move camera to next sampled point i+1 place, adjust camera position, making camera is D to the distance of measured axis 1, gather 1 width image, be designated as image 1i+1, adjust camera position, making camera is D to measured axis distance 2, then gather 1 width image, be designated as image 2i+1, so along axis direction, move camera, until to last sampled point, complete the collection of whole axis direction epigraph sequence, wherein, D 1and D 2two unknown variablees, but D 1and D 2between difference be known quantity;
(5) image is processed:
Image 1in sequence image, i width image is processed, and adopts Harris Robust Algorithm of Image Corner Extraction to extract 8 angle points of two standard components, uses Canny Boundary extracting algorithm to extract the contour edge of axle; Image 2in sequence image, i width image is processed, and adopts Harris Robust Algorithm of Image Corner Extraction to extract 8 angle points of two standard components, uses Canny Boundary extracting algorithm to extract the contour edge of axle;
(6) set up coordinate system:
Image 1on image sequence Plays part, the angle point in the lower left corner is true origin, and x axle parallels to the axis, and y axle is perpendicular to axis, and z axle is perpendicular to work top;
(7) calculate home position coordinate:
At sequence image image 1imeasured axis profile on get 2 points, guarantee that 2 points are identical perpendicular to axis direction epigraph coordinate, at sequence image image 2imeasured axis profile on get 2 and image 1iin the corresponding point of point; According to pinhole imaging system principle, above-mentioned got 4 points are concyclic, photocentre is vertical with the determined straight line in point and the center of circle with the determined straight line of point, the distance of mobile camera moving (| D 1-D 2|) 4 conditions, calculate home position coordinate;
Wherein, calculate home position coordinate time and set up system mathematic model, when camera is during in 1# position, the symmetric points p on measured axis profile 9and p 11imaging; When camera is during in 2# position, the symmetric points p on measured axis profile 8and p 10imaging, 8 angle points (true origin and p on standard component i(i=1,2,3 ..., 7)) between distance be known parameter, then according to pinhole imaging system principle, p i(i=8,9,10,11) 4 concyclic, O cp 8⊥ p 8o, O cp 9⊥ p 9it is as follows that known these conditions of the distance of o, mobile camera moving (1# position is to 2# positional distance) are set up system mathematic model:
O w-X wy wz wfor world coordinate system, O c-X cy cz cfor camera coordinates system, 1#, 2# are camera two positions of living in, and o is the center of circle of cross section, axle somewhere circle, p i(i=1,2,3 ..., 11) and coordinate is respectively: p 1(x 1, 0,0), p 2(x 1, y 2, 0), p 3(0, y 2, 0); p 4(x 4, y 4, 0), p 5(x 5, y 4, 0), p 6(x 4, y 6, 0), p 7(x 5, y 6, 0); p 8(x 8, y, z 8), p 9(x 9, y, z 9), p 10(x 10, y, z 10), p 11(x 11, y, z 11);
When camera is during in 1# position, camera photocentre O cto center of circle o distance, be D 1, when camera is during in 2# position, camera photocentre O cto center of circle o distance, be D 2, and suppose that center of circle coordinate under world coordinate system is o (x, y, z), have:
x 9+x 11=2x (1.1)
z 9=z 11 (1.2)
a &RightArrow; 1 ( x 9 - x , 0 , z 9 - z + D 1 ) &CenterDot; b &RightArrow; 1 ( x 9 - x , 0 , z 9 - z ) = 0 - - - ( 1.3 )
f dx &CenterDot; ( x 9 - x ) / ( z 9 - z + D 1 ) - f dx &CenterDot; ( x 11 - x ) / ( z 11 - z + D 1 ) = C 1 - - - ( 1.4 )
&beta; &OverBar; x 1 = f dx &CenterDot; 1 - z + D 1 - - - ( 1.5 )
&beta; &OverBar; y 1 = f dy &CenterDot; 1 - z + D 1 - - - ( 1.6 )
x 8+x 10=2x (1.7)
z 8=z 10 (1.8)
a &RightArrow; 2 ( x 8 - x , 0 , z 8 - z + D 2 ) &CenterDot; b &RightArrow; 2 ( x 8 - x , 0 , z 8 - z ) = 0 - - - ( 1.9 )
f dx &CenterDot; ( x 8 - x ) / ( z 8 - z + D 2 ) - f dx &CenterDot; ( x 10 - x ) / ( z 10 - z + D 2 ) = C 2 - - - ( 1.10 )
(x 8-x) 2+(z 8-z) 2=(x 9-x) 2+(z 9-z) 2 (1.11)
D 1-D 2=C (1.12)
&beta; &OverBar; x 2 = f dx &CenterDot; 1 - z + D 2 - - - ( 1.13 )
&beta; &OverBar; y 2 = f dy &CenterDot; 1 - z + D 2 - - - ( 1.14 )
Wherein, for straight line O cp 9direction,
Figure BDA0000120404020000058
for straight line p 9o direction,
Figure BDA0000120404020000059
for straight line O cp 8direction, for straight line p 8o direction; C 1for p 9point look like p 11distance between some picture; C 2for p 8point look like p 10distance between some picture;
Figure BDA00001204040200000511
for when camera is during in 1# position, along X cdirection of principal axis is measured ratio, by two standard components, is parallel to X cthe length on 4 limits of axle and the ratio of the length of its corresponding picture determines,
Figure BDA00001204040200000512
for when camera is during in 1# position, along Y cdirection of principal axis is measured ratio, by two standard components, is parallel to Y cthe length on 4 limits of axle and the ratio of the length of its corresponding picture determines,
Figure BDA00001204040200000513
for when camera is during in 2# position, along X cdirection of principal axis is measured ratio, by two standard components, is parallel to X cthe length on 4 limits of axle and the ratio of the length of its corresponding picture determines,
Figure BDA00001204040200000514
for when camera is during in 2# position, along Y cdirection of principal axis is measured ratio, by two standard components, is parallel to Y cthe length on 4 limits of axle and the ratio of the length of its corresponding picture are determined; C is the distance that camera was moved to 2# position from 1# position; F is the focal length of camera; Dx is the size of pixel on directions X, and dy is pixel size in the Y direction;
Simultaneous formula (1.1)~formula (1.14), is the mathematical model of this measuring system, according to the mathematical model of this measuring system, calculates home position coordinate;
(8) unify coordinate:
According to the installation dimension relation between standard component, the above-mentioned coordinate calculating is unified under same coordinate system;
(9), according to the central coordinate of circle in cross section, utilize linearity assessment method, calculated line degree.
3. beneficial effect
Adopt technical scheme provided by the invention, compare with existing known technology, there is following remarkable result:
(1) a kind of big L/D ratio axial workpiece straightness error detection method based on machine vision of the present invention, against existing technologies one, the present invention is the carrier as detection and transmission of information with image, be stored in computing machine, can obtain straightness error data accurately, according to the straightness error obtaining, formulate rational correcting scheme, the long-time steady operation of machine vision, the mankind are difficult to for a long time same target be observed, and machine vision can be measured for a long time, analysis and identification mission;
(2) a kind of big L/D ratio axial workpiece straightness error detection method based on machine vision of the present invention, against existing technologies two, the invention belongs to common vision, do not need to adopt the expensive high-precision laser projector, the scaling method of machine vision Size Measuring System mostly adopts standard component method, the accurate dimension of standard component is passed to image, the major advantage of this method is not need the inside and outside parameter of calibrating camera, only need to calibrate the object plane resolution of video camera, can simplify calibration process, the method is only applicable to measurement plane dimension of object, as long as while guaranteeing each collection image, in visual field, there are two standard components simultaneously, can whole coordinates be united according to mutual alignment relation between two standard components, this calibration algorithm does not need to carry out repeatedly nonlinear iteration and calculates, computing velocity is higher, precision mainly depends on the imaging precision of standard component precision and camera, can require configuration standard part and video camera according to accuracy class,
(3) the present invention be take image as detecting and transmission of information carrier, can obtain the straightness error data with data accurate description, data are stored in to be calculated, and can link up with a plurality of departments such as design, production and production quality control, with the quality of improving product in good time;
(4) a kind of big L/D ratio axial workpiece straightness error detection method based on machine vision of the present invention, do not need longer Image Mosaics technology consuming time, obtain part overall picture, do not carry out very complicated and need the world coordinates that high precision apparatus is supported to demarcate yet, obtain axis each point absolute coordinates, carry out the calculating of linearity;
(5) accuracy of detection of the present invention is only relevant with standard component precision with the imaging precision of camera, and camera moves and do not need to do special processing with locating along measured axis axis direction;
(6) the present invention can realize any length-diameter ratio axial workpiece Linearity surveying task, only needs the size of proper extension worktable, increases the standard component of some.
Accompanying drawing explanation
Test macro in the Lu Rong of Tu1Wei University Of Tianjin victory post-doctoral performance report < < vision criteria line Measurement Technique research > >;
Fig. 2 is measuring system scheme of installation of the present invention;
Fig. 3 is Measuring System Models figure of the present invention.
Label declaration in schematic diagram:
1,3-standard component; 2-measured axis.
Embodiment
Below in conjunction with accompanying drawing, the invention will be further described.
In conjunction with Fig. 2 and Fig. 3, technical solution of the present invention is set forth." 1 " in Fig. 2 and " 3 " are 2 standard components, and its size is not identical, and " 2 " in Fig. 2 are certain measured axis.Before measurement, to carry out the installation of camera, measured axis 2 and standard component 1,3.Standard component 1 and the contour installation of standard component 3, and parallel (or vertical) on assurance limit, conventional high precision testing tool measurement acquisition for the position relationship between the physical dimension of two standard components 1,3 and standard component 1,3.Camera is installed and need to be guaranteed that imaging plane is parallel with the upper surface of standard component 1,3, and phase function is along the axis direction of measured axis 2 with move perpendicular to work top direction.Measured axis 2 is installed in visual field, adjusts its position, guarantees the axis of measured axis 2 and the limit parallel (or vertical) of standard component 1,3.When camera is in i sample point, adjust camera position, making camera is D to the distance of measured axis 2 1, gather 1 width image, be designated as image 1i; Adjust camera position, making camera is D to measured axis 2 distances 2, then gather 1 width image, be designated as image 2i.Along measured axis 2 axis directions, move camera to next sampled point i+1 place, adjust camera position, making camera is D to the distance of measured axis 2 1, gather 1 width image, be designated as image 1i+1; Adjust camera position, making camera is D to measured axis 2 distances 2, then gather 1 width image, be designated as image 2i+1.So along axis direction, move camera, until to last sampled point, complete the collection of whole axis direction epigraph sequence.D 1and D 2two unknown variablees, but D 1and D 2between difference be known quantity.To image 1in sequence image, i width image is processed, and extracts 8 angle points of two standard components 1,3 with Harris angle point (C.Harris, etc.1998) extraction algorithm, extracts the contour edge of axle with Canny (John Harris, 1986) Boundary extracting algorithm.To image 2in sequence image, i width image is processed, and extracts 8 angle points of two standard components 1,3 with Harris Robust Algorithm of Image Corner Extraction, extracts the contour edge of axle with Canny Boundary extracting algorithm.Coordinate system is: image 1on image sequence Plays part 1,3, the angle point in the lower left corner is true origin, and x axle is perpendicular to axis, and y axle parallels to the axis, and z axle is perpendicular to work top.At sequence image image 1imeasured axis 2 profiles on get 2 points, guarantee that 2 points are identical perpendicular to axis direction epigraph coordinate.At sequence image image 2imeasured axis 2 profiles on get 2 and image 1ithe point that mid point is corresponding.
Fig. 3 is Measuring System Models figure, when camera is during in 1# position, and the some p on measured axis 2 profiles 9and p 11imaging.When camera is during in 2# position, the some p on measured axis 2 profiles 8and p 10imaging.8 angle points (true origin and p on standard component 1,3 i(i=1,2,3 ..., 7)) between distance be known parameter.Again according to pinhole imaging system principle, p i(i=8,9,10,11) 4 concyclic, straight line O cp 8with p 8vertical and the straight line O of o cp 9with p 9o also distance (1# position is to 2# positional distance) vertical, mobile camera moving is known, calculates home position coordinate.Utilize the installation dimension relation between standard component 1,3, the central coordinate of circle calculating is unified under same coordinate system.According to the central coordinate of circle in each cross section, use existing linearity assessment method, calculate the linearity of this measured axis 2.
Below in conjunction with embodiment, the invention will be further described.
Embodiment:
A kind of big L/D ratio axial workpiece straightness error detection method based on machine vision of the present embodiment, the steps include:
(1) standard component is installed:
Many groups of the contour installations of standard component, shown in Fig. 2, " 1 " and " 3 " is 2 standard components, its size is not identical, " 2 " in Fig. 2 are certain measured axis, the corresponding sides of all standard components are parallel to each other, and the physical dimension of two standard components and the position relationship between standard component adopt conventional high precision testing tool to measure and obtain;
(2) camera is installed:
Guarantee that imaging plane is parallel with the upper surface of standard component, and phase function is along the axis direction of measured axis with move perpendicular to work top direction;
(3) workpiece is installed:
Measured axis is placed in visual field, adjusts position, make the axis of measured axis parallel or vertical with standard component limit;
(4) image acquisition:
When camera is in i sample point, adjust camera position, making camera is D to the distance of measured axis 1, gather 1 width image, be designated as image 1i, adjust camera position, making camera is D to measured axis distance 2, then gather 1 width image, be designated as image 2i; Along measured axis axis direction, move camera to next sampled point i+1 place, adjust camera position, making camera is D to the distance of measured axis 1, gather 1 width image, be designated as image 1i+1, adjust camera position, making camera is D to measured axis distance 2, then gather 1 width image, be designated as image 2i+1, so along axis direction, move camera, until to last sampled point, complete the collection of whole axis direction epigraph sequence, wherein, D 1and D 2two unknown variablees, but D 1and D 2between difference be known quantity;
(5) image is processed:
Image 1in sequence image, i width image is processed, and adopts Harris Robust Algorithm of Image Corner Extraction to extract 8 angle points of two standard components, uses Canny Boundary extracting algorithm to extract the contour edge of axle; Image 2in sequence image, i width image is processed, and adopts Harris Robust Algorithm of Image Corner Extraction to extract 8 angle points of two standard components, uses Canny Boundary extracting algorithm to extract the contour edge of axle;
(6) set up coordinate system:
Image 1on image sequence Plays part, the angle point in the lower left corner is true origin, and x axle parallels to the axis, and y axle is perpendicular to axis, and z axle is perpendicular to work top;
(7) calculate home position coordinate:
At sequence image image 1imeasured axis profile on get 2 points, guarantee that 2 points are identical perpendicular to axis direction epigraph coordinate, at sequence image image 2imeasured axis profile on get 2 and image 1iin the corresponding point of point; According to pinhole imaging system principle, above-mentioned got 4 points are concyclic, photocentre is vertical with the determined straight line in point and the center of circle with the determined straight line of point, the distance of mobile camera moving (| D 1-D 2|) 4 conditions, calculate home position coordinate;
Wherein, calculate home position coordinate time and set up system mathematic model as shown in Figure 3, when camera is during in 1# position, the symmetric points p on measured axis profile 9and p 11imaging; When camera is during in 2# position, the symmetric points p on measured axis profile 8and p 10imaging, 8 angle points (true origin and p on standard component i(i=1,2,3 ..., 7)) between distance be known parameter, then according to pinhole imaging system principle, p i(i=8,9,10,11) 4 concyclic, O cp 8⊥ p 8o, O cp 9⊥ p 9it is as follows that known these conditions of the distance of o, mobile camera moving (1# position is to 2# positional distance) are set up system mathematic model:
O w-X wy wz wfor world coordinate system, O c-X cy cz cfor camera coordinates system, 1#, 2# are camera two positions of living in, and o is the center of circle of cross section, axle somewhere circle, p i(i=1,2,3 ..., 11) and coordinate is respectively: p 1(x 1, 0,0), p 2(x 1, y 2, 0), p 3(0, y 2, 0); p 4(x 4, y 4, 0), p 5(x 5, y 4, 0), p 6(x 4, y 6, 0), p 7(x 5, y 6, 0); p 8(x 8, y, z 8), p 9(x 9, y, z 9), p 10(x 10, y, z 10), p 11(x 11, y, z 11);
When camera is during in 1# position, camera photocentre O cto center of circle o distance, be D 1, when camera is during in 2# position, camera photocentre O cto center of circle o distance, be D 2, and suppose that center of circle coordinate under world coordinate system is o (x, y, z), have:
x 9+x 11=2x (1.1)
z 9=z 11 (1.2)
a &RightArrow; 1 ( x 9 - x , 0 , z 9 - z + D 1 ) &CenterDot; b &RightArrow; 1 ( x 9 - x , 0 , z 9 - z ) = 0 - - - ( 1.3 )
f dx &CenterDot; ( x 9 - x ) / ( z 9 - z + D 1 ) - f dx &CenterDot; ( x 11 - x ) / ( z 11 - z + D 1 ) = C 1 - - - ( 1.4 )
&beta; &OverBar; x 1 = f dx &CenterDot; 1 - z + D 1 - - - ( 1.5 )
&beta; &OverBar; y 1 = f dy &CenterDot; 1 - z + D 1 - - - ( 1.6 )
x 8+x 10=2x (1.7)
z 8=z 10 (1.8)
a &RightArrow; 2 ( x 8 - x , 0 , z 8 - z + D 2 ) &CenterDot; b &RightArrow; 2 ( x 8 - x , 0 , z 8 - z ) = 0 - - - ( 1.9 )
f dx &CenterDot; ( x 8 - x ) / ( z 8 - z + D 2 ) - f dx &CenterDot; ( x 10 - x ) / ( z 10 - z + D 2 ) = C 2 - - - ( 1.10 )
(x 8-x) 2+(z 8-z) 2=(x 9-x) 2+(z 9-z) 2 (1.11)
D 1-D 2=C (1.12)
&beta; &OverBar; x 2 = f dx &CenterDot; 1 - z + D 2 - - - ( 1.13 )
&beta; &OverBar; y 2 = f dy &CenterDot; 1 - z + D 2 - - - ( 1.14 )
Wherein,
Figure BDA0000120404020000103
for straight line O cp 9direction,
Figure BDA0000120404020000104
for straight line p 9o direction,
Figure BDA0000120404020000105
for straight line O cp 8direction,
Figure BDA0000120404020000106
for straight line p 8o direction; C 1for p 9point look like p 11distance between some picture; C 2for p 8point look like p 10distance between some picture;
Figure BDA0000120404020000107
for when camera is during in 1# position, along X cdirection of principal axis is measured ratio, by two standard components, is parallel to X cthe length on 4 limits of axle and the ratio of the length of its corresponding picture determines,
Figure BDA0000120404020000108
for when camera is during in 1# position, along Y cdirection of principal axis is measured ratio, by two standard components, is parallel to Y cthe length on 4 limits of axle and the ratio of the length of its corresponding picture determines,
Figure BDA0000120404020000109
for when camera is during in 2# position, along X cdirection of principal axis is measured ratio, by two standard components, is parallel to X cthe length on 4 limits of axle and the ratio of the length of its corresponding picture determines,
Figure BDA00001204040200001010
for when camera is during in 2# position, along Y cdirection of principal axis is measured ratio, by two standard components, is parallel to Y cthe length on 4 limits of axle and the ratio of the length of its corresponding picture are determined; C is the distance that camera was moved to 2# position from 1# position; F is the focal length of camera; Dx is the size of pixel on directions X, and dy is pixel size in the Y direction;
Simultaneous formula (1.1)~formula (1.14), is the mathematical model of this measuring system, according to the mathematical model of this measuring system, calculates home position coordinate;
(8) unify coordinate:
According to the installation dimension relation between standard component, the above-mentioned coordinate calculating is unified under same coordinate system;
(9) according to the central coordinate of circle in cross section, use existing linearity assessment method, in the present embodiment, adopt and use 3DLSA (Hu Zhongxun etc.) linearity evaluation algorithm, calculate the linearity of this measured axis.
Big L/D ratio axial workpiece straightness error detection method based on machine vision of the present invention, a kind of brand-new based on realizing of Robot Vision big L/D ratio axial workpiece straightness error On-line Measuring Method, its unique distinction is: take image as detecting and transmission of information carrier, can obtain the straightness error data with data accurate description, data are stored in calculating, can link up with a plurality of departments such as design, production and production quality control, with the quality of improving product in good time.In method of the present invention, do not use expensive high-precision laser projecting apparatus.The mutual position relationship of the standard component of take is tie, sets up the coordinate position relation between each image, thereby avoids using longer Image Mosaics technology consuming time.In the process of establishing of measuring system mathematical model, directly do not use and measure than method (or being referred to as equivalent pixel method), therefore do not need strict guarantee camera to equate to distance between standard component to distance and the camera of part, reduce and measure difficulty, improve measuring accuracy.

Claims (2)

1. the big L/D ratio axial workpiece straightness error detection method based on machine vision, the steps include:
(1) standard component is installed:
Many groups of the contour installations of standard component, every group is two standard components, and the corresponding sides of all standard components are parallel to each other, and the physical dimension of two standard components of every group and the position relationship between standard component adopt conventional high precision testing tool to measure and obtain;
(2) camera is installed:
Guarantee that imaging plane is parallel with the upper surface of standard component, and phase function is along the axis direction of measured axis with move perpendicular to work top direction;
(3) workpiece is installed:
Measured axis is placed in visual field, adjusts position, make the axis of measured axis parallel or vertical with standard component limit;
(4) image acquisition:
When camera is in i sample point, adjust camera position, making camera is D to the distance of measured axis 1, gather 1 width image, be designated as image 1i, adjust camera position, making camera is D to measured axis distance 2, then gather 1 width image, be designated as image 2i; Along measured axis axis direction, move camera to next sampled point i+1 place, adjust camera position, making camera is D to the distance of measured axis 1, gather 1 width image, be designated as image 1i+1, adjust camera position, making camera is D to measured axis distance 2, then gather 1 width image, be designated as image 2i+1, so along axis direction, move camera, until to last sampled point, complete the collection of whole axis direction epigraph sequence, wherein, D 1and D 2two unknown variablees, but D 1and D 2between difference be known quantity;
(5) image is processed:
Image 1in sequence image, i width image is processed, and adopts Harris Robust Algorithm of Image Corner Extraction to extract 8 angle points of two standard components, uses Canny Boundary extracting algorithm to extract the contour edge of axle; Image 2in sequence image, i width image is processed, and adopts Harris Robust Algorithm of Image Corner Extraction to extract 8 angle points of two standard components, uses Canny Boundary extracting algorithm to extract the contour edge of axle;
(6) set up coordinate system:
Image 1on image sequence Plays part, the angle point in the lower left corner is true origin, and x axle parallels to the axis, and y axle is perpendicular to axis, and z axle is perpendicular to work top;
(7) the home position coordinate in cross section, reference axis somewhere:
At sequence image image 1imeasured axis profile on get 2 points, guarantee that 2 points are identical perpendicular to axis direction epigraph coordinate, at sequence image image 2imeasured axis profile on get 2 and image 1iin the corresponding point of point; According to pinhole imaging system principle, above-mentioned got 4 points are concyclic, photocentre is vertical with the determined straight line in point and the center of circle with the determined straight line of point, the distance of mobile camera moving | D 1-D 2| 4 conditions, calculate home position coordinate;
(8) unify coordinate:
According to the installation dimension relation between standard component, the above-mentioned coordinate calculating is unified under same coordinate system;
(9), according to the central coordinate of circle in cross section, utilize linearity assessment method, calculated line degree.
2. the big L/D ratio axial workpiece straightness error detection method based on machine vision according to claim 1, it is characterized in that: in step (7), calculate home position coordinate time and set up system mathematic model, when camera is during in 1# position, the symmetric points p on measured axis profile 9and p 11imaging; When camera is during in 2# position, the symmetric points p on measured axis profile 8and p 10imaging, true origin and p on standard component i, i=1,2,3 ..., the distance between 8 angle points of 7 is known parameter, then according to pinhole imaging system principle, p i, i=8,9,10,11 4 concyclic, O cp 8⊥ p 8o, O cp 9⊥ p 9the distance that o, camera move to 2# position from 1# position, it is as follows that known these conditions are set up system mathematic model:
O w-X wy wz wfor world coordinate system, O c-X cy cz cfor camera coordinates system, 1#, 2# are camera two positions of living in, and o is the center of circle of cross section, axle somewhere circle, p i, i=1,2,3 ..., 11 coordinates are respectively: p 1(x 1, 0,0), p 2(x 1, y 2, 0), p 3(0, y 2, 0); p 4(x 4, y 4, 0), p 5(x 5, y 4, 0), p 6(x 4, y 6, 0), p 7(x 5, y 6, 0); p 8(x 8, y, z 8), p 9(x 9, y, z 9), p 10(x 10, y, z 10), p 11(x 11, y, z 11);
When camera is during in 1# position, camera photocentre O cto center of circle o distance, be D 1, when camera is during in 2# position, camera photocentre O cto center of circle o distance, be D 2, and suppose that center of circle coordinate under world coordinate system is o (x, y, z), have:
x 9+x 11=2x (1.1)
z 9=z 11 (1.2)
a &RightArrow; 1 ( x 9 - x , 0 , z 9 - z + D 1 ) &CenterDot; b &RightArrow; 1 ( x 9 - x , 0 , z 9 - z ) = 0 - - - ( 1.3 )
f dx &CenterDot; ( x 9 - x ) / ( z 9 - z + D 1 ) - f dx &CenterDot; ( x 11 - x ) / ( z 11 - z + D 1 ) = C 1 - - - ( 1.4 )
&beta; &OverBar; x 1 = f dx &CenterDot; 1 - z + D 1 - - - ( 1.5 )
&beta; &OverBar; y 1 = f dy &CenterDot; 1 - z + D 1 - - - ( 1.6 )
x 8+x 10=2x (1.7)
z 8=z 10 (1.8)
a &RightArrow; 2 ( x 8 - x , 0 , z 8 - z + D 2 ) &CenterDot; b &RightArrow; 2 ( x 8 - x , 0 , z 8 - z ) = 0 - - - ( 1.9 )
f dx &CenterDot; ( x 8 - x ) / ( z 8 - z + D 2 ) - f dx &CenterDot; ( x 10 - x ) / ( z 10 - z + D 2 ) = C 2 - - - ( 1.10 )
(x 8-x) 2+(z 8-z) 2=(x 9-x) 2+(z 9-z) 2 (1.11)
D 1-D 2=C (1.12)
&beta; &OverBar; x 2 = f dx &CenterDot; 1 - z + D 2 - - - ( 1.13 )
&beta; &OverBar; y 2 = f dy &CenterDot; 1 - z + D 2 - - - ( 1.14 )
Wherein,
Figure FDA0000409605600000033
for straight line O cp 9direction,
Figure FDA0000409605600000034
for straight line p 9o direction,
Figure FDA0000409605600000035
for straight line O cp 8direction, for straight line p 8o direction; C 1for p 9point look like p 11distance between some picture; C 2for p 8point look like p 10distance between some picture;
Figure FDA0000409605600000037
for when camera is during in 1# position, along X cdirection of principal axis is measured ratio, by two standard components, is parallel to X cthe length on 4 limits of axle and the ratio of the length of its corresponding picture determines,
Figure FDA0000409605600000038
for when camera is during in 1# position, along Y cdirection of principal axis is measured ratio, by two standard components, is parallel to Y cthe length on 4 limits of axle and the ratio of the length of its corresponding picture determines, for when camera is during in 2# position, along X cdirection of principal axis is measured ratio, by two standard components, is parallel to X cthe length on 4 limits of axle and the ratio of the length of its corresponding picture determines,
Figure FDA00004096056000000310
for when camera is during in 2# position, along Y cdirection of principal axis is measured ratio, by two standard components, is parallel to Y cthe length on 4 limits of axle and the ratio of the length of its corresponding picture are determined; C is the distance that camera was moved to 2# position from 1# position; F is the focal length of camera; Dx is the size of pixel on directions X, and dy is pixel size in the Y direction;
Simultaneous formula (1.1)~formula (1.14), is the mathematical model of this measuring system, according to the mathematical model of this measuring system, calculates home position coordinate.
CN201110419626.2A 2011-12-15 2011-12-15 Large slenderness ratio shaft part straightness error detection method based on machine vision Expired - Fee Related CN102519400B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110419626.2A CN102519400B (en) 2011-12-15 2011-12-15 Large slenderness ratio shaft part straightness error detection method based on machine vision

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110419626.2A CN102519400B (en) 2011-12-15 2011-12-15 Large slenderness ratio shaft part straightness error detection method based on machine vision

Publications (2)

Publication Number Publication Date
CN102519400A CN102519400A (en) 2012-06-27
CN102519400B true CN102519400B (en) 2014-04-09

Family

ID=46290403

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110419626.2A Expired - Fee Related CN102519400B (en) 2011-12-15 2011-12-15 Large slenderness ratio shaft part straightness error detection method based on machine vision

Country Status (1)

Country Link
CN (1) CN102519400B (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103115601B (en) * 2013-02-19 2015-06-03 南京工程学院 Method for measuring tolerance of cylindricity of shaft part
CN104567749A (en) * 2013-10-24 2015-04-29 深圳市大族激光科技股份有限公司 Method and device for detecting linearity and perpendicularity of equipment
CN103615984B (en) * 2013-12-02 2016-08-17 四川中测流量科技有限公司 Comprehensive detection device of pipe body
CN107784650A (en) * 2017-10-30 2018-03-09 湖北坚丰科技股份有限公司 A kind of online visible detection method for rotating shaft bearing of motor shelves diameter
CN108106554B (en) * 2018-03-07 2020-05-05 南京工程学院 Machine vision-based large ring outer diameter detection system and method
CN108871238B (en) * 2018-05-26 2022-03-29 湖南大学 Method and device for measuring straightness of zirconium tube for nuclear power
CN109781014B (en) * 2019-03-11 2020-10-16 安徽工业大学 Technology and method for online measuring length of strip-shaped target through cooperation of multiple cameras in machine vision mode
CN110375679B (en) * 2019-07-17 2021-04-06 朱承智 Method for measuring dynamic axial line spatial position of rotary kiln riding wheel set
CN110689530A (en) * 2019-09-23 2020-01-14 杭州博拉网络科技有限公司 Shaft part image splicing method based on position compensation
CN110926378A (en) * 2019-12-16 2020-03-27 太原科技大学 Improved bar straightness detection system and method based on visual detection
CN113137922A (en) * 2020-01-17 2021-07-20 宝山钢铁股份有限公司 Machine vision-based seamless tandem rolling pipe length online measurement method and device
CN111964611A (en) * 2020-08-18 2020-11-20 山东理工大学 Axle type part straightness accuracy error measuring device based on machine vision
CN112097693A (en) * 2020-08-19 2020-12-18 北京机科国创轻量化科学研究院有限公司 Straightness measuring system and method based on unmanned aerial vehicle
CN117119325B (en) * 2023-08-24 2024-03-12 合肥埃科光电科技股份有限公司 Area array sensor camera and mounting position adjusting method thereof
CN116952169B (en) * 2023-09-21 2024-01-05 惠州市金箭精密部件有限公司 Intelligent detection system and method for straightness of screw rod

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1356528A (en) * 2001-10-15 2002-07-03 天津大学 In-line real-time collinating measurer with computer visulization technique and its calibration method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100194749A1 (en) * 2009-01-30 2010-08-05 Gerald Bernard Nightingale Systems and methods for non-destructive examination of an engine
JP2011153963A (en) * 2010-01-28 2011-08-11 Gunma Prefecture Method for evaluation of mechanical accuracy

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1356528A (en) * 2001-10-15 2002-07-03 天津大学 In-line real-time collinating measurer with computer visulization technique and its calibration method

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
JP特开2011-153963A 2011.08.11
Straightness inspecting system for long shaft based on cross laser;Zhixue Chang, et al;《Proc. of SPIE》;20101231;第7544卷;75444G-1至75444G-6 *
Zhixue Chang, et al.Straightness inspecting system for long shaft based on cross laser.《Proc. of SPIE》.2010,第7544卷75444G-1至75444G-6.
基于机器视觉的直线度检测方法的研究;谈理 等;《制造业自动化》;20091031;第31卷(第10期);75-78 *
谈理 等.基于机器视觉的直线度检测方法的研究.《制造业自动化》.2009,第31卷(第10期),75-78.

Also Published As

Publication number Publication date
CN102519400A (en) 2012-06-27

Similar Documents

Publication Publication Date Title
CN102519400B (en) Large slenderness ratio shaft part straightness error detection method based on machine vision
CN110672040B (en) High-precision rotation angle measuring method based on vision
Liu et al. Calibration method for line-structured light vision sensor based on a single ball target
CN102073324B (en) Linearly polarized light-based polarization tracking method
CN103615980B (en) Method and system for measuring parameters of round holes in plate
CN101629822B (en) Multi-camera movable photography measuring method in vibration environment
CN109751964B (en) High-precision non-contact pipe diameter measuring method and device
Wei et al. Calibration method for line structured light vision sensor based on vanish points and lines
CN112444233A (en) Monocular vision-based plane motion displacement and track measurement method
CN112629441A (en) 3D curved surface glass contour scanning detection method and system based on line structured light dynamic vision
CN106197292A (en) A kind of building displacement monitoring method
CN102798349A (en) Three-dimensional surface extraction method based on equal-gray line search
Wu et al. Monocular-vision-based method for online measurement of pose parameters of weld stud
Zhang et al. Accuracy improvement in laser stripe extraction for large-scale triangulation scanning measurement system
Zhang et al. 3D vision inspection for internal surface based on circle structured light
CN105066903A (en) Laser three-dimensional measurement system and measurement method thereof
CN104316530A (en) Part detection method and application
Wang et al. Automatic reading system for analog instruments based on computer vision and inspection robot for power plant
CN106989670A (en) A kind of non-contact type high-precision large-scale workpiece tracking measurement method of robot collaboration
CN103810676A (en) Method for monitoring running speed of steel pipe
CN106441162A (en) Cylindrical object verticality noncontact detection device and method
CN114047358A (en) Monocular vision-based line angle vibration calibration method
Jianming et al. Error correction for high-precision measurement of cylindrical objects diameter based on machine vision
Zhang et al. Freight train gauge-exceeding detection based on three-dimensional stereo vision measurement
CN106645168A (en) Detection method for surface concave-convex defect of boom cylinder of crane

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20140409

Termination date: 20141215

EXPY Termination of patent right or utility model