CN102980561A - Distance measuring method and distance measuring device of mobile terminal - Google Patents
Distance measuring method and distance measuring device of mobile terminal Download PDFInfo
- Publication number
- CN102980561A CN102980561A CN2012105062715A CN201210506271A CN102980561A CN 102980561 A CN102980561 A CN 102980561A CN 2012105062715 A CN2012105062715 A CN 2012105062715A CN 201210506271 A CN201210506271 A CN 201210506271A CN 102980561 A CN102980561 A CN 102980561A
- Authority
- CN
- China
- Prior art keywords
- distance
- testee
- imaging len
- imageing sensor
- imaging
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 26
- 238000003384 imaging method Methods 0.000 claims abstract description 69
- 238000005259 measurement Methods 0.000 claims abstract description 18
- 230000003287 optical effect Effects 0.000 claims description 5
- 230000000875 corresponding effect Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000002596 correlated effect Effects 0.000 description 1
- 230000002950 deficient Effects 0.000 description 1
- 238000012634 optical imaging Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
Images
Landscapes
- Measurement Of Optical Distance (AREA)
Abstract
The invention relates to a distance measuring method and a distance measuring device of a mobile terminal. The method comprises the following steps of: S100, starting an image pickup system and a mobile imaging lens to enable an imaging contrast ratio of a detected object to reach to the maximum value; S200, reading a distance between the imaging lens and an image sensor, and obtaining a focus length of the imaging lens; and S300, deducing the distance of the detected object according to the distance between the imaging lens and the image sensor, and the focus length of the imaging lens. With the adoption of the distance measuring method and the distance measuring device of the mobile terminal, additional devices do not need to be arranged and the distance measurement can be realized on the mobile terminal with a photographing function. The extra weight of the mobile terminal is not increased and the cruising ability of the mobile terminal is not influenced.
Description
Technical field
The present invention relates to ranging technology, more particularly, relate to a kind of portable terminal distance-finding method and device.
Background technology
Development along with science and technology, the function of portable terminal (for example panel computer, smart mobile phone) is increasingly abundant, for example take pictures, locate, navigate etc., it is the function that adds range finding with terminal that the manufacturer is arranged, for example in the patented claim of application number 201120171586.X, by increasing generating laser at original equipment, by the laser spots distance between the fixed equipment two ends accurately.Similarly method also has: increase the peripheral hardwares such as infrared distance measurement or supersonic sounding at equipment, with the function that realizes being correlated with.
Yet will inevitably bring following problem by increasing special range finding device: the weight of portable terminal increases, the power consumption increase causes flying power to descend.Therefore, be badly in need of now a kind of range measurement system for mobile terminal device and distance-finding method and can additionally do not increase weight and the power consumption of portable terminal.
Summary of the invention
The object of the invention is to, when finding range, needing increases special range finding device, causes the defective that weight increases, power consumption increases, and a kind of portable terminal distance-finding method and device are provided for existing portable terminal.
Solution of the above problems of the present invention is, a kind of portable terminal distance-finding method is provided, and may further comprise the steps:
S100, startup camera system, the mobile imaging lens are so that the image contrast of testee reaches maximal value;
S200, read the distance of imaging len and imageing sensor, and obtain the focal length of imaging len;
S300, derive the distance of testee according to the distance of imaging len and imageing sensor, the focal length of imaging len, this distance is:
Wherein, u is the distance of testee, and f is the focal length of imaging len, and v is the distance of imaging len and imageing sensor.
Portable terminal distance-finding method of the present invention, wherein step S100 is:
Drive motor drives the imaging len stepping, and imageing sensor obtains the image in the stepping process, and image processing apparatus is analyzed the contrast of image.
Portable terminal distance-finding method of the present invention, wherein step S300 also comprises:
If choose a plurality of testees, then each testee is carried out range observation, obtain the distance of each testee, and the distance of testee on image;
According to the distance of testee, and the distance of testee on image, derive the actual pitch of testee.
The present invention also provides a kind of portable terminal distance measuring equipment, comprising: imageing sensor and imaging len, and imageing sensor is arranged on the identical optical axis with imaging len; The portable terminal distance measuring equipment also comprise be used to the image processing apparatus that is parsed into image contrast and be used for to calculate the testee distance apart from calculation element, image processing apparatus is connected with imageing sensor, is connected with imaging len with image processing apparatus respectively apart from calculation element;
The mobile imaging lens, imageing sensor obtains image, and is sent to image processing apparatus and is parsed into image contrast;
When the mobile imaging lens obtain maximum image contrast, measure the imaging len focal length of this moment and the distance of imaging len and imageing sensor apart from calculation element, derive the distance of testee, this distance is:
Wherein, u is the distance of testee, and f is the focal length of imaging len, and v is the distance of imaging len and imageing sensor.
Portable terminal distance measuring equipment of the present invention also comprises drive motor, and drive motor is connected with imaging len.
Portable terminal distance measuring equipment of the present invention also comprises the measurement device, and the measurement device is connected with imageing sensor.
Implement portable terminal distance-finding method of the present invention and device, obtain following beneficial effect: need not additionally to increase device, just can on the portable terminal of camera function, just can realize measuring distance.Avoided portable terminal is increased and outer weight and the flying power that affects portable terminal.
Description of drawings
The present invention will be described below in conjunction with accompanying drawing, wherein:
Fig. 1 is the process flow diagram of portable terminal distance-finding method of the present invention;
Fig. 2 is the synoptic diagram that the present invention measures a plurality of object actual pitch;
Fig. 3 is the structural representation of portable terminal range measurement system of the present invention.
Embodiment
The present invention is described in detail below in conjunction with the drawings and specific embodiments.
Be illustrated in figure 1 as the process flow diagram of portable terminal distance-finding method of the present invention, the portable terminal distance-finding method may further comprise the steps:
S100, startup camera system, the mobile imaging lens are so that the image contrast of testee reaches maximal value;
S200, read the distance of imaging len and imageing sensor, and obtain the focal length of imaging len;
S300, derive the distance of testee according to the distance of imaging len and imageing sensor, the focal length of imaging len, according to the universal relation in the lens imaging:
The distance of testee is:
Wherein, u is the distance of testee, and f is the focal length of imaging len, and v is the distance of imaging len and imageing sensor.
In some portable terminals, use be single imaging len, its focal distance f can't change, when measuring, step S200 can omit and measure f, directly the fixing parameter of input in portable terminal.
Quicker for the process that makes calculating, in step S100, use drive motor, with the mode mobile lens of equidistant stepping, for example the maximum moving range with CD-ROM drive motor is subdivided into equal 1024 parts.
Measuring in advance lens measures the distance of the corresponding imaging on each stepping position, obtain lens when diverse location, the tables of data of corresponding testee distance is when the user carries out actual measurement, can by searching this form, directly obtain the distance of testee.
Above step is what carry out for single measurement target, when a plurality of target that need to measure is arranged in the picture of taking, can in step S100, choose first these measured target, when the image contrast of measurement target reaches maximum, the correspondence position of record imaging len at this moment.And in step S300, the position of each record is carried out the calculating of distance.
Further, after the distance of having measured between a plurality of targets and portable terminal, can also measure the relative distance between these measurement target, its principle as shown in Figure 2.
Two different targets, first object 701 and the second target 702, use distance-finding method of the present invention to measure after, the distance that obtains two target range imaging lens 100 is U1 and U2, respectively to defocused A and the B of being imaged as, the distance of two picture points and imaging len 100 is respectively V1 and V2.The distance of first object 701 and the second target 702 Range Imaging lens 100 optical axises is respectively H1 and H2, and the distance of two picture point Range Imaging lens 100 optical axises is respectively H1 ' and H2 '.
Had by geometric relationship and imaging relations:
D
2=(H1-H2)
2+(U1-U2)
2;
So have:
Therefore, the image distance (distance of imaging len and imageing sensor) by measuring twice imaging and the focal length of this imaging len, the distance of twice image-forming range imaging center can obtain the actual pitch of two objects.
By above-mentioned step, not only obtained the distance of a plurality of targets and portable terminal, also obtain the relative spacing between these selected targets.
Fig. 3 is the first structural representation of preferred embodiment of portable terminal range measurement system of the present invention.In the present embodiment, the portable terminal distance measuring equipment comprises: imageing sensor 300 and imaging len 100, and imageing sensor 300 is arranged on the identical optical axis 600 with imaging len 100; The portable terminal distance measuring equipment also comprise be used to the image processing apparatus 500 that is parsed into image contrast and be used for to calculate the testee distance apart from calculation element 400, image processing apparatus 500 is connected with imageing sensor 300, is connected with imaging len with image processing apparatus 500 respectively apart from calculation element 400 to be connected.
Further imaging len is driven by drive motor 200, and mobile scope is AB 2 points among Fig. 3.Drive motor 200 adopts the mode of equidistant stepping to move, measuring in advance lens measures the distance of the corresponding imaging on each stepping position, obtain lens when diverse location, the tables of data of corresponding testee distance, when the user carries out actual measurement, can by searching this form, directly obtain the distance of testee.
As a kind of improvement of present embodiment, mobile distance measuring equipment also comprises the measurement device, and the measurement device is used for measuring the distance (being H1 ' and the H2 ' of Fig. 2) at testee range image center on imageing sensor.This device is used for measuring the relative spacing between a plurality of testees.In the present embodiment, the measurement device is incorporated in the image processing apparatus 500.
The process of measuring the relative spacing between a plurality of testees is as follows: mobile imaging lens at first obtain the corresponding optimal imaging position (position when image contrast is maximum) of a plurality of testees; Search apart from form, obtain the distance of each testee and imaging len; The measurement device obtains the distance (being H1 ' and the H2 ' among Fig. 2) at testee range image center; Concern the actual pitch that obtains between testee according to geometric optical imaging at last.
It below only is the specific embodiment of the invention, can not limit scope of the present invention with this, the equalization that those skilled in the art in the art do according to this creation changes, and the change known of those skilled in that art, all should still belong to the scope that the present invention is contained.
Claims (6)
1. a portable terminal distance-finding method is characterized in that, may further comprise the steps:
S100, startup camera system, the mobile imaging lens are so that the image contrast of testee reaches maximal value;
S200, read the distance of imaging len and imageing sensor, and obtain the focal length of imaging len;
S300, derive the distance of testee according to the distance of imaging len and imageing sensor, the focal length of imaging len, this distance is:
u=fv/(f+v);
Wherein, u is the distance of testee, and f is the focal length of imaging len, and v is the distance of imaging len and imageing sensor.
2. portable terminal distance-finding method according to claim 1 is characterized in that, described step S100 is:
Drive motor drives the imaging len stepping, and imageing sensor obtains the image in the stepping process, and image processing apparatus is analyzed the contrast of image.
3. portable terminal distance-finding method according to claim 1 and 2 is characterized in that, described step S300 also comprises:
If choose a plurality of testees, then each testee is carried out range observation, obtain the distance of each testee, and testee on image with the distance of imaging center;
According to the distance of testee, and testee on image with the distance of imaging center, derive the actual pitch of testee.
4. a portable terminal distance measuring equipment is characterized in that, comprising: imageing sensor (300) and imaging len (100), and imageing sensor (300) and imaging len (100) are arranged on the same optical axis (600); Described portable terminal distance measuring equipment also comprise be used to the image processing apparatus that is parsed into image contrast (500) and be used for to calculate the testee distance apart from calculation element (400), described image processing apparatus (500) is connected with described imageing sensor (300), describedly is connected 100 with image processing apparatus (500) with imaging len respectively apart from calculation element (400)) be connected;
Mobile imaging lens (100), imageing sensor (300) obtains image, and is sent to image processing apparatus (500) and is parsed into image contrast;
When mobile imaging lens (100) obtain maximum image contrast, measure the imaging len focal length of this moment and the distance of imaging len and imageing sensor apart from calculation element (400), derive the distance of testee, this distance is:
u=fv/(f+v);
Wherein, u is the distance of testee, and f is the focal length of imaging len, and v is the distance of imaging len and imageing sensor.
5. portable terminal distance measuring equipment according to claim 4 is characterized in that, also comprises drive motor (200), and drive motor (200) is connected with imaging len (100).
6. according to claim 4 or 5 described portable terminal distance measuring equipments, it is characterized in that also comprise the measurement device, the measurement device is connected with imageing sensor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210506271.5A CN102980561B (en) | 2012-11-30 | 2012-11-30 | A kind of mobile terminal distance-finding method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210506271.5A CN102980561B (en) | 2012-11-30 | 2012-11-30 | A kind of mobile terminal distance-finding method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102980561A true CN102980561A (en) | 2013-03-20 |
CN102980561B CN102980561B (en) | 2015-10-07 |
Family
ID=47854802
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210506271.5A Expired - Fee Related CN102980561B (en) | 2012-11-30 | 2012-11-30 | A kind of mobile terminal distance-finding method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102980561B (en) |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104048643A (en) * | 2014-06-19 | 2014-09-17 | 深圳市华星光电技术有限公司 | Detailed operation system and distance measurement method thereof |
CN104215216A (en) * | 2014-08-21 | 2014-12-17 | 深圳市金立通信设备有限公司 | Ranging device and terminal |
CN104215215A (en) * | 2014-08-21 | 2014-12-17 | 深圳市金立通信设备有限公司 | Ranging method |
CN104613930A (en) * | 2015-01-04 | 2015-05-13 | 宇龙计算机通信科技(深圳)有限公司 | Method and device for measuring distance as well as mobile terminal |
CN104833342A (en) * | 2015-03-09 | 2015-08-12 | 深圳市亿思达科技集团有限公司 | Mobile terminal and method of establishing stereoscopic model through multipoint distance measurement |
CN105025219A (en) * | 2014-04-30 | 2015-11-04 | 齐发光电股份有限公司 | Image acquisition method |
CN105301279A (en) * | 2015-10-09 | 2016-02-03 | 广东欧珀移动通信有限公司 | Speed measurement method and speed measurement device based on camera, and mobile terminal |
CN105716569A (en) * | 2014-12-01 | 2016-06-29 | 深圳富泰宏精密工业有限公司 | Distance detection method and system |
CN106092058A (en) * | 2016-08-25 | 2016-11-09 | 广东欧珀移动通信有限公司 | The processing method of information data, device and terminal |
CN106254855A (en) * | 2016-08-25 | 2016-12-21 | 锐马(福建)电气制造有限公司 | A kind of three-dimensional modeling method based on zoom range finding and system |
CN108917701A (en) * | 2018-08-06 | 2018-11-30 | 中国矿业大学 | A kind of barrier based on smart phone detects automatically and method for early warning |
CN109239698A (en) * | 2018-08-02 | 2019-01-18 | 华勤通讯技术有限公司 | Camera distance measuring method and electronic equipment |
CN110602397A (en) * | 2019-09-16 | 2019-12-20 | RealMe重庆移动通信有限公司 | Image processing method, device, terminal and storage medium |
CN114543749A (en) * | 2022-03-17 | 2022-05-27 | 苏州英示测量科技有限公司 | Optical system and method for measuring multi-target field depth |
CN115235419A (en) * | 2022-07-27 | 2022-10-25 | 中国科学院长春光学精密机械与物理研究所 | Relative height measuring equipment of fixed station and measuring method thereof |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3223863B2 (en) * | 1997-01-09 | 2001-10-29 | 富士電機株式会社 | Distance measuring device |
CN101324430A (en) * | 2007-06-12 | 2008-12-17 | 北京航空航天大学 | Binocular odometry based on similarity principle |
CN101539422A (en) * | 2009-04-22 | 2009-09-23 | 北京航空航天大学 | Monocular vision real time distance measure method |
CN101666642A (en) * | 2009-09-27 | 2010-03-10 | 常州市新瑞得仪器有限公司 | Digital level capable of automatically measuring |
CN102053338A (en) * | 2009-10-29 | 2011-05-11 | 致伸科技股份有限公司 | Portable electronic equipment capable of automatically focusing for measuring distance and method |
US20120063758A1 (en) * | 2010-09-15 | 2012-03-15 | Canon Kabushiki Kaisha | Ranging apparatus, lens system, and imaging apparatus |
-
2012
- 2012-11-30 CN CN201210506271.5A patent/CN102980561B/en not_active Expired - Fee Related
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3223863B2 (en) * | 1997-01-09 | 2001-10-29 | 富士電機株式会社 | Distance measuring device |
CN101324430A (en) * | 2007-06-12 | 2008-12-17 | 北京航空航天大学 | Binocular odometry based on similarity principle |
CN101539422A (en) * | 2009-04-22 | 2009-09-23 | 北京航空航天大学 | Monocular vision real time distance measure method |
CN101666642A (en) * | 2009-09-27 | 2010-03-10 | 常州市新瑞得仪器有限公司 | Digital level capable of automatically measuring |
CN102053338A (en) * | 2009-10-29 | 2011-05-11 | 致伸科技股份有限公司 | Portable electronic equipment capable of automatically focusing for measuring distance and method |
US20120063758A1 (en) * | 2010-09-15 | 2012-03-15 | Canon Kabushiki Kaisha | Ranging apparatus, lens system, and imaging apparatus |
Cited By (21)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105025219A (en) * | 2014-04-30 | 2015-11-04 | 齐发光电股份有限公司 | Image acquisition method |
CN104048643A (en) * | 2014-06-19 | 2014-09-17 | 深圳市华星光电技术有限公司 | Detailed operation system and distance measurement method thereof |
CN104215216A (en) * | 2014-08-21 | 2014-12-17 | 深圳市金立通信设备有限公司 | Ranging device and terminal |
CN104215215A (en) * | 2014-08-21 | 2014-12-17 | 深圳市金立通信设备有限公司 | Ranging method |
CN104215216B (en) * | 2014-08-21 | 2018-02-09 | 深圳市金立通信设备有限公司 | A kind of range unit and terminal |
CN104215215B (en) * | 2014-08-21 | 2017-07-25 | 深圳市金立通信设备有限公司 | A kind of distance-finding method |
CN105716569A (en) * | 2014-12-01 | 2016-06-29 | 深圳富泰宏精密工业有限公司 | Distance detection method and system |
CN104613930A (en) * | 2015-01-04 | 2015-05-13 | 宇龙计算机通信科技(深圳)有限公司 | Method and device for measuring distance as well as mobile terminal |
CN104613930B (en) * | 2015-01-04 | 2017-05-17 | 宇龙计算机通信科技(深圳)有限公司 | Method and device for measuring distance as well as mobile terminal |
CN104833342B (en) * | 2015-03-09 | 2017-04-19 | 深圳市魔眼科技有限公司 | Mobile terminal and method of establishing stereoscopic model through multipoint distance measurement |
CN104833342A (en) * | 2015-03-09 | 2015-08-12 | 深圳市亿思达科技集团有限公司 | Mobile terminal and method of establishing stereoscopic model through multipoint distance measurement |
CN105301279A (en) * | 2015-10-09 | 2016-02-03 | 广东欧珀移动通信有限公司 | Speed measurement method and speed measurement device based on camera, and mobile terminal |
CN105301279B (en) * | 2015-10-09 | 2018-06-01 | 广东欧珀移动通信有限公司 | A kind of speed measurement method based on camera, device and mobile terminal |
CN106254855A (en) * | 2016-08-25 | 2016-12-21 | 锐马(福建)电气制造有限公司 | A kind of three-dimensional modeling method based on zoom range finding and system |
CN106092058A (en) * | 2016-08-25 | 2016-11-09 | 广东欧珀移动通信有限公司 | The processing method of information data, device and terminal |
CN109239698A (en) * | 2018-08-02 | 2019-01-18 | 华勤通讯技术有限公司 | Camera distance measuring method and electronic equipment |
CN109239698B (en) * | 2018-08-02 | 2022-12-20 | 华勤技术股份有限公司 | Camera ranging method and electronic equipment |
CN108917701A (en) * | 2018-08-06 | 2018-11-30 | 中国矿业大学 | A kind of barrier based on smart phone detects automatically and method for early warning |
CN110602397A (en) * | 2019-09-16 | 2019-12-20 | RealMe重庆移动通信有限公司 | Image processing method, device, terminal and storage medium |
CN114543749A (en) * | 2022-03-17 | 2022-05-27 | 苏州英示测量科技有限公司 | Optical system and method for measuring multi-target field depth |
CN115235419A (en) * | 2022-07-27 | 2022-10-25 | 中国科学院长春光学精密机械与物理研究所 | Relative height measuring equipment of fixed station and measuring method thereof |
Also Published As
Publication number | Publication date |
---|---|
CN102980561B (en) | 2015-10-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102980561B (en) | A kind of mobile terminal distance-finding method and device | |
US7711201B2 (en) | Method of and apparatus for generating a depth map utilized in autofocusing | |
CN102472619B (en) | Image capture device and image capture method | |
CN106885622B (en) | A kind of big visual field multiple spot three-dimensional vibrating measurement method | |
CN102853810A (en) | Method for measuring object distance through mobile terminal, and system thereof | |
CN108007426B (en) | Camera ranging method | |
CN103363927B (en) | The arbitrary axis of platform electro-optical equipment is apart from multi-light axis consistency pick-up unit and method | |
CN105190226A (en) | Image assessment device, capturing device, 3d measuring device, image assessment method, and program | |
CN104864810A (en) | Digital measuring method and device thereof | |
CN107026979A (en) | Double-camera photographing method and device | |
KR101674298B1 (en) | Method for distance calculation using a camera lens focal length information | |
Martel et al. | Real-time depth from focus on a programmable focal plane processor | |
US20170124716A1 (en) | Three dimensional outline information sensing system and sensing method | |
CN104125382A (en) | Integrated multi-CCD collecting reading camera | |
JP2012113204A (en) | Imaging device | |
Kettelgerdes et al. | Correlating intrinsic parameters and sharpness for condition monitoring of automotive imaging sensors | |
CN104915948A (en) | System and method for selecting a two-dimensional region of interest using a range sensor | |
CN106506933B (en) | Object focus to capture the method and electronic equipment of its image | |
CN103868680A (en) | Method for detecting foundation telescope out-of-focus aberration based on spot interference imaging | |
CN105163036A (en) | Lens automatic focusing method | |
CN101561267A (en) | Distance-measuring device and method | |
CN113114905B (en) | Camera module, focusing adjustment system and focusing method | |
US20140176706A1 (en) | Range-finding method and computer program product | |
CN109916341B (en) | Method and system for measuring horizontal inclination angle of product surface | |
CN203984538U (en) | The many CCD of integrated form gather reading 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 | ||
CP01 | Change in the name or title of a patent holder | ||
CP01 | Change in the name or title of a patent holder |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20151007 |