CN108151657A - A kind of dimension of object measuring method and measuring device based on intelligent terminal - Google Patents
A kind of dimension of object measuring method and measuring device based on intelligent terminal Download PDFInfo
- Publication number
- CN108151657A CN108151657A CN201711457913.6A CN201711457913A CN108151657A CN 108151657 A CN108151657 A CN 108151657A CN 201711457913 A CN201711457913 A CN 201711457913A CN 108151657 A CN108151657 A CN 108151657A
- Authority
- CN
- China
- Prior art keywords
- image
- testee
- size
- intelligent terminal
- distance
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 25
- 238000003384 imaging method Methods 0.000 claims abstract description 24
- 238000005259 measurement Methods 0.000 abstract description 7
- 238000010586 diagram Methods 0.000 description 16
- 238000005516 engineering process Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 5
- 230000008859 change Effects 0.000 description 4
- 238000013507 mapping Methods 0.000 description 4
- 238000006073 displacement reaction Methods 0.000 description 3
- 230000004075 alteration Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 239000000203 mixture Substances 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 206010057855 Hypotelorism of orbit Diseases 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 239000004020 conductor Substances 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000002474 experimental method Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 229910044991 metal oxide Inorganic materials 0.000 description 1
- 150000004706 metal oxides Chemical class 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
- 230000000149 penetrating effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01B—MEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
- G01B11/00—Measuring arrangements characterised by the use of optical techniques
- G01B11/02—Measuring arrangements characterised by the use of optical techniques for measuring length, width or thickness
- G01B11/022—Measuring arrangements characterised by the use of optical techniques for measuring length, width or thickness by means of tv-camera scanning
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Length Measuring Devices By Optical Means (AREA)
Abstract
The present invention provides a kind of dimension of object measuring method and measuring device based on intelligent terminal, the dimension of object measuring method includes the following steps:The camera of the intelligent terminal is controlled to take pictures to a testee and in forming an image on the photosensitive element of the intelligent terminal;Obtain the image size of the testee;The image distance and object distance of the testee are obtained by phase focusing;The size of the testee is calculated using pinhole imaging system principle according to the image distance, object distance and image size.The technical program realizes remote objects dimensional measurement, without other survey tools;Additional hardware need not be increased, save cost.
Description
Technical field
The present invention relates to intelligent terminal field more particularly to a kind of dimension of object measuring methods and survey based on intelligent terminal
Measure device.
Background technology
At present, an indispensable part during the intelligent terminals such as smart mobile phone, tablet computer have become for people's lives,
It can be with the information of storing contact, for carrying out Communication with contact person in the intelligent terminal.With the development of technology, institute
The function of stating intelligent terminal is not limited to carry out Communication, can also realize camera function, and formed by integrated picture pick-up device
Digital photograph is stored in the intelligent terminal.The prior art constantly promotes the camera properties of the intelligent terminal, such as is promoted
The pixel number of camera or the quantity for increasing camera lens in camera, then for example described intelligent terminal front and back are each
An integrated camera, to meet a variety of shooting demands.
However, people are on the basis of the intelligent terminal has shooting function, it is proposed that more application demands, especially
It is desirable to measure without using other tools by imaging the size to measure object, such as is carrying out express delivery hair
During goods, the size of cargo can be quickly known, so as to select to pack babinet accordingly, for logistic industry or need to deliver
Company or individual, great convenience can be provided.
Accordingly, it is desirable to provide a kind of method of the measurement dimension of object based on intelligent terminal, is not needing to contact measured object
In the case of body, dimensional measurement can be carried out to testee, facilitate the application measures such as subsequent packaging selection, meterage.
Invention content
In order to overcome above-mentioned technological deficiency, the purpose of the present invention is to provide a kind of dimension of object surveys based on intelligent terminal
Amount method and measuring device by the existing camera function of intelligent terminal itself, are obtained in the case where that need not contact testee
Obtain the size of testee.
The first aspect of the present invention discloses a kind of dimension of object measuring method based on intelligent terminal, including following step
Suddenly:
The camera of the intelligent terminal is controlled to take pictures to a testee and on the photosensitive element of the intelligent terminal
Form an image;
Obtain the image size of the testee;
The image distance and object distance of the testee are obtained by phase focusing;
The ruler of the testee is calculated using pinhole imaging system principle according to the image distance, object distance and image size
It is very little.
Preferably, the camera of the intelligent terminal is controlled to take pictures to a testee and in the photosensitive of the intelligent terminal
A step of image is formed on element includes:
The intelligent terminal enters preview mode of taking pictures, and the image is shown in the display interface of the intelligent terminal
Picture;
Adjust the image distance or object distance of the testee, make the size of testee described in the display interface with it is described
Display interface it is equal sized;
When obtaining the image size of the testee, using the size of the photosensitive region of the photosensitive element as institute
State image size.
Preferably, it is 16 that the display interface of the intelligent terminal, which is dimension scale,:9 rectangle;The sense of the photosensitive element
Light region is that dimension scale is 16:12 rectangle;When adjusting the image distance or object distance of the testee, make in the display interface
The size of the testee is equal with the long edge size of the display interface;Obtain the image size of the testee
When, using the long edge size of the photosensitive region of the photosensitive element as the image size.
Preferably, the measured object is calculated using pinhole imaging system principle according to the image distance, object distance and image size
After the step of size of body, the dimension of object measuring method is further comprising the steps of:
In the size that the testee is shown on the display interface of the intelligent terminal.
Preferably, the step of obtaining the image distance and object distance of the testee by phase focusing includes:
The testee same point is obtained in the phase difference formed on the photosensitive region;
The camera lens that the intelligent terminal is moved based on the phase difference by phase focus algorithm eliminates the phase difference;
Obtain the current image distance of the camera lens;
The object distance of the testee is calculated according to the focal length of the camera lens and image distance.
The second aspect of the present invention discloses a kind of dimension of object measuring device based on intelligent terminal, including:
Taking module controls the camera of the intelligent terminal to take pictures to a testee and in the sense of the intelligent terminal
An image is formed on optical element;
Image dimension acquisition module is connect with the taking module, obtains the image ruler of the testee
It is very little;
Acquisition module obtains the image distance and object distance of the testee by phase focusing;
Computing module is connect with the image dimension acquisition module, acquisition module, according to the image distance, object distance and
Image size calculates the size of the testee using pinhole imaging system principle.
Preferably, the taking module includes:
It takes pictures preview unit, the intelligent terminal is controlled to enter preview mode of taking pictures, in display circle of the intelligent terminal
Face shows the image;
Unit is adjusted, the image distance or object distance of the testee is adjusted, makes testee described in the display interface
Size is equal sized with the display interface;
When the image dimension acquisition module obtains the image size of the testee, by the photosensitive member
The size of the photosensitive region of part is as the image size.
Preferably, it is 16 that the display interface of the intelligent terminal, which is dimension scale,:9 rectangle;The sense of the photosensitive element
Light region is that dimension scale is 16:12 rectangle;When the adjusting unit adjusts the image distance or object distance of the testee, make institute
The size for stating testee described in display interface is equal with the long edge size of the display interface;The image size obtains
When modulus block obtains the image size of the testee, using the long edge size of the photosensitive region of the photosensitive element as
The image size.
Preferably, the dimension of object measuring device further includes:
Display module is connect with the taking module and computing module, is shown on the display interface of the intelligent terminal
The size of the testee.
Preferably, the acquisition module includes:
Phase difference acquiring unit obtains the testee same point in the phase difference formed on the photosensitive region;
Mobile unit is connect with the phase difference acquiring unit, is moved by phase focus algorithm based on the phase difference
The camera lens of the intelligent terminal eliminates the phase difference;
Image distance acquiring unit obtains the current image distance of the camera lens;
Object distance computing unit is connect with the image distance acquiring unit, according to calculating the focal length of the camera lens and image distance
The object distance of testee.
After employing above-mentioned technical proposal, compared with prior art, have the advantages that:
1. remote objects dimensional measurement is realized, without other survey tools;
2. additional hardware need not be increased, cost is saved.
Description of the drawings
Fig. 1 is the flow diagram for meeting the dimension of object measuring method based on intelligent terminal in one embodiment of the invention;
Fig. 2 is the flow diagram of step S101 in Fig. 1;
Fig. 3 is the flow signal for meeting the dimension of object measuring method based on intelligent terminal in another embodiment of the present invention
Figure;
Fig. 4 is the flow diagram of step S103 in Fig. 1;
Fig. 5 is the structure diagram for meeting the dimension of object measuring device based on intelligent terminal in one embodiment of the invention;
Fig. 6 is the structure diagram of taking module in Fig. 5;
Fig. 7 is the structure diagram for meeting the dimension of object measuring device based on intelligent terminal in another embodiment of the present invention;
Fig. 8 is the structure diagram of acquisition module in Fig. 5;
Fig. 9 is the imaging schematic diagram met in one embodiment of the invention.
Reference numeral:
Dimension of object measuring devices of the 10- based on intelligent terminal, 11- taking modules, 111- take pictures preview unit, 112- tune
Save unit, 12- images dimension acquisition module, 13- acquisition modules, 131- phase differences acquiring unit, 132- mobile units,
133- image distances acquiring unit, 134- object distances computing unit, 14- computing modules, 15- display modules.
Specific embodiment
The advantages of the present invention is further explained below in conjunction with attached drawing and specific embodiment.
Here exemplary embodiment will be illustrated in detail, example is illustrated in the accompanying drawings.Following description is related to
During attached drawing, unless otherwise indicated, the same numbers in different attached drawings represent the same or similar element.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
It is only merely for the purpose of description specific embodiment in the term that the disclosure uses, and is not intended to be limiting the disclosure.
" one kind " of singulative used in disclosure and the accompanying claims book, " described " and "the" are also intended to including majority
Form, unless context clearly shows that other meanings.It is also understood that term "and/or" used herein refers to and wraps
Containing one or more associated list items purposes, any or all may be combined.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the disclosure
A little information should not necessarily be limited by these terms.These terms are only used for same type of information being distinguished from each other out.For example, not departing from
In the case of disclosure range, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as
One information.Depending on linguistic context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determining ".
In the description of the present invention, it is to be understood that term " longitudinal direction ", " transverse direction ", " on ", " under ", "front", "rear",
The orientation or position relationship of the instructions such as "left", "right", " vertical ", " level ", " top ", " bottom " " interior ", " outer " is based on attached drawing institutes
The orientation or position relationship shown is for only for ease of the description present invention and simplifies description rather than instruction or imply signified dress
It puts or element must have specific orientation, with specific azimuth configuration and operation, therefore it is not intended that limit of the invention
System.
In the description of the present invention, unless otherwise prescribed and limit, it should be noted that term " installation ", " connected ",
" connection " should be interpreted broadly, for example, it may be the connection inside mechanical connection or electrical connection or two elements, it can
To be to be connected directly, can also be indirectly connected by intermediary, it for the ordinary skill in the art, can basis
Concrete condition understands the concrete meaning of above-mentioned term.
In subsequent description, using for representing that the suffix of such as " module ", " component " or " unit " of element is only
Be conducive to the explanation of the present invention, itself there is no specific meanings.Therefore, " module " can mixedly make with " component "
With.
Refering to Fig. 1, the flow to meet the dimension of object measuring method based on intelligent terminal in one embodiment of the invention is shown
It is intended to, the dimension of object measuring method includes the following steps:
S101:The camera of the intelligent terminal is controlled to take pictures to a testee and in the photosensitive member of the intelligent terminal
An image is formed on part.
The camera can both be set on the screen side of the intelligent terminal, be referred to as preceding camera;It can also be set on
The reverse side of the intelligent terminal, is referred to as rear camera, and the camera is directed at the testee and taken pictures by when shooting.
Containing one or more groups of eyeglasses in the camera, the light sent out to the testee reflects, and in the intelligence
An image is formed on the photosensitive element of terminal.The photosensitive element is the core of digital filming technology, there are mainly two types of:One
Kind is widely used CCD (Charged Couple) element;Another kind is CMOS (complementary metal oxide conductor) device.It is described photosensitive
Element can convert optical signals to electric signal, realize the digitlization of shooting process.There is photosensitive region on the photosensitive element,
The image is formed in the photosensitive region.
S102:Obtain the image size of the testee.
The light of the testee transmitting is imaged through the camera after on the photosensitive element, forms an image
Picture, the image are converted to the image format of number format by the photosensitive element and processing circuit, carry out table with pixel
Show, the size of the image with it includes pixel number it is related.The image of preset number form in the intelligent terminal
Pixel range and the image size correspondence, which is linear relationship.Such as digital lattice
The pixel of the image of formula ranging from 100*100, then the size of its corresponding image is 1 centimetre * 1 centimetre;Similarly, as
The corresponding image size of the vegetarian refreshments ranging from digital format images of 200*200 is 2 centimetres * 2 centimetres.The correspondence by
The photosensitive element, processing circuit and intelligent terminal show that the parameter of the resolution ratio of screen influences.
To realize the pixel point range for the image for obtaining the number format, can described image be identified by image identification
Boundary profile, so as to obtain its pixel point range.This final step obtains the image size with actual physical size.
S103:The image distance and object distance of the testee are calculated by phase focusing.
The image distance refers to the distance of camera lens and the image, since the intelligent terminal is during focusing,
The position of the camera lens can change, therefore the image distance can also change.When focusing is completed, the camera lens no longer moves, described
Image distance also just secures.In the prior art, the camera has been integrated with various sensors and electronic circuit, forms intelligence
Shooting part, the intelligent camera component can feed back current image distance to the intelligent terminal, therefore can obtain by digital interface
The image distance.
Some point for the object being taken can be emitted beam from all directions by the eyeglass, and on photosensitive element
Imaging, when the image formation by rays of different directions falls on the same position of the photosensitive element, the phase of different light generations
Position overlaps, and aberration is minimum at this time.In most cases, the distance of the eyeglass and photosensitive element is not in optimum state,
Understood closely or too far, the light of different directions is imaged on different positions at this time, and aberration is larger, and according to hypotelorism or mistake
Far, the relative position of two composition pictures is also different, can be as the foundation for judging phase directional.Above-mentioned principle is phase focusing technology
Basis.Phase is focused, English abbreviation PDAF, and English full name is Phase Detection Auto Focus, literal meaning
It is exactly " phase-detection auto-focusing ".The intelligent terminal, which must have phase focusing sensor, can realize that phase is focused, described
Phase focusing covers disposed on sensor has a special photosensitive element, and the pixel on the photosensitive element is usually pairs of by left and right pixel
Composition, when imaging, generate the data waveform of left pixel and the data waveform of right pixel respectively, when the data wave of left pixel
When the data waveform of shape and right pixel overlaps, the image of shooting is most clear, as focuses successfully.If the data wave of left pixel
The data waveform of shape and right pixel is misaligned, and the distance of the data waveform of left pixel and the data waveform of right pixel is
Phase difference, intelligent terminal camera lens according to the phase difference calculating need mobile distance, and moving lens makes left picture
The data waveform of the data waveform of vegetarian refreshments and right pixel overlaps, and eliminates phase difference, realizes phase focus process.
Can carry out the calculating of object distance based on the phase difference, the object distance, that is, testee between camera lens away from
From.One of method for calculating the object distance is calculated by Gaussian imaging equation, and formula is:
Wherein f is focal length, and v is image distance, and u is object distance.In the present embodiment, the focal length of the camera lens is a constant parameter, in advance
In the intelligent terminal, the image distance has obtained, therefore the object distance of the testee can be calculated.
Also a kind of mode for calculating object distance is according to the intrinsic structural parameters feature of the intelligent terminal, object distance and phase
Meet mapping relations between difference and the size of image, according to many experiments accumulate the object distances of different parameters, phase difference and
The data of the mapping relations of the size of image, and the mapping relations are stored in the intelligent terminal, this step performs
When, according to the image distance obtained in the image size obtained in the step S102 and described step, reflected based on described
The relationship of penetrating finds corresponding object distance.
S104:The testee is calculated using pinhole imaging system principle according to the image distance, object distance and image size
Size.
Lens imaging in the camera can be equal to pinhole imaging system, therefore the ruler of the size of object and image
The very little size for being much larger than the camera lens.Therefore it can be calculated according to pinhole imaging system principle, due to the straightline propagation of light, when
When the light that one object is sent out is by an aperture, an image to stand upside down can be formed in the opposite side of aperture.It is this reality refering to Fig. 9
Apply the imaging schematic diagram in example, it can be seen that the profile of testee is line segment AB, and the profile of image is line segment CD, aperture
Central point is O, and the object distance of the testee is line segment BO, and the image distance of the image is line segment DO, and line segment AB is parallel to
Line segment CD.Wherein, it can prove that triangle AOB is similar to triangle COD using the vertical angles principle of similitude, then have the following formula:
Wherein object distance BO is obtained in step s 103, and image distance DO is obtained in step s 103, and the size CD of image exists
It is obtained in step S102, can finally acquire the size AB of testee.
The exterior contour of the testee is made of multigroup line segment, and the length of all profile line segments can be calculated by this step
Degree acquires critical size, such as the height of the length of side of rectangle, triangle, circle according to the geometric properties of the testee
Radius equidimension.
Referring to Fig.2, the flow diagram for step S101 in Fig. 1, the step S101 includes:
S101-1:The intelligent terminal enters preview mode of taking pictures, shown in the display interface of the intelligent terminal described in
Image.
The intelligent terminal has preview mode of taking pictures, that is, after opening shooting function, is shown on the screen of the intelligent terminal
Show the content of shooting of preview, with the movement of intelligent terminal, the content of shooting of the preview shown on screen can also change therewith, use
Family can determine best shooting scene according to the content of shooting of preview.The realization of the preview mode of taking pictures, must be according to some
The image of the testee is converted to electric signal simultaneously by the camera of intelligent terminal described in frequency coordination by photosensitive element
Display is on the screen.
S101-2:The image distance or object distance of the testee are adjusted, makes the ruler of testee described in the display interface
It is very little equal sized with the display interface.
The position of camera lens in the camera be it is adjustable, therefore the image distance of the testee or object distance be also can
With adjusting.Motor is equipped in the intelligent terminal, the image distance or object distance are realized in the position that the motor moves the camera lens
Adjusting.The adjusting of the image distance or object distance can also control realization manually by operator, for example, adjust the intelligent terminal with
The distance of the testee and manually adjust mechanical lens focus.
When this step performs so that the image is in a special position, that is, ensures in the display interface
The size of the testee is equal sized with the display interface, that is, the length of the testee or width are just
The size in some direction of the full display interface of filling.The judgement of this case can be by image recognition technology, described in identification
Pixel point range in the boundary of the image of testee is equal with the pixel point range in some direction on the display interface.Example
If the testee is a cuboid, when carrying out dimensional measurement to the one side of the cuboid, which is rectangle, described in adjusting
Image distance or object distance make a line of the rectangle just correspond to the length of a line on the square boundary of the display interface.
According to the difference of the intelligent terminal laterally or longitudinally position, the rectangle while can be with the display interface it is longer while
Equal length, shorter edge lengths that also can be with the display interface are equal.
Correspondingly, when step S102 is performed, using the size of the photosensitive region of the photosensitive element as the image
Size.For the intelligent terminal in design, there are correspondence, the photosensitive regions with the display interface for the photosensitive region
Size determine display interface range, so if piece image display when be paved with entire display interface, also just mean
It the image and has been also filled with entire photosensitive region corresponding to the image on photosensitive region.The present embodiment utilizes the correspondence
It realizes and the size of the image is obtained, since the size of the photosensitive region is determined that when the intelligent terminal dispatches from the factory
As long as therefore size of the testee on the display interface and some direction of the display interface are equal sized
When, then the dimensions length corresponding to the direction on the photosensitive region is the size of the image, such as described tested
The length of object is equal with the long side of the display interface on display interface, then the long side of the photosensitive region be it is described into
As the length of image.
Further, it is 16 that the display interface of the intelligent terminal, which is dimension scale,:9 rectangle;The photosensitive element
Photosensitive region is that dimension scale is 16:12 rectangle.Screen can be designed as dimension scale by the intelligent terminal of mainstream in design
It is 16:9 rectangle, therefore the dimension scale of display interface is also 16:9;And the photosensitive region of photosensitive element is also rectangle, but its
Dimension scale is 16:12, that is, 4:3.Display interface described in this way can not be corresponding with the length and width of photosensitive region, when me
With the long side of the display interface, that is, when side that dimension scale is 16 carries out size to correspondence as benchmark, is described photosensitive
Region short side (i.e. dimension scale be 12 while) can not the display interface short side (i.e. dimension scale be 9 while) direction
Display completely can crop the width that extra dimension scale is 3.It is such in order to ensure that can avoid in this case
Influence of the display mode to testee size in the image distance or object distance for adjusting the testee, makes the display interface
Described in testee size it is equal with the long edge size of the display interface;Obtain the image ruler of the testee
When very little, using the long edge size of the photosensitive region of the photosensitive element as the image size.
Refering to Fig. 3, to meet the flow of the dimension of object measuring method based on intelligent terminal in another embodiment of the present invention
Schematic diagram, after step S104 ', the dimension of object measuring method is further comprising the steps of:
S105:In the size that the testee is shown on the display interface of the intelligent terminal.
This step performs display operation, and the size of the testee is shown to user.The step S104 ' calculates institute
After the size for stating testee, it is also necessary to let the user know that measurement result, can be shown on the display interface of the intelligent terminal
While showing the image, the size of the testee is shown.The size of the testee adds unit with number
Form show.
It is the flow diagram of step S103 in Fig. 1 refering to Fig. 4, the step S103 includes:
S103-1:The testee same point is obtained in the phase difference formed on the photosensitive region.
The same point of the testee can be formed on the photosensitive region of the photosensitive element of phase focusing sensor
Two pixels, the distance of two pixels is the phase difference.The quantity of the phase difference available pixel point is as measurement
Unit can also be converted to the physical distance on the photosensitive region according to the correspondence of pixel and the photosensitive region.
S103-2:The camera lens that the intelligent terminal is moved based on the phase difference by phase focus algorithm eliminates the phase
Potential difference.
Principle and phase the focusing sensor that the phase focus algorithm is focused based on phase are realized, the phase difference is made
For input parameter, the optimum bit for the camera lens that can eliminate the phase difference is calculated according to the structural parameters of the intelligent terminal
It puts, and obtains the displacement distance of camera lens current location and optimum position, the camera lens is moved to described according to the displacement distance
Optimum position.
S103-3:Obtain the current image distance of the camera lens.
When step S103-2 is completed, the camera lens no longer moves, and image distance also just secures.In the prior art, it is described to take the photograph
As head has been integrated with various sensors and electronic circuit, intelligent camera component is formd, which can pass through number
Word interface feeds back current image distance to the intelligent terminal, therefore can obtain the image distance.
S103-4:The object distance of the testee is calculated according to the focal length of the camera lens and image distance.
This step is calculated by Gaussian imaging equation, and formula is:
Wherein f is focal length, and v is image distance, and u is object distance.The focal length of the camera lens is defaulted in the intelligent terminal, is manufacture
Parameter, the image distance obtain in step s 103, therefore the object distance of the testee can be calculated.
Refering to Fig. 5, to meet the structure of the dimension of object measuring device 10 based on intelligent terminal in one embodiment of the invention
Block diagram, the dimension of object measuring device 10 include:
Taking module 11
The taking module 11 controls the camera of the intelligent terminal to take pictures to a testee and in described intelligent whole
An image is formed on the photosensitive element at end.The driving layer tune that the taking module 11 passes through the intelligent terminal operation system
Photographing operation is carried out with the camera, contains one or more groups of eyeglasses in the camera, the testee is sent out
Light is reflected, and an image is formed on the photosensitive element of the intelligent terminal.There is sense on the photosensitive element
Light region, the image are formed in the photosensitive region.
Image dimension acquisition module 12
The image dimension acquisition module 12 is connect with the taking module 11, obtains the imaging of the testee
Picture size.The image dimension acquisition module 12 is after the taking module 11 obtains the image, by its turn
Be changed to the image format of number format, and according to the range of the pixel of the image of preset number form in the intelligent terminal with
The correspondence of the size of the image obtains the size of the image.
Acquisition module 13
The acquisition module 13 calculates the image distance and object distance of the testee by phase focusing.The acquisition module 13
The image distance information is obtained from the digital interface of the camera.Phase of the acquisition module 13 out of described intelligent terminal
Sensor of focusing obtains the phase difference of the testee image, and passes through Gaussian imaging equation or preset mapping relations
Calculate object distance.The acquisition module 13 obtains image size from the image dimension acquisition module 12, also from described
The focal length of the camera lens is obtained in the memory of intelligent terminal, the calculating or acquisition of object distance are carried out based on above-mentioned parameter.
Computing module 14
The computing module 14 is connect with the image dimension acquisition module 12, acquisition module 13, according to the picture
The size of the testee is calculated using pinhole imaging system principle away from, object distance and image size.The computing module 14 from
The image dimension acquisition module 12 obtains the image size, from the acquisition module 13 obtain the image distance and
Object distance.The computing module 14 utilizes pinhole imaging system principle, and proportionate relationship calculating is corresponded to according to the similar triangles shown in Fig. 9
Obtain the size of the testee.
It is the structure diagram of taking module 11 in Fig. 5 refering to Fig. 6, the taking module 11 includes:
Preview unit of taking pictures 111
The preview unit 111 of taking pictures controls the intelligent terminal to enter preview mode of taking pictures, in the intelligent terminal
Display interface shows the image.
Adjust unit 112
The image distance or object distance for adjusting unit 112 and adjusting the testee makes to be tested described in the display interface
The size of object is equal sized with the display interface.The unit 112 that adjusts is by controlling the motor of the intelligent terminal
The position for adjusting the camera lens is realized, so as to fulfill the image distance or object distance of the testee is adjusted.The adjusting unit 112 is logical
It crosses and judges whether the pixel boundary of the testee on the display interface is identical with the boundary of the display interface and sentence
Whether the size of the disconnected testee is equal sized with the display interface.
It, will be described photosensitive when the image dimension acquisition module 12 obtains the image size of the testee
The size of the photosensitive region of element is as the image size.It, should when obtaining the size on certain one side of the photosensitive region
When choose with the display interface on the testee it is equal sized while corresponding photosensitive region while.
Further, it is 16 that the display interface of the intelligent terminal, which is dimension scale,:9 rectangle;The photosensitive element
Photosensitive region is that dimension scale is 16:12 rectangle.The image distance or object distance for adjusting unit 112 and adjusting the testee
When, make the size of testee described in the display interface equal with the long edge size of the display interface.The image
When the image size of the testee is obtained as dimension acquisition module 12, by the length of the photosensitive region of the photosensitive element
Side size is as the image size.
Refering to Fig. 7, to meet the knot of the dimension of object measuring device 10 based on intelligent terminal in another embodiment of the present invention
Structure block diagram, the dimension of object measuring device 10 further include:
Display module 15
The display module 15 is connect with the taking module 11 and computing module 14, in display circle of the intelligent terminal
The size of the testee is shown on face.The display module 15 obtains the figure of the testee from the taking module 11
As information, the size of the testee is obtained from the computing module 14, and is shown after the display interface described tested
The size of object, the size of the testee is represented with number and length unit, is labeled on the testee.
It is the structure diagram of acquisition module 13 in Fig. 5 refering to Fig. 8, the acquisition module 13 includes:
Phase difference acquiring unit 131
The phase difference acquiring unit 131 obtains the testee same point in the phase formed on the photosensitive region
Difference is obtained out of the phase focusing sensor.
Mobile unit 132
The mobile unit 132 is connect with the phase difference acquiring unit 131, and the phase is based on by phase focus algorithm
The camera lens that potential difference moves the intelligent terminal eliminates the phase difference.The mobile unit 132 is from the phase difference acquiring unit
131 obtain the phase difference, and calculate the displacement distance of the camera lens, control described in the motor movement in the intelligent terminal
Camera lens eliminates the phase difference.
Image distance acquiring unit 133
The digital interface that the image distance acquiring unit 133 is provided from the camera obtains the current image distance of the camera lens.
Object distance computing unit 134
The object distance computing unit 134 is connect with the image distance acquiring unit 133, according to preset in the intelligent terminal
Focal length and image distance calculate the object distance of the testee.The object distance computing unit 134 is obtained from the image distance acquiring unit 133
The image distance obtains the focal length out of the intelligent terminal memory, and the object distance is calculated according to Gaussian imaging equation.
It should be noted that the embodiment of the present invention has preferable implementation, and not the present invention is made any type of
Limitation, any one skilled in the art change or are modified to possibly also with the technology contents of the disclosure above equivalent effective
Embodiment, as long as without departing from the content of technical solution of the present invention, what technical spirit according to the present invention made above example
Any modification or equivalent variations and modification, in the range of still falling within technical solution of the present invention.
Claims (10)
1. a kind of dimension of object measuring method based on intelligent terminal, which is characterized in that include the following steps:
The camera of the intelligent terminal is controlled to take pictures a testee and is formed on the photosensitive element of the intelligent terminal
One image;
Obtain the image size of the testee;
The image distance and object distance of the testee are obtained by phase focusing;
The size of the testee is calculated using pinhole imaging system principle according to the image distance, object distance and image size.
2. dimension of object measuring method as described in claim 1, which is characterized in that
The camera of the intelligent terminal is controlled to take pictures a testee and is formed on the photosensitive element of the intelligent terminal
The step of one image, includes:
The intelligent terminal enters preview mode of taking pictures, and the image is shown in the display interface of the intelligent terminal;
The image distance or object distance of the testee are adjusted, makes the size of testee described in the display interface and the display
Interface it is equal sized;
When obtaining the image size of the testee, using the size of the photosensitive region of the photosensitive element as it is described into
As picture size.
3. dimension of object measuring method as claimed in claim 2, which is characterized in that
The display interface of the intelligent terminal is that dimension scale is 16:9 rectangle;
The photosensitive region of the photosensitive element is that dimension scale is 16:12 rectangle;
When adjusting the image distance or object distance of the testee, the size of testee described in the display interface is made to be shown with described
Show that the long edge size at interface is equal;
When obtaining the image size of the testee, using the long edge size of the photosensitive region of the photosensitive element as institute
State image size.
4. such as claim 1-3 any one of them dimension of object measuring methods, which is characterized in that
The step of the size of the testee is calculated using pinhole imaging system principle according to the image distance, object distance and image size
After rapid, the dimension of object measuring method is further comprising the steps of:
In the size that the testee is shown on the display interface of the intelligent terminal.
5. such as claim 1-3 any one of them dimension of object measuring methods, which is characterized in that
The step of obtaining the image distance and object distance of the testee by phase focusing includes:
The testee same point is obtained in the phase difference formed on the photosensitive region;
The camera lens that the intelligent terminal is moved based on the phase difference by phase focus algorithm eliminates the phase difference;
Obtain the current image distance of the camera lens;
The object distance of the testee is calculated according to the focal length of the camera lens and image distance.
6. a kind of dimension of object measuring device based on intelligent terminal, which is characterized in that including:
Taking module controls the camera of the intelligent terminal to take pictures to a testee and in the photosensitive member of the intelligent terminal
An image is formed on part;
Image dimension acquisition module is connect with the taking module, obtains the image size of the testee;
Acquisition module obtains the image distance and object distance of the testee by phase focusing;
Computing module is connect with the image dimension acquisition module, acquisition module, according to the image distance, object distance and imaging
Picture size calculates the size of the testee using pinhole imaging system principle.
7. dimension of object measuring device as claimed in claim 6, which is characterized in that
The taking module includes:
It takes pictures preview unit, the intelligent terminal is controlled to enter preview mode of taking pictures, is shown in the display interface of the intelligent terminal
Show the image;
Unit is adjusted, adjusts the image distance or object distance of the testee, makes the size of testee described in the display interface
It is equal sized with the display interface;
When the image dimension acquisition module obtains the image size of the testee, by the photosensitive element
The size of photosensitive region is as the image size.
8. dimension of object measuring device as claimed in claim 7, which is characterized in that
The display interface of the intelligent terminal is that dimension scale is 16:9 rectangle;
The photosensitive region of the photosensitive element is that dimension scale is 16:12 rectangle;
When the adjusting unit adjusts the image distance or object distance of the testee, make testee described in the display interface
Size is equal with the long edge size of the display interface;
When the image dimension acquisition module obtains the image size of the testee, by the photosensitive element
The long edge size of photosensitive region is as the image size.
9. such as claim 6-8 any one of them dimension of object measuring devices, which is characterized in that
The dimension of object measuring device further includes:
Display module is connect with the taking module and computing module, in described in display on the display interface of the intelligent terminal
The size of testee.
10. such as claim 6-8 any one of them dimension of object measuring devices, which is characterized in that
The acquisition module includes:
Phase difference acquiring unit obtains the testee same point in the phase difference formed on the photosensitive region;
Mobile unit is connect with the phase difference acquiring unit, is based on described in phase difference movement by phase focus algorithm
The camera lens of intelligent terminal eliminates the phase difference;
Image distance acquiring unit obtains the current image distance of the camera lens;
Object distance computing unit is connect with the image distance acquiring unit, is calculated according to the focal length of the camera lens and image distance described tested
The object distance of object.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711457913.6A CN108151657A (en) | 2017-12-28 | 2017-12-28 | A kind of dimension of object measuring method and measuring device based on intelligent terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711457913.6A CN108151657A (en) | 2017-12-28 | 2017-12-28 | A kind of dimension of object measuring method and measuring device based on intelligent terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108151657A true CN108151657A (en) | 2018-06-12 |
Family
ID=62462667
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711457913.6A Pending CN108151657A (en) | 2017-12-28 | 2017-12-28 | A kind of dimension of object measuring method and measuring device based on intelligent terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108151657A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109520419A (en) * | 2018-12-06 | 2019-03-26 | 闻泰通讯股份有限公司 | Pass through the method, device and mobile terminal of image measurement dimension of object |
CN109769091A (en) * | 2019-02-22 | 2019-05-17 | 维沃移动通信有限公司 | A kind of image capturing method and mobile terminal |
CN110030928A (en) * | 2019-04-11 | 2019-07-19 | 接楚添 | The method and system of space object positioning and measurement based on computer vision |
CN111486798A (en) * | 2020-04-20 | 2020-08-04 | 苏州智感电子科技有限公司 | Image ranging method, image ranging system and terminal equipment |
CN111526286A (en) * | 2020-04-20 | 2020-08-11 | 苏州智感电子科技有限公司 | Method and system for controlling motor motion and terminal equipment |
US10999667B2 (en) | 2018-09-25 | 2021-05-04 | Shenzhen GOODIX Technology Co., Ltd. | Earbud and method for implementing wearing detection and touch operation |
CN114862965A (en) * | 2022-04-28 | 2022-08-05 | 珠海市丘钛微电子科技有限公司 | Method, device and equipment for calculating width of stripe in stripe mark plate and medium |
CN117824499A (en) * | 2023-12-29 | 2024-04-05 | 深圳市吉尔德技术有限公司 | Pearl size measuring method based on machine vision |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103206919A (en) * | 2012-07-31 | 2013-07-17 | 广州三星通信技术研究有限公司 | Device and method used for measuring object size in portable terminal |
CN105547159A (en) * | 2015-12-11 | 2016-05-04 | 上海卓易科技股份有限公司 | Method of measuring object based on mobile terminal and mobile terminal |
CN105571495A (en) * | 2015-12-30 | 2016-05-11 | 青岛海信移动通信技术股份有限公司 | Measuring method and device |
CN106610270A (en) * | 2015-10-23 | 2017-05-03 | 中兴通讯股份有限公司 | Measurement method, measurement device and mobile terminal |
-
2017
- 2017-12-28 CN CN201711457913.6A patent/CN108151657A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103206919A (en) * | 2012-07-31 | 2013-07-17 | 广州三星通信技术研究有限公司 | Device and method used for measuring object size in portable terminal |
CN106610270A (en) * | 2015-10-23 | 2017-05-03 | 中兴通讯股份有限公司 | Measurement method, measurement device and mobile terminal |
CN105547159A (en) * | 2015-12-11 | 2016-05-04 | 上海卓易科技股份有限公司 | Method of measuring object based on mobile terminal and mobile terminal |
CN105571495A (en) * | 2015-12-30 | 2016-05-11 | 青岛海信移动通信技术股份有限公司 | Measuring method and device |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10999667B2 (en) | 2018-09-25 | 2021-05-04 | Shenzhen GOODIX Technology Co., Ltd. | Earbud and method for implementing wearing detection and touch operation |
US11412319B2 (en) | 2018-09-25 | 2022-08-09 | Shenzhen GOODIX Technology Co., Ltd. | Earbud and method for implementing wearing detection and touch operation |
CN109520419A (en) * | 2018-12-06 | 2019-03-26 | 闻泰通讯股份有限公司 | Pass through the method, device and mobile terminal of image measurement dimension of object |
CN109769091A (en) * | 2019-02-22 | 2019-05-17 | 维沃移动通信有限公司 | A kind of image capturing method and mobile terminal |
CN109769091B (en) * | 2019-02-22 | 2020-09-18 | 维沃移动通信有限公司 | Image shooting method and mobile terminal |
CN110030928A (en) * | 2019-04-11 | 2019-07-19 | 接楚添 | The method and system of space object positioning and measurement based on computer vision |
CN111486798A (en) * | 2020-04-20 | 2020-08-04 | 苏州智感电子科技有限公司 | Image ranging method, image ranging system and terminal equipment |
CN111526286A (en) * | 2020-04-20 | 2020-08-11 | 苏州智感电子科技有限公司 | Method and system for controlling motor motion and terminal equipment |
CN111526286B (en) * | 2020-04-20 | 2021-11-02 | 苏州智感电子科技有限公司 | Method and system for controlling motor motion and terminal equipment |
CN111486798B (en) * | 2020-04-20 | 2022-08-26 | 苏州智感电子科技有限公司 | Image ranging method, image ranging system and terminal equipment |
CN114862965A (en) * | 2022-04-28 | 2022-08-05 | 珠海市丘钛微电子科技有限公司 | Method, device and equipment for calculating width of stripe in stripe mark plate and medium |
CN117824499A (en) * | 2023-12-29 | 2024-04-05 | 深圳市吉尔德技术有限公司 | Pearl size measuring method based on machine vision |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108151657A (en) | A kind of dimension of object measuring method and measuring device based on intelligent terminal | |
US11184603B2 (en) | Method for performing out-focus using depth information and camera using the same | |
EP3248374B1 (en) | Method and apparatus for multiple technology depth map acquisition and fusion | |
CN108600576B (en) | Image processing apparatus, method and system, and computer-readable recording medium | |
EP2135442B1 (en) | Multiple lens camera operable in various modes | |
US9076214B2 (en) | Image acquisition apparatus and image processing apparatus using selected in-focus image data | |
US8648961B2 (en) | Image capturing apparatus and image capturing method | |
JP2017022694A (en) | Method and apparatus for displaying light field based image on user's device, and corresponding computer program product | |
CN108195288A (en) | A kind of dimension of object measuring method and measuring device based on intelligent terminal | |
KR102472156B1 (en) | Electronic Device and the Method for Generating Depth Information thereof | |
CN101672620B (en) | Electronic device and method for measuring size of object | |
CN102192724B (en) | Distance measurement and photometry device, and imaging apparatus | |
CN103837129B (en) | Distance-finding method in a kind of terminal, device and terminal | |
CN107133982B (en) | Depth map construction method and device, shooting equipment and terminal equipment | |
JP5951043B2 (en) | Image measuring device | |
US20110221869A1 (en) | Imaging device, display method and recording medium | |
JP2000102040A (en) | Electronic stereo camera | |
CN108881717B (en) | Depth imaging method and system | |
US9596455B2 (en) | Image processing device and method, and imaging device | |
CN106791373A (en) | Focusing process method, device and terminal device | |
CN108924408B (en) | Depth imaging method and system | |
US20200221064A1 (en) | Combined stereoscopic and phase detection depth mapping in a dual aperture camera | |
JP2012113204A (en) | Imaging device | |
CN113965742A (en) | Dense disparity map extraction method and system based on multi-sensor fusion and intelligent terminal | |
CN116182786B (en) | Monocular vision ranging method, camera and medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180612 |
|
RJ01 | Rejection of invention patent application after publication |