CN106225687A - The measuring method of dimension of object and device - Google Patents
The measuring method of dimension of object and device Download PDFInfo
- Publication number
- CN106225687A CN106225687A CN201610806355.9A CN201610806355A CN106225687A CN 106225687 A CN106225687 A CN 106225687A CN 201610806355 A CN201610806355 A CN 201610806355A CN 106225687 A CN106225687 A CN 106225687A
- Authority
- CN
- China
- Prior art keywords
- testee
- profile point
- pixel
- adjacent profile
- 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
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
-
- 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
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Length Measuring Devices By Optical Means (AREA)
Abstract
The embodiment of the invention discloses measuring method and the device of a kind of dimension of object, relate to technical field of data processing.Wherein, the measuring method of dimension of object includes: obtain the image information of the testee that photographic head is captured;The distance between each pixel and described testee is determined according to described image information;According to the distance between described each pixel and described testee, determine the size of described testee.The technical scheme of the embodiment of the present invention, the distance between each pixel and described testee is determined by the image information of testee, and then determine the size of testee, the method being compared to use survey tool Measuring Object size, user need not carry the special survey tools such as gage specially, the equipment having only to use the terminal etc. carried with to have camera function catches testee, simple to operation, flexibly and fast.
Description
Technical field
The present embodiments relate to technical field of data processing, particularly relate to measuring method and the dress of a kind of dimension of object
Put.
Background technology
At daily life, need to carry out range measurement in a lot of situations such as space plannings, such as sprucing up when,
Buyer has when, need to measure the size etc. in lower room, the most mostly by the gage such as steel ruler, invar baseline wire or employing
The measuring instrument of sighting distance device measures distance.
Inventor finds during realizing the present invention, if prior art has the drawback that user is by measuring work
Tool Measuring Object size, needs user to have survey tool, even needs user to carry with survey tool, and once forget
Carry survey tool to will be unable to measure, be inconvenient for.User may be needed to reciprocate when measuring, adjust survey tool
Measure, operate relatively complicated.
Summary of the invention
Embodiments provide measuring method and the device of a kind of dimension of object, inconvenient to carry to solve instrument measurement
And measure the problems such as process is loaded down with trivial details, use single camera can measure dimension of object simply and easily.
First aspect, embodiments provides the measuring method of a kind of dimension of object, and the method includes:
Obtain the image information of the testee that photographic head is captured;
The distance between each pixel and described testee is determined according to described image information;
According to the distance between described each pixel and described testee, determine the size of described testee.
Further, the image information of the testee that described acquisition photographic head is captured includes:
Obtain the image of the testee that photographic head is captured;
Based on the image information that described Image Acquisition profile point each with described testee is corresponding.
Further, according to the distance between described each pixel and described testee, described testee is determined
Size includes:
According to the distance between described each pixel and described testee, determine each adjacent profile point of described testee
Between length.
Further, described image information includes: the phase contrast in two parts pixel detection information of single pixel;
Determine that the distance between each pixel and described testee includes according to described image information:
According to described phase information, determine the distance between each pixel and described testee.
Further, described according to the distance between described each pixel and described testee, determine described measured object
Length between each adjacent profile point of body includes;
Judge whether the difference of the length between pixel and the described adjacent profile point that described adjacent profile point is corresponding is less than
Or equal to the length threshold preset, the most then it is perpendicular to the height of described optical axis direction according to the imaging of described adjacent profile point,
Determine the length between each adjacent profile point of described testee;If it is not, be then perpendicular to according to the imaging of described adjacent profile point
The height of described optical axis direction, and the imaging of described adjacent profile point is parallel to the width of described optical axis direction, determines described
Length between each adjacent profile point of testee.
Further, described image information also includes: the quantity of pixel and the spacing of pixel;
The image information corresponding based on described Image Acquisition profile point each with described testee includes:
Obtain pixel quantity and the pel spacing of the image of the testee that photographic head is captured;
Determine that described testee imaging is perpendicular to described optical axis side according to described pixel quantity and described pel spacing
To height.
Further, the described imaging according to described adjacent profile point is perpendicular to the height of described optical axis direction, determines institute
The length stated between each adjacent profile point of testee includes:
According to the distance between described each pixel and described testee, and the imaging of described adjacent profile point is vertical
In the height of described optical axis direction, determine that described adjacent profile point is perpendicular to the height of described optical axis direction based on image-forming principle.
Further, the described imaging according to described adjacent profile point is perpendicular to the height of described optical axis direction, Yi Jisuo
The imaging stating adjacent profile point is parallel to the width of described optical axis direction, determines between each adjacent profile point of described testee
Length includes:
According to the distance between the pixel corresponding to adjacent profile point and described profile point, determine described adjacent profile point
It is parallel to the width of described optical axis direction;
Described width according to described adjacent profile point and described height, determine the length between described adjacent profile point.
Further, before the length determined between each adjacent profile point of described testee, also include:
Point sequence of an outline according to user's input determines each adjacent profile point of described testee.
Further, described according to the distance between described each pixel and described testee, determine described tested
Also include after the size of object:
The size of described testee is shown in the view-finder of described photographic head.
Second aspect, the embodiment of the present invention additionally provides the measurement apparatus of a kind of dimension of object, and this device includes:
Image information acquisition module, for obtaining the image information of the testee that photographic head is captured;
Object distance determines module, for determining between each pixel and described testee according to described image information
Distance;
Dimension of object determines module, for according to the distance between described each pixel and described testee, determines institute
State the size of testee.
Further, described image information acquisition module includes:
Image acquisition unit, for obtaining the image of the testee that photographic head is captured;
Contour point information acquiring unit, for the figure corresponding based on described Image Acquisition profile point each with described testee
As information.
Further, described dimension of object determine module for:
According to the distance between described each pixel and described testee, determine each adjacent profile point of described testee
Between length.
Further, described image information includes: the phase contrast in two parts pixel detection information of single pixel;
Described object distance determine module for:
According to described phase information, determine the distance between each pixel and described testee.
Further, described dimension of object determine module specifically for:
Judge whether the difference of the length between pixel and the described adjacent profile point that described adjacent profile point is corresponding is less than
Or equal to the length threshold preset, the most then it is perpendicular to the height of described optical axis direction according to the imaging of described adjacent profile point,
Determine the length between each adjacent profile point of described testee;If it is not, be then perpendicular to according to the imaging of described adjacent profile point
The height of described optical axis direction, and the imaging of described adjacent profile point is parallel to the width of described optical axis direction, determines described
Length between each adjacent profile point of testee.
Further, described image information also includes: the quantity of pixel and the spacing of pixel;
Described contour point information acquiring unit includes:
Pixel information acquisition unit, for obtaining the pixel quantity of the image of the testee that photographic head is captured
And pel spacing;
Image objects height determines unit, for determining described tested according to described pixel quantity and described pel spacing
Image objects is perpendicular to the height of described optical axis direction.
Further, described dimension of object determines that module is further used for:
According to the distance between described each pixel and described testee, and the imaging of described adjacent profile point is vertical
In the height of described optical axis direction, determine that described adjacent profile point is perpendicular to the height of described optical axis direction based on image-forming principle.
Further, described dimension of object determines that module is specifically additionally operable to:
According to the distance between the pixel corresponding to adjacent profile point and described profile point, determine described adjacent profile point
It is parallel to the width of described optical axis direction;
Described width according to described adjacent profile point and described height, determine the length between described adjacent profile point.
Further, the measurement apparatus of described dimension of object also includes:
Adjacent profile point determines module, is used for before the length determined between each adjacent profile point of described testee,
Point sequence of an outline according to user's input determines each adjacent profile point of described testee.
Further, the measurement apparatus of described dimension of object also includes:
Display module, is used for described according to the distance between described each pixel and described testee, determines described
After the size of testee, the size of described testee is shown in the view-finder of described photographic head.
The third aspect, the embodiment of the present invention additionally provides a kind of terminal, and this terminal includes described in any embodiment of the present invention
The measurement apparatus of dimension of object.
By the image information of testee, the technical scheme that the embodiment of the present invention is provided, determines that each pixel is with described
Distance between testee, and then determine the size of testee, it is compared to use survey tool Measuring Object size
Method, user need not carry the special survey tools such as gage specially, it is only necessary to uses the terminal etc. carried with to have and takes pictures
The equipment of function catches testee, simple to operation, flexibly and fast.
Accompanying drawing explanation
In order to the technical scheme of exemplary embodiment of the present is clearly described, required to describing in embodiment below
Accompanying drawing to be used does one and simply introduces.Obviously, the accompanying drawing introduced is a part of embodiment that the present invention is to be described
Accompanying drawing rather than whole accompanying drawings, for those of ordinary skill in the art, on the premise of not paying creative work, also may be used
To obtain other accompanying drawing according to these accompanying drawings.
The flow chart of the measuring method of a kind of dimension of object that Fig. 1 is provided by the embodiment of the present invention one;
The flow chart of the measuring method of a kind of dimension of object that Fig. 2 is provided by the embodiment of the present invention two;
The flow chart of the measuring method of a kind of dimension of object that Fig. 3 is provided by the embodiment of the present invention three;
The flow chart of the measuring method of a kind of dimension of object that Fig. 4 A is provided by the embodiment of the present invention four;
The mathematical model schematic diagram of the measuring method of a kind of dimension of object that Fig. 4 B is provided by the embodiment of the present invention four;
The structure chart of the measurement apparatus of a kind of dimension of object that Fig. 5 is provided by the embodiment of the present invention five;
The structure chart of the measurement apparatus of a kind of dimension of object that Fig. 6 is provided by the embodiment of the present invention six;
The structure chart of a kind of terminal that Fig. 7 is provided by the embodiment of the present invention seven;
The structural representation of the computer program of the measurement for dimension of object that Fig. 8 provides for the embodiment of the present invention eight.
Detailed description of the invention
Further illustrate technical scheme below in conjunction with the accompanying drawings and by detailed description of the invention.May be appreciated
It is that specific embodiment described herein is used only for explaining the present invention, rather than limitation of the invention.Further need exist for explanation
, for the ease of describing, accompanying drawing illustrate only part related to the present invention rather than entire infrastructure.
It should be mentioned that, some exemplary embodiments are described as before being discussed in greater detail exemplary embodiment
The process described as flow chart or method.Although flow chart each step is described as order process, but many of which
Step can be implemented concurrently, concomitantly or simultaneously.Additionally, the order of each step can be rearranged.When it operates
When completing, described process can be terminated, it is also possible to have the additional step being not included in accompanying drawing.Described process is permissible
Corresponding to method, function, code, subroutine, subprogram etc..
Embodiment one
The flow chart of the measurement of a kind of dimension of object that Fig. 1 provides for the embodiment of the present invention one.As it is shown in figure 1, this enforcement
The method of example can be performed by the measurement apparatus of dimension of object, and this device can realize by the way of hardware and/or software, and
The method that configuration that typically can be independent realizes the present embodiment in the user terminal.
The method of the present embodiment specifically includes:
The image information of the testee that S110, acquisition photographic head are captured.
Exemplarily, in the image such as image information pixel quantity, pixel interval and the phase contrast that can include image
The information of pixel.Alternatively, the image information obtaining the testee that photographic head is captured specifically comprises the steps that acquisition shooting
The image of the testee that head is captured;Based on the image letter that described Image Acquisition profile point each with described testee is corresponding
Breath.Or, obtain the information of each pixel of the testee that photographic head is captured.
If described photographic head is configured in terminal, described photographic head can include front-facing camera or post-positioned pick-up head.Optional
Ground, can obtain the image information of the testee that photographic head is captured, can be specifically to open based on double image element detection sensor
With photographic head, obtain the image information of the testee that photographic head is captured in real time based on double image element detection sensor.Wherein,
The image of the testee that photographic head is captured can be with figure shown in the image preview interface of the equipment at photographic head place
The information of picture, and the information of the image in view-finder.It can certainly be figure captured after photographic head captures testee
The information of picture.Using double image element detection sensor, can single pixel be divided into two, so work worked in coordination with by latter two photodiode
Make, it is achieved the phase difference detection of focusing, and shooting photo when, respective picture signal is converged again by two photodiodes
Altogether, exporting as a pixel, each pixel can be simultaneously used for photosensitive imaging or focusing, it is possible to effectively carries
High image quality.
S120, determine the distance between each pixel and described testee according to described image information.
In the present embodiment, exemplarily, described image information includes: two parts pixel detection information of single pixel
In phase contrast;Correspondingly, determine that the distance between each pixel and described testee includes according to described image information: root
According to described phase information, determine the distance between each pixel and described testee.It is possible to further according to each pixel
The linear relationship between distance and described phase information between point and described testee, determines each pixel and described quilt
Survey the distance between object.Concrete it may be that according to described phase information, determine described photographic head and described testee it
Between distance include: according at least two predeterminable range between each pixel and described testee, and described phase contrast
Information, determines the linear relationship between described predeterminable range and described phase information;According to described linear relationship and described
The current phase information of pixel, determines the distance between each pixel and described testee.Wherein, described phase contrast
Information includes: the phase information of the pixel corresponding to same test point of described each pixel..
For example, the pixel detection information (Pixel Detection, PD) obtained based on double element sensors, at light
Road has different light-inletting quantities under tilting.Double element sensors imaging process middle mold intend eyes imaging, therefore, it can obtain
Taking two parts pixel detection dot informations of same pixel, defocused before Jiao, phase contrast is due to the change of light-inletting quantity, it may occur that
Change..When plant produced, two known object distances, ODis1, ODis2 can be taken.By pixel in object distance it is
During ODis1, definition (PD Pixel 1 PD Pixel) is the phase contrast of this pixel, is Odis2 by pixel in object distance
Time, definition (PD Pixel 3 PD Pixel 2) is the phase contrast of this pixel.If Y is testee distance, X is phase contrast
Information, calculates the distance between described photographic head and described testee and the linear relationship Y=between described phase information
aX+b.Phase contrast is the 1 expression object distance (PD Pixel 1 PD Pixel) when being Odis1;Phase contrast 2 represent object away from
From for (the PD Pixel 3 PD Pixel 2) during Odis2, then, according to Odis1=a* (phase contrast 1)+b;Odis2=a*
(phase contrast 2)+b, can obtain a, b value, between determining that the distance between each pixel and described testee and phase contrast determine
Corresponding relation Y=aX+b.The PD phase difference value that follow-up acquisition is currently detected, can obtain object distance according to Y=aX+b
Y。
Or, determine the distance between each pixel and described testee according to described image information, it is also possible to including:
The definition of described image is detected during described camera focusing;Motor is obtained when described definition meets pre-conditioned
The numerical value issued;The distance between described photographic head and described testee is determined according to the described numerical value that issues.Wherein, according to institute
State issue numerical value determine the distance between described photographic head and described testee comprise the steps that according to described in issue numerical value determine work as
Front camera lens displacement;According to described current lens displacement determine between described photographic head and described testee away from
From.
Specifically, issue numerical value described in described basis and determine that current lens displacement comprises the steps that according to described photographic head
Module in prestore nearly coke number, remote coke number, predeterminable range between lens focus and photographic head and object, determine to
Few two camera lens displacements corresponding with described predeterminable range;Ratio according to two described camera lens displacements and described
Issue numerical value, determine current lens displacement.
For example, first, the nearly coke number prestored in the module according to described photographic head, remote coke number, lens focus
And predeterminable range 10cm and 500cm between photographic head and object, determine that with described predeterminable range be 10cm and 500cm respectively
Time corresponding camera lens displacement.Concrete it may be that according to formula y1=((EFL*EFL)/(10*10-EFL)) * 1000 counts
Calculate distance y that photographic head moves for camera lens during 10cm with testee distance1;Similarly, according to formula y2=((EFL*
EFL)/(500*10-EFL)) * 1000 calculate distance y that photographic head and testee distance move for camera lens during 500cm2;Enter
And, calculate the difference of the camera lens displacement of two predeterminable ranges and the ratio L=(y of the difference of remote coke number and nearly coke number2-y1)/(x2-
x1);Numerical value DAC and (y-y is issued according to ratio L and motor1)/(DAC-x1)=L calculates camera lens corresponding to each DAC value and moves
Dynamic distance value y.
Wherein, y1Represent the distance lens shift that the camera lens when photographic head and testee distance are for 10cm moves;y2
Represent the distance lens shift that the camera lens when photographic head and testee distance are for 10cm moves;EFL represents focal length;x1Table
Show nearly coke number marco code;x2Represent remote coke number infinite code;The numerical value that when DAC represents focusing, motor issues.
In the present embodiment, owing to focal length is relevant to the curvature of lens, therefore can be provided by the module factory of filming apparatus;
Nearly coke number and remote coke number can EEPROM (Electrically Erasable from the module of filming apparatus
Programmable Read-Only Memory, EEPROM) middle reading.
Then, calculate camera lens displacement according to predeterminable range, set up between photographic head and described testee away from
Corresponding relation between (the most tested distance) and camera lens displacement, so according to current lens displacement determine described in take the photograph
As the distance between head and described testee.Exemplarily, when current lens moving distance value y is known, can be according to focal length
And current lens displacement and formula (EFL*EFL)/(Z*10-EFL)=y/1000, determine photographic head and described quilt
Survey distance Z between object.It is understood that when user uses mobile terminal to shoot, can be according to photographic head and institute
State the approximation of the distance between testee and determine the distance between mobile terminal and described testee.
Further, it is also possible to shoot the modes such as the depth of field of big image according to dual camera, determine that photographic head is tested with described
Distance between object.
S130, according to the distance between described each pixel and described testee, determine the size of described testee.
In the present embodiment, exemplarily, the size of testee can be carried out by the feature point pairs object of testee
Divide, such as, when testee is chopsticks, can using the two of chopsticks end points as two adjacent profile point, then by
The size surveying object can represent by the length between a profile point to another profile point;When testee is a bamboo pole
Time, can be using the two of bamboo pole end points and each node as each profile point, then the size of testee can be with a wheel
Wide point represents to the length between another profile point, it is also possible to represent by the length segmentation between each adjacent profile point;Work as quilt
When survey object is irregular shape changeable, each summit of testee or flex point can be selected as each profile point and then tested
Length between each adjacent profile point of object edge represents.
Alternatively, according to the distance between described each pixel and described testee, the chi of described testee is determined
Very little concrete it may be that according to the distance between described each pixel and described testee, determine that described testee is each adjacent
Length between profile point.
The technical scheme of the present embodiment, by the image information of testee determine each pixel and described testee it
Between distance, and then determine the size of testee, the method being compared to use survey tool Measuring Object size, user is not
With carrying the special survey tools such as gage specially, it is only necessary to the equipment using the terminal etc. carried with to have camera function is caught
Catch testee, simple to operation, flexibly and fast.
Embodiment two
The flow chart of the measuring method of the dimension of object that Fig. 2 provides for the embodiment of the present invention two, as in figure 2 it is shown, this enforcement
Example is on the basis of the various embodiments described above, and optional is the image information bag of the testee that described acquisition photographic head is captured
Include: obtain the image of the testee that photographic head is captured;Based on described Image Acquisition and each profile point of described testee
Corresponding image information.
Further, according to the distance between described each pixel and described testee, described testee is determined
Size may include that according to the distance between described each pixel and described testee, determines that described testee is each adjacent
Length between profile point.
The method of the present embodiment specifically includes:
The image of the testee that S111, acquisition photographic head are captured.
In the present embodiment, the image of the testee that photographic head is captured can be obtained specifically comprise the steps that and use detected
When photographic head is triggered at family, obtain the image in view-finder;Operational order according to user's input determines testee, or automatically
Identify the testee in described image.Further, testee is determined according to the operational order of user's input it may be that use
The testee in picture is chosen at family by modes such as clicks.
S112, based on image information corresponding to described Image Acquisition profile point each with described testee.
Exemplarily, described image information can also include: the quantity of pixel and the spacing of pixel;Accordingly, base
The image information corresponding in described Image Acquisition profile point each with described testee includes: obtain the quilt that photographic head is captured
Survey pixel quantity and the pel spacing of the image of object;Described quilt is determined according to described pixel quantity and described pel spacing
Survey image objects and be perpendicular to the height of described optical axis direction.
In the present embodiment, based on the image information that described Image Acquisition profile point each with described testee is corresponding, can
With the pixel corresponding by each profile point of testee described in acquisition image, and the picture that each profile point of testee is corresponding
Pixel quantity between vegetarian refreshments and pixel interval, by pixel quantity and the product of pixel interval, determine testee
Imaging between each profile point is perpendicular to the height of described optical axis direction.
S120, determine the distance between each pixel and described testee according to described image information.
S131, according to the distance between described each pixel and described testee, determine that described testee is each adjacent
Length between profile point.
Exemplarily, adjacent profile point can be identified automatically by filming apparatus;Or can be according to the operation of user's input
Instruction determines, i.e. by user's sets itself.Filming apparatus automatically identify the adjacent profile point of testee concrete it may be that according to
Each profile point position in the picture, and the distance between each profile point, determine the adjacent profile point of testee.Example
As, can be initial profile point or according to according to each profile point position in the picture and default choosing by any profile point
Rule determines initial profile point (being such as positioned at the profile point in the upper left corner in image), is labeled as the first profile point;Obtain except first
The distance between each profile point and described the first profile point outside profile point, by the distance between described the first profile point
Profile point is labeled as the second profile point;Using the second profile point as initial profile point, obtain and do not mark each profile point and described the
The profile point of the distance between the distance between two profile point, and described second profile point is labeled as third round exterior feature point, with this type of
Push away, until marking all of profile point.
In practical operation, according to the distance between described each pixel and described testee, it is also possible to determine and take the photograph
As the distance between head and testee.Such as it may be that the distance between each pixel and described testee is approximately
Distance between photographic head and testee, or, it is also possible to be by between described each pixel and described testee away from
From, and each pixel and distance corresponding to lens centre, do difference, be approximately between photographic head and testee away from
From.
Specifically, according to the distance between described each pixel and described testee, determine each phase of described testee
Length between adjacent profile point is it may be that according to the distance between described each pixel and described testee, determine described
Distance between photographic head and described testee;According to the distance between described photographic head and described testee, determine institute
State the length between each adjacent profile point of testee.
Further, according to the distance between described each pixel and described testee, determine that described testee is each
Length between adjacent profile point includes: according to the distance between described each pixel and described testee, and described phase
The difference of the length between pixel and described adjacent profile point that adjacent profile point is corresponding, determines each adjacent profile of described testee
Length between point.
The technical scheme of the present embodiment, by obtaining each profile point pair in the image of testee that photographic head is captured
The image information answered, and then determine the length between each adjacent profile point of described testee, in conjunction with the shape of testee itself
Shape feature, using profile point as the characteristic point of testee, it is possible to achieve the effective division to image border, can be simpler
Understand and measure rapidly and accurately the size of testee.
On the basis of the most each technical scheme, alternatively, each adjacent wheels of described testee is being determined
Before length between wide point, also include: determine each adjacent profile of described testee according to the point sequence of an outline of user's input
Point.Such as, specifically can select the sequencing of profile point according to user, determine each adjacent profile point of described testee.Use
The technical program, can fully take into account multiformity and the scrambling of testee, can be arranged to be measured by user flexibility
Testee in size, the individual demand of the user that more fits.
Embodiment three
The flow chart of the measuring method of the dimension of object that Fig. 3 provides for the embodiment of the present invention three, as it is shown on figure 3, this enforcement
Example is on the basis of the various embodiments described above, and optional is according to the distance between described each pixel and described testee, determines
Length between each adjacent profile point of described testee includes;Judge pixel corresponding to described adjacent profile point and described phase
Whether the difference of the length between adjacent profile point less than or equal to the length threshold preset, the most then becomes according to described testee
As being perpendicular to the height of described optical axis direction, determine the length between each adjacent profile point of described testee;If it is not, then basis
Described testee imaging is perpendicular to the height of described optical axis direction, and described testee imaging is parallel to described optical axis side
To width, determine the length between each adjacent profile point of described testee.
The method of the present embodiment specifically includes:
The image of the testee that S111, acquisition photographic head are captured.
S112, based on image information corresponding to described Image Acquisition profile point each with described testee.
S120, determine the distance between each pixel and described testee according to described image information.
S132, the length judged between pixel and the described adjacent profile point that described adjacent profile point is corresponding difference whether
Less than or equal to the length threshold preset, if so, perform S133;If it is not, perform S134.
In this operation, can be between pixel and the described adjacent profile point corresponding by judging described adjacent profile point
The difference of length whether less than or equal to the length threshold preset, it is judged that the line between adjacent profile point whether with described light
Axle is vertical.If so, be length between corresponding pixel and the described adjacent profile point of described adjacent profile point difference less than or
Equal to the length threshold preset, then it is believed that the line between adjacent profile point is perpendicular to described optical axis, then can be according to described
Adjacent profile point imaging is perpendicular to the height of described optical axis direction, determines the length between each adjacent profile point of testee.
If it is not, the difference of the length between corresponding pixel and the described adjacent profile point of the most described adjacent profile point is more than the length preset
Threshold value, then it is believed that the line between adjacent profile point and described optical axis out of plumb, then can described optical axis direction be reference side
To, build data model based on the line between adjacent profile point and adjacent profile point, to determine each phase of described testee
Length between adjacent profile point.
S133, it is perpendicular to the height of described optical axis direction according to described adjacent profile point imaging, determines described testee
Length between each adjacent profile point.
Concrete it may be that according to the distance between described each pixel and described testee, and described adjacent profile
The imaging of point is perpendicular to the height of described optical axis direction, determines that described adjacent profile point is perpendicular to described optical axis based on image-forming principle
The height in direction.For example, it is possible to build similar triangles according to image-forming principle, and then according to known parameters and similar triangles pair
Answer the characteristic that line segment is proportional, determine the length between each adjacent profile point of testee.
S134, imaging according to described adjacent profile point are perpendicular to the height of described optical axis direction, and described adjacent wheels
The imaging of wide point is parallel to the width of described optical axis direction, determines the length between each adjacent profile point of described testee.
As it has been described above, the line between adjacent profile point and described optical axis out of plumb, then can described optical axis direction be ginseng
Examine direction, build data model based on the line between adjacent profile point and adjacent profile point, to determine described testee
Length between each adjacent profile point.Specifically, according between the pixel corresponding to adjacent profile point and described profile point
Distance, determines that described adjacent profile point is parallel to the width of described optical axis direction;Described width according to described adjacent profile point
And described height, determine the length between described adjacent profile point.
Whether the technical scheme that the present embodiment is provided, be less than by the difference judging the length between described adjacent profile point
Or equal to preset length threshold, according to judged result use corresponding method determine each adjacent profile point of described testee it
Between length, it is possible to fully take into account the different angles between line and the optical axis between each adjacent profile point of testee, knot
Close actual shooting angle, with the feature of testee itself, more accurately determine between each adjacent profile point of testee
Length.
Embodiment four
The flow chart of the measuring method of the dimension of object that Fig. 4 A provides for the embodiment of the present invention four, as shown in Figure 4 A, this reality
Executing example on the basis of the various embodiments described above, optional is described to be perpendicular to described optical axis direction according to described testee imaging
Highly, determine that the length between each adjacent profile point of described testee includes: according to described each pixel and described measured object
Distance between body, and the imaging of described adjacent profile point is perpendicular to the height of described optical axis direction, true based on image-forming principle
Fixed described adjacent profile point is perpendicular to the height of described optical axis direction.
On the basis of technique scheme, further, the described imaging according to described adjacent profile point is perpendicular to institute
State the height of optical axis direction, and the imaging of described adjacent profile point is parallel to the width of described optical axis direction, determines described quilt
Surveying the length between each adjacent profile point of object optional is to include: according to the pixel corresponding to adjacent profile point and described profile
Distance between point, determines that described adjacent profile point is parallel to the width of described optical axis direction;Institute according to described testee
State width and described height, determine the length between described adjacent profile point.
The present embodiment method specifically includes:
The image of the testee that S111, acquisition photographic head are captured.
S112, based on image information corresponding to described Image Acquisition profile point each with described testee.
S120, determine the distance between each pixel and described testee according to described image information.
S135, according to the distance between described each pixel and described testee, and the one-tenth of described adjacent profile point
As being perpendicular to the height of described optical axis direction, determine that described adjacent profile point is perpendicular to described optical axis direction based on image-forming principle
Highly.
S136, the length judged between pixel and the described adjacent profile point that described adjacent profile point is corresponding difference whether
Less than or equal to the length threshold preset, if so, terminate;If it is not, perform S136.
S137, according to the distance between the pixel corresponding to adjacent profile point and described profile point, determine described adjacent
Profile point is parallel to the width of described optical axis direction, performs S137.
Due to the distance between the pixel in the photographic head of filming apparatus and the imaging of testee, it is compared to object
Less with the distance of photographic head, it is negligible.Therefore, in the present embodiment, the pixel corresponding to adjacent profile point with
Distance between described profile point, can be approximately respectively, and adjacent profile point and photographic head are along being parallel on described optical axis direction
Distance.Difference is done with photographic head along the distance being parallel on described optical axis direction by corresponding respectively for adjacent profile point,
Determine that described adjacent profile point is parallel to the width of described optical axis direction.
S138, according to the described width of described adjacent profile point and described height, determine between described adjacent profile point
Length.
Exemplarily, owing to the width parallel of adjacent profile point is in optical axis, the high perpendicular of adjacent profile point in optical axis, because of
This, can build the mathematical model giving advice triangle, according to right angled triangle Pythagorean theorem, it may be determined that described adjacent profile point
Between length.
For example, as shown in Figure 4 B, it is assumed that A, C are respectively the adjacent profile point of testee, can be according to adjacent wheels
Wide point builds the mathematical model of right angled triangle and calculates the length between adjacent profile point with the position relationship between optical axis.First
First, the image information that in the image of the testee that photographic head is captured, each profile point is corresponding can be obtained, pass based on double image element
The pixel information that sensor gets, determines the distance between each pixel and described testee.In figure 4b, adjacent profile
Distance dDis1 between some A, C and described testee, dDis2 can be approximately the length of AF Yu BE respectively.Then by AF and BE
Length do difference, if the absolute value of the difference of AF Yu BE more than preset length threshold, then it is assumed that the length of AF with BE is identical, this
Time, can be by sdDis, the imaged principle of sDis, Od or similar triangles can release dHei, and then subtracted each other i.e. by dDis1, dDis2
DWid, i.e. dWid=dDis1-dDis2 can be obtained;Length X=sqrt (the dHei2+ of AC is calculated according to right angled triangle principle
dWid2).Wherein, sdDis is multiplied by pel spacing acquisition by pixel quantity;SDis is obtained by motor Hall element.
If the absolute value of the difference of AF Yu BE is less than or equal to the length threshold preset, then it is assumed that the length phase of AF with BE
With, now, the position relationship of adjacent two profile point of testee can be similar to A, B, then according to by sdDis, sDis, Od
Imaged principle or similar triangles directly calculate the length between adjacent profile point AB.
Wherein, sdDis represents the height of profile point A of testee, the C imaging after lens on double element sensors
Degree;SDis: the distance between double element sensors and lens centre;DDis represents object centre-to-centre spacing distance from the lens;dDis1
Represent the distance between profile point A and the lens of testee;DDis2 represents between profile point C of testee and lens
Distance;DHei represents the length of the height between profile point A, C, i.e. AC;DWid represents the width between profile point B, C, i.e. BC
Length;X represents the length of the length between profile point A, B, i.e. AB.
The technical scheme of the present embodiment, according to the distance between described each pixel and described testee and described
The imaging of adjacent profile point is perpendicular to the height of described optical axis direction, is built, i.e. by image-forming principle and simple data model
The length between each adjacent profile point of testee can be determined quickly and accurately.
On the basis of the various embodiments described above, alternatively, described according to described each pixel and described testee it
Between distance, also include after determining the size of described testee: the size of described testee is shown in described shooting
In the view-finder of head.Use the technical program, the distance measured is directly displayed in view-finder, so that user is directly perceived
Carry out real time inspection easily.
Multiple range measurement may be carried out in view of user, and check to further facilitate user and manage, also may be used
With user use photographic head shooting under described picture time, prompt the user whether preserve distance measurement data, according to user input
The operation of yes/no, it is determined whether preserve distance measurement data.Wherein, the mode preserving distance measurement data can be direct
Be saved in the image of captured testee, or with the form of numerical value corresponding with captured testee be saved in
In the storage positions such as the file preset.Literary composition name, or acquiescence institute is made by oneself for example, it may be user is the distance values preserved
State that the title of numerical value is consistent with the title of captured image to be preserved.
It is understood that the size of testee display position in view-finder, display font, color, size and
Forms etc., can be set according to practical situation, not limit at this.For example, it is possible to User Defined is arranged, with satisfied use
Family individual demand.
It should be noted that in the present embodiment, the execution sequence of S135 Yu S136 in no particular order, i.e. it may also is that first
Perform S136: judge whether the difference of the length between pixel and the described adjacent profile point that described adjacent profile point is corresponding is less than
Or equal to the length threshold preset, if so, perform S135: according to the distance between described each pixel and described testee,
And the imaging of described adjacent profile point is perpendicular to the height of described optical axis direction, determine described adjacent profile based on image-forming principle
Point is perpendicular to the height of described optical axis direction.Rear end;If it is not, after performing S135, perform S137 and S138.
Embodiment five
Fig. 5 show the structural representation of the measurement apparatus of a kind of dimension of object that the embodiment of the present invention five provides, this dress
Put and can realize by the way of hardware and/or software, and configuration that typically can be independent realizes the present embodiment in the user terminal
Method.As it is shown in figure 5, the measurement apparatus of described dimension of object specifically includes: image information acquisition module 510, object distance are true
Cover half block 520 and dimension of object determine module 530.
Wherein, image information acquisition module 510, for obtaining the image information of the testee that photographic head is captured;
Object distance determines module 520, for determining the distance between each pixel and described testee according to described image information;
Dimension of object determines module 530, for according to the distance between described each pixel and described testee, determines described tested
The size of object.
The technical scheme of the present embodiment, by the image information of testee determine each pixel and described testee it
Between distance, and then determine the size of testee, the method being compared to use survey tool Measuring Object size, user is not
With carrying the special survey tools such as gage specially, it is only necessary to the equipment using the terminal etc. carried with to have camera function is caught
Catch testee, simple to operation, flexibly and fast.
Embodiment six
The structure chart of a kind of distance-measuring device that Fig. 6 provides for the embodiment of the present invention six, as shown in Figure 6, in above-mentioned reality
On the basis of executing example three, this distance-measuring device includes: image information acquisition module 610, object distance determine module 620 and thing
Body size determines module 630.
Alternatively, image information acquisition module 610 comprises the steps that image acquisition unit and contour point information acquiring unit.Its
In, image acquisition unit, for obtaining the image of the testee that photographic head is captured;Contour point information acquiring unit, uses
In the image information corresponding based on described Image Acquisition profile point each with described testee.
On the basis of above-mentioned each technical scheme, dimension of object determines that module 630 can be used for:
According to the distance between described each pixel and described testee, determine each adjacent profile point of described testee
Between length.
On the basis of above-mentioned each technical scheme, described image information comprises the steps that two parts pixel inspection of single pixel
Phase contrast in measurement information;Accordingly, object distance determines that module 620 can be used for: according to described phase information, determines each picture
Distance between vegetarian refreshments and described testee.
On the basis of above-mentioned each technical scheme, dimension of object determines that module 630 is particularly used in:
Judge the difference of length between the pixel corresponding to described adjacent profile point and described profile point whether less than or
Equal to the length threshold preset, the most then it is perpendicular to the height of described optical axis direction according to the imaging of described adjacent profile point, really
Length between the fixed each adjacent profile point of described testee;If it is not, be then perpendicular to institute according to the imaging of described adjacent profile point
State the height of optical axis direction, and the imaging of described adjacent profile point is parallel to the width of described optical axis direction, determines described quilt
Survey the length between each adjacent profile point of object.
On the basis of above-mentioned each technical scheme, described image information may also include that the quantity of pixel and pixel
Spacing;Accordingly, image information acquisition module 610 includes: pixel information acquisition unit and image objects height determine unit.
Wherein, pixel information acquisition unit, for obtaining the pixel of the image of the testee that photographic head is captured
Point quantity and pel spacing;Image objects height determines unit, for true according to described pixel quantity and described pel spacing
Fixed described testee imaging is perpendicular to the height of described optical axis direction.
On the basis of above-mentioned each technical scheme, dimension of object determines that module 630 can be further used for:
According to the distance between described each pixel and described testee, and the imaging of described adjacent profile point is vertical
In the height of described optical axis direction, determine that described adjacent profile point is perpendicular to the height of described optical axis direction based on image-forming principle.
On the basis of above-mentioned each technical scheme, dimension of object determines that module 630 specifically can be additionally used in:
According to the distance between the pixel corresponding to adjacent profile point and described profile point, determine described adjacent profile point
It is parallel to the width of described optical axis direction;
Described width according to described adjacent profile point and described height, determine the length between described adjacent profile point.
On the basis of above-mentioned each technical scheme, the measurement apparatus of described dimension of object can also include:
Adjacent profile point determines module, is used for before the length determined between each adjacent profile point of described testee,
Point sequence of an outline according to user's input determines each adjacent profile point of described testee.
On the basis of above-mentioned each technical scheme, the measurement apparatus of described dimension of object can also include: display module
640, it is used for described according to the distance between described each pixel and described testee, determines the size of described testee
Afterwards, the size of described testee is shown in the view-finder of described photographic head.
The embodiment of the present invention additionally provides a kind of terminal, and this terminal includes the dimension of object described in any embodiment of the present invention
Measurement apparatus.
Exemplary, mobile terminal concretely mobile phone, panel computer and digital camera etc. in the present embodiment are joined
It is equipped with the terminal unit of shoot function.
Alternatively, described distance-measuring device include microprocessor or be integrated in described terminal processor in.
Measurement apparatus and the terminal of the dimension of object provided in above-described embodiment can perform any embodiment of the present invention and be carried
The measuring method of the dimension of object of confession, possesses the execution corresponding functional module of the method and beneficial effect.Not at above-described embodiment
In the ins and outs of detailed description, can be found in the measuring method of the dimension of object that any embodiment of the present invention is provided.
Embodiment seven
The structural representation of the terminal that Fig. 7 provides for the embodiment of the present invention seven.As it is shown in fig. 7, the end of the embodiment of the present invention
End includes: memorizer 710, one or more processor 720 and one or more program 730.
Wherein, the one or more program 730 performs above-described embodiment when being performed by one or more processors 720
In any one method.
The terminal of the embodiment of the present invention, by the image information of testee determine each pixel and described testee it
Between distance, and then determine the size of testee, the method being compared to use survey tool Measuring Object size, user is not
With carrying the special survey tools such as gage specially, it is only necessary to the equipment using the terminal etc. carried with to have camera function is caught
Catch testee, simple to operation, flexibly and fast.
Embodiment eight
The structural representation of the computer program of the measurement for dimension of object that Fig. 8 provides for the embodiment of the present invention eight.
As shown in Figure 8, the computer program 810 of the measurement for dimension of object of the embodiment of the present invention, can include that signal holds
Carry medium 820.Signal bearing medium 820 can include one or more instruction 830, and this instruction 830 is by such as processor
During execution, processor can provide the function described above in relation to Fig. 1-6.Such as, instruction 830 may include that and takes the photograph for acquisition
One or more instructions of the image information of the testee captured as head;For determining each picture according to described image information
One or more instructions of the distance between vegetarian refreshments and described testee and for according to described each pixel and described quilt
Survey the distance between object, determine one or more instructions of the size of described testee.It is therefoie, for example, with reference to Fig. 5 and Tu
6, the measurement apparatus of dimension of object can carry out in the step shown in Fig. 1 in response to instruction 830 one or more.
In some implementations, signal bearing medium 820 can include computer-readable medium 840, such as, but not limited to firmly
Disk drive, compact disk (CD), digital universal disc (DVD), number tape, memorizer etc..In some implementations, signal bearing medium
820 can include recordable media 850, such as, but not limited to memorizer, read/write (R/W) CD, R/W DVD etc..Realize at some
In, signal bearing medium 820 can include communication media 860, such as, but not limited to numeral and/or analogue communication medium (such as,
Optical fiber cable, waveguide, wired communications links, wireless communication link etc.).
The computer program of the embodiment of the present invention, obtains the image information of the testee that photographic head is captured;
The distance between each pixel and described testee is determined according to described image information;According to described each pixel and described quilt
Survey the distance between object, determine the size of described testee.The computer program of the present invention is by testee
Image information determines the distance between each pixel and described testee, and then determines the size of testee, is compared to
The method using survey tool Measuring Object size, user need not carry the special survey tools such as gage specially, it is only necessary to adopts
The equipment by the terminal etc. carried with camera function catches testee, simple to operation, flexibly and fast.
Through the above description of the embodiments, those skilled in the art it can be understood that to each embodiment can
The mode adding required general hardware platform by software realizes, naturally it is also possible to pass through hardware.Based on such understanding, on
State the part that prior art contributes by technical scheme the most in other words to embody with the form of software product, should
Computer software product can store in a computer-readable storage medium, such as ROM/RAM, magnetic disc, CD etc., including some fingers
Make with so that a computer equipment (can be personal computer, server, or the network equipment etc.) performs each and implements
The method described in some part of example or embodiment.
Last it is noted that various embodiments above is only in order to illustrate technical scheme, it is not intended to limit;To the greatest extent
The present invention has been described in detail by pipe with reference to foregoing embodiments, it will be understood by those within the art that: it depends on
So the technical scheme described in foregoing embodiments can be modified, or the most some or all of technical characteristic is entered
Row equivalent;And these amendments or replacement, do not make the essence of appropriate technical solution depart from various embodiments of the present invention technology
The scope of scheme.
Obviously, it will be understood by those skilled in the art that each module or each step of the above-mentioned present invention can be by as above
Described application end is implemented.Alternatively, the embodiment of the present invention can realize by the executable program of computer installation, thus can
Performing by processor to be stored in storing in device, described program can be stored in a kind of computer-readable storage
In medium, storage medium mentioned above can be read only memory, disk or CD etc.;Or they are fabricated to respectively each
Individual integrated circuit modules, or the multiple modules in them or step are fabricated to single integrated circuit module realize.So,
The present invention is not restricted to the combination of any specific hardware and software.
Note, above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that
The invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art various obvious change,
Readjust and substitute without departing from protection scope of the present invention.Therefore, although by above example, the present invention is carried out
It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also
Other Equivalent embodiments more can be included, and the scope of the present invention is determined by scope of the appended claims.
Claims (20)
1. the measuring method of a dimension of object, it is characterised in that including:
Obtain the image information of the testee that photographic head is captured;
The distance between each pixel and described testee is determined according to described image information;
According to the distance between described each pixel and described testee, determine the size of described testee.
The measuring method of dimension of object the most according to claim 1, it is characterised in that described acquisition photographic head is captured
The image information of testee include:
Obtain the image of the testee that photographic head is captured;
Based on the image information that described Image Acquisition profile point each with described testee is corresponding.
The measuring method of dimension of object the most according to claim 2, it is characterised in that according to described each pixel with described
Distance between testee, determines that the size of described testee includes:
According to the distance between described each pixel and described testee, determine between each adjacent profile point of described testee
Length.
The measuring method of dimension of object the most according to claim 2, it is characterised in that described image information includes: single
Phase contrast in two parts pixel detection information of pixel;
Determine that the distance between each pixel and described testee includes according to described image information:
According to described phase information, determine the distance between each pixel and described testee.
The measuring method of dimension of object the most according to claim 3, it is characterised in that described according to described each pixel with
Distance between described testee, determines that the length between each adjacent profile point of described testee includes;
Judge the difference of length between pixel and the described adjacent profile point that described adjacent profile point is corresponding whether less than or etc.
In default length threshold, the most then it is perpendicular to the height of described optical axis direction according to the imaging of described adjacent profile point, determines
Length between each adjacent profile point of described testee;If it is not, be then perpendicular to described according to the imaging of described adjacent profile point
The height of optical axis direction, and the imaging of described adjacent profile point is parallel to the width of described optical axis direction, determines described tested
Length between each adjacent profile point of object.
The measuring method of dimension of object the most according to claim 5, it is characterised in that described image information also includes: as
The quantity of vegetarian refreshments and the spacing of pixel;
The image information corresponding based on described Image Acquisition profile point each with described testee includes:
Obtain pixel quantity and the pel spacing of the image of the testee that photographic head is captured;
Determine that described testee imaging is perpendicular to described optical axis direction according to described pixel quantity and described pel spacing
Highly.
The measuring method of dimension of object the most according to claim 6, it is characterised in that described according to described adjacent profile point
Imaging be perpendicular to the height of described optical axis direction, determine that the length between each adjacent profile point of described testee includes:
According to the distance between described each pixel and described testee, and the imaging of described adjacent profile point is perpendicular to institute
State the height of optical axis direction, determine that described adjacent profile point is perpendicular to the height of described optical axis direction based on image-forming principle.
The measuring method of dimension of object the most according to claim 7, it is characterised in that described according to described adjacent profile point
Imaging be perpendicular to the height of described optical axis direction, and the imaging of described adjacent profile point is parallel to the width of described optical axis direction
Degree, determines that the length between each adjacent profile point of described testee includes:
According to the distance between the pixel corresponding to adjacent profile point and described profile point, determine that described adjacent profile point is parallel
Width in described optical axis direction;
Described width according to described adjacent profile point and described height, determine the length between described adjacent profile point.
9. according to the measuring method of the arbitrary described dimension of object of claim 3-8, it is characterised in that determining described measured object
Before length between each adjacent profile point of body, also include:
Point sequence of an outline according to user's input determines each adjacent profile point of described testee.
The measuring method of dimension of object the most according to claim 1, it is characterised in that described according to described each pixel
Distance between point and described testee, also includes after determining the size of described testee:
The size of described testee is shown in the view-finder of described photographic head.
The measurement apparatus of 11. 1 kinds of dimension of object, it is characterised in that including:
Image information acquisition module, for obtaining the image information of the testee that photographic head is captured;
Object distance determines module, for according to described image information determine between each pixel and described testee away from
From;
Dimension of object determines module, for according to the distance between described each pixel and described testee, determines described quilt
Survey the size of object.
The measurement apparatus of 12. dimension of object according to claim 11, it is characterised in that described image information acquisition module
Including:
Image acquisition unit, for obtaining the image of the testee that photographic head is captured;
Contour point information acquiring unit, for the image letter corresponding based on described Image Acquisition profile point each with described testee
Breath.
The measurement apparatus of 13. dimension of object according to claim 12, it is characterised in that described dimension of object determines module
For:
According to the distance between described each pixel and described testee, determine between each adjacent profile point of described testee
Length.
The measurement apparatus of 14. dimension of object according to claim 12, it is characterised in that described image information includes: single
Phase contrast in two parts pixel detection information of individual pixel;
Described object distance determine module for:
According to described phase information, determine the distance between each pixel and described testee.
The measurement apparatus of 15. dimension of object according to claim 13, it is characterised in that described dimension of object determines module
Specifically for:
Judge the difference of length between pixel and the described adjacent profile point that described adjacent profile point is corresponding whether less than or etc.
In default length threshold, the most then it is perpendicular to the height of described optical axis direction according to the imaging of described adjacent profile point, determines
Length between each adjacent profile point of described testee;If it is not, be then perpendicular to described according to the imaging of described adjacent profile point
The height of optical axis direction, and the imaging of described adjacent profile point is parallel to the width of described optical axis direction, determines described tested
Length between each adjacent profile point of object.
The measurement apparatus of 16. dimension of object according to claim 15, it is characterised in that described image information also includes:
The quantity of pixel and the spacing of pixel;
Described contour point information acquiring unit includes:
Pixel information acquisition unit, for obtaining pixel quantity and the picture of the image of the testee that photographic head is captured
Element spacing;
Image objects height determines unit, for determining described testee according to described pixel quantity and described pel spacing
Imaging is perpendicular to the height of described optical axis direction.
The measurement apparatus of 17. dimension of object according to claim 16, it is characterised in that described dimension of object determines module
It is further used for:
According to the distance between described each pixel and described testee, and the imaging of described adjacent profile point is perpendicular to institute
State the height of optical axis direction, determine that described adjacent profile point is perpendicular to the height of described optical axis direction based on image-forming principle.
The measurement apparatus of 18. dimension of object according to claim 17, it is characterised in that described dimension of object determines module
Specifically it is additionally operable to:
According to the distance between the pixel corresponding to adjacent profile point and described profile point, determine that described adjacent profile point is parallel
Width in described optical axis direction;
Described width according to described adjacent profile point and described height, determine the length between described adjacent profile point.
19. according to the measurement apparatus of the arbitrary described dimension of object of claim 13-18, it is characterised in that also include:
Adjacent profile point determines module, is used for before the length determined between each adjacent profile point of described testee, according to
The point sequence of an outline of user's input determines each adjacent profile point of described testee.
The measurement apparatus of 20. dimension of object according to claim 11, it is characterised in that the measurement dress of described dimension of object
Put and also include:
Display module, is used for described according to the distance between described each pixel and described testee, determines described tested
After the size of object, the size of described testee is shown in the view-finder of described photographic head.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610806355.9A CN106225687A (en) | 2016-09-06 | 2016-09-06 | The measuring method of dimension of object and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610806355.9A CN106225687A (en) | 2016-09-06 | 2016-09-06 | The measuring method of dimension of object and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106225687A true CN106225687A (en) | 2016-12-14 |
Family
ID=58075444
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610806355.9A Pending CN106225687A (en) | 2016-09-06 | 2016-09-06 | The measuring method of dimension of object and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106225687A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106482641A (en) * | 2016-12-27 | 2017-03-08 | 努比亚技术有限公司 | A kind of dimension measuring device and method |
CN107977720A (en) * | 2017-12-20 | 2018-05-01 | 云南电网有限责任公司文山供电局 | A kind of earthing pole state analysis and abnormity early warning system |
CN108021838A (en) * | 2017-12-07 | 2018-05-11 | 曹建 | Object plane dimension measurement method and system |
CN108489423A (en) * | 2018-03-19 | 2018-09-04 | 苏州华兴源创电子科技有限公司 | A kind of measurement method and system of product surface horizontal tilt angle |
CN108931191A (en) * | 2018-06-01 | 2018-12-04 | 普联技术有限公司 | Distance measuring method, dimension measurement method and terminal |
CN109489560A (en) * | 2018-11-21 | 2019-03-19 | 中国联合网络通信集团有限公司 | A kind of linear dimension measurement method and device, intelligent terminal |
CN109674443A (en) * | 2017-10-19 | 2019-04-26 | 华为终端(东莞)有限公司 | A kind of interpupillary distance measurement method and terminal |
CN111336938A (en) * | 2019-12-18 | 2020-06-26 | 深圳市香蕉智能科技有限公司 | Robot and object distance detection method and device thereof |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8018524B2 (en) * | 2007-11-02 | 2011-09-13 | Canon Kabushiki Kaisha | Image-pickup method and apparatus having contrast and phase difference forcusing methods wherein a contrast evaluation area is changed based on phase difference detection areas |
US20120249818A1 (en) * | 2011-03-29 | 2012-10-04 | Olympus Corporation | Image capturing system and image capturing method |
CN102761700A (en) * | 2011-04-29 | 2012-10-31 | 国际商业机器公司 | Shooting device and method for obtaining distance between different points on shot object |
CN103630070A (en) * | 2013-04-08 | 2014-03-12 | 苏州工业园区凯艺精密科技有限公司 | Detection method for image detector and image detector |
CN105323571A (en) * | 2014-06-17 | 2016-02-10 | 立普思股份有限公司 | Image phase correction method |
CN105391943A (en) * | 2015-12-03 | 2016-03-09 | 广东欧珀移动通信有限公司 | Rapid focusing method and system of shooting device |
CN105657277A (en) * | 2016-02-29 | 2016-06-08 | 广东欧珀移动通信有限公司 | Control method, control device and electronic device |
CN105891812A (en) * | 2015-11-15 | 2016-08-24 | 乐视移动智能信息技术(北京)有限公司 | Distance measurement method, device and terminal device |
-
2016
- 2016-09-06 CN CN201610806355.9A patent/CN106225687A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8018524B2 (en) * | 2007-11-02 | 2011-09-13 | Canon Kabushiki Kaisha | Image-pickup method and apparatus having contrast and phase difference forcusing methods wherein a contrast evaluation area is changed based on phase difference detection areas |
US20120249818A1 (en) * | 2011-03-29 | 2012-10-04 | Olympus Corporation | Image capturing system and image capturing method |
CN102761700A (en) * | 2011-04-29 | 2012-10-31 | 国际商业机器公司 | Shooting device and method for obtaining distance between different points on shot object |
CN103630070A (en) * | 2013-04-08 | 2014-03-12 | 苏州工业园区凯艺精密科技有限公司 | Detection method for image detector and image detector |
CN105323571A (en) * | 2014-06-17 | 2016-02-10 | 立普思股份有限公司 | Image phase correction method |
CN105891812A (en) * | 2015-11-15 | 2016-08-24 | 乐视移动智能信息技术(北京)有限公司 | Distance measurement method, device and terminal device |
CN105391943A (en) * | 2015-12-03 | 2016-03-09 | 广东欧珀移动通信有限公司 | Rapid focusing method and system of shooting device |
CN105657277A (en) * | 2016-02-29 | 2016-06-08 | 广东欧珀移动通信有限公司 | Control method, control device and electronic device |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106482641A (en) * | 2016-12-27 | 2017-03-08 | 努比亚技术有限公司 | A kind of dimension measuring device and method |
CN109674443A (en) * | 2017-10-19 | 2019-04-26 | 华为终端(东莞)有限公司 | A kind of interpupillary distance measurement method and terminal |
CN109674443B (en) * | 2017-10-19 | 2022-04-26 | 华为终端有限公司 | Pupil distance measuring method and terminal |
CN108021838A (en) * | 2017-12-07 | 2018-05-11 | 曹建 | Object plane dimension measurement method and system |
CN107977720A (en) * | 2017-12-20 | 2018-05-01 | 云南电网有限责任公司文山供电局 | A kind of earthing pole state analysis and abnormity early warning system |
CN108489423A (en) * | 2018-03-19 | 2018-09-04 | 苏州华兴源创电子科技有限公司 | A kind of measurement method and system of product surface horizontal tilt angle |
CN108931191A (en) * | 2018-06-01 | 2018-12-04 | 普联技术有限公司 | Distance measuring method, dimension measurement method and terminal |
CN109489560A (en) * | 2018-11-21 | 2019-03-19 | 中国联合网络通信集团有限公司 | A kind of linear dimension measurement method and device, intelligent terminal |
CN109489560B (en) * | 2018-11-21 | 2020-06-19 | 中国联合网络通信集团有限公司 | Linear dimension measuring method and device and intelligent terminal |
CN111336938A (en) * | 2019-12-18 | 2020-06-26 | 深圳市香蕉智能科技有限公司 | Robot and object distance detection method and device thereof |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106225687A (en) | The measuring method of dimension of object and device | |
US9965870B2 (en) | Camera calibration method using a calibration target | |
US7711201B2 (en) | Method of and apparatus for generating a depth map utilized in autofocusing | |
CN103782232B (en) | Projector and control method thereof | |
CN106353747A (en) | Distance measurement method and distance measurement device | |
US20120274762A1 (en) | Obtaining distance between different points on an imaged object | |
US20070189750A1 (en) | Method of and apparatus for simultaneously capturing and generating multiple blurred images | |
EP1736731B1 (en) | Three- dimensional measuring system | |
KR20090107536A (en) | Method and apparatus for quantitative 3-d imaging | |
US20180245909A1 (en) | Object measurement apparatus and object measurement method | |
CN104748680A (en) | Size measuring method and device based on camera | |
JPWO2011125937A1 (en) | Calibration data selection device, selection method, selection program, and three-dimensional position measurement device | |
JP7378219B2 (en) | Imaging device, image processing device, control method, and program | |
CN111750804A (en) | Object measuring method and device | |
CN106289118A (en) | The detection method of surface smoothness, device and terminal | |
JP4821009B2 (en) | Camera calibration method using model matching by edge detection | |
CN108362479A (en) | A kind of determination method of virtual image image distance measuring system and virtual image image distance | |
CN112595496A (en) | Method, device and equipment for detecting defects of near-eye display equipment and storage medium | |
JP5599849B2 (en) | Lens inspection apparatus and method | |
JP4743773B2 (en) | Edge detection method, apparatus, and program | |
JP2019007993A (en) | Imaging apparatus, control method thereof and control program | |
JP2018009927A (en) | Image processing device, image processing method and program | |
JP2005140547A (en) | 3-dimensional measuring method, 3-dimensional measuring device and computer program | |
US6616347B1 (en) | Camera with rotating optical displacement unit | |
JPH09210649A (en) | Three dimensional measurement device |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20161214 |
|
WD01 | Invention patent application deemed withdrawn after publication |