CN103852060B - A kind of based on single visual visible images distance-finding method felt - Google Patents
A kind of based on single visual visible images distance-finding method felt Download PDFInfo
- Publication number
- CN103852060B CN103852060B CN201410100639.7A CN201410100639A CN103852060B CN 103852060 B CN103852060 B CN 103852060B CN 201410100639 A CN201410100639 A CN 201410100639A CN 103852060 B CN103852060 B CN 103852060B
- Authority
- CN
- China
- Prior art keywords
- image
- theta
- pixel
- camera
- centerdot
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C3/00—Measuring distances in line of sight; Optical rangefinders
Landscapes
- Physics & Mathematics (AREA)
- Electromagnetism (AREA)
- Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Length Measuring Devices By Optical Means (AREA)
Abstract
The present invention discloses a kind of based on single visual visible images distance-finding method felt, the present invention is by the image of the camera collection of fixed angle, then, set up in image every adjacent two pixels vertically, the one-to-one relationship of horizontal throw and space actual range, obtain in image the actual range between any two points finally by above-mentioned one-to-one relationship. The present invention adopts single camera to work, and realizes range finding by computer, reduces equipment complexity, effectively reduce equipment cost; By actual height representated by each pixel in computed image and horizontal throw, then measure real standard Distance geometry height, reduce computation complexity.
Description
Technical field:
What the present invention relates to is a kind of based on single visual visible images distance-finding method felt.
Background technology:
Image measurement technology, based on optics, has incorporated the modern science and technology such as photoelectronics, computer technology, laser technology, image processing techniques, forms the Integrated Measurement System of light, mechanical, electrical, calculation and control techniques integration. When image measurement measures tested object exactly, image is used as detection and the means transmitted or the measuring method that is used of carrier, its objective is from image, extract useful signal. The ultimate principle of image measurement is exactly the Edge texture of process testee image and obtains the geometric parameter of object, and therefore image processing techniques becomes basis and the key of image measurement system.
Image measurement system is made up of illumination system, digital image collection system and digital image processing and display three subsystems usually. Analyte character zone is irradiated by the background light source in illumination system, then utilize digital imaging apparatus that it is carried out imaging, and computer of directly image digital signal being passed on a skill of craft to others, complete image collection to utilize in a computer, the digital picture gathered is processed by the software of establishment, obtain the characteristic information of analyte, and by image output device, it is carried out image output.
A pick up camera is only adopted based on single visual visible images ranging technology felt, so structure is simple, accordingly that the demarcation of pick up camera is also comparatively simple, avoid the difficulty of three-dimensional coupling in binocular vision simultaneously. So it is simple to have equipment, the advantages such as cost is lower, measuring process is quick, and good environmental adaptability, take off data are more objective.
Summary of the invention:
It is an object of the invention to overcome the deficiencies in the prior art, it is provided that a kind of based on single visual visible images distance-finding method felt.
In order to solve the problem existing for background technology, the present invention by the following technical solutions:
Based on the single visual visible images distance-finding method felt, it comprises the following steps:
Step one: obtain single order visual pattern that pixel is b �� a by monocular cam, and by obtained Image Saving in computer memory device;
Step 2: the mounting height h measuring camera, camera is installed angle, �� and is got 45 ��, the view angle theta of camera in the vertical direction1, camera view angle theta in the horizontal direction2;
Step 3: according to the image-forming principle of monocular cam, the information obtained by step one and step 2 calculates in image on the initial vertical direction of image apex the actual projection distance y [m] between m pixel and the m+1 pixel, calculate the actual projection distance x [m, n] of the capable pixel of m initial n-th pixel and (n+1)th pixel on the left of image in image;
Step 4: if what measure is height, then adopting the method for elevation correction, the actual projection distance of adjacent two pixels obtained according to the image-forming principle of monocular cam and step 3 calculates actual height height; If what measure is horizontal throw, then not adopting elevation to correct, the actual projection distance of adjacent two pixels directly obtained according to image-forming principle and the step 3 of monocular cam calculates actual range length.
Wherein, in step 2, the installation angle, �� of camera refers to the sight line axis of camera and the angle being perpendicular to direction, ground; The view angle theta of camera horizontal direction2Refer to the face, the leftmost side of camera sight line and the angle of these two planes of face, the camera sight line rightmost side; Camera vertical direction view angle theta1Refer to the angle of the top of camera sight line and camera sight line these two planes bottom.
Further, in step 3, according to the image-forming principle of monocular cam, calculate in image the actual projection distance of often adjacent two pixels in the actual range of often adjacent two pixels on vertical direction and horizontal direction, its detailed process is:
Image-forming principle according to monocular cam, obtains on the initial vertical direction of image apex the actual projection distance between m pixel and the m+1 pixel:
Wherein m=0,1,2 ..., a-1;
Image-forming principle according to monocular cam, obtains the actual projection distance of the capable pixel of m initial n-th pixel and (n+1)th pixel on the left of image in image:
Wherein, m=0,1,2 ..., a-1.
Further, in step 4, according to the actual projection distance y [m] between m pixel and the m+1 pixel on the initial vertical direction of image apex that step 3 calculates, the actual projection distance x [m of the capable pixel of m initial n-th pixel and (n+1)th pixel on the left of image in image, n], calculating the actual height height in image and horizontal throw length, its detailed process is:
During measured altitude, adopting the method for elevation correction, in image, actual height between any two points (pixel coordinate in image is respectively (i, s), (j, t)) is:
When measuring horizontal throw, do not adopt elevation correction method to calculate, any two points in image, the pixel coordinate in image is respectively (i, s), (j, t)) between real standard distance be:
Wherein, pixel coordinate (i, s) refers to image from left side i-th, the s pixel from top.
The present invention contrasts prior art, there is following useful effect: the present invention provides a kind of based on single visual visible images ranging technology felt, this technology adopts single camera to work, and realizes range finding by computer, reduce equipment complexity, effectively reduce equipment cost. This technology, by actual height representated by each pixel in computed image and horizontal throw, is then measured real standard Distance geometry height, is reduced computation complexity.
Accompanying drawing illustrates:
Fig. 1 is the workflow diagram based on single visual visible images distance-finding method felt of the present invention.
Fig. 2 is monocular cam imaging schematic diagram.
Fig. 3 is projection plane A1B1C1D1Schematic diagram.
Fig. 4 is elevation carrection schematic diagram.
Fig. 5 is that horizontal throw measures schematic diagram.
Embodiment:
Below in conjunction with the drawings and specific embodiments, the invention will be further described:
Fig. 1 is the workflow diagram based on single visual visible images distance-finding method felt of the present invention. Based on the single visual visible images distance-finding method felt, it comprises the following steps:
Step one: obtain single order visual pattern that pixel is b �� a by monocular cam, and by obtained Image Saving in computer memory device;
Step 2: the mounting height h measuring camera, camera is installed angle, �� and is got 45 ��, the view angle theta of camera in the vertical direction1, camera view angle theta in the horizontal direction2;
Step 3: according to the image-forming principle of monocular cam, the information obtained by step one and step 2 calculates in image on the initial vertical direction of image apex the actual projection distance y [m] between m pixel and the m+1 pixel, calculate the actual projection distance x [m, n] of the capable pixel of m initial n-th pixel and (n+1)th pixel on the left of image in image;
Step 4: if what measure is height, then adopting the method for elevation correction, the actual projection distance of adjacent two pixels obtained according to the image-forming principle of monocular cam and step 3 calculates actual height height; If what measure is horizontal throw, then not adopting elevation to correct, the actual projection distance of adjacent two pixels directly obtained according to image-forming principle and the step 3 of monocular cam calculates actual range length.
Wherein, in step 2, the installation angle, �� of camera refers to the sight line axis of camera and the angle being perpendicular to direction, ground; The view angle theta of camera horizontal direction2Refer to the face, the leftmost side of camera sight line and the angle of these two planes of face, the camera sight line rightmost side; Camera vertical direction view angle theta1Refer to the angle of the top of camera sight line and camera sight line these two planes bottom.
Further, in step 3, according to the image-forming principle of monocular cam, calculate in image the actual projection distance of often adjacent two pixels in the actual range of often adjacent two pixels on vertical direction and horizontal direction, its detailed process is:
Image-forming principle according to monocular cam, obtains on the initial vertical direction of image apex the actual projection distance between m pixel and the m+1 pixel:
Wherein m=0,1,2 ..., a-1;
Image-forming principle according to monocular cam, obtains the actual projection distance of the capable pixel of m initial n-th pixel and (n+1)th pixel on the left of image in image:
Wherein, m=0,1,2 ..., a-1.
Further, in step 4, according to the actual projection distance y [m] between m pixel and the m+1 pixel on the initial vertical direction of image apex that step 3 calculates, the actual projection distance x [m of the capable pixel of m initial n-th pixel and (n+1)th pixel on the left of image in image, n], calculating the actual height height in image and horizontal throw length, its detailed process is:
During measured altitude, adopting the method for elevation correction, in image, actual height between any two points (pixel coordinate in image is respectively (i, s), (j, t)) is:
When measuring horizontal throw, not adopting elevation correction method to calculate, in image, real standard distance between any two points (pixel coordinate in image is respectively (i, s), (j, t)) is:
Wherein, pixel coordinate (i, s) refers to image from left side i-th, the s pixel from top.
The principle of the present invention:
Fig. 2 is monocular cam imaging schematic diagram, and S is monocular cam position, and ABCD is the ground scenery taken by camera, A1B1C1D1For the projection plane of ground ABCD in camera. A1B1C1D1For rectangle, with monocular cam captured by the equal proportion of digital picture. Wherein, ABCD plane and A1B1C1D1Intersect at dotted line PQ, O shown in figure for projection plane A1B1C1D1Central point, be also simultaneously the central point of camera sight line.
Get camera sight line central line SO and vertical direction ST angle is ��=45 ��. Camera distance floor level ST=h, planar S AD and plane SBC angle is camera vertical direction view angle theta1, planar S AB and plane SCD angle are camera horizontal direction view angle theta2��
Now, on the ABCD of ground the object EF of vertical direction at plane A1B1C1D1On be projected as E1F1, the object GH that horizontal direction is placed is at plane A1B1C1D1On be projected as G1H1, as shown in heavy line in Fig. 2.
The Pixel of Digital Image that monocular cam obtains is b �� a, correspondingly, with the projection plane A of digital picture equal proportion1B1C1D1B �� a pixel can also be divided into, as shown in Fig. 3 below. Fig. 3 is projection plane A1B1C1D1Schematic diagram.
As seen from Figure 2, plane A1B1C1D1The actual range representated by each pixel be inequal, through calculating, the the actual projection distance y [m] between m pixel and the m+1 pixel (thinking, the capable actual projection of the capable m+1 of m of the projection each row of plane is apart from equal) can be obtained calculating in image on the initial vertical direction of image apex here approximately
Wherein m=0,1,2 ..., a-1.
With reason, it is possible to obtain the actual projection distance x [m, n] of the capable pixel of m initial n-th pixel and (n+1)th pixel on the left of image in image
Wherein, m=0,1,2 ..., a-1.
During measured altitude, in image, actual height between any two points (pixel coordinate in image is respectively (i, s), (j, t)) is:
When measuring horizontal throw, in image, real standard distance between any two points (pixel coordinate in image is respectively (i, s), (j, t)) is:
About elevation carrection:
Getting SEF place planar cross-sectional in Fig. 2 is that example is described, and is illustrated in fig. 4 shown below, and MN is ground, M1N1For projection plane. Fig. 4 is elevation carrection schematic diagram.
Often the real space point at adjacent two pixel places and the angle of camera on image vertical direction:
����1=��1/a
Thus can calculate on the initial vertical direction of image apex the actual projection distance between m pixel and the m+1 pixel:
Wherein m=0,1,2 ..., a-1.
During measured altitude, in image between any two points (pixel coordinate in image is respectively (i, s), (j, t)) vertical direction projection distance E1F1For:
By ray cast principle, through elevation correction, the actual height EF that can obtain between these 2 is:
Note: EF and horizontal plane (namely with i=j in E, F 2 corresponding pixel coordinates) in this example, in fact as EF and horizontal plane non-vertical, can also go out height by correct measurement by same method.
Measure about horizontal throw:
Getting SGH place planar cross-sectional in Fig. 2 is that example is described, and is illustrated in fig. 5 shown below, and KL is ground, K1L1For projection plane. Fig. 5 is that horizontal throw measures schematic diagram.
The angle of often adjacent two pixel place real space points and camera on image vertical direction:
����2=��2/b
In image, coordinate is the distance of point to camera of (m, n):
Wherein m=0,1,2 ..., a-1.n=0,1,2 ..., b-1.
In image, coordinate is the point of (m, n), and to be the actual projection distance of the point of (m, n+1) to pixel coordinate be:
When measuring horizontal throw, in image, real standard distance GH between any two points (pixel coordinate in image is respectively (i, s), (j, t)) is:
Note: GH and projection plane parallel (namely with s=t in G, H 2 corresponding pixel coordinates) in this example, in fact when GH is not parallel with projection plane, can also go out horizontal throw by correct measurement by same method.
The foregoing is only the better embodiment of the present invention, not in order to limit the present invention, all any amendment, equivalent replacement and improvement etc. done within the spirit and principles in the present invention, all should be included within protection scope of the present invention.
Claims (1)
1. the visible images distance-finding method based on single visual feel, it is characterised in that, it comprises the following steps:
Step one: obtain single order visual pattern that pixel is b �� a by monocular cam, and by obtained Image Saving in computer memory device;
Step 2: the mounting height h measuring camera, camera is installed angle, �� and is got 45 ��, the view angle theta of camera in the vertical direction1, camera view angle theta in the horizontal direction2;
Step 3: according to the image-forming principle of monocular cam, the information obtained by step one and step 2 calculates in image on the initial vertical direction of image apex the actual projection distance y [m] between m pixel and the m+1 pixel, calculate the actual projection distance x [m, n] of the capable pixel of m initial n-th pixel and (n+1)th pixel on the left of image in image;
Step 4: if what measure is height, then adopting the method for elevation correction, the actual projection distance of adjacent two pixels obtained according to the image-forming principle of monocular cam and step 3 calculates actual height height; If what measure is horizontal throw, then not adopting elevation to correct, the actual projection distance of adjacent two pixels directly obtained according to image-forming principle and the step 3 of monocular cam calculates actual range length;
In step 2, the installation angle, �� of camera refers to the sight line axis of camera and the angle being perpendicular to direction, ground; The view angle theta of camera horizontal direction2Refer to the face, the leftmost side of camera sight line and the angle of these two planes of face, the camera sight line rightmost side; Camera vertical direction view angle theta1Refer to the angle of the top of camera sight line and camera sight line these two planes bottom;
In step 3, according to the image-forming principle of monocular cam, calculating in image the actual projection distance of often adjacent two pixels in the actual range of often adjacent two pixels on vertical direction and horizontal direction, its detailed process is:
Image-forming principle according to monocular cam, obtains on the initial vertical direction of image apex the actual projection distance between m pixel and the m+1 pixel:
Wherein m=0,1,2 ..., a-1;
Image-forming principle according to monocular cam, obtains the actual projection distance of the capable pixel of m initial n-th pixel and (n+1)th pixel on the left of image in image:
Wherein, m=0,1,2 ..., a-1;
In step 4, according to the actual projection distance y [m] between m pixel and the m+1 pixel on the initial vertical direction of image apex that step 3 calculates, the actual projection distance x [m of the capable pixel of m initial n-th pixel and (n+1)th pixel on the left of image in image, n], calculating the actual height height in image and horizontal throw length, its detailed process is:
During measured altitude, adopting the method for elevation correction, in image, actual height between any two points is that wherein, the pixel coordinate that in image, any two points is specially in image is respectively (i, s), (j, t):
When measuring horizontal throw, not adopting elevation correction method to calculate, in image, real standard distance between any two points is that wherein, the pixel coordinate that in image, any two points is specially in image is respectively (i, s), (j, t):
Wherein, pixel coordinate (i, s) refers to image from left side i-th, the s pixel from top.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410100639.7A CN103852060B (en) | 2014-03-19 | 2014-03-19 | A kind of based on single visual visible images distance-finding method felt |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410100639.7A CN103852060B (en) | 2014-03-19 | 2014-03-19 | A kind of based on single visual visible images distance-finding method felt |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103852060A CN103852060A (en) | 2014-06-11 |
CN103852060B true CN103852060B (en) | 2016-06-08 |
Family
ID=50860005
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410100639.7A Active CN103852060B (en) | 2014-03-19 | 2014-03-19 | A kind of based on single visual visible images distance-finding method felt |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103852060B (en) |
Families Citing this family (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106323240B (en) * | 2015-06-27 | 2019-03-01 | 腾讯科技(深圳)有限公司 | A kind of image object measurement method and device |
CN105203034B (en) * | 2015-07-29 | 2018-07-17 | 四川大学 | A kind of survey height survey area method based on monocular cam three-dimensional ranging model |
CN106123864B (en) * | 2016-06-21 | 2018-10-12 | 徐贵力 | Image distance measuring method based on image-forming principle and Data Regression Model |
CN106254839A (en) * | 2016-09-30 | 2016-12-21 | 湖南中铁五新重工有限公司 | The anti-method and device of slinging of container truck |
CN107218918B (en) * | 2017-04-14 | 2019-05-07 | 华北水利水电大学 | A kind of single camera distance measuring method |
CN110879057B (en) * | 2018-09-05 | 2021-06-22 | 上海集光安防科技股份有限公司 | Space measuring and calculating method based on laser and image |
CN110926348A (en) * | 2018-09-19 | 2020-03-27 | 天津大学青岛海洋技术研究院 | Monocular distance measuring system based on two-phase hybrid stepping motor of subdivision driver |
CN110966981B (en) * | 2018-09-30 | 2023-03-24 | 北京奇虎科技有限公司 | Distance measuring method and device |
CN109443319A (en) * | 2018-12-21 | 2019-03-08 | 联创汽车电子有限公司 | Barrier range-measurement system and its distance measuring method based on monocular vision |
CN110745072B (en) * | 2019-10-18 | 2022-06-28 | 深圳市麦道微电子技术有限公司 | Driving system with range finding electronic scale |
CN114049394B (en) * | 2021-11-23 | 2022-06-21 | 智道网联科技(北京)有限公司 | Monocular distance measuring method, device, equipment and storage medium |
CN114638880B (en) * | 2022-05-23 | 2022-08-12 | 中国科学技术大学先进技术研究院 | Planar ranging method, monocular camera and computer readable storage medium |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2261852A1 (en) * | 2008-03-06 | 2010-12-15 | Fujitsu Limited | Image photographic device, image photographic method, and image photographic program |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3155087B2 (en) * | 1992-10-14 | 2001-04-09 | 富士通株式会社 | Distance measurement method |
-
2014
- 2014-03-19 CN CN201410100639.7A patent/CN103852060B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2261852A1 (en) * | 2008-03-06 | 2010-12-15 | Fujitsu Limited | Image photographic device, image photographic method, and image photographic program |
Non-Patent Citations (3)
Title |
---|
光电被动测距技术;赵勋杰,高稚允;《光学技术》;20031130;第29卷(第6期);第652-656页 * |
单目视觉测量技术研究;黄桂平,李广云,王保丰,叶声华;《计量学报》;20041031;第25卷(第4期);第314-317页 * |
固定摄像头图像中测算目标距离和尺寸的算法;陈大海,莫林,易向阳;《大众科技》;20110831(第144期);第1-5页 * |
Also Published As
Publication number | Publication date |
---|---|
CN103852060A (en) | 2014-06-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103852060B (en) | A kind of based on single visual visible images distance-finding method felt | |
EP2999220B1 (en) | Method for correcting 3d image in tiled display and apparatus therefor | |
CN103971406B (en) | Submarine target three-dimensional rebuilding method based on line-structured light | |
CN104330074B (en) | Intelligent surveying and mapping platform and realizing method thereof | |
KR101583663B1 (en) | Method for generating calibration indicator of camera for vehicle | |
CN104902246A (en) | Video monitoring method and device | |
CN110146030A (en) | Side slope surface DEFORMATION MONITORING SYSTEM and method based on gridiron pattern notation | |
CN101718551B (en) | Flexible cable movement measuring method and measuring device | |
US20220270294A1 (en) | Calibration methods, apparatuses, systems and devices for image acquisition device, and storage media | |
CN107816942A (en) | A kind of planar dimension measurement method based on cross structure light vision system | |
CN105147311A (en) | Visual equipment assisted scanning and positioning method and system applied to CT system | |
CN103985121B (en) | Method for optical calibration of underwater projector structure | |
CN106023193A (en) | Array camera observation method for detecting structure surface in turbid media | |
CN108180888A (en) | A kind of distance detection method based on rotating pick-up head | |
CN109191533A (en) | Tower crane high-altitude construction method based on assembled architecture | |
CN105739106A (en) | Somatosensory multi-view point large-size light field real three-dimensional display device and method | |
JP2009276233A (en) | Parameter calculating apparatus, parameter calculating system and program | |
CN111311659A (en) | Calibration method based on three-dimensional imaging of oblique plane mirror | |
CN204904359U (en) | Three -dimensional depth of field recognition device based on two cameras | |
CN104700409B (en) | A method of according to monitoring objective adjust automatically preset positions of camera | |
CN103260008A (en) | Projection converting method from image position to actual position | |
CN109493378A (en) | A kind of measuring for verticality method combined based on monocular vision with binocular vision | |
CN206583440U (en) | A kind of projected image sighting distance detecting system | |
CN107274449B (en) | Space positioning system and method for object by optical photo | |
CN105333818A (en) | 3D space measurement method based on monocular camera |
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 |