CN109668509A - Based on biprism single camera three-dimensional measurement industrial endoscope system and measurement method - Google Patents
Based on biprism single camera three-dimensional measurement industrial endoscope system and measurement method Download PDFInfo
- Publication number
- CN109668509A CN109668509A CN201910048191.1A CN201910048191A CN109668509A CN 109668509 A CN109668509 A CN 109668509A CN 201910048191 A CN201910048191 A CN 201910048191A CN 109668509 A CN109668509 A CN 109668509A
- Authority
- CN
- China
- Prior art keywords
- right view
- view
- module
- left view
- biprism
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
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/002—Measuring arrangements characterised by the use of optical techniques for measuring two or more coordinates
-
- 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/24—Measuring arrangements characterised by the use of optical techniques for measuring contours or curvatures
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Endoscopes (AREA)
- Instruments For Viewing The Inside Of Hollow Bodies (AREA)
Abstract
The invention discloses biprism single camera three-dimensional measurement industrial endoscope system and measurement method is based on, system includes: LED illumination module, biprism single camera module, handle module, video camera acquisition driving and image processing module, display module and data encoding and decoding and memory module;Measurement method is the following steps are included: acquisition image first obtains left and right view;Then monocular calibration is carried out to system parameter;Then binocular calibration and correction are carried out to biprism single camera;Then scene surface to be measured is irradiated by LED illumination module, and acquires the left and right view of scene to be measured;The left and right view of scene to be measured is corrected later;The disparity map of correction rear left right view is obtained again;Finally obtain the three-dimensional coordinate figure, interested point or the three-dimensional coordinate figure i.e. pattern in region of scene to be measured.The present invention can carry out binocular shooting, three-dimensional reconstruction and three-dimensional measurement to narrow spaces such as inner wall of the pipes, have easily manufacture, quickly with the advantages such as high-acruracy survey.
Description
Technical field
The invention belongs to three-dimensional measurement fields, in particular to a kind of to be based on peeping in the industry of biprism single camera three-dimensional measurement
Mirror system and measurement method.
Background technique
Binocular vision 3 D measurement system have quick, lossless, noncontacting measurement ground mapping, military ranging, investigation,
Industrial part rapid survey, inspection, Product Acceptance Review, which have, to be widely applied.Binocular vision 3 D measurement system is applied to ranging earliest
With topography measurement, its main feature is that volume is big, the long, long-focus of the distance between two camera lenses and without carrying out image list
Binocular target is fixed and correction, thus when target compare distant place measurement error can be bigger.With the development of computer technology, number
The appearance of word image, industry manufacture and other industry requirement are higher and higher, various based at binocular head combination computer picture
The appearance of reason technology meets all trades and professions current demand.
When binocular three-dimensional measuring system apply than it is wide when, still have some scene mankind be difficult to observe by human eye or
The more difficult acquisition high-acruracy survey of person, such as interior conduit wear measurement, engine inner wall wear measurement etc. is so various backmans
Tool such as ultrasonic measurement, X-ray measurement, monocular vision measurement, Binocular vision photogrammetry are invented.Wherein Binocular vision photogrammetry is because than it
His method have more rapidly, more accurate, more occasions the advantages such as are applicable in and are used by the research of many focus of attention with manufacturer.At this time go out
Having showed a problem is inside pipeline or must when engine inner wall invisible to the human eye is using two CCD camera measure system
There must be sufficient space to put two video cameras and lighting device.Many scholars, which start to be absorbed in, designs a kind of miniature pair
Camera chain and minitype lighting device.Seldom manufacturer can be processed at present with sufficiently high precision for such design
Product.In addition miniature image sensor must be also used when using micro-lens, and these microsensor prices compare standard rule
The price of very little sensor is much higher.If using monocular-camera, obviously Lens do not need to be made very small, at least can be with
It can accomplish to nor affect on video camera greatly in pipeline movement twice of the one of camera lens of biocular systems.But previous monocular instrumnent is first
As shooting each time can only obtain an image so as to be obviously not so good as two CCD camera measure system more reliable for measurement accuracy.
Someone uses disymmetry prism single camera to carry out three-dimensional measurement in the world.2016, L.F.Wu et al. existed
Document " An Accurate Method for Shape Retrieval and Displacement Measurement
Using Bi-Prism-Based Single Lens 3D Digital Image Correlation " it proposes one kind and is based on
The accurate shape of biprism single camera digital picture correlation detects and displacement measurement method, that is, uses the work of a long-focus
Industry video camera adds a disymmetry prism in front so that video camera shoot each time can photograph two of scenery it is different
Image realizes single camera binocular vision.The model foundation of Wu is in long focal length lens and system may be only available for wanting volume
Not high occasion is sought, universality is general.
Summary of the invention
The present invention solve technical problem be to provide it is a kind of based on biprism single camera three-dimensional measurement it is industrial in peep
Mirror system and method.
Realize the solution of the object of the invention are as follows: it is based on biprism single camera three-dimensional measurement industrial endoscope system,
Including LED illumination module, biprism single camera module, handle module, video camera acquisition driving and image processing module, display
Module and data encoding and decoding and memory module;
The LED illumination module is set in biprism single camera module, and the optical axis of the two is parallel, and is placed in same
In one sense channel;The biprism single camera module is connected with handle module, biprism single camera module and video camera
Acquisition driving and image processing module are connected with each other by the data line being nested in handle module;The video camera acquisition driving
It is connected simultaneously with display module, data encoding and decoding with memory module with image processing module;
The LED illumination module, for being scene lighting to be measured;
The biprism single camera module acquires two scene figures to be measured for realizing single camera simultaneously, remembers respectively
For left view and right view;
The handle module, for operating and controlling biprism single camera module and LED illumination module in channel
Portion is mobile;
The video camera acquisition driving and image processing module, for being taken the photograph for LED illumination module for power supply, driving biprism list
Camera module shot, read image and carried out camera calibration and correction, left view and right view are carried out Stereo matching,
It carries out three-dimensional measurement and reconstruction and data is transmitted;
The display module, for show image, video camera acquisition driving that biprism single camera module photograph arrives with
Image processing module treated image and three-dimensional measuring result;
The data encoding and decoding and memory module, image and video camera for being arrived to biprism single camera module photograph
Treated that image encoded, is stored for acquisition driving and image processing module.
Method for three-dimensional measurement based on the three-dimensional measurement industrial endoscope system, comprising the following steps:
The image of three-dimensional measurement industrial endoscope system photographs is divided into two halves by step 1, obtains left view and the right side respectively
View;Wherein, described to divide equally specifically: the length of the image taken is divided into two halves;
Step 2 carries out monocular calibration to three-dimensional measurement industrial endoscope system parameter, obtains left view and right view respectively
Internal reference matrix be respectively Al、ArIt is respectively k with distortion parameter vectorl、kr;
Step 3 carries out binocular calibration and correction to biprism single camera, passes through internal reference matrix Al、ArWith distortion parameter to
Measure kl、krLeft view, right view are corrected respectively, obtain distortionless left view, right view;It is sought later from right view
It projects to the spin matrix R and translation vector t of left view, seeks left and right view projections to common plane and make final left and right view
The spin matrix R of figure horizontal aligumentlAnd Rr, and seek the back projection matrix Q that world coordinates is mapped to from left view coordinate;Wherein,
Optical axis of the common plane perpendicular to single camera;
Step 4 irradiates scene surface to be measured by driving power driving LED illumination module transmitting light;
Step 5 acquires image using single camera, obtains left view Il0, right view Ir0, and by covering in handle
Image transmitting to video camera is acquired driving and image processing module by data line;
Step 6, video camera acquisition driving and image processing module are to left view Il0, right view Ir0It is corrected, obtains new
Left view Il1, right view Ir1;
Step 7 seeks left view Il1With right view Ir1Parallax d, obtain disparity map;
The left view I that step 8, the back projection matrix Q obtained by step 3, step 6 obtainl1, step 7 obtain parallax
Figure, seeks the three-dimensional coordinate of all target points in scene to be measured, thus to obtain three-dimensional coordinate figure;
Step 9 extracts point-of-interest or region, and seeks the interested of the extraction by the process of step 8
Thus the three-dimensional coordinate of point or region all the points reconstructs the pattern in point-of-interest or region, complete three-dimensional measurement.
Compared with prior art, the present invention its remarkable advantage are as follows: 1) present invention before single camera camera lens by being arranged
Biprism makes it possible to realize easy processing to scene capture two images using single camera synchronization, high-precision manufactures
Three-dimensional measurement industrial endoscope system;2) system designed by the present invention is hardware in conjunction with software, wherein big visual field camera mirror
Head distortion and left and right view horizontal registration, which carry out calibration by software, greatly improves subsequent measurement accuracy with correction;Using soft
Part measurement, error caused by getting rid of artificially;3) the device of the invention is simple, small in size with structure, processing and manufacturing is at low cost,
The advantages such as assembly are easy, high speed measurement can be carried out to inner wall of the pipe, solve traditional twin camera Binocular vision photogrammetry design
Challenge, have very big application prospect.
The present invention is described in further detail with reference to the accompanying drawing.
Detailed description of the invention
Fig. 1 is that the present invention is based on the structure charts of biprism single camera three-dimensional measurement industrial endoscope system.
Fig. 2 is the positional diagram of biprism and single camera in present system.
Fig. 3 is that the present invention is based on the method for three-dimensional measurement flow charts of three-dimensional measurement industrial endoscope system.
Fig. 4 is that video camera collects tessellated left and right view in the embodiment of the present invention, wherein a) is left view, b) be
Right view.
Fig. 5 is the tessellated left and right view in the embodiment of the present invention after distortion correction, wherein a) is left view, b) be
Right view.
Fig. 6 is to verify horizontal registration effect diagram in the embodiment of the present invention by taking the left and right view of gridiron pattern as an example.
Fig. 7 is the left and right view in the embodiment of the present invention after the correction of the binocular of three-dimensional measurement target, wherein a) is left view
Figure, b) it is right view.
Fig. 8 is the disparity map of the left and right view after the binocular correction obtained in the embodiment of the present invention.
Fig. 9 is the three-dimensional point cloud schematic diagram to three-dimensional measurement target obtained in the embodiment of the present invention.
Specific embodiment
In conjunction with Fig. 1,2, the present invention is based on biprism single camera three-dimensional measurement industrial endoscope systems, including LED illumination
Module 1, biprism single camera module 2, handle module 3, video camera acquisition driving with image processing module 4, display module 5 with
And data encoding and decoding and memory module 6;
LED illumination module 1 is set in biprism single camera module 2, and the optical axis of the two is parallel, and is placed in same
In channel;Biprism single camera module 2 is connected with handle module 3, biprism single camera module 2 and video camera acquisition driving
It is connected with each other with image processing module 4 by the data line being nested in handle module 3;Video camera acquisition driving and image procossing
Module 4 is connected with display module 5, data encoding and decoding with memory module 6 simultaneously;
LED illumination module, for being scene lighting to be measured;
Biprism single camera module acquires two scene figures to be measured for realizing single camera simultaneously, is denoted as a left side respectively
View and right view;
Handle module is moved for operating and controlling biprism single camera module and LED illumination module in channel interior
It is dynamic;
Video camera acquisition driving and image processing module, for being LED illumination module for power supply, driving biprism single camera
Module is shot, reads image and carried out camera calibration and correction, carries out Stereo matching to left view and right view, carries out
Three-dimensional measurement and reconstruction and data are transmitted;
Display module, image, video camera acquisition driving and the image arrived for showing biprism single camera module photograph
Processing module treated image and three-dimensional measuring result;
Data encoding and decoding and memory module, image and video camera acquisition for being arrived to biprism single camera module photograph
Treated that image encoded, is stored for driving and image processing module.Data encoding and decoding are that computer is hard with memory module
Disk needs to use these data according to the computer of different application or different location, and data are read from hard disk and pass through terminal
Decoding is further processed or observes after equipment transmission.
Further, LED illumination module 1 includes white LED illumination light source;Biprism single camera module 2 includes double ribs
Mirror and single camera;Handle module 3 includes metal hose handle;Video camera acquisition driving includes 4.2V with image processing module 4
Driving power and computer;Display module 5 includes computer display screen.
Further, the plane perpendicular of biprism is in the optical axis of single camera camera lens, and each refraction when overlooking biprism
Rib is parallel to the vertical edges of cmos sensor in single camera.
Further, biprism is 30 degree of biprisms.
Further, LED illumination module 1 is set in biprism single camera module 2, and the two optical axis is parallel, into
One step setting are as follows: LED illumination module 1 can illuminate the entire field range of single camera, and not direct irradiation camera lens.
In conjunction with Fig. 3, the method for three-dimensional measurement based on three-dimensional measurement industrial endoscope system, comprising the following steps:
The image of three-dimensional measurement industrial endoscope system photographs is divided into two halves by step 1, obtains left view and the right side respectively
View;Wherein, respectively specifically: the length of the image taken is divided into two halves;
Step 2 carries out monocular calibration to three-dimensional measurement industrial endoscope system parameter, obtains left view and right view respectively
Internal reference matrix be respectively Al、ArIt is respectively k with distortion parameter vectorl、kr;
Step 3 carries out binocular calibration and correction to biprism single camera, passes through internal reference matrix Al、ArWith distortion parameter to
Measure kl、krLeft view, right view are corrected respectively, obtain distortionless left view, right view;It is sought later from right view
It projects to the spin matrix R and translation vector t of left view, seeks left and right view projections to common plane and make final left and right view
The spin matrix R of figure horizontal aligumentlAnd Rr, and seek the back projection matrix Q that world coordinates is mapped to from left view coordinate;Wherein,
Optical axis of the common plane perpendicular to single camera;
Step 4 irradiates scene surface to be measured by driving power driving LED illumination module transmitting light;
Step 5 acquires image using single camera, obtains left view Il0, right view Ir0, and by covering in handle
Image transmitting to video camera is acquired driving and image processing module by data line;
Step 6, video camera acquisition driving and image processing module are to left view Il0, right view Ir0It is corrected, obtains new
Left view Il1, right view Ir1;
Step 7 seeks left view Il1With right view Ir1Parallax d, obtain disparity map;
The left view I that step 8, the back projection matrix Q obtained by step 3, step 6 obtainl1, step 7 obtain parallax
Figure, seeks the three-dimensional coordinate of all target points in scene to be measured, thus to obtain three-dimensional coordinate figure;
Step 9 extracts point-of-interest or region, that is, target point or region, and seeks mentioning by the process of step 8
Thus the three-dimensional coordinate of the point-of-interest or region all the points that take reconstructs the pattern in point-of-interest or region, complete three-dimensional survey
Amount.
Further, step 2 carries out monocular calibration to three-dimensional measurement industrial endoscope system parameter, obtains left view and the right side
The respective internal reference matrix of view is respectively Al、ArIt is respectively k with distortion parameter vectorl、kr, specifically:
Step 2-1, gridiron pattern scaling board is irradiated using the monochromatic source except endoscopic system;
Step 2-2, single camera acquires scaling board image, and the left and right view of scaling board is obtained according to the mode of step 1
Figure;
Step 2-3, left view and right view are demarcated respectively using Zhang Shi standardization, thus to obtain left view, the right side
The respective internal reference matrix of view is respectively Al、ArIt is respectively k with distortion parameter vectorl、kr:
ki=[k1i,k2i,k3i] i=l, r
In formula, flAnd frThe focal length of respectively left and right camera lens is the focal length of single camera camera lens, dxiAnd dyiPoint
Not Wei CMOS pixel length and width, (cxl,cyl) and (cxr,cyr) be respectively left view, right view center of distortion, slAnd srRespectively
For the obliquity factor of left view, right view, k1l,k2l,k3lRespectively 1 rank of left view, 2 ranks and 3 rank distortion factors, k1r,k2r,
k3rRespectively 1 rank of right view, 2 ranks and 3 rank distortion factors.
Further, step 3 specifically:
Step 3-1, using distortion parameter vector kl、krIt calculates and obtains distortionless left view and right view:
In formula, (ul,vl) and (ur,vr) it is respectively the picture point of left view before distortion correction, right view in pixel coordinate system
In coordinate,WithThe picture point of left view, right view respectively after distortion correction is in pixel coordinate system
In coordinate;(ul0,vl0) and (ur0,vr0) be respectively left view, right view center of distortion,
Step 3-2, it by Zhang Zhengyou gridiron pattern standardization, seeks distortionless right view and rotates to distortionless left view
Spin matrix R and translation vector t=[tx ty tz]T;Wherein, tx, ty, tzRespectively distortionless right view rotate to
Along the translational movement of x, y and z directionss during distortionless left view;
Step 3-3, seek left and right view projections using Zhang Shi standardization makes final left and right view horizontal to common plane
The spin matrix R of alignmentlAnd Rr:
Rl=RrextR1/2
Rr=RrextR-1/2
Wherein,
Step 3-4, back projection's matrix Q is calculated:
In formula, f is focal length of camera, cxFor left view center to the left view upper left corner along horizontal direction physics away from
From cyIt is left view center to the left view upper left corner along the physical distance of vertical direction.
Further, the acquisition of video camera described in step 6 driving and image processing module are to left view Il0, right view Ir0Into
Row correction, obtains new left view Il1, right view Ir1, specifically:
Step 6-1, such as process of step 3-1 is to left view Il0, right view Ir0Distortion correction is carried out, is obtained distortionless
New left view Il01, right view Ir01;
Step 6-2, the matrix R obtained by step 3lAnd Rr, to left view I in step 6-1l01, right view Ir01Carry out water
Flat alignment correction, the new left view I after obtaining horizontal aligumentl1, right view Ir1:
In formula, (ul1,vl1) and (ur1,vr1) it is respectively postrotational left view Il1With right view Ir1Picture point in pixel
Coordinate in coordinate system, (ul01,vl01) and (ur01,vr01) it is respectively left view Il01With right view Ir01Picture point pixel sit
Coordinate in mark system.
Further, step 7 seeks left view Il1With right view Ir1Parallax d, obtain disparity map, specifically: use
SGBM algorithm seeks left view Il1With right view Ir1Parallax d, obtain disparity map:
Step 7-1, to left view Il1With right view Ir1Three primary colours separation is carried out, three primary colours channel image is obtained;
Step 7-2, it is directed to each primary color channels image, each pixel of left view and right view are sought using SGBM algorithm respectively
Match the parallax of pixel, later merges the matching result in 3 channels, obtains disparity map.
Further, the image I of step 8 is obtained by step 3 back projection matrix Q, step 6 acquisitionl1, step 7 obtain
Disparity map, seek the three-dimensional coordinate of all target points in scene to be measured, thus to obtain three-dimensional coordinate figure, specifically:
Step 8-1, the three-dimensional coordinate i.e. three-dimensional point cloud i.e. three-dimensional coordinate figure of all target points in scene to be measured is sought:
In formula,For left view Il1Pixel single camera coordinate system coordinate, d be the pixel it is corresponding it is left,
The parallax of right view;[X Y Z w]TFor a cloud three-dimensional homogeneous coordinates;
Step 8-2, singular value inhibition is carried out to three-dimensional coordinate figure using median filtering.
Below with reference to embodiment, the present invention is described in further detail.
Embodiment
In the embodiment of the present invention, the video camera model LH-2830-V1 of use, camera lens focal length is 2.8mm,
Cmos sensor resolution ratio is 2048x1536, and the Pixel Dimensions of sensor are 2 μm, and the biprism used is 30 degree of biprism.
(1) in the single, double mesh calibration experiment of video camera, using gridiron pattern scaling board, the angle point number of scaling board is 9x6, angle
1.736mm is divided between point.
(2) LED LED power is 0.01W, irradiates measured piece to be measured.
(3) video camera acquires chessboard table images, and it is respectively obtained left view and right view respectively such as Fig. 4 a) into two
And 4b) shown in.
(4) monocular distortion correction is carried out to left view and right view.Distortion correction effect is verified by taking chessboard table images as an example
Shown in such as Fig. 5 a) and 5b).
(5) binocular for carrying out binocular horizontal registration to left view and right view corrects and calculates back projection's matrix Q.With chess
It is as shown in Figure 6 that horizontal registration effect is verified for disk table images.
(6) to left view such as Fig. 7 a after binocular correction) and right view such as Fig. 7 a) using half global block matching algorithm
(SGBM) Stereo matching is carried out, obtains disparity map, as shown in Figure 8.
(7) three-dimensional appearance reconstruction is carried out to back projection matrix Q obtained in disparity map obtained in (6) and (5), obtained
The scene three-dimensional point cloud obtained is shown as shown in Figure 9.
The present invention enables single camera in two width of synchronization photographed scene by the way that biprism is arranged before single camera
Image realizes in miniaturization binocular vision industry and peeps three-dimension measuring system.System realization of the invention is hardware and software knot
It closes, wherein the distortion of big visual field camera lens and left and right view horizontal registration are demarcated and corrected by software, makes subsequent survey
Accuracy of measurement greatly improves.Measurement means are measured using software, error caused by getting rid of artificially.System of the invention has structure
Simply, the advantages such as small in size, at low cost, easy assembly can carry out high speed measurement to narrow spaces such as inner wall of the pipes, solve
The challenge of traditional twin camera Binocular vision photogrammetry design, there is good application prospect.
Claims (10)
1. be based on biprism single camera three-dimensional measurement industrial endoscope system, which is characterized in that including LED illumination module (1),
Biprism single camera module (2), handle module (3), video camera acquisition driving and image processing module (4), display module (5)
And data encoding and decoding and memory module (6);
The LED illumination module (1) is set in biprism single camera module (2), and the optical axis of the two is parallel, and is placed in
In same sense channel;The biprism single camera module (2) is connected with handle module (3), biprism single camera module
(2) it is connected with each other with image processing module (4) by the data line being nested in handle module (3) with video camera acquisition driving;
Video camera acquisition driving and image processing module (4) simultaneously with display module (5), data encoding and decoding and memory module (6)
It is connected;
The LED illumination module, for being scene lighting to be measured;
The biprism single camera module acquires two scene figures to be measured for realizing single camera simultaneously, is denoted as a left side respectively
View and right view;
The handle module is moved for operating and controlling biprism single camera module and LED illumination module in channel interior
It is dynamic;
The video camera acquisition driving and image processing module, for being LED illumination module for power supply, driving biprism single camera
Module is shot, reads image and carried out camera calibration and correction, carries out Stereo matching to left view and right view, carries out
Three-dimensional measurement and reconstruction and data are transmitted;
The display module, image, video camera acquisition driving and the image arrived for showing biprism single camera module photograph
Processing module treated image and three-dimensional measuring result;
The data encoding and decoding and memory module, image and video camera acquisition for being arrived to biprism single camera module photograph
Treated that image encoded, is stored for driving and image processing module.
2. according to claim 1 be based on biprism single camera three-dimensional measurement industrial endoscope system, which is characterized in that
The LED illumination module (1) includes white LED illumination light source;The biprism single camera module (2) includes biprism and list
Video camera;The handle module (3) includes metal hose handle;The video camera acquisition driving is wrapped with image processing module (4)
Include 4.2V driving power and computer;The display module (5) includes computer display screen.
3. according to claim 2 be based on biprism single camera three-dimensional measurement industrial endoscope system, which is characterized in that
The plane perpendicular of the biprism is in the optical axis of single camera camera lens, and each refracting edge when vertical view biprism is parallel to single camera shooting
The vertical edges of cmos sensor in machine.
4. according to claim 3 be based on biprism single camera three-dimensional measurement industrial endoscope system, which is characterized in that
LED illumination module (1) can illuminate the entire field range of the single camera, and not direct irradiation camera lens.
5. the method for three-dimensional measurement based on three-dimensional measurement industrial endoscope system described in claim 1, which is characterized in that including with
Lower step:
The image of three-dimensional measurement industrial endoscope system photographs is divided into two halves by step 1, obtains left view and right view respectively
Figure;Wherein, described to divide equally specifically: the length of the image taken is divided into two halves;
Step 2 carries out monocular calibration to three-dimensional measurement industrial endoscope system parameter, obtains left view and right view is respective interior
Joining matrix is respectively Al、ArIt is respectively k with distortion parameter vectorl、kr;
Step 3 carries out binocular calibration and correction to biprism single camera, passes through internal reference matrix Al、ArWith distortion parameter vector
kl、krLeft view, right view are corrected respectively, obtain distortionless left view, right view;It seeks throwing from right view later
Shadow seeks left and right view projections to common plane and makes final left and right view to the spin matrix R and translation vector t of left view
The spin matrix R of horizontal aligumentlAnd Rr, and seek the back projection matrix Q that world coordinates is mapped to from left view coordinate;Wherein, public
Coplanar optical axis perpendicular to single camera;
Step 4 irradiates scene surface to be measured by driving power driving LED illumination module transmitting light;
Step 5 acquires image using single camera, obtains left view Il0, right view Ir0, and by covering the data line in handle
Image transmitting to video camera is acquired into driving and image processing module;
Step 6, video camera acquisition driving and image processing module are to left view Il0, right view Ir0It is corrected, obtains a new left side
View Il1, right view Ir1;
Step 7 seeks left view Il1With right view Ir1Parallax d, obtain disparity map;
The left view I that step 8, the back projection matrix Q obtained by step 3, step 6 obtainl1, step 7 obtain disparity map, ask
The three-dimensional coordinate of all target points in scene to be measured is taken, thus to obtain three-dimensional coordinate figure;
Step 9 extracts point-of-interest or region, and by the process of step 8 seek the extraction point-of-interest or
Thus the three-dimensional coordinate of region all the points reconstructs the pattern in point-of-interest or region, complete three-dimensional measurement.
6. the method for three-dimensional measurement of three-dimensional measurement industrial endoscope system according to claim 5, which is characterized in that step
2 is described to the progress monocular calibration of three-dimensional measurement industrial endoscope system parameter, obtains left view and the respective internal reference square of right view
Battle array is respectively Al、ArIt is respectively k with distortion parameter vectorl、kr, specifically:
Step 2-1, gridiron pattern scaling board is irradiated using the monochromatic source except endoscopic system;
Step 2-2, single camera acquires scaling board image, and the left and right view of scaling board is obtained according to the mode of step 1;
Step 2-3, left view and right view are demarcated respectively using Zhang Shi standardization, thus to obtain left view, right view
Respective internal reference matrix is respectively Al、ArIt is respectively k with distortion parameter vectorl、kr:
ki=[k1i, k2i, k3i] i=l, r
In formula, flAnd frThe focal length of respectively left and right camera lens, dxiAnd dyiThe respectively length and width of CMOS pixel, (cxl,
cyl) and (cxr, cyr) be respectively left view, right view center of distortion, slAnd srRespectively left view, right view inclination because
Son, k1l, k2l, k3lRespectively 1 rank of left view, 2 ranks and 3 rank distortion factors, k1r, k2r, k3rRespectively 1 rank of right view, 2 ranks
With 3 rank distortion factors.
7. the method for three-dimensional measurement of three-dimensional measurement industrial endoscope system according to claim 6, which is characterized in that step
3 specifically:
Step 3-1, using distortion parameter vector kl、krIt calculates and obtains distortionless left view and right view:
In formula, (ul, vl) and (ur, vr) it is respectively the picture point of left view before distortion correction, right view in pixel coordinate system
Coordinate,WithThe picture point of left view, right view respectively after distortion correction is in pixel coordinate system
Coordinate;(ul0, vl0) and (ur0, vr0) be respectively left view, right view center of distortion,
Step 3-2, it by Zhang Zhengyou gridiron pattern standardization, seeks distortionless right view and rotates to the rotation of distortionless left view
Torque battle array R and translation vector t=[tx ty tz]T;Wherein, tx, ty, tzRespectively distortionless right view is rotated to without abnormal
Along the translational movement of x, y and z directionss during the left view of change;
Step 3-3, left and right view projections are sought using Zhang Shi standardization and makes final left and right view horizontal aligument to common plane
Spin matrix RlAnd Rr:
Rl=RrextR1/2
Rr=RrextR-1/2
Wherein,
e3=e1×e2
Step 3-4, back projection's matrix Q is calculated:
In formula, f is focal length of camera, cxIt is left view center to the left view upper left corner along the physical distance of horizontal direction, cyFor
Left view center to the left view upper left corner is along the physical distance of vertical direction.
8. the method for three-dimensional measurement of three-dimensional measurement industrial endoscope system according to claim 7, which is characterized in that step
The 6 video camera acquisition drivings and image processing module are to left view Il0, right view Ir0It is corrected, obtains new left view
Il1, right view Ir1, specifically:
Step 6-1, such as process of step 3-1 is to left view Il0, right view Ir0Distortion correction is carried out, a distortionless new left side is obtained
View Il01, right view Ir01;
Step 6-2, the matrix R obtained by step 3lAnd Rr, to left view I in step 6-1l01, right view Ir01It is horizontal right to carry out
Quasi- correction, the new left view I after obtaining horizontal aligumentl1, right view Ir1:
In formula, (ul1, vl1) and (ur1, vr1) it is respectively postrotational left view Il1With right view Ir1Picture point in pixel coordinate
Coordinate in system, (ul01, vl01) and (ur01, vr01) it is respectively left view Il01With right view Ir01Picture point in pixel coordinate system
In coordinate.
9. the method for three-dimensional measurement of three-dimensional measurement industrial endoscope system according to claim 8, which is characterized in that step
Left view I is sought described in 7l1With right view Ir1Parallax d, obtain disparity map, specifically: left view is sought using SGBM algorithm
Il1With right view Ir1Parallax d, obtain disparity map:
Step 7-1, to left view Il1With right view Ir1Three primary colours separation is carried out, three primary colours channel image is obtained;
Step 7-2, it is directed to each primary color channels image, each pixel of left view and right view phase are sought using SGBM algorithm respectively
Parallax with pixel later merges the matching result in 3 channels, obtains disparity map.
10. the method for three-dimensional measurement of three-dimensional measurement industrial endoscope system according to claim 9, which is characterized in that step
The image I that the rapid 8 back projection matrix Q obtained by step 3, step 6 obtainl1, step 7 obtain disparity map, seek to
The three-dimensional coordinate of all target points in scene is surveyed, thus to obtain three-dimensional coordinate figure, specifically:
Step 8-1, the three-dimensional coordinate i.e. three-dimensional point cloud i.e. three-dimensional coordinate figure of all target points in scene to be measured is sought:
In formula,For left view Il1Pixel single camera coordinate system coordinate, d be the corresponding left and right view of the pixel
The parallax of figure;[X Y Z w]TFor a cloud three-dimensional homogeneous coordinates;
Step 8-2, singular value inhibition is carried out to three-dimensional coordinate figure using median filtering.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910048191.1A CN109668509A (en) | 2019-01-18 | 2019-01-18 | Based on biprism single camera three-dimensional measurement industrial endoscope system and measurement method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910048191.1A CN109668509A (en) | 2019-01-18 | 2019-01-18 | Based on biprism single camera three-dimensional measurement industrial endoscope system and measurement method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109668509A true CN109668509A (en) | 2019-04-23 |
Family
ID=66149573
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910048191.1A Pending CN109668509A (en) | 2019-01-18 | 2019-01-18 | Based on biprism single camera three-dimensional measurement industrial endoscope system and measurement method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109668509A (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110619660A (en) * | 2019-08-21 | 2019-12-27 | 深圳市优必选科技股份有限公司 | Object positioning method and device, computer readable storage medium and robot |
CN111416972A (en) * | 2020-01-21 | 2020-07-14 | 同济大学 | Three-dimensional imaging system and method based on axially adjustable cascade rotating mirror |
CN112330794A (en) * | 2020-10-09 | 2021-02-05 | 同济大学 | Single-camera image acquisition system based on rotary bipartite prism and three-dimensional reconstruction method |
CN112995638A (en) * | 2020-12-31 | 2021-06-18 | 上海易维视科技有限公司 | Naked eye 3D acquisition and display system and method capable of automatically adjusting parallax |
CN114111637A (en) * | 2021-11-25 | 2022-03-01 | 天津工业大学 | Stripe structured light three-dimensional reconstruction method based on virtual dual-purpose |
CN114383543A (en) * | 2021-12-14 | 2022-04-22 | 上海交通大学 | Single CCD double prism binocular stereo vision sensor |
CN114543667A (en) * | 2022-01-21 | 2022-05-27 | 同济大学 | Single-camera double-prism three-dimensional measurement system and measurement method based on neural network |
CN114562957A (en) * | 2022-02-28 | 2022-05-31 | 南京理工大学 | Stereoscopic vision industrial endoscope system based on double prisms and single camera and three-dimensional measurement method |
CN115412718A (en) * | 2022-08-17 | 2022-11-29 | 华伦医疗用品(深圳)有限公司 | Endoscope camera shooting system, image processing method and readable storage medium |
WO2023103526A1 (en) * | 2021-12-10 | 2023-06-15 | 诺创智能医疗科技(杭州)有限公司 | Correction and encoding methods for single-detector binocular 3d endoscope image, and electronic apparatus |
CN114111637B (en) * | 2021-11-25 | 2024-06-21 | 天津工业大学 | Virtual dual-purpose stripe structured light three-dimensional reconstruction method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101518438A (en) * | 2009-03-27 | 2009-09-02 | 南开大学 | Binocular endoscope operation visual system |
CN201641949U (en) * | 2009-03-26 | 2010-11-24 | 庞维克 | Single-lens stereotactic endoscope system |
KR20110047690A (en) * | 2009-10-30 | 2011-05-09 | 주식회사 썸텍 | Endoscope for providing 3D image data |
CN103142202A (en) * | 2013-01-21 | 2013-06-12 | 东北大学 | Prism-based medical endoscope system with measurement function and method |
-
2019
- 2019-01-18 CN CN201910048191.1A patent/CN109668509A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201641949U (en) * | 2009-03-26 | 2010-11-24 | 庞维克 | Single-lens stereotactic endoscope system |
CN101518438A (en) * | 2009-03-27 | 2009-09-02 | 南开大学 | Binocular endoscope operation visual system |
KR20110047690A (en) * | 2009-10-30 | 2011-05-09 | 주식회사 썸텍 | Endoscope for providing 3D image data |
CN103142202A (en) * | 2013-01-21 | 2013-06-12 | 东北大学 | Prism-based medical endoscope system with measurement function and method |
Non-Patent Citations (4)
Title |
---|
崔笑宇: "基于棱镜的医用内窥镜辅助诊断***研究", 《中国博士学位论文全文数据库 医药卫生科技辑》 * |
张亚东: "基于立体视觉的P-GMAW熔池表面形貌三维重建研究", 《中国优秀硕士学位论文全文数据库 工程科技I辑》 * |
汪懋华等: "《现代精细农业理论与实践》", 31 October 2012, 中国农业大学出版社 * |
马波涛: "基于双目立体视觉的心脏软组织三维重构技术研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110619660A (en) * | 2019-08-21 | 2019-12-27 | 深圳市优必选科技股份有限公司 | Object positioning method and device, computer readable storage medium and robot |
CN111416972A (en) * | 2020-01-21 | 2020-07-14 | 同济大学 | Three-dimensional imaging system and method based on axially adjustable cascade rotating mirror |
CN111416972B (en) * | 2020-01-21 | 2021-03-26 | 同济大学 | Three-dimensional imaging system and method based on axially adjustable cascade rotating mirror |
CN112330794A (en) * | 2020-10-09 | 2021-02-05 | 同济大学 | Single-camera image acquisition system based on rotary bipartite prism and three-dimensional reconstruction method |
CN112995638A (en) * | 2020-12-31 | 2021-06-18 | 上海易维视科技有限公司 | Naked eye 3D acquisition and display system and method capable of automatically adjusting parallax |
CN114111637A (en) * | 2021-11-25 | 2022-03-01 | 天津工业大学 | Stripe structured light three-dimensional reconstruction method based on virtual dual-purpose |
CN114111637B (en) * | 2021-11-25 | 2024-06-21 | 天津工业大学 | Virtual dual-purpose stripe structured light three-dimensional reconstruction method |
WO2023103526A1 (en) * | 2021-12-10 | 2023-06-15 | 诺创智能医疗科技(杭州)有限公司 | Correction and encoding methods for single-detector binocular 3d endoscope image, and electronic apparatus |
CN114383543A (en) * | 2021-12-14 | 2022-04-22 | 上海交通大学 | Single CCD double prism binocular stereo vision sensor |
CN114383543B (en) * | 2021-12-14 | 2022-12-27 | 上海交通大学 | WAAM molten pool three-dimensional reconstruction method |
CN114543667B (en) * | 2022-01-21 | 2023-11-07 | 同济大学 | Single-camera double-prism three-dimensional measurement system and measurement method based on neural network |
CN114543667A (en) * | 2022-01-21 | 2022-05-27 | 同济大学 | Single-camera double-prism three-dimensional measurement system and measurement method based on neural network |
CN114562957A (en) * | 2022-02-28 | 2022-05-31 | 南京理工大学 | Stereoscopic vision industrial endoscope system based on double prisms and single camera and three-dimensional measurement method |
CN114562957B (en) * | 2022-02-28 | 2024-05-17 | 南京理工大学 | Industry endoscope system based on biprism single-camera stereoscopic vision and three-dimensional measurement method |
CN115412718A (en) * | 2022-08-17 | 2022-11-29 | 华伦医疗用品(深圳)有限公司 | Endoscope camera shooting system, image processing method and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109668509A (en) | Based on biprism single camera three-dimensional measurement industrial endoscope system and measurement method | |
CN113777783B (en) | Binocular augmented reality system with alignment correction and alignment correction method | |
CN106846415B (en) | A kind of multichannel fisheye camera binocular calibration device and method | |
CN111060024B (en) | 3D measuring and acquiring device with rotation center shaft intersected with image acquisition device | |
CN106091984B (en) | A kind of three dimensional point cloud acquisition methods based on line laser | |
WO2016037486A1 (en) | Three-dimensional imaging method and system for human body | |
CN112470188A (en) | System and method for multi-camera placement | |
Yi et al. | An omnidirectional stereo vision system using a single camera | |
CN107346425B (en) | Three-dimensional texture photographing system, calibration method and imaging method | |
US20160295194A1 (en) | Stereoscopic vision system generatng stereoscopic images with a monoscopic endoscope and an external adapter lens and method using the same to generate stereoscopic images | |
TWI405030B (en) | Imagery axle turning method for stereo vision and the apparatus thereof | |
CN102243432A (en) | Panoramic three-dimensional photographing device | |
CN104939793A (en) | Variable-focus 3-D capsule endoscope system based on liquid lens | |
CN111009030A (en) | Multi-view high-resolution texture image and binocular three-dimensional point cloud mapping method | |
EP3756161A1 (en) | Method and system for calibrating a plenoptic camera system | |
CN109242898A (en) | A kind of three-dimensional modeling method and system based on image sequence | |
CN114359406A (en) | Calibration of auto-focusing binocular camera, 3D vision and depth point cloud calculation method | |
CN111064945B (en) | Naked eye 3D image acquisition and generation method | |
CN108805921A (en) | Image-taking system and method | |
CN108322730A (en) | A kind of panorama depth camera system acquiring 360 degree of scene structures | |
CN109084679B (en) | A kind of 3D measurement and acquisition device based on spatial light modulator | |
CN114993207B (en) | Three-dimensional reconstruction method based on binocular measurement system | |
CN108413941A (en) | A kind of simple and efficient distance measuring method based on cheap binocular camera | |
WO2020244273A1 (en) | Dual camera three-dimensional stereoscopic imaging system and processing method | |
CN110290373B (en) | Integrated imaging calculation reconstruction method for increasing visual angle |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190423 |