CN106353747A - Distance measurement method and distance measurement device - Google Patents

Distance measurement method and distance measurement device Download PDF

Info

Publication number
CN106353747A
CN106353747A CN201610806910.8A CN201610806910A CN106353747A CN 106353747 A CN106353747 A CN 106353747A CN 201610806910 A CN201610806910 A CN 201610806910A CN 106353747 A CN106353747 A CN 106353747A
Authority
CN
China
Prior art keywords
distance
photographic head
testee
numerical value
definition
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
Application number
CN201610806910.8A
Other languages
Chinese (zh)
Inventor
宋宝良
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
LeTV Holding Beijing Co Ltd
LeTV Mobile Intelligent Information Technology Beijing Co Ltd
Original Assignee
LeTV Holding Beijing Co Ltd
LeTV Mobile Intelligent Information Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by LeTV Holding Beijing Co Ltd, LeTV Mobile Intelligent Information Technology Beijing Co Ltd filed Critical LeTV Holding Beijing Co Ltd
Priority to CN201610806910.8A priority Critical patent/CN106353747A/en
Publication of CN106353747A publication Critical patent/CN106353747A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S11/00Systems for determining distance or velocity not using reflection or reradiation
    • G01S11/12Systems for determining distance or velocity not using reflection or reradiation using electromagnetic waves other than radio waves

Abstract

An embodiment of the invention relates to the technical field of data processing and discloses a distance measurement method and a distance measurement device. The distance measurement method includes: acquiring an image, captured by a camera, of a tested object on the basis of a dual-pixel detection sensor; detecting sharpness of the image in a focusing process of the camera; acquiring a numerical value issued by a motor when the sharpness meets a preset condition; determining a distance between the camera and the tested object according to the issued numerical value. According to the technical scheme, the image is captured on the basis of the dual-pixel detection sensor, and precision in focusing, quickness in sharp image capture and high resolution are realized. In addition, the distance between the camera and the tested object can be determined by adoption of a single camera for acquiring image information without assistance of a dual camera, and precision is higher than that of an existing distance detection method.

Description

Distance measurement method and device
Technical field
The present embodiments relate to technical field of data processing, more particularly, to a kind of distance measurement method and device.
Background technology
In daily life, need to carry out range measurement in a lot of situation such as space planning, such as when sprucing up, When buyer has, need the size in the lower room of measurement etc., at present mostly by the gages such as steel ruler, invar baseline wire or employing The measuring instrument measurement distance of sighting distance device.
Inventor finds during realizing the present invention, if prior art has the drawback that user by measurement work Once tool measurement distance, needs user to have survey tool, or even needs user to carry with survey tool, and leaves behind Survey tool will be unable to carry out range measurement, is inconvenient.User may be needed to reciprocate in measurement, adjust survey tool Measure, operation is relatively complicated.
Content of the invention
Embodiments provide a kind of distance measurement method and device, with simple and convenient, enter line-spacing fast accurate From measurement.
In a first aspect, embodiments providing a kind of distance measurement method, the method includes:
Obtain the image information of the testee that photographic head is captured based on double image element detection sensor;
According to described image information, determine the distance between described photographic head and described testee.
Further, described image information includes: the phase contrast in two parts pixel detection information of single pixel point;
Correspondingly, according to described image information, determine that the distance between described photographic head and described testee include:
According to described phase information, determine the distance between each pixel and described testee.
Further, according to described phase information, described photographic head and the distance between described testee bag are determined Include:
According at least two predeterminable ranges between described photographic head and described testee, and described phase contrast letter Breath, determines the linear relationship between described predeterminable range and described phase information;Wherein, described phase information includes: institute State the phase information of the pixel corresponding to same test point of testee;
According to the current phase information of described linear relationship and described pixel, determine described photographic head with described The distance between testee.
Further, described according to described image information, determine the distance between described photographic head and described testee Including:
The definition of described image is detected during described camera focusing;
Obtain the numerical value that motor issues when described definition meets pre-conditioned;
The distance between described photographic head and described testee are determined according to the described numerical value that issues.
Further, the described numerical value that acquisition motor issues when described definition meets pre-conditioned includes:
If the definition of current frame image is less than the definition of the second two field picture, and the definition of described second two field picture is big In the definition of the first two field picture, then obtain the numerical value that the motor corresponding to the second two field picture issues;
Wherein, the second frame is the former frame of described present frame, and the first frame is the former frame of described second frame.
Further, determine that the distance between described photographic head and described testee include according to the described numerical value that issues:
Current lens displacement is determined according to the described numerical value that issues;
The distance between described photographic head and described testee are determined according to described current lens displacement.
Further, issue numerical value described in described basis and determine that current lens displacement includes:
Nearly coke number, remote coke number, lens focus and photographic head and the thing prestoring in module according to described photographic head Predeterminable range between body, determines at least 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.
Further, the distance between described photographic head and described testee are determined issuing numerical value described in described basis Also include afterwards:
The distance between described photographic head and described testee are shown in the view-finder of described photographic head.
Second aspect, the embodiment of the present invention additionally provides a kind of distance-measuring device, and this device includes:
Image information acquisition module, for obtaining, based on double image element detection sensor, the testee that photographic head is captured Image;
Definition detection module, for detecting the definition of described image during described camera focusing;
Motor issues numerical value acquisition module, for obtaining the number that motor issues when described definition meets pre-conditioned Value;
Apart from determining module, for according to described issue numerical value determine between described photographic head and described testee away from From.
Further, motor issues numerical value acquisition module and is used for:
If the definition of current frame image is less than the definition of the second two field picture, and the definition of described second two field picture is big In the definition of the first two field picture, then obtain the numerical value that the motor corresponding to the first two field picture issues;
Wherein, the second frame is the former frame of described present frame, and the first frame is the former frame of described second frame.
Further, include apart from determining module:
Camera lens displacement determining unit, for determining current lens displacement according to the described numerical value that issues;
Distance determining unit, for determining described photographic head and described testee according to described current lens displacement The distance between.
Further, described camera lens displacement determining unit specifically for:
Nearly coke number, remote coke number, lens focus and photographic head and the thing prestoring in module according to described photographic head Predeterminable range between body, determines at least 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.
Further, this device also includes:
Apart from display module, for being determined between described photographic head and described testee according to the described numerical value that issues Distance afterwards, the distance between described photographic head and described testee is shown in the view-finder of described photographic head.
The technical scheme that the embodiment of the present invention is provided, catches image based on double image element detection sensor, can be accurately Focusing, quickly catches picture rich in detail, and resolution is higher.Also, it is not necessary to by dual camera it is only necessary to single camera obtain Image information is assured that the distance between photographic head and testee, with respect to existing distance detection method precision more High.
Brief description
In order to the technical scheme of exemplary embodiment of the present is clearly described, below to required in description embodiment Accompanying drawing to be used does one and simply introduces.Obviously, the accompanying drawing introduced is the present invention a part of embodiment 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 drawings according to these accompanying drawings.
A kind of flow chart of distance measurement method that Fig. 1 is provided by the embodiment of the present invention one;
Fig. 2 is a kind of flow chart of distance measurement method that the embodiment of the present invention two is provided;
Fig. 3 is a kind of flow chart of distance measurement method that the embodiment of the present invention three is provided;
Fig. 4 is a kind of flow chart of distance measurement method that the embodiment of the present invention four is provided;
Fig. 5 is a kind of structure chart of distance-measuring device that the embodiment of the present invention five is provided;
Fig. 6 is a kind of structure chart of distance-measuring device that the embodiment of the present invention six is provided;
A kind of structure chart of terminal that Fig. 7 is provided by the embodiment of the present invention eight;
The structural representation of the computer program for range measurement that Fig. 8 provides for the embodiment of the present invention nine.
Specific embodiment
Further illustrate technical scheme below in conjunction with the accompanying drawings and by specific embodiment.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 description, in 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 exemplary embodiment is discussed in greater detail The process described as flow chart or method.Although each step is described as the process of order, many of which by flow chart Step can be implemented concurrently, concomitantly or simultaneously.Additionally, the order of each step can be rearranged.When its operation 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
A kind of flow chart of distance measurement method that Fig. 1 provides for the embodiment of the present invention one.The method of the present embodiment is permissible To be executed by distance-measuring device, this device can be realized by way of hardware and/or software, and typically can independent configuration to exist The method realizing the present embodiment in user terminal.
The method of the present embodiment specifically includes:
S110, the image information of the testee being captured based on double image element detection sensor acquisition photographic head.
Exemplarily, if when in the configuration of described photographic head and terminal, described photographic head includes front-facing camera or rearmounted takes the photograph As head.
In the present embodiment, the image letter of the testee that photographic head is captured is obtained based on double image element detection sensor Breath, can be specifically to enable photographic head, obtain, based on double image element detection sensor, the testee that photographic head is captured in real time Image information.Wherein, the image of the equipment that the image information of the testee that photographic head is captured can be located with photographic head The information of shown image in preview interface, and the information of the image of inframe of finding a view.Can certainly be that photographic head captures The information of captured image after testee.
Using double image element detection sensor, single pixel can be divided into two, so work worked in coordination with by latter two photodiode Make, realize the phase difference detection of focusing, and when shooting photo, respective picture signal is converged by two photodiodes again Altogether, exported as a pixel, each pixel can be simultaneously used for photosensitive imaging or focusing, can effectively be carried High image quality.
S120, according to described image information, determine the distance between described photographic head and described testee.
Wherein, the distance between described photographic head and described testee can be to determine out each inspection of described testee The distance between measuring point and corresponding pixel, ask for average as the distance between described photographic head and described testee; Or, determine presetted pixel point by according to the operational order of user input, according to described image information determine presetted pixel point with The distance between test point of corresponding described testee, by the inspection of described presetted pixel point and corresponding described testee The distance between measuring point is as the distance between described photographic head and described testee;Or, can be to obtain described figure As being located at the central pixel point of center in information;Described central pixel point and corresponding institute are determined according to described image information State the distance between test point of testee;By between described central pixel point and the test point of corresponding described testee Distance as the distance between described photographic head and described testee.
Alternatively, described image information includes: the phase contrast in two parts pixel detection information of single pixel point;Accordingly Ground, according to described image information, determines described photographic head with the inclusion of the distance between described testee: according to described phase contrast Information, determines the distance between each pixel and described testee.Or, described according to described image information, determine described The distance between photographic head and described testee can also include: detection described image during described camera focusing Definition;Obtain the numerical value that motor issues when described definition meets pre-conditioned;Issued described in numerical value determination according to described The distance between photographic head and described testee.
Further, it is also possible to the parameter such as depth of field of the image being captured with reference to photographic head, determine described measured surface The distance between each test point and each pixel corresponding to described each test point.
The technical scheme that the present embodiment is provided, catches image based on double image element detection sensor, can accurately focus, Quick seizure picture rich in detail, resolution is higher.Also, it is not necessary to by dual camera it is only necessary to single camera obtain image Information is assured that the distance between photographic head and testee, higher with respect to existing distance detection method precision.
Embodiment two
The flow chart of the distance measurement method that Fig. 2 provides for the embodiment of the present invention two, as shown in Fig. 2 the present embodiment is upper On the basis of stating each embodiment, optional is that described image information includes: in two parts pixel detection information of single pixel point Phase contrast;Correspondingly, according to described image information, determine that the distance between described photographic head and described testee may include: According to described phase information, determine the distance between each pixel and described testee.
Further, according to described phase information, determine that the distance between described photographic head and described testee can To include: according at least two predeterminable ranges between described photographic head and described testee, and described phase information, Determine the linear relationship between described predeterminable range and described phase information;According to described linear relationship and described pixel Current phase information, determine the distance between described photographic head and described testee.Wherein, described phase information Including: the phase information of the pixel corresponding to the same test point of described testee.
The method of the present embodiment specifically includes:
S210, the image information of the testee being captured based on double image element detection sensor acquisition photographic head.
Wherein, described image information includes: the phase contrast in two parts pixel detection information of single pixel point
S220, according to described phase information, determine the distance between each pixel and described testee.
Optional be, can according to each pixel and described measured surface distance and described phase information between linear pass System, determines described measured surface distance.Specifically, according to described phase information, described photographic head and described measured object are determined The distance between body may include that according at least two predeterminable ranges between described photographic head and described testee, and Described phase information, determines the linear relationship between described predeterminable range and described phase information;According to described linear pass System and the current phase information of described pixel, determine the distance between described photographic head and described testee.Its In, described phase information includes: the phase information of the pixel corresponding to same test point of described testee.
For example, the pixel detection information (pixel detection, pd) being obtained based on double element sensors, in light Road has different light-inletting quantities under tilting.Double element sensors imaging process middle mold intend eyes imaging, therefore, it can obtain Take two parts pixel detection point information of same pixel, defocused before Jiao, phase contrast due to light-inletting quantity change it may occur that Change..In plant produced, two known object distances, odis1, odis2 can be taken.Pixel in object distance is During odis1, define the phase contrast that (pd pixel 1 pd pixel) is this pixel, pixel is odis2 in object distance When, define the phase contrast that (pd pixel 3 pd pixel 2) is this pixel.If y is testee distance, x is phase contrast Information, calculates the linear relationship y=between the distance between described photographic head and described testee and described phase information ax+b.Phase contrast is (the pd pixel 1 pd pixel) that 1 expression object distance is during 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, determine between the distance between each pixel and described testee and phase contrast determination Corresponding relation y=ax+b.The currently detected pd phase difference value of follow-up acquisition, you can according to y=ax+b, obtain object distance y.
Using technique scheme, determined between described photographic head and described testee by described phase information Distance, the phase information of image that can directly be got by double image element detection sensor, determine described photographic head with The distance between described testee, not only can realize single camera range finding, and simple and quick convenience, precision High.
Embodiment three
The flow chart of the distance measurement method that Fig. 3 provides for the embodiment of the present invention three, as shown in figure 3, the present embodiment is upper On the basis of stating each embodiment, optional be described according to described image information, determine described photographic head and described testee it Between distance include: during described camera focusing detect described image definition;Preset when described definition meets The numerical value that motor issues is obtained during condition;According to described issue numerical value determine between described photographic head and described testee away from From.
The method of the present embodiment specifically includes:
S310, the image information of the testee being captured based on double image element detection sensor acquisition photographic head.
S320, during described camera focusing detect described image definition.
The definition of image with and pixel relevant with size, the size of object and the distance between photographic head and object. The image of a lot of frames can be captured during described camera focusing, so that user catches in preview or when shooting picture Grasp more more accurate image informations, farthest reduce testee, accordingly, it would be desirable in described camera focusing process The definition of middle detection described image, to capture the most clearly image.Focusing specifically can be changed and passed through light by mobile eyeglass The route of line, thus changing the position of light focusing and the position of object distance and image distance, meets imaging formula 1/u+1/v=1/f, So that blur-free imaging on imaging surface.In the present embodiment, exemplarily, focusing can include manual focus and auto-focusing, Wherein, auto-focusing can include actively focusing and passively focusing again.
S330, the numerical value that acquisition motor issues when described definition meets pre-conditioned.
In order to obtain image information exactly, so that the result of range measurement is more accurate, described definition can be worked as The numerical value that motor issues is obtained when meeting pre-conditioned.Generally in preferable focus, the image definition of acquisition is higher.Specifically Ground, if the numerical value that acquisition motor issues when described definition meets pre-conditioned may include that the definition of current frame image Less than the definition of the second two field picture, and the definition of described second two field picture is more than the definition of the first two field picture, then obtain The numerical value that motor corresponding to second two field picture issues;Wherein, the second frame is the former frame of described present frame, and the first frame is described The former frame of the second frame.The image of even a certain frame is all more clear than the image of its former frame and a later frame, then by this two field picture be The most clearly image, now obtains the numerical value that motor issues.
Or, pre-conditioned can also be pre-set image clarity threshold.Specifically, preset when described definition meets Obtaining the numerical value that issues of motor during condition can be specifically;Definition described image is detected reaches default clarity threshold When, obtain the numerical value that motor issues.Wherein, clarity threshold can be image border rate of gray level etc..
S340, the distance between described photographic head and described testee are determined according to the described numerical value that issues.
With the change of the definition of image, different from the numerical value that the motor corresponding to image issues.Clear when image When degree determines, the numerical value that motor issues can also be certain, then issue numerical value according to motor and can determine that and issue numerical value with motor The distance between corresponding photographic head and described testee.Specifically, to issue numerical value corresponding with camera lens displacement for motor, Therefore, it can determine the distance between described photographic head and described testee according to camera lens displacement.
On this basis, it is possible to further according to the distance between multiple known photographic head and described testee, Determine camera lens displacement, set up camera lens displacement and measurement distance the distance between (photographic head with described testee) it Between corresponding relation;And set up camera lens displacement and motor issues corresponding relation between numerical value;And then according to camera lens movement away from Issue the corresponding relation between corresponding relation between numerical value, and camera lens displacement and measurement distance from motor, set up horse Reach the corresponding relation issuing between numerical value and measurement distance.
The technical scheme that the embodiment of the present invention is provided, catches image based on double image element detection sensor, can be accurately Focusing, quickly catches picture rich in detail, and resolution is higher.Also, it is not necessary to by dual camera it is only necessary to single camera obtains figure Numerical value that motor when image sharpness meets pre-conditioned issues it is possible to determine the distance between photographic head and testee, Higher with respect to existing distance detection method precision.
On the basis of technique scheme, described photographic head and described testee are being determined according to the described numerical value that issues The distance between after can also include: the distance between described photographic head and described testee are shown in described photographic head View-finder in.Using the technical program, the distance measured is directly displayed in view-finder, so that user intuitively side Just carry out real time inspection.Multiple range measurements may be carried out in view of user, and in order to further facilitate user check and Management, can also prompt the user whether to preserve distance measurement data when user adopts described picture under photographic head shooting, according to The operation of the yes/no of user input, it is determined whether preserve distance measurement data.Wherein, the mode preserving distance measurement data can To be in the image be stored directly in captured testee or corresponding with captured testee in the form of numerical value It is saved in the storage locations such as default file.For example, it may be user is the distance values preserving makes literary composition name by oneself, or The title of person's described numerical value of acquiescence is consistent with the title of captured image to be preserved.
Example IV
The flow chart of the distance measurement method that Fig. 4 provides for the embodiment of the present invention four, as shown in figure 4, the present embodiment is upper On the basis of stating each embodiment, optional is will to be determined between described photographic head and described testee according to the described numerical value that issues Distance is optimized for further: determines current lens displacement according to the described numerical value that issues;According to described current lens movement away from From the distance between the described photographic head of determination and described testee.
The method of the present embodiment specifically includes:
S410, the image information of the testee being captured based on double image element detection sensor acquisition photographic head.
S420, during described camera focusing detect described image definition.
S430, the numerical value that acquisition motor issues when described definition meets pre-conditioned.
S440, current lens displacement is determined according to the described numerical value that issues.
Specifically, determine that current lens displacement includes according to the described numerical value that issues: according to the module of described photographic head In predeterminable range between the nearly coke number, remote coke number, lens focus and photographic head and the object that prestore, determine at least two Camera lens displacement corresponding with described predeterminable range;Ratio according to two described camera lens displacements and described issue number Value, determines current lens displacement.
For example, first, the nearly coke number that prestores 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 When corresponding camera lens displacement.Can be specifically to be counted according to formula y1=((efl*efl)/(10*10-efl)) * 1000 Calculate photographic head and testee distance for camera lens movement during 10cm apart from y1;Similarly, according to formula y2=((efl* Efl)/(500*10-efl)) * 1000 calculate photographic head and testee distance for camera lens movement during 500cm apart from y2;Enter And, calculate the difference of 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 are issued according to ratio l and motor1)/(dac-x1)=l calculates each corresponding camera lens of dac value and moves Dynamic distance value y.
Wherein, y1Represent camera lens movement when photographic head and testee distance are for 10cm apart from lens shift;y2 Represent camera lens movement when photographic head and testee distance are for 10cm apart from lens shift;Efl represents focal length;x1Table Show nearly coke number marco code;x2Represent remote coke number infinite code;Dac represents the numerical value that during focusing, motor issues.
In the present embodiment, because focal length is related 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.
S450, determine the distance between described photographic head and described testee according to described current lens displacement.
Specifically, as described above, current lens displacement can be calculated according to predeterminable range, set up photographic head with described Corresponding relation and camera lens displacement between for the distance between the testee (i.e. tested distance), and then moved according to current lens Dynamic distance determines the distance between described photographic head and described testee.Exemplarily, known to current lens moving distance value y When, can be determined according to focal length and current lens displacement and formula (efl*efl)/(z*10-efl)=y/1000 Go out photographic head and the distance between described testee z.It is understood that when user is shot using mobile terminal, Can be according to photographic head and the distance between described testee the distance between approximate determination mobile terminal and described testee.
The technical scheme that the embodiment of the present invention is provided, catches image based on double image element detection sensor, and then obtains clear The motor that clear degree meets corresponding to pre-conditioned image issues numerical value, issues numerical value determination according to motor and issues corresponding to numerical value Current lens displacement, according to described current lens displacement it is possible to determine between photographic head and testee Distance is it is not necessary to by dual camera, be assured that the distance of required measurement according only to camera lens displacement, simple and convenient, And accurate quick.
Embodiment five
Fig. 5 show a kind of structure chart of distance-measuring device of the embodiment of the present invention five offer, and this device can be by hard The mode of part and/or software is realized, and typically can be independent the configuration method of realizing the present embodiment in the user terminal.As Fig. 5 Shown, described distance-measuring device specifically includes: image information acquisition module 510 and apart from determining module 520.Wherein, image Data obtaining module 510, for obtaining the image letter of the testee that photographic head is captured based on double image element detection sensor Breath;Apart from determining module 520, for according to described image information, determine between described photographic head and described testee away from From.
The technical scheme of the embodiment of the present invention, catches image based on double image element detection sensor, can accurately focus, soon Speed catches picture rich in detail, and resolution is higher.Also, it is not necessary to by dual camera it is only necessary to the image that single camera obtains is believed Breath is assured that the distance between photographic head and testee, higher with respect to existing distance detection method precision.
On the basis of above-described embodiment, described image information mays include: two parts pixel detection letter of single pixel point Phase contrast in breath;Correspondingly, described it is particularly used in apart from determining module 520: according to described phase information, determine described The distance between photographic head and described testee.
On the basis of the various embodiments described above, described it is further used for apart from determining module 520:
According at least two predeterminable ranges between described photographic head and described testee, and described phase contrast letter Breath, determines the linear relationship between described predeterminable range and described phase information;Wherein, described phase information includes: institute State the phase information of the pixel corresponding to same test point of testee;
According to the current phase information of described linear relationship and described pixel, determine described photographic head with described The distance between testee.
Using technique scheme, determined between described photographic head and described testee by described phase information Distance, the phase information of image that can directly be got by double image element detection sensor, determine described photographic head with The distance between described testee, not only can realize single camera range finding, and simple and quick convenience, precision High.
Embodiment six
A kind of structure chart of distance-measuring device that Fig. 6 provides for the embodiment of the present invention six, as shown in fig. 6, in above-mentioned reality On the basis of applying example, this distance-measuring device includes: image information acquisition module 610 and apart from determination sub-module 620.
Alternatively, described include apart from determining module 620: definition detection sub-module 6201, motor issue numerical value and obtain Submodule 6202 and apart from determination sub-module 6203.Wherein, definition detection module 6201, in described camera focusing mistake The definition of described image is detected in journey;Motor issues numerical value acquisition module 6202, for meeting default bar when described definition The numerical value that motor issues is obtained during part;Apart from determination sub-module 6203, for described photographic head is determined according to the described numerical value that issues The distance between with described testee.
The technical scheme of the embodiment of the present invention, catches image based on double image element detection sensor, can accurately focus, soon Speed catches picture rich in detail, and resolution is higher.Also, it is not necessary to by dual camera, be obtained in image clearly by single camera The numerical value that motor when degree meets pre-conditioned issues, determines the distance between photographic head and testee, can carry further The precision of high distance detection method.
Wherein, motor issues numerical value acquisition module 6202 and can be used for: if the definition of current frame image is less than the second frame figure The definition of picture, and the definition of described second two field picture is more than the definition of the first two field picture, then obtain the first two field picture institute The numerical value that corresponding motor issues;Wherein, the second frame is the former frame of described present frame, and the first frame is the previous of described second frame Frame.
On the basis of above-mentioned each technical scheme, apart from determination sub-module 6203 optional be including: camera lens displacement is true Order unit and distance determining unit.Wherein, camera lens displacement determining unit, for determining current mirror according to the described numerical value that issues Head displacement;According to described current lens displacement, distance determining unit, for determining that described photographic head is tested with described The distance between object.
On the basis of above-mentioned each technical scheme, described camera lens displacement determining unit is particularly used in: according to described Predeterminable range between the nearly coke number, remote coke number, lens focus and photographic head and the object that prestore in the module of photographic head, Determine at least two camera lens displacements corresponding with described predeterminable range;Ratio according to two described camera lens displacements with And described issue numerical value, determine current lens displacement.
On the basis of above-mentioned each technical scheme, this distance-measuring device is optional to be also to include: apart from display module 630, For issuing after numerical value determines the distance between described photographic head and described testee according to described, by described photographic head It is shown in the view-finder of described photographic head with the distance between described testee.
Embodiment seven
A kind of terminal that the embodiment of the present invention seven provides.This terminal includes the range measurement described in any embodiment of the present invention Device, can carry out range measurement by executing the distance measurement method of any embodiment of the present invention.
Exemplary, the mobile terminal in the present embodiment concretely join by mobile phone, panel computer and digital camera etc. 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.
Image is caught based on double image element detection sensor, can accurately focus, quickly catch picture rich in detail, resolution is more High.Also, it is not necessary to by dual camera it is only necessary to single camera obtains under motor when image definition meets pre-conditioned The numerical value sent out is it is possible to determine the distance between photographic head and testee, with respect to existing distance detection method precision Higher.
The distance-measuring device providing in the embodiment of the present invention and terminal can perform what any embodiment of the present invention was provided Distance measurement method, possesses the execution corresponding functional module of the method and beneficial effect.Not detailed description in the above-described embodiments Ins and outs, can be found in the distance measurement method that any embodiment of the present invention is provided.
Embodiment eight
The structural representation of the terminal that Fig. 7 provides for the embodiment of the present invention eight.As shown in fig. 7, the end of the embodiment of the present invention End includes: memorizer 710, one or more processors 720 and one or more program 730.
Wherein, one or more of programs 730 execute above-described embodiment when being executed by one or more processors 720 In any one method.
The terminal of the embodiment of the present invention, catches image based on double image element detection sensor, can accurately focus, quickly catch Catch picture rich in detail, resolution is higher.Also, it is not necessary to by dual camera it is only necessary to single camera obtain image information just Can determine the distance between photographic head and testee, higher with respect to existing distance detection method precision.
Embodiment nine
The structural representation of the computer program for range measurement that Fig. 8 provides for the embodiment of the present invention nine.As Fig. 8 institute Show that the computer program 810 for range measurement of the embodiment of the present invention can include signal bearing medium 820.Signal Bearing medium 820 can include one or more instructions 830, and when by such as computing device, processor can for this instruction 830 To provide the function above in relation to Fig. 1-6 description.For example, instruction 830 be may include that for being obtained based on double image element detection sensor Take one or more instructions of the image information of testee that photographic head captured;And for according to described image information Determine one or more instructions of described photographic head and the distance between described testee.Thus, for example, with reference to Fig. 5 and Tu 6, distance-measuring device can carry out one or more of step shown in Fig. 1 in response to instruction 830.
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..In some realizations In, signal bearing medium 820 can include communication media 860, such as, but not limited to numeral and/or analogue communication medium (for example, Optical fiber cable, waveguide, wired communications links, wireless communication link etc.).
The computer program of the embodiment of the present invention, obtains what photographic head was captured based on double image element detection sensor The image information of testee;According to described image information, determine the distance between described photographic head and described testee.This The computer program of invention is based on double image element detection sensor and catches image, can accurately focus, and it is clear quickly to catch Image, resolution is higher.Also, it is not necessary to by dual camera it is only necessary to the image information that obtains of single camera is it is possible to really Determine the distance between photographic head and testee, higher with respect to existing distance detection method precision.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can Mode by software plus necessary general hardware platform to be realized naturally it is also possible to pass through hardware.Based on such understanding, on That states that technical scheme substantially contributes to prior art in other words partly can be embodied in 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 Order is with so that a computer equipment (can be personal computer, server, or network equipment etc.) executes each enforcement Example or some partly described methods of embodiment.
Finally it is noted that various embodiments above, only in order to technical scheme to be described, is not intended to limit;To the greatest extent Pipe has been described in detail to the present invention with reference to foregoing embodiments, it will be understood by those within the art that: its according to So the technical scheme described in foregoing embodiments can be modified, or wherein some or all of technical characteristic is entered Row equivalent;And these modifications or replacement, do not make the essence of appropriate technical solution depart from various embodiments of the present invention technology The scope of scheme.

Claims (16)

1. a kind of distance measurement method is it is characterised in that include:
Obtain the image information of the testee that photographic head is captured based on double image element detection sensor;
According to described image information, determine the distance between described photographic head and described testee.
2. distance measurement method according to claim 1 is it is characterised in that described image information includes: single pixel point Two parts pixel detection information in phase contrast;
Correspondingly, according to described image information, determine that the distance between described photographic head and described testee include:
According to described phase information, determine the distance between each pixel and described testee.
3. distance measurement method according to claim 2 is it is characterised in that according to described phase information, determine described Photographic head and the inclusion of the distance between described testee:
According at least two predeterminable ranges between described photographic head and described testee, and described phase information, really Fixed linear relationship between described predeterminable range and described phase information;Wherein, described phase information includes: described tested The phase information of the pixel corresponding to same test point of object;
According to the current phase information of described linear relationship and described pixel, determine that described photographic head is tested with described The distance between object.
4. distance measurement method according to claim 1 it is characterised in that described according to described image information, determine institute State the distance between photographic head and described testee to include:
The definition of described image is detected during described camera focusing;
Obtain the numerical value that motor issues when described definition meets pre-conditioned;
The distance between described photographic head and described testee are determined according to the described numerical value that issues.
5. distance measurement method according to claim 4 it is characterised in that described when described definition meet pre-conditioned When obtain the numerical value that issues of motor and include:
If the definition of current frame image is less than the definition of the second two field picture, and the definition of described second two field picture is more than the The definition of one two field picture, then obtain the numerical value that the motor corresponding to the second two field picture issues;
Wherein, the second frame is the former frame of described present frame, and the first frame is the former frame of described second frame.
6. distance measurement method according to claim 4 is it is characterised in that determine described shooting according to the described numerical value that issues Head and the inclusion of the distance between described testee:
Current lens displacement is determined according to the described numerical value that issues;
The distance between described photographic head and described testee are determined according to described current lens displacement.
7. distance measurement method according to claim 6 determines currently it is characterised in that issuing numerical value described in described basis Camera lens displacement includes:
Nearly coke number, remote coke number, lens focus and at least two photographic head prestoring in module according to described photographic head Predeterminable range and object between, determines at least 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.
8. according to the arbitrary described distance measurement method of claim 1-7 it is characterised in that issuing numerical value described in described basis Also include after determining the distance between described photographic head and described testee:
The distance between described photographic head and described testee are shown in the view-finder of described photographic head.
9. a kind of distance-measuring device is it is characterised in that include:
Image information acquisition module, for obtaining the figure of the testee that photographic head is captured based on double image element detection sensor As information;
Apart from determining module, for according to described image information, determining the distance between described photographic head and described testee.
10. distance-measuring device according to claim 9 is it is characterised in that described image information includes: single pixel point Two parts pixel detection information in phase contrast;
Correspondingly, described apart from determining module specifically for:
According to described phase information, determine the distance between described photographic head and described testee.
11. distance-measuring devices according to claim 10 are it is characterised in that described use further apart from determining module In:
According at least two predeterminable ranges between described photographic head and described testee, and described phase information, really Fixed linear relationship between described predeterminable range and described phase information;Wherein, described phase information includes: described tested The phase information of the pixel corresponding to same test point of object;
According to the current phase information of described linear relationship and described pixel, determine that described photographic head is tested with described The distance between object.
12. distance-measuring devices according to claim 9 are it is characterised in that described include apart from determining module:
Definition detection sub-module, for detecting the definition of described image during described camera focusing;
Motor issues numerical value acquisition submodule, for obtaining the numerical value that motor issues when described definition meets pre-conditioned;
Apart from determination sub-module, for according to described issue numerical value determine between described photographic head and described testee away from From.
13. distance-measuring devices according to claim 12 are it is characterised in that motor issues numerical value acquisition submodule use In:
If the definition of current frame image is less than the definition of the second two field picture, and the definition of described second two field picture is more than the The definition of one two field picture, then obtain the numerical value that the motor corresponding to the first two field picture issues;
Wherein, the second frame is the former frame of described present frame, and the first frame is the former frame of described second frame.
14. distance-measuring devices according to claim 12 are it is characterised in that include apart from determination sub-module:
Camera lens displacement determining unit, for determining current lens displacement according to the described numerical value that issues;
Distance determining unit, for determining between described photographic head and described testee according to described current lens displacement Distance.
15. distance-measuring devices according to claim 14 are it is characterised in that described camera lens displacement determining unit has Body is used for:
The nearly coke number, remote coke number, lens focus and the photographic head that prestore in module according to described photographic head and object it Between predeterminable range, determine at least 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.
16. according to the arbitrary described distance-measuring device of claim 9-15 it is characterised in that also including:
Apart from display module, for the distance between described photographic head and described testee are being determined according to the described numerical value that issues Afterwards, the distance between described photographic head and described testee are shown in the view-finder of described photographic head.
CN201610806910.8A 2016-09-06 2016-09-06 Distance measurement method and distance measurement device Pending CN106353747A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610806910.8A CN106353747A (en) 2016-09-06 2016-09-06 Distance measurement method and distance measurement device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610806910.8A CN106353747A (en) 2016-09-06 2016-09-06 Distance measurement method and distance measurement device

Publications (1)

Publication Number Publication Date
CN106353747A true CN106353747A (en) 2017-01-25

Family

ID=57859336

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610806910.8A Pending CN106353747A (en) 2016-09-06 2016-09-06 Distance measurement method and distance measurement device

Country Status (1)

Country Link
CN (1) CN106353747A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107255812A (en) * 2017-06-30 2017-10-17 努比亚技术有限公司 Speed-measuring method, mobile terminal and storage medium based on 3D technology
CN108180838A (en) * 2017-12-14 2018-06-19 南京弹簧有限公司 A kind of measuring method of steel pipe kerve Edge Distance
CN108931191A (en) * 2018-06-01 2018-12-04 普联技术有限公司 Distance measuring method, dimension measurement method and terminal
CN109239698A (en) * 2018-08-02 2019-01-18 华勤通讯技术有限公司 Camera distance measuring method and electronic equipment
CN111866369A (en) * 2020-05-28 2020-10-30 北京迈格威科技有限公司 Image processing method and device
CN112351196A (en) * 2020-09-22 2021-02-09 北京迈格威科技有限公司 Image definition determining method, image focusing method and device
CN114674276A (en) * 2022-03-25 2022-06-28 南京汇川图像视觉技术有限公司 Distance measuring method, machine vision system and storage medium
US11758288B2 (en) 2020-10-21 2023-09-12 Samsung Electronics Co., Ltd. Device for improving image resolution in camera system having lens that permits distortion and operation method thereof
CN116847194A (en) * 2023-09-01 2023-10-03 荣耀终端有限公司 Focusing method and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004109690A (en) * 2002-09-19 2004-04-08 Canon Inc Camera system and camera
JP2010091709A (en) * 2008-10-07 2010-04-22 Canon Inc Automatic focusing apparatus
CN102761700A (en) * 2011-04-29 2012-10-31 国际商业机器公司 Shooting device and method for obtaining distance between different points on shot object
CN105007420A (en) * 2015-07-14 2015-10-28 广东欧珀移动通信有限公司 Focusing method and mobile terminal
CN105247851A (en) * 2013-05-24 2016-01-13 三星电子株式会社 Imaging sensor capable of phase difference focus detection cross-reference to related patent application
JP2016092594A (en) * 2014-11-04 2016-05-23 キヤノン株式会社 Imaging device and driving method of solid state image sensor

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004109690A (en) * 2002-09-19 2004-04-08 Canon Inc Camera system and camera
JP2010091709A (en) * 2008-10-07 2010-04-22 Canon Inc Automatic focusing apparatus
CN102761700A (en) * 2011-04-29 2012-10-31 国际商业机器公司 Shooting device and method for obtaining distance between different points on shot object
CN105247851A (en) * 2013-05-24 2016-01-13 三星电子株式会社 Imaging sensor capable of phase difference focus detection cross-reference to related patent application
JP2016092594A (en) * 2014-11-04 2016-05-23 キヤノン株式会社 Imaging device and driving method of solid state image sensor
CN105007420A (en) * 2015-07-14 2015-10-28 广东欧珀移动通信有限公司 Focusing method and mobile terminal

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
佳能: "《https://www.canon.com.tw/about/NewsDetail.aspx?NID=000424&year=2013》", 2 July 2013 *
尤玉虎 等: "基于图像处理的自动对焦技术综述", 《激光雨红外》 *

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107255812A (en) * 2017-06-30 2017-10-17 努比亚技术有限公司 Speed-measuring method, mobile terminal and storage medium based on 3D technology
CN108180838A (en) * 2017-12-14 2018-06-19 南京弹簧有限公司 A kind of measuring method of steel pipe kerve Edge Distance
CN108931191A (en) * 2018-06-01 2018-12-04 普联技术有限公司 Distance measuring method, dimension measurement method and terminal
CN109239698B (en) * 2018-08-02 2022-12-20 华勤技术股份有限公司 Camera ranging method and electronic equipment
CN109239698A (en) * 2018-08-02 2019-01-18 华勤通讯技术有限公司 Camera distance measuring method and electronic equipment
CN111866369A (en) * 2020-05-28 2020-10-30 北京迈格威科技有限公司 Image processing method and device
CN111866369B (en) * 2020-05-28 2022-08-02 北京迈格威科技有限公司 Image processing method and device
CN112351196A (en) * 2020-09-22 2021-02-09 北京迈格威科技有限公司 Image definition determining method, image focusing method and device
US11758288B2 (en) 2020-10-21 2023-09-12 Samsung Electronics Co., Ltd. Device for improving image resolution in camera system having lens that permits distortion and operation method thereof
CN114674276A (en) * 2022-03-25 2022-06-28 南京汇川图像视觉技术有限公司 Distance measuring method, machine vision system and storage medium
CN114674276B (en) * 2022-03-25 2024-02-23 南京汇川图像视觉技术有限公司 Distance measurement method, machine vision system, and storage medium
CN116847194A (en) * 2023-09-01 2023-10-03 荣耀终端有限公司 Focusing method and electronic equipment
CN116847194B (en) * 2023-09-01 2023-12-08 荣耀终端有限公司 Focusing method and electronic equipment

Similar Documents

Publication Publication Date Title
CN106353747A (en) Distance measurement method and distance measurement device
US20230262324A1 (en) Real time assessment of picture quality
US8995785B2 (en) Light-field processing and analysis, camera control, and user interfaces and interaction on light-field capture devices
US9456141B2 (en) Light-field based autofocus
KR102143456B1 (en) Depth information acquisition method and apparatus, and image collection device
JP6124184B2 (en) Get distances between different points on an imaged subject
US20130223759A1 (en) Image processing method and device, and program
US9891050B2 (en) Measuring device having a function for calibrating a display image position of an electronic reticle
CN106225687A (en) The measuring method of dimension of object and device
US8698943B2 (en) Imaging apparatus and distance measurement method
US20070189750A1 (en) Method of and apparatus for simultaneously capturing and generating multiple blurred images
CN109557669B (en) Method for determining image drift amount of head-mounted display equipment and head-mounted display equipment
US20050270410A1 (en) Image pickup apparatus and image pickup method
US9509943B2 (en) Lens apparatus and a camera system
US20130201301A1 (en) Method and System for Automatic 3-D Image Creation
CN101183206A (en) Method for calculating distance and actuate size of shot object
WO2011125937A1 (en) Calibration data selection device, method of selection, selection program, and three dimensional position measuring device
CN106289118A (en) The detection method of surface smoothness, device and terminal
JPWO2017077906A1 (en) Information processing apparatus, information processing method, and program
CN108362479A (en) A kind of determination method of virtual image image distance measuring system and virtual image image distance
JP2012015642A (en) Imaging device
JP2006323172A (en) Focusing information obtaining apparatus
WO2022126430A1 (en) Auxiliary focusing method, apparatus and system
JP6534455B2 (en) INFORMATION PROCESSING APPARATUS, INFORMATION PROCESSING METHOD, AND PROGRAM
CN115861741B (en) Target calibration method and device, electronic equipment, storage medium and vehicle

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170125