CN109000572B - A kind of body diameter detection method - Google Patents
A kind of body diameter detection method Download PDFInfo
- Publication number
- CN109000572B CN109000572B CN201811080871.3A CN201811080871A CN109000572B CN 109000572 B CN109000572 B CN 109000572B CN 201811080871 A CN201811080871 A CN 201811080871A CN 109000572 B CN109000572 B CN 109000572B
- Authority
- CN
- China
- Prior art keywords
- plane
- curve
- cylindrical surface
- axis
- normal vector
- 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
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01B—MEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
- G01B11/00—Measuring arrangements characterised by the use of optical techniques
- G01B11/08—Measuring arrangements characterised by the use of optical techniques for measuring diameters
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Length Measuring Devices By Optical Means (AREA)
Abstract
The invention discloses a kind of body diameter detection methods, comprising the following steps: the line-structured light system that S1. forms laser emitter and video camera is demarcated;S2. the laser rays for projecting two intersections to cylindrical body by laser, leaves the curve of two intersections on the cylinder, acquires the corresponding visual pattern of two curves using video camera;S3. two curves are calculated when intersecting on cylindrical surface, normal vector of the cylindrical surface in crosspoint;S4. the diameter of cylinder is calculated.The present invention provides a kind of body diameter detection methods, it is only necessary to which a camera and the line-structured lights of any direction two intersections just can detect that the diameter of cylindrical body, have easy to operate, at low cost, advantage with high accuracy.
Description
Technical field
The present invention relates to body diameter detections, detect more particularly to a kind of body diameter based on active optical measurement
Method.
Background technique
Coil in daily life, axis, cup and other items can be approximately cylindrical body.In processing, to cylinder
The automatic detection of body diameter of part is very important link, is individualized intelligent manufacture, important component.To guarantee circle
The accuracy of cylinder part often needs to detect cylinder diameter, and current cylinder diameter measurement method is broadly divided into
Contact type measurement and non-contact measurement.
The major way of contact type measurement is that technical staff is measured using the measuring instrument of profession at present, such as vernier calliper
Ruler, micrometer etc., contact type measurement need people to complete measurement tasks, and low efficiency has seriously affected the efficiency of production and processing.This
Outside, in certain processings, do not allow contact workpiece, therefore cannot be widely used in production and processing.It is contactless at present
The major way of measurement includes laser triangulation, electric vortex method, ultrasonic method of measuring, machine vision metrology etc., but to measuring instrument
Device sheet is at high cost, has strict requirements to measurement environment.
Summary of the invention
It is an object of the invention to overcome the deficiencies of the prior art and provide a kind of body diameter detection methods, it is only necessary to one
A camera and the line-structured lights of any direction two intersections just can detect that the diameter of cylindrical body, have it is easy to operate, it is at low cost,
Advantage with high accuracy.
The purpose of the present invention is achieved through the following technical solutions: a kind of body diameter detection method, including following
Step:
S1. the line-structured light system formed to laser emitter and video camera is demarcated;
S2. the laser rays for projecting two intersections to cylindrical body by laser emitter, leaves two intersections on the cylinder
Curve, utilize video camera to acquire the corresponding visual pattern of two curves;
S3. two curves are calculated when intersecting on cylindrical surface, normal vector of the cylindrical surface in crosspoint
S301. measurement obtains the three-dimensional coordinate of series of points on first curve: according to machine vision technique, space is any
The three-dimensional coordinate of series of points on one section of curve that cylindrical surface is intersected with space arbitrary plane are as follows:
o1=(Xw1,Yw1,Zw1),o2=(Xw2,Yw2,Zw2),...,on=(Xwn,Ywn,Zwn);
S302. according to the obtained three-dimensional coordinate of measurement, using least square method fit Plane, i.e., in space with cylindrical surface phase
Hand over the plane for forming first curve, plane equation Z=AX+BY+CZ+D, normal vector
S303. appoint in space and take two o'clock O=(X0,Yo,Zo), W=(Xw,Yw,Zw) meet plane equation:
Z=AX+BY+CZ+D;
If O is origin, using OW as X-axis, normal thereto is Y-axis, normal vectorA new three-dimensional system of coordinate is established for Z axis
XYZ, with world coordinate system XwYwZwBetween meet following relationship:
In formula, the spin matrix that R is 3 × 3, the translation matrix that T is 3 × 1;
S304. again using O as origin in plane Z, OW is x-axis, and Y-axis is that y-axis establishes coordinate system xoy, o1,o2,...,onPoint
Coordinate in xoy is o1=(x1,y1), o2=(x2,y2), o3=(x3,y3),...,on=(xn,yn), it is obtained by geometrical relationship
X1=x1,X2=x2,...,Xn=xn, and o1,o2,...,onCurve in plane Z is ellipse, and fitting obtains following equation:
ax2+bxy+cy2+ dx+ey+f=0;
If a S305. point o on curvem=(xt,yt), meet ax2+bxy+cy2+ dx+ey+f=0 finds out the o in plane Zm
Tangent vector (the x of pointq,yq);
S306. by omPoint tangent vector is expressed as (x in XYZ coordinate systemq,yq, 0), o is acquired by R and TmIn XwYwZwIt sits
Tangent vector under mark system
S307. the three-dimensional coordinate of series of points on Article 2 curve is obtained according to step S3 measurement, and according to step S301
~S306 then acquires the normal vector that the plane S of Article 2 curve is crossed to form with cylindrical surfaceAny point o on Article 2 curvek
In XwYwZwTangent vector under coordinate systemWork as omWith okIt is overlapped, i.e., two curves intersect on cylindrical surface
When, cylindrical surface is acquired in the normal vector of crosspoint
S4. it is obtained by geometrical relationship: the center vector of cylinderWithIt is built for the random length length of normal vector
A plane is found, then o1,o2,...,onSubpoint on this plane is fitted to obtain a round equation, and then acquires the circle
Radius r, the radius are the radius R of cylindrical body, body diameter D=2R.
Further, the calibration content in the step S1 includes the position of video camera internal reference and optical plane relative camera
It sets.
Further, the video camera internal reference includes camera focus, principal point and distortion factor.
The beneficial effects of the present invention are: the present invention only needs a camera and any direction two line-structured lights intersected just
It can detect that the diameter of cylindrical body, there is easy to operate, at low cost, advantage with high accuracy.
Detailed description of the invention
Fig. 1 is line-structured light instrumentation plan;
Fig. 2 is flow chart of the method for the present invention.
Specific embodiment
Technical solution of the present invention is described in further detail with reference to the accompanying drawing, but protection scope of the present invention is not limited to
It is as described below.
In the present invention, body diameter detection is carried out based on method of structured light, method of structured light is a kind of active optical survey
Amount technology, basic principle are to project controllable luminous point, striation or smooth surface structure from structured light projector to testee surface,
And image is obtained by imaging sensor (such as video camera), object is calculated using triangle principle by system geometrical relationship
Three-dimensional coordinate;Line-structured light system is made of laser emitter and video camera, and measurement method is as shown in Figure 1;The present invention is based on knots
The process that structure light method carries out body diameter detection is as follows.
As shown in Fig. 2, a kind of body diameter detection method, comprising the following steps:
S1. the line-structured light system formed to laser emitter and video camera is demarcated;
S2. the laser rays for projecting two intersections to cylindrical body by laser emitter, leaves two intersections on the cylinder
Curve, utilize video camera to acquire the corresponding visual pattern of two curves;
S3. two curves are calculated when intersecting on cylindrical surface, normal vector of the cylindrical surface in crosspoint
S301. measurement obtains the three-dimensional coordinate of series of points on first curve: according to machine vision technique, space is any
The three-dimensional coordinate of series of points on one section of curve that cylindrical surface is intersected with space arbitrary plane are as follows:
o1=(Xw1,Yw1,Zw1),o2=(Xw2,Yw2,Zw2),...,on=(Xwn,Ywn,Zwn);
S302. according to the obtained three-dimensional coordinate of measurement, using the methods of least square method fit Plane, i.e., in space with circle
Cylinder is crossed to form the plane of first curve, plane equation Z=AX+BY+CZ+D, normal vector
S303. appoint in space and take two o'clock O=(X0,Yo,Zo), W=(Xw,Yw,Zw) meet plane equation:
Z=AX+BY+CZ+D;
If O is origin, using OW as X-axis, normal thereto is Y-axis, normal vectorA new three-dimensional system of coordinate is established for Z axis
XYZ, with world coordinate system XwYwZwBetween meet following relationship:
In formula, the spin matrix that R is 3 × 3, the translation matrix that T is 3 × 1;
S304. again using O as origin in plane Z, OW is x-axis, and Y-axis is that y-axis establishes coordinate system xoy, o1,o2,...,onPoint
Coordinate in xoy is o1=(x1,y1), o2=(x2,y2), o3=(x3,y3),...,on=(xn,yn), it is obtained by geometrical relationship
X1=x1,X2=x2,...,Xn=xn, and o1,o2,...,onCurve in plane Z is ellipse, and fitting obtains following equation:
ax2+bxy+cy2+ dx+ey+f=0;
If a S305. point o on curvem=(xt,yt), meet ax2+bxy+cy2+ dx+ey+f=0 finds out the o in plane Zm
Tangent vector (the x of pointq,yq);
S306. by omPoint tangent vector is expressed as (x in XYZ coordinate systemq,yq, 0), o is acquired by R and TmIn XwYwZwIt sits
Tangent vector under mark system
S307. the three-dimensional coordinate of series of points on Article 2 curve is obtained according to step S3 measurement, and according to step S301
~S306 then acquires the normal vector that the plane S of Article 2 curve is crossed to form with cylindrical surfaceAny point o on Article 2 curvek
In XwYwZwTangent vector under coordinate systemWork as omWith okIt is overlapped, i.e., two curves intersect on cylindrical surface
When, cylindrical surface is acquired in the normal vector of crosspoint
S4. it is obtained by geometrical relationship: the center vector of cylinderWithIt is long for the random length of normal vector
A plane is established, then o1,o2,...,onSubpoint on this plane is fitted to obtain a round equation, and then acquires the circle
Radius r, which is the radius R of cylindrical body, body diameter D=2R.
In embodiments herein, the calibration content in the step S1 includes video camera internal reference and line-structured light sensing
Device structural parameters (optic plane equations);Calibration in the embodiment refers mainly to the calibration of structural parameters, i.e., optical plane is opposite images
The position of machine;In the embodiment, the video camera internal reference includes camera focus, principal point and distortion factor.
To sum up, the present invention only needs a camera and any direction two line-structured lights intersected just to can detect that cylindrical body
Diameter, have easy to operate, at low cost, advantage with high accuracy.
It should be noted that those of ordinary skill in the art will understand that the embodiments described herein is to help
Reader is helped to understand implementation method of the invention, it should be understood that protection scope of the present invention is not limited to such special statement
And embodiment.Those skilled in the art disclosed the technical disclosures can make various do not depart from originally according to the present invention
Various other specific variations and combinations of essence are invented, these variations and combinations are still within the scope of the present invention.
Claims (3)
1. a kind of body diameter detection method, it is characterised in that: the following steps are included:
S1. the line-structured light system formed to laser emitter and video camera is demarcated;
S2. the laser rays for projecting two intersections to cylindrical body by laser emitter, leaves the song of two intersections on the cylinder
Line acquires the corresponding visual pattern of two curves using video camera;
S3. two curves are calculated when intersecting on cylindrical surface, normal vector of the cylindrical surface in crosspoint
S301. measurement obtains the three-dimensional coordinate of series of points on first curve: according to machine vision technique, any cylinder in space
The three-dimensional coordinate of series of points on one section of curve that face is intersected with space arbitrary plane are as follows:
o1=(Xw1,Yw1,Zw1),o2=(Xw2,Yw2,Zw2),...,on=(Xwn,Ywn,Zwn);
S302. shape is intersected with cylindrical surface in space using least square method fit Plane according to the three-dimensional coordinate that measurement obtains
At the plane of first curve, plane equation Z=AX+BY+CZ+D, normal vector
S303. appoint in space and take two o'clock O=(X0,Yo,Zo), W=(Xw,Yw,Zw) meet plane equation:
Z=AX+BY+CZ+D;
If O is origin, using OW as X-axis, normal thereto is Y-axis, normal vectorA new three-dimensional system of coordinate XYZ is established for Z axis,
Itself and world coordinate system XwYwZwBetween meet following relationship:
In formula, the spin matrix that R is 3 × 3, the translation matrix that T is 3 × 1;
S304. again using O as origin in plane Z, OW is x-axis, and Y-axis is that y-axis establishes coordinate system xoy, o1,o2,...,onPoint exists
Coordinate in xoy is o1=(x1,y1), o2=(x2,y2), o3=(x3,y3),...,on=(xn,yn), X is obtained by geometrical relationship1
=x1,X2=x2,...,Xn=xn, and o1,o2,...,onCurve in plane Z is ellipse, and fitting obtains following equation:
ax2+bxy+cy2+ dx+ey+f=0;
If a S305. point o on curvem=(xt,yt), meet ax2+bxy+cy2+ dx+ey+f=0 finds out the o in plane ZmPoint
Tangent vector (xq,yq);
S306. by omPoint tangent vector is expressed as (x in XYZ coordinate systemq,yq, 0), o is acquired by R and TmIn XwYwZwUnder coordinate system
Tangent vector
S307. obtain the three-dimensional coordinate of series of points on Article 2 curve according to step S3 measurement, and according to step S301~
S306 then acquires the normal vector that the plane S of Article 2 curve is crossed to form with cylindrical surfaceAny point o on Article 2 curvek's
In XwYwZwTangent vector under coordinate systemWork as omWith okIt is overlapped, i.e., two curves intersect on cylindrical surface
When, cylindrical surface is acquired in the normal vector of crosspoint
S4. it is obtained by geometrical relationship: the center vector of cylinderWithOne is established for the random length length of normal vector
A plane, then o1,o2,...,onSubpoint on this plane is fitted to obtain a round equation, and then acquires the radius of the circle
R, the radius are the radius R of cylindrical body, body diameter D=2R.
2. a kind of body diameter detection method according to claim 1, it is characterised in that: in the calibration in the step S1
Hold the position including video camera internal reference and optical plane relative camera.
3. a kind of body diameter detection method according to claim 2, it is characterised in that: the video camera internal reference includes phase
Machine focal length, principal point and distortion factor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811080871.3A CN109000572B (en) | 2018-09-17 | 2018-09-17 | A kind of body diameter detection method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811080871.3A CN109000572B (en) | 2018-09-17 | 2018-09-17 | A kind of body diameter detection method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109000572A CN109000572A (en) | 2018-12-14 |
CN109000572B true CN109000572B (en) | 2019-09-10 |
Family
ID=64591836
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811080871.3A Expired - Fee Related CN109000572B (en) | 2018-09-17 | 2018-09-17 | A kind of body diameter detection method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109000572B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109883443B (en) * | 2019-02-19 | 2021-06-18 | 北京工业大学 | Line structure optical sensor spatial attitude calibration method |
CN109708583A (en) * | 2019-03-05 | 2019-05-03 | 洛阳德晶智能科技有限公司 | A kind of cylinder diameter measuring system and measurement method based on line-structured light |
CN112288823B (en) * | 2020-10-15 | 2022-12-06 | 武汉工程大学 | Calibration method of standard cylinder curved surface point measuring equipment |
CN113446952B (en) * | 2021-08-17 | 2022-08-02 | 华北科技学院(中国煤矿安全技术培训中心) | Online non-contact shaft diameter measuring method |
CN114322802A (en) * | 2021-12-30 | 2022-04-12 | 苏州中科行智智能科技有限公司 | Line diameter measuring method based on 3D line laser camera |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1259542C (en) * | 2003-06-11 | 2006-06-14 | 北京航空航天大学 | Vision measuring method for spaced round geometrical parameters |
FI117650B (en) * | 2004-10-27 | 2006-12-29 | Mapvision Ltd Oy | Defining the axis of symmetry |
FI20080493L (en) * | 2008-09-02 | 2010-03-03 | Leuvatech Oy | Procedure for measuring carbon sink |
CN102107374B (en) * | 2011-02-01 | 2012-05-23 | 吉林大学 | On-line detection method for diameter size of shaft disc type part |
CN103499302B (en) * | 2013-09-27 | 2015-11-25 | 吉林大学 | The camshaft diameter dimension On-line Measuring Method of structure based light Vision imaging system |
CN105004274B (en) * | 2015-07-07 | 2017-06-30 | 深圳大学 | A kind of face of cylinder radius measurement method based on 3D vision |
CN107289866A (en) * | 2017-06-01 | 2017-10-24 | 上海理工大学 | The method of multiangular measurement short carbon nanometer tube diameter and length |
-
2018
- 2018-09-17 CN CN201811080871.3A patent/CN109000572B/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN109000572A (en) | 2018-12-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109000572B (en) | A kind of body diameter detection method | |
CN106595528B (en) | A kind of micro- binocular stereo vision measurement method of telecentricity based on digital speckle | |
CN102359758B (en) | Method for detecting appearance of semiconductor chip | |
CN103308007B (en) | The IC pin coplanarity measuring system of higher order reflection and grating image and method | |
CN102183213B (en) | Aspherical mirror detection method based on phase measurement deflection technology | |
CN106524945B (en) | A kind of plane included angle On-line Measuring Method based on mechanical arm and structure light vision | |
CN208795188U (en) | A kind of structured light binocular vision detection system | |
CN106595519A (en) | Flexible 3D contour measurement method and device based on laser MEMS projection | |
CN106441163B (en) | A kind of contactless column measuring for verticality method and device | |
CN107816942A (en) | A kind of planar dimension measurement method based on cross structure light vision system | |
JP4846295B2 (en) | Three-dimensional coordinate measuring apparatus and method | |
CN107941471A (en) | A kind of detection method of free form surface | |
JP2021193400A (en) | Method for measuring artefact | |
RU2015107204A (en) | METHOD FOR NON-DESTRUCTIVE CONTROL OF BLADE PROCESSING | |
CN102353345A (en) | Curvature radius measuring method | |
CN208012553U (en) | Cylinder inner wall detection system | |
CN108534704A (en) | Cylinder inner wall detection system based on structured light | |
CN105928484B (en) | Cage guide automatic measurement system based on binocular vision | |
CN205655810U (en) | Combined type coordinate measuring machine fuses demarcation ware | |
CN105744258A (en) | Single-camera binocular vision sensor and debugging method thereof | |
CN113624158A (en) | Visual dimension detection system and method | |
JP2006275553A (en) | Position measuring system | |
CN211236535U (en) | Multi-lens micro-camera | |
RU2471148C1 (en) | Device for controlling rotation of object | |
CN102538716B (en) | Eccentricity detecting method for spherical surface optic element with small caliber and large curvature |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20190910 Termination date: 20210917 |
|
CF01 | Termination of patent right due to non-payment of annual fee |