Movatterモバイル変換


[0]ホーム

URL:


CN102494616B - Length measuring method based on mobile terminal - Google Patents

Length measuring method based on mobile terminal
Download PDF

Info

Publication number
CN102494616B
CN102494616BCN201110374961.5ACN201110374961ACN102494616BCN 102494616 BCN102494616 BCN 102494616BCN 201110374961 ACN201110374961 ACN 201110374961ACN 102494616 BCN102494616 BCN 102494616B
Authority
CN
China
Prior art keywords
length
image
pixel
under test
shared
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
Application number
CN201110374961.5A
Other languages
Chinese (zh)
Other versions
CN102494616A (en
Inventor
谢俊麒
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
JRD Communication Technology Shanghai Ltd
Original Assignee
JRD Communication Technology Shanghai Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by JRD Communication Technology Shanghai LtdfiledCriticalJRD Communication Technology Shanghai Ltd
Priority to CN201110374961.5ApriorityCriticalpatent/CN102494616B/en
Publication of CN102494616ApublicationCriticalpatent/CN102494616A/en
Application grantedgrantedCritical
Publication of CN102494616BpublicationCriticalpatent/CN102494616B/en
Expired - Fee Relatedlegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Landscapes

Abstract

A length measuring device based on a mobile terminal is used with a datum length element and comprises a camera unit and a computing unit. The length of the datum length element is known. The camera unit is used for taking pictures of the datum length element and an article to be measured, and the computing unit is used for computing the number of pixel points in the images of the datum length element and the article to be measured and then computing the length of the article to be measured according to the length of the datum length element. Accordingly, length measurement is realized by the image processing technology, addition of hardware arrangement of the mobile terminal is omitted, and convenience and interest in use of the mobile terminal are enhanced.

Description

Based on the length measurement method of mobile terminal
Technical field
The invention belongs to field of electronics, refer to a kind of method utilizing mobile terminal to carry out linear measure longimetry especially.
Background technology
Along with the development of mechanics of communication, the function of mobile phone is just becoming from strength to strength, such as, carry out meter step, Measure blood pressure by mobile phone or carry out the functions such as long-range home wiring control, thus greatly facilitating the life of people.
But in actual life, user also may have the demand that some measure length, if mobile terminal therefore can be utilized to carry out measurement of length, function and the attractive force of mobile terminal can be increased undoubtedly, industry also proposes some and utilizes mobile terminal to carry out the scheme of linear measure longimetry, specifically as shown in Chinese patent 200620016720.8,201020669994.3,200810302172.9 etc., but these schemes all need to arrange separately traditional measurement mechanism such as tape measure, are the costs that can increase mobile terminal so on the one hand.
Therefore, be necessary to provide a kind of apparatus and method utilizing mobile terminal to carry out linear measure longimetry in fact.
Summary of the invention
The object of the invention is to provide a kind of length measurement method based on mobile terminal, in order to solve the problem increasing mobile terminal cost in prior art by arranging the measurement mechanisms such as traditional tape measure.
For achieving the above object, realize of the present invention
The length-measuring appliance based on mobile terminal is utilized to carry out the method for linear measure longimetry, should based on length-measuring appliance of mobile terminal and a datum length element with the use of, the length of this datum length element is known, should comprise based on the length-measuring appliance of mobile terminal: image unit, for taking the image of datum length element and object under test; Computing unit, the pixel number that the image for calculating datum length element and object under test comprises, and the length gauge of benchmark length member calculates the length of object under test, it is characterized in that the method comprises the steps:
The image of datum length element and object under test is taken by image unit;
The pixel number that the image that computing unit calculates datum length element and object under test comprises, and the length gauge of benchmark length member calculates the length of object under test;
This image unit is the camera of YUV422 standard, the color of each pixel and brightness are represented by 8 bit data wherein, comprise Y, U, V totally 3 class data, wherein Y has four, and U has two, and V has 2, form is: Y0U0Y1V0Y2U1Y3V1, the statistical value of number of pixels, when carrying out pixel statistics, if respectively there is one digit number value different in Y, U, V data of adjacent two pixels, is then added one by computing unit;
When shared by the image of computing unit measuring targets, pixel is added up, diverse ways is adopted for difform image, wherein for the image in single pixel, if respectively there is one digit number value different in Y, U, V data of adjacent two pixels, then the statistical value of number of pixels is added one; For the image in two row's pixels, then obtain rough estimates value according to above-mentioned method, obtain pixel number shared by physical length divided by two afterwards; Row is greater than to the image of two, pixel number A=2a+2 (b-2) shared by the girth first obtaining image, wherein a represents pixel number shared by many row image length directions, b represents pixel number shared by many row picture traverse directions, so can derive pixel number a=(A-2 (b-2))/2 shared by many row image length directions; For the image in irregular figure, still many row's pixels just can according to pixel number a shared by aforesaid way statistical computation to final length for single pixel first need to judge its width, if there are 45 degree of oblique angles to connect pixel, suppose that this pixel has N number of, then introduce the correction of 2^ (1/2) during statistics, by formula a '=a+ (2^ (1/2)-1) N, thus draw pixel number a ' shared by final length.
According to above-mentioned principal character, an input block should be also comprised based on the length-measuring appliance of mobile terminal, after the image that image unit photographs datum length element and object under test, computing unit receives the order of the input of input block and determines to represent the image of object under test and the image of datum length element, thus the number of computing unit to respective image edge pixels point is added up.
According to above-mentioned principal character, pixel number shared by the image of computing unit statistics datum length element, obtained the length value of each pixel representative divided by this number by the length of datum length element, thus pixel number shared by the image counting object under test again, be multiplied by the length value of each pixel representative afterwards again and draw the length of object under test.
Compared with prior art, the present invention obtains the image of datum length element and object under test by the image unit of mobile terminal, the pixel number that the image calculating datum length element and object under test afterwards comprises, and the length gauge of benchmark length member calculates the length of object under test, so realize by image processing techniques the function measuring length, do not need the hardware setting increasing mobile terminal, thus be beneficial to the convenience and interest that increase mobile terminal use.
Accompanying drawing explanation
Fig. 1 is the functional module structure schematic diagram implementing the length-measuring appliance based on mobile terminal of the present invention.
Fig. 2 is the process flow diagram of the length measurement method based on mobile terminal.
Fig. 3 is enforcement schematic diagram of the present invention.
Fig. 4 is the schematic diagram of the image in single pixel.
Fig. 5 is the schematic diagram of the image in many row's pixels.
Fig. 6 is the schematic diagram having 45 degree of oblique angles to connect the image of pixel.
Embodiment
Below in conjunction with accompanying drawing, enforcement the specific embodiment of the present invention is described in detail.
Refer to shown in Fig. 1, for implementing the functional module structure schematic diagram of the length-measuring appliance based on mobile terminal of the present invention, implement the length-measuring appliance based on mobile terminal of the present invention in use usually with a datum length element with the use of, the length of this datum length element is known, and implements the length-measuring appliance based on mobile terminal of the present invention and comprise:
Image unit, for taking the image of datum length element and object under test;
Computing unit, the pixel number that the image calculating datum length element and object under test comprises, and the length gauge of benchmark length member calculates the length of object under test.
In the specific implementation, above-mentioned datum length element can be the vertical small hanging given together when buying mobile terminal, and its length is fixing known, or pointer, or the object that other length are known.And image unit is the camera of this mobile terminal, and computing unit can be the baseband processing chip of mobile terminal, and the present invention like this does not need extra element, thus is easier to implement.In addition, implement the length-measuring appliance based on mobile terminal of the present invention and also comprise an input block, this input block can be the man-machine inputting interface (as button or touch-screen etc.) of mobile terminal, after the image that image unit photographs datum length element and object under test, computing unit receives the order of the input of input block and determines to represent the image of object under test and the image of datum length element, thus the number of computing unit to respective image edge pixels point is added up.
Refer to shown in Fig. 2, for implementing the process flow diagram of the length measurement method based on mobile terminal of the present invention, implementing the length measurement method based on mobile terminal of the present invention and comprising the steps:
The image of datum length element and object under test is taken by image unit;
The pixel number that the image that computing unit calculates datum length element and object under test comprises, and the length gauge of benchmark length member calculates the length of object under test.
Refer to shown in Fig. 3, for enforcement schematic diagram of the present invention, as long as wherein pixel number shared by the image of statistics datum length element, obtained the length value u of each pixel representative divided by this number by the length of datum length element, thus pixel number shared by the image counting object under test again, be multiplied by unit length value u more afterwards, just can draw the length of object under test, realize the function of linear measure longimetry thus.
In the specific implementation, if for the camera of YUV422 standard conventional at present, its image transmitted in preview and imaging process is all made up of pixel one by one, and the color of each pixel and brightness are represented by 8 bit data wherein, and form is: Y0U0Y1V0Y2U1Y3V1.Therefore, according to this technical characterstic, we can add up pixel shared by the object edge in appointed area, namely in appointed area, adjacent two picture element point chromatic brightness have obvious difference, in the specific implementation, background is chosen and larger the carrying out of measured object color contrast is measured due to test process suggestion, so represent the Y of color and brightness in data bit respectively, U, V value has obvious difference, therefore generally can by corresponding Y (4), U (2), the different pixel of one digit number value is respectively had just to regard as obvious difference in V (2) 3 class data, just the statistical value of number of pixels is added one, and according to the imaging characteristics of testee, the statistical value of number of pixels is processed, finally pixel number shared by the image of datum length element, draw the physical length of object under test.
Because testee profile and imaging are uncertain, after its imaging, shared pixel mode is unique, for different imaging characteristicses, also different to the statistical of pixel shared by it, shown in specific as follows:
(1) for the image in single pixel
As shown in Figure 4, for the image in single pixel, only in appointed area, adjacent two picture element point chromatic brightness need have obvious difference, the standard of concrete judgement is the same, just the statistical value of number of pixels is added one, each pixel like this does not repeat contrast and statistics, and this statistical value is pixel number shared by physical length.
(2) for the image in many row's pixels
As shown in Figure 5, for the image in many row's pixels, the account form of pixel then needs to calculate on the basis of single pixel statistical.Such as, for the image only having two row's pixels, then rough estimates value is obtained pixel number shared by physical length divided by two; Row is greater than to the image of two, statistical method single at present add up that the image of many rows obtains actual be many row's images girth shared by pixel number A, so need to calculate pixel number shared by many row image length directions to it, i.e. pixel number A=2a+2 (b-2) shared by girth, wherein a represents pixel number shared by many row image length directions, b represents pixel number shared by many row picture traverse directions, so can derive pixel number a=shared by length (A-2 (b-2))/2.
(3) for the image in irregular figure
As shown in Figure 6, for the image of irregular shape, still many row's pixels just can according to pixel number a shared by aforesaid way statistical computation to final length for single pixel only need to judge its width.Wherein pixel is connected for existence 45 degree of oblique angles, suppose to have N number of, the correction then can introducing 2^ (1/2) during statistics makes statistical value more accurate, and concrete formula is a '=a+ (2^ (1/2)-1) N, thus draws pixel number a ' shared by final length.
In actual applications, because camera has distant effect, so preferably object under test and datum length element are placed on same level, image unit viewing angles-both vertical is in this plane, and select and object under test and the larger background of datum length element aberration, improve the accuracy rate of pixel statistics after imaging.Whole process also needs man-machine interaction, point out to represent the color lump of object under test and the color lump of datum length element in the image captured by image unit, thus computing unit is added up along the number of pixel corresponding color lump graph edge, draw pixel number shared by pixel number shared by object under test physical length and datum length element physical length, computing unit is according to the pixel number of the fixed-length value of the datum length element preset with the image of the datum length element recorded, obtain the length of unit picture element point representative, obtain the physical length (namely the pixel number of the image of object under test is multiplied by unit picture element point length) of determinand further.
Be understandable that, for those of ordinary skills, can be equal to according to technical scheme of the present invention and inventive concept thereof and replace or change, and all these change or replace the protection domain that all should belong to the claim appended by the present invention.

Claims (3)

When shared by the image of computing unit measuring targets, pixel is added up, diverse ways is adopted for difform image, wherein for the image in single pixel, if respectively there is one digit number value different in Y, U, V data of adjacent two pixels, then the statistical value of number of pixels is added one; For the image in two row's pixels, then obtain rough estimates value according to above-mentioned method, obtain pixel number shared by physical length divided by two afterwards; Row is greater than to the image of two, pixel number A=2a+2 (b-2) shared by the girth first obtaining image, wherein a represents pixel number shared by many row image length directions, b represents pixel number shared by many row picture traverse directions, so can derive pixel number a=(A-2 (b-2))/2 shared by many row image length directions; For the image in irregular figure, still many row's pixels just can according to pixel number a shared by aforesaid way statistical computation to final length for single pixel first need to judge its width, if there are 45 degree of oblique angles to connect pixel, suppose that this pixel has N number of, then introduce the correction of 2^ (1/2) during statistics, by formula a '=a+ (2^ (1/2)-1) N, thus draw pixel number a ' shared by final length.
CN201110374961.5A2011-11-222011-11-22Length measuring method based on mobile terminalExpired - Fee RelatedCN102494616B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201110374961.5ACN102494616B (en)2011-11-222011-11-22Length measuring method based on mobile terminal

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201110374961.5ACN102494616B (en)2011-11-222011-11-22Length measuring method based on mobile terminal

Publications (2)

Publication NumberPublication Date
CN102494616A CN102494616A (en)2012-06-13
CN102494616Btrue CN102494616B (en)2015-01-07

Family

ID=46186460

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201110374961.5AExpired - Fee RelatedCN102494616B (en)2011-11-222011-11-22Length measuring method based on mobile terminal

Country Status (1)

CountryLink
CN (1)CN102494616B (en)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103542807B (en)*2012-07-162016-12-21联想(北京)有限公司A kind of length measurement method, device and electronic equipment
CN103188360B (en)*2013-03-252017-11-07上海斐讯数据通信技术有限公司It is a kind of that there is the smart mobile phone and its measuring method for measuring length and angle function
CN103335598A (en)*2013-07-042013-10-02贵州大学Protection cover capable of remotely measuring size of object
CN104296663B (en)*2013-07-172017-09-19英华达(上海)科技有限公司 Object size measuring system and method thereof
CN104807423A (en)*2014-01-232015-07-29中兴通讯股份有限公司Mobile terminal and mobile terminal based measuring method
CN104601766B (en)*2015-02-282017-06-27南京工程学院 A smart phone with length measuring function and its measuring method
CN104807407A (en)*2015-04-012015-07-29常州大学Mobile phone length measuring method based on bank card
CN107645925B (en)*2015-05-292021-06-25荷兰联合利华有限公司System and method for measuring hair diameter
CN105043271B (en)*2015-08-062018-09-18宁波市北仑海伯精密机械制造有限公司Length measurement method and device
MX2018005142A (en)2015-10-302018-06-06Unilever NvHair diameter measurement.
MX2018005143A (en)2015-10-302018-06-06Unilever NvHair curl measurement.
CN105444678B (en)*2015-11-092018-03-27佛山绿怡信息科技有限公司Handset size measuring method and system
CN105737742A (en)*2016-04-192016-07-06南京工程学院Height measuring method based on image processing
CN105872478A (en)*2016-05-302016-08-17苏州铭冠软件科技有限公司Agricultural intelligent analyzing and monitoring method based on image processing
CN106949830A (en)*2016-06-242017-07-14广州市九州旗建筑科技有限公司The measuring technology and its computational methods of scale built in a kind of imaging system and application
CN106123784B (en)*2016-07-222019-03-15广东小天才科技有限公司method and device for measuring length

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN201004654Y (en)*2006-12-222008-01-09康佳集团股份有限公司Mobile phone with measurement function
CN201130973Y (en)*2007-12-122008-10-08康佳集团股份有限公司Mobile phone capable of measuring length
CN102052896A (en)*2009-04-302011-05-11上海理工大学Automatic method for detecting dimension of use part of surgical instrument

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
KR100652685B1 (en)*2004-10-092006-12-07엘지전자 주식회사 Length measurement method using mobile communication terminal
KR20060087120A (en)*2005-01-282006-08-02엘지전자 주식회사 Camera phone with image size measurement
KR20070014455A (en)*2005-07-282007-02-01엘지전자 주식회사 Mobile measuring system
KR100924826B1 (en)*2007-11-212009-11-03인하대학교 산학협력단 How to measure the length using a mobile phone

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN201004654Y (en)*2006-12-222008-01-09康佳集团股份有限公司Mobile phone with measurement function
CN201130973Y (en)*2007-12-122008-10-08康佳集团股份有限公司Mobile phone capable of measuring length
CN102052896A (en)*2009-04-302011-05-11上海理工大学Automatic method for detecting dimension of use part of surgical instrument

Also Published As

Publication numberPublication date
CN102494616A (en)2012-06-13

Similar Documents

PublicationPublication DateTitle
CN102494616B (en)Length measuring method based on mobile terminal
CN103697820B (en)Method for measuring sizes based on terminal and terminal equipment
CN105444678B (en)Handset size measuring method and system
US10424078B2 (en)Height measuring system and method
CN105091833B (en)The curved detection method and bending detection device of flexible screen
US8670023B2 (en)Apparatuses and methods for providing a 3D man-machine interface (MMI)
CN103206919A (en)Device and method used for measuring object size in portable terminal
CN106525004A (en)Binocular stereo vision system and depth measuring method
US8502871B2 (en)Gauge line position measuring device, program for measuring a gauge line position, and gauge line mark
CN113781534B (en)Distance measurement method and device
CN101701973A (en) Data acquisition device and data acquisition method thereof
CN104468916A (en)Test method based on cell phone response time
CN103488356B (en)A kind of touch identification method based on infrared camera three-dimensional imaging
CN106125994B (en)Coordinate matching method and the control method and terminal for using the coordinate matching method
CN102098377B (en)Mobile phone and speed measurement method thereof
RU2008134116A (en) CAMERA FOR ELECTRONIC DEVICE
CN110975270A (en)Standing long jump detection method based on marks and computer vision
CN108120400A (en)A kind of object center deflection angle detection method and device
CN108007472A (en)Measure the method and system of vision sweeping robot odometer penalty coefficient
CN103500560B (en)A kind of processes and displays module brightness data method, system and display device
CN102104647B (en)Angle measuring mobile phone and method adopted by same for realizing angle measurement
CN108151647A (en)A kind of image processing method, device and mobile terminal
CN106123784B (en)method and device for measuring length
CN106152946B (en)A kind of method and terminal measuring object length
CN110487194B (en)Three-dimensional deformation optical measurement method and device based on single camera

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
C14Grant of patent or utility model
GR01Patent grant
CF01Termination of patent right due to non-payment of annual fee

Granted publication date:20150107

CF01Termination of patent right due to non-payment of annual fee

[8]ページ先頭

©2009-2025 Movatter.jp