CN103591894B - The method and apparatus of object length is measured by camera - Google Patents
The method and apparatus of object length is measured by camera Download PDFInfo
- Publication number
- CN103591894B CN103591894B CN201310545599.2A CN201310545599A CN103591894B CN 103591894 B CN103591894 B CN 103591894B CN 201310545599 A CN201310545599 A CN 201310545599A CN 103591894 B CN103591894 B CN 103591894B
- Authority
- CN
- China
- Prior art keywords
- camera
- focal length
- length
- under test
- screen
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 20
- 238000012360 testing method Methods 0.000 claims abstract description 24
- 238000003384 imaging method Methods 0.000 claims description 14
- 238000012545 processing Methods 0.000 claims description 6
- 238000005259 measurement Methods 0.000 abstract description 8
- 230000008859 change Effects 0.000 description 5
- 230000008901 benefit Effects 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Abstract
The invention discloses a kind of method and apparatus that object length is measured by camera, shot with camera measuring targets, according to focal length and the rule being imaged, corresponding scale is generated on the screen of display camera shooting picture, so as to be formed one " ruler ", user compares the object under test in screen with scale, you can learn the class likelihood data such as length, width of object under test, and actual measurement is carried out without finding ruler.Particularly this method and device are applied when on smart mobile phone, the length that the mobile phone carried with would know that arbitrary objects is drawn out, convenience is particularly highlighted.
Description
Technical field
The present invention relates to technical field of mobile terminals, more particularly to a kind of method that object length is measured by camera
With device.
Background technology
In order to obtain the length of object, conventional method mainly uses ruler to go measurement.But only need to know in user
When the approximate size of one article, it is very much trouble that ruler is looked for for this.
The content of the invention
Based on above-mentioned situation, the present invention proposes a kind of method and apparatus that object length is measured by camera, to survey
Measure the length of object.
A kind of method that object length is measured by camera, including step:
Focal length during camera shooting object under test is obtained, wherein, the focal length is that camera shooting is described to be measured
Focal length when image objects are clear;
Camera parameter is searched, the ratio of the corresponding re-imaging length of the focal length and physical length is determined;
According to identified ratio, the adaptable scale of generation is simultaneously displayed on the screen for connecting the camera;
Wherein, the mode for getting a distinct image includes:Fixed focal length adjusts camera to the distance of object, or fixation is taken the photograph
As head to object distance and adjusting focal length, the adjusting focal length adopts manually or use camera auto-focusing
Mode.
A kind of device that object length is measured by camera, including:
Focal length acquisition module, for obtaining focal length during camera shooting object under test, wherein, the focal length is taken the photograph for described
The focal length during object under test imaging clearly is shot as head;
Ratio searching modul, for searching camera parameter, determines the corresponding re-imaging length of the focal length and physical length
Ratio;
Scale generation module, for the ratio according to determined by the ratio searching modul, the adaptable scale of generation is simultaneously
It is displayed on the screen for connecting the camera;
Wherein, the mode for getting a distinct image includes:Fixed focal length adjusts camera to the distance of object, or fixation is taken the photograph
As head to object distance and adjusting focal length, the adjusting focal length adopts manually or use camera auto-focusing
Mode.
The present invention measures the method and apparatus of object length by camera, is shot with camera measuring targets,
According to focal length and the rule of imaging, corresponding scale is generated on the screen of display camera shooting picture, so as to form one
" ruler ", user compares the object under test in screen with scale, you can learn the similar number such as length, the width of object under test
According to, without find ruler carry out actual measurement.Particularly this method and device are applied when on smart mobile phone, is drawn out with oneself
The mobile phone of carrying is the length that would know that arbitrary objects, and convenience is particularly highlighted.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of the method that the present invention measures object length by camera;
Fig. 2 is the structural representation of the device that the present invention measures object length by camera.
Specific embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples
The present invention is described in further detail.It should be appreciated that specific embodiment described herein is only used to explain this hair
It is bright, do not limit protection scope of the present invention.
The rule that camera shoots object is near big and far smaller, can not immediately arrive at the length of object.But to camera
Image-forming principle analysis understand, the size of imaging is relevant with focal length, and follows certain rule.For being imaged known to one
Head, after its focal length determines, the size relation proportional to object actual size of the object shot, the proportionate relationship can pass through
The parameters of camera are known.
Analyzed based on more than, the method that the present invention measures object length by camera, as shown in Fig. 2 according to following step
The rapid measurement for realizing object length:
Focal length when step S101, acquisition camera shooting object under test;
Step S102, lookup camera parameter, determine the ratio of the corresponding re-imaging length of the focal length and physical length;
Step S103, the ratio according to determined by, the adaptable scale of generation are simultaneously displayed in the screen for connecting the camera
On curtain.
This method obtain first camera shoot object under test when focal length, the focal length should be it is real-time, then according to
The parameter of camera, calculates or directly searches when the ratio of re-imaging length and physical length under front focal length, after learning ratio, knot
Close the actual size of screen, you can corresponding scale is shown on screen, then screen turns into one ruler.Due to shooting object
When, the focal length of camera is change, therefore aforementioned ratio is also change, and then scale on screen is also with the change of focal length
Change and change.
The measurement object of this method is the length of object under test, and the length can be the length of any one angle of object under test
The length of degree, such as one length on computer monitor side long, or its short side.In order to improve measuring accuracy, the mirror of camera
Head is by the side to be measured parallel to object under test.
The size of focal length directly affects the whether clear of imaging, if by screen find camera current shooting picture very
It is fuzzy, illustrate that now object is necessarily inaccurate according to the scale generated when front focal length outside focal length without focusing, or
Person says that accuracy is very low.In order to improve accuracy, it is ensured that shooting image is clearly method that is necessary, getting a distinct image, can
Be fixed focal length adjust camera to object distance, or fixing camera to object distance and adjusting focal length,
Adjusting focal length can both have been adopted manually, again can be by the way of camera auto-focusing.
As a preferred embodiment, exfocal other scenery can be carried out Fuzzy Processing, only focusing is completed
Afterwards, the picture of clearly object under test can be just obtained, scale now is only accurately, when holding measurement so as to facilitate user
Machine.
Consider that people generally carry with mobile phone by now, therefore, this method is preferably applied on mobile phone, by mobile phone
, used as previously described camera, using the screen of mobile phone as previously described screen, then mobile phone is carry-on as one for camera
The ruler of carrying, user needs measurement, need to only draw out mobile phone, opens corresponding application program, front and rear adjustment mobile phone to measured object
Distance, or using mobile phone automatic focusing function, show the image clearly on screen, by the measured object in now screen
Compare with scale, you can draw the substantial distance of measured object, the image on screen is more clear, and Len got is more accurate.
Due to scale mentioned above be by screen display out, therefore measurement of length is also relevant with screen size
System.Screen size is too small, then measured object is difficult to not only clear but also intactly shows, can only measure focal length.Therefore, screen
Size, measured object length, and the parameters of camera should be mutually adapted.
The present invention measures the device of object length by camera, as shown in Fig. 2 including:
Focal length acquisition module, for obtaining focal length during camera shooting object under test;
Ratio searching modul, for searching camera parameter, determines the corresponding re-imaging length of the focal length and physical length
Ratio;
Scale generation module, for the ratio according to determined by the ratio searching modul, the adaptable scale of generation is simultaneously
It is displayed on the screen for connecting the camera.
Shown in Fig. 2 be the present apparatus one embodiment, in this embodiment, focal length acquisition module connection camera, with
The focal length is obtained, ratio searching modul is also connected with, to send the focal length of acquisition.Ratio searching modul is according to the focal length
Determine the ratio, connect scale generation module, the ratio for determining is sent to scale generation module, scale generation module
Connection screen, the scale that will be generated according to the ratio is included on screen, and screen is also connected with camera.
Used as a preferred embodiment, the focal length is Jiao when the parallel object under test of the camera shoots
Away from.
As a preferred embodiment, when the focal length is the camera shooting object under test imaging clearly
Focal length.
As a preferred embodiment, also including Fuzzy Processing module, for exfocal all scenery to be entered
Row Fuzzy Processing.
Used as a preferred embodiment, the screen is mobile phone screen, and the camera is mobile phone camera.
To sum up, this method and device are applied on mobile phone, on smart mobile phone particularly instantly prevailing, both meets people
Know the demand of object substantial distance, the application species of smart mobile phone is enriched again.
Embodiment described above only expresses several embodiments of the invention, and its description is more specific and detailed, but simultaneously
Therefore the limitation to the scope of the claims of the present invention can not be interpreted as.It should be pointed out that for one of ordinary skill in the art
For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to guarantor of the invention
Shield scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.
Claims (8)
1. it is a kind of by camera measure object length method, it is characterised in that including step:
Focal length during camera shooting object under test is obtained, wherein, the focal length is that the camera shoots the object under test
Focal length during imaging clearly;
Camera parameter is searched, the ratio of the corresponding re-imaging length of the focal length and physical length is determined;
According to identified ratio, the adaptable scale of generation is simultaneously displayed on the screen for connecting the camera;
Wherein, parallel to the side to be measured of object under test, the mode for getting a distinct image includes the camera lens of the camera:It is fixed burnt
Away from the distance of adjustment camera to object, or fixing camera to object distance and adjusting focal length, the adjusting focal length adopts
Manually or by the way of camera auto-focusing.
2. it is according to claim 1 by camera measure object length method, it is characterised in that
The focal length is focal length when the parallel object under test of the camera shoots.
3. it is according to claim 2 by camera measure object length method, it is characterised in that
Also include step:Exfocal all scenery are carried out into Fuzzy Processing.
4. according to claim 1 or 2 or 3 by camera measure object length method, it is characterised in that the screen
Curtain is mobile phone screen, and the camera is mobile phone camera.
5. it is a kind of by camera measure object length device, it is characterised in that including:
Focal length acquisition module, for obtaining focal length during camera shooting object under test, wherein, the focal length is the camera
Shoot the focal length during object under test imaging clearly;
Ratio searching modul, for searching camera parameter, determines the ratio of the corresponding re-imaging length of the focal length and physical length
Example;
Scale generation module, for the ratio according to determined by the ratio searching modul, the adaptable scale of generation simultaneously shows
On the screen for connecting the camera;
Wherein, parallel to the side to be measured of object under test, the mode for getting a distinct image includes the camera lens of the camera:It is fixed burnt
Away from the distance of adjustment camera to object, or fixing camera to object distance and adjusting focal length, the adjusting focal length adopts
Manually or by the way of camera auto-focusing.
6. it is according to claim 5 by camera measure object length device, it is characterised in that
The focal length is focal length when the parallel object under test of the camera shoots.
7. it is according to claim 6 by camera measure object length device, it is characterised in that
Also include Fuzzy Processing module, for exfocal all scenery to be carried out into Fuzzy Processing.
8. according to claim 5 or 6 or 7 by camera measure object length device, it is characterised in that the screen
Curtain is mobile phone screen, and the camera is mobile phone camera.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310545599.2A CN103591894B (en) | 2013-11-05 | 2013-11-05 | The method and apparatus of object length is measured by camera |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310545599.2A CN103591894B (en) | 2013-11-05 | 2013-11-05 | The method and apparatus of object length is measured by camera |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103591894A CN103591894A (en) | 2014-02-19 |
CN103591894B true CN103591894B (en) | 2017-07-11 |
Family
ID=50082128
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310545599.2A Expired - Fee Related CN103591894B (en) | 2013-11-05 | 2013-11-05 | The method and apparatus of object length is measured by camera |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103591894B (en) |
Families Citing this family (24)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108050943B (en) * | 2014-12-23 | 2020-02-07 | Oppo广东移动通信有限公司 | Length measurement method and terminal |
CN104748680B (en) * | 2015-03-19 | 2018-09-14 | 酷派软件技术(深圳)有限公司 | A kind of dimension measurement method and device based on camera |
CN106152923B (en) * | 2015-04-21 | 2020-01-07 | 中兴通讯股份有限公司 | Measuring method, device and equipment |
CN104864810A (en) * | 2015-05-11 | 2015-08-26 | 翁杰军 | Digital measuring method and device thereof |
CN106291519A (en) * | 2015-06-05 | 2017-01-04 | 小米科技有限责任公司 | Distance-finding method and device |
CN105043271B (en) * | 2015-08-06 | 2018-09-18 | 宁波市北仑海伯精密机械制造有限公司 | Length measurement method and device |
CN105222717B (en) * | 2015-08-28 | 2018-10-26 | 宇龙计算机通信科技(深圳)有限公司 | A kind of subject matter length measurement method and device |
CN106610270A (en) * | 2015-10-23 | 2017-05-03 | 中兴通讯股份有限公司 | Measurement method, measurement device and mobile terminal |
CN105300293A (en) * | 2015-11-03 | 2016-02-03 | 上海小糸车灯有限公司 | Multifunctional screen display measuring tool |
CN106705837B (en) | 2015-11-17 | 2019-12-06 | 华为技术有限公司 | Object measuring method and device based on gestures |
CN105554247B (en) * | 2015-12-07 | 2019-05-14 | 魅族科技(中国)有限公司 | Measurement method, measuring system and terminal |
CN105635584A (en) * | 2016-01-27 | 2016-06-01 | 宇龙计算机通信科技(深圳)有限公司 | Terminal shooting method and device and terminal |
CN106152957B (en) * | 2016-06-22 | 2018-11-02 | 陕西宝成航空仪表有限责任公司 | V-arrangement jewel bearing gap detection device |
CN106225747A (en) * | 2016-08-21 | 2016-12-14 | 李良杰 | The method using smart machine Measuring Object length |
CN106546169A (en) * | 2016-10-12 | 2017-03-29 | 上海斐讯数据通信技术有限公司 | Using the method and device of mobile device Measuring Object size |
CN107238349A (en) * | 2017-05-16 | 2017-10-10 | 广东小天才科技有限公司 | A kind of length measurement method and device |
CN108534760A (en) * | 2018-05-05 | 2018-09-14 | 福建汇川物联网技术科技股份有限公司 | A kind of image measurement method based on binocular camera and laser range sensor |
CN109239698B (en) * | 2018-08-02 | 2022-12-20 | 华勤技术股份有限公司 | Camera ranging method and electronic equipment |
CN109520419A (en) * | 2018-12-06 | 2019-03-26 | 闻泰通讯股份有限公司 | Pass through the method, device and mobile terminal of image measurement dimension of object |
CN110736432A (en) * | 2019-10-23 | 2020-01-31 | Oppo广东移动通信有限公司 | Size marking method and device, electronic equipment and storage medium |
CN110736431A (en) * | 2019-10-23 | 2020-01-31 | Oppo广东移动通信有限公司 | Size marking method and device, electronic equipment and storage medium |
CN110893269A (en) * | 2019-11-26 | 2020-03-20 | 北京新松融通机器人科技有限公司 | Fire-fighting robot water-supply hose joint butt joint method and system based on visual measurement |
CN113091607A (en) * | 2021-03-19 | 2021-07-09 | 华南农业大学 | Calibration-free space point coordinate measuring method for single smart phone |
CN113175879B (en) * | 2021-03-25 | 2023-06-16 | 苏州三环科技有限公司 | Method, device, equipment and medium for detecting T face of sharp-mouth ceramic column |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102025914A (en) * | 2009-09-10 | 2011-04-20 | 佳能株式会社 | Image pickup apparatus and ranging method |
CN102053338A (en) * | 2009-10-29 | 2011-05-11 | 致伸科技股份有限公司 | Portable electronic equipment capable of automatically focusing for measuring distance and method |
CN102607423A (en) * | 2011-03-03 | 2012-07-25 | 裵相模 | Method for measuring real size of object using camera of mobile terminal |
CN103206919A (en) * | 2012-07-31 | 2013-07-17 | 广州三星通信技术研究有限公司 | Device and method used for measuring object size in portable terminal |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE10104877A1 (en) * | 2001-02-03 | 2002-08-14 | Bosch Gmbh Robert | Method and device for determining length, area and volume |
CN101183206A (en) * | 2006-11-13 | 2008-05-21 | 华晶科技股份有限公司 | Method for calculating distance and actuate size of shot object |
JP5331532B2 (en) * | 2009-03-24 | 2013-10-30 | オリンパスイメージング株式会社 | Portable device |
-
2013
- 2013-11-05 CN CN201310545599.2A patent/CN103591894B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102025914A (en) * | 2009-09-10 | 2011-04-20 | 佳能株式会社 | Image pickup apparatus and ranging method |
CN102053338A (en) * | 2009-10-29 | 2011-05-11 | 致伸科技股份有限公司 | Portable electronic equipment capable of automatically focusing for measuring distance and method |
CN102607423A (en) * | 2011-03-03 | 2012-07-25 | 裵相模 | Method for measuring real size of object using camera of mobile terminal |
CN103206919A (en) * | 2012-07-31 | 2013-07-17 | 广州三星通信技术研究有限公司 | Device and method used for measuring object size in portable terminal |
Also Published As
Publication number | Publication date |
---|---|
CN103591894A (en) | 2014-02-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103591894B (en) | The method and apparatus of object length is measured by camera | |
US11252325B2 (en) | Real time assessment of picture quality | |
JP2012185161A (en) | Method for measuring real dimension of object by using camera included in portable terminal | |
CN106885622B (en) | A kind of big visual field multiple spot three-dimensional vibrating measurement method | |
CN104468916A (en) | Test method based on cell phone response time | |
CN105554247A (en) | Measuring method, measuring system and terminal | |
CN108827602B (en) | VR/AR equipment imaging definition measuring method and device | |
CN103604371A (en) | Mobile terminal and object measurement method thereof | |
CN205484796U (en) | Multiple spot range unit based on pencil laser instrument and ordinary camera chip | |
JPWO2011125937A1 (en) | Calibration data selection device, selection method, selection program, and three-dimensional position measurement device | |
CN105339756B (en) | It is assessed using the distance of multiple camera apparatus | |
CN106546169A (en) | Using the method and device of mobile device Measuring Object size | |
CN104333709B (en) | Method, device and the electronic equipment being controlled to flash lamp | |
CN108055532A (en) | Automate the method and apparatus of matching test card | |
CN106197366A (en) | The treating method and apparatus of range information | |
CN102183301A (en) | Portable type unified glare measuring apparatus | |
CN105180802B (en) | A kind of dimension of object information identifying method and device | |
WO2016197494A1 (en) | Method and device for adjusting focusing area | |
CN104921697A (en) | Method for quickly measuring longitudinal distances of sight of human eyes | |
CN105787435A (en) | Indication method and apparatus for iris acquisition | |
WO2018186255A1 (en) | Information processing device, information processing method, program, and recording medium | |
CN103176349A (en) | Lens detection device and method | |
CN108305290A (en) | A kind of accurate survey spectral method of moving-target | |
CN106959378A (en) | Single width motion blur image speed computational methods | |
CN112435286A (en) | Method for measuring dimension of fish based on optical image |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
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. |
|
CP01 | Change in the name or title of a patent holder | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20170711 |
|
CF01 | Termination of patent right due to non-payment of annual fee |