CN106197366A - The treating method and apparatus of range information - Google Patents

The treating method and apparatus of range information Download PDF

Info

Publication number
CN106197366A
CN106197366A CN201610630453.1A CN201610630453A CN106197366A CN 106197366 A CN106197366 A CN 106197366A CN 201610630453 A CN201610630453 A CN 201610630453A CN 106197366 A CN106197366 A CN 106197366A
Authority
CN
China
Prior art keywords
photographic head
distance
testee
determines
image
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
CN201610630453.1A
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.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201610630453.1A priority Critical patent/CN106197366A/en
Publication of CN106197366A publication Critical patent/CN106197366A/en
Priority to PCT/CN2017/073525 priority patent/WO2018023961A1/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C3/00Measuring distances in line of sight; Optical rangefinders

Landscapes

  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Studio Devices (AREA)
  • Measurement Of Optical Distance (AREA)

Abstract

The invention discloses the treating method and apparatus of a kind of range information.Wherein, the method includes: utilize photographic head to focus testee;After focusing completes, photographic head determines the image distance of testee;Photographic head, according to image distance, determines the distance of photographic head and testee.The present invention solves the technical problem that in prior art, mobile phone range finding accuracy rate is low.

Description

The treating method and apparatus of range information
Technical field
The present invention relates to field of information processing, in particular to the treating method and apparatus of a kind of range information.
Background technology
Mobile phone distance measuring method of the prior art, generally comprising two kinds: one is to utilize GPS to carry out mobile phone range finding;Two be Infrared inductor is set near mobile phone camera, utilizes infrared inductor to carry out mobile phone range finding.
From the point of view of mode one, utilize GPS to carry out mobile phone range finding, due to himself limitation, be only used on horizontal plane Range measurement, and if distance is the least, application condition is big, typically requires that the object distance with mobile phone is not less than 100 meters.Right From the point of view of mode two, utilizing infrared inductor to carry out mobile phone range finding, its principle is that mobile phone sends infrared light, measured object After receiving infrared light, infrared light is reflected, at this time, the reflected signal of the sensor detecting testee of mobile phone, process Device calculates from issuing a signal to detect the time of reflected signal, thus infers the distance of object and mobile phone, owing to mobile phone sends Light source the most disturbed or reflect, cause sensor cannot detect infrared signal, and, during due to the propagation of light Between the shortest, it is easy to error occurs.
For the problem that mobile phone range finding accuracy rate in prior art is low, effective solution is the most not yet proposed.
Summary of the invention
Embodiments provide the treating method and apparatus of a kind of range information, at least to solve hands in prior art The technical problem that machine range finding accuracy rate is low.
An aspect according to embodiments of the present invention, it is provided that the processing method of a kind of range information, including: utilize shooting Testee is focused by head;After focusing completes, determine the image distance of described testee;According to described image distance, determine Described photographic head and the distance of described testee.
Further, described method also includes: after focusing described testee, if at described photographic head The definition of image is presented higher than predetermined threshold, it is determined that focused on imageing sensor.
Further, it is determined that the image distance of described testee includes: at described photographic head, described testee is being carried out During focusing, gather the movable information of camera lens in described photographic head;The movable information utilizing described camera lens determines described picture Away from.
Further, described image distance includes to utilize the movable information of described camera lens to determine: utilize described photographic head electromagnetic wire Image distance v=A × the I+v of testee described in the Current calculation of circle0, wherein, A is the first constant, and I represents described solenoid Electrical current, v0Being the second constant, the movable information of the described camera lens electric current of described solenoid represents.
Further, before testee is focused by photographic head, described method also includes: measure described photographic head With the distance of predetermined object, wherein, the distance between described photographic head and described predetermined object pre-sets;The most described First distance of photographic head measurement and the second distance pre-set;Difference in described first distance with described second distance surpasses In the case of crossing predetermined threshold, determine corrected parameter based on described difference;Utilize the first constant described in described corrected parameter correction And/or second constant.
Further, according to described image distance, determine that described photographic head includes with the distance of described testee: calculate described Photographic head and the distance of described testeeWherein, v represents described image distance;F represents that described photographic head is to described quilt Survey the focal length that object carries out focusing.
Further, described photographic head is the photographic head of mobile device.
Another aspect according to embodiments of the present invention, additionally provides the processing means of a kind of range information, including: focusing is single Unit, is used for utilizing photographic head to focus testee;First determines unit, for after focusing completes, determines described The image distance of testee;Second determines unit, for according to described image distance, determine described photographic head and described testee away from From.
Further, described device also includes: detector unit, is used for after focusing described testee, if The imageing sensor of described photographic head presents the definition of image higher than predetermined threshold, it is determined that focused.
Further, described first determines that unit includes: acquisition module, is used at described photographic head to described measured object During body is focused, gather the movable information of camera lens in described photographic head;First determines module, is used for utilizing described mirror The movable information of head determines described image distance.
Further, described first determines that module includes: first determines submodule, is used for utilizing described photographic head electromagnetic wire Image distance v=A × the I+v of testee described in the Current calculation of circle0, wherein, A is the first constant, and I represents described solenoid Electrical current, v0Being the second constant, the movable information of the described camera lens electric current of described solenoid represents.
Further, before testee is focused by photographic head, described device also includes: measuring unit, is used for Measuring the distance of described photographic head and predetermined object, wherein, the distance between described photographic head and described predetermined object is in advance Arrange;Comparing unit, for the first distance and the second distance pre-set of relatively described photographic head measurement;Obtain single Unit, in the case of the difference of described first distance with described second distance exceedes predetermined threshold, true based on described difference Determine corrected parameter;Amending unit, is used for utilizing the first constant and/or the second constant described in described corrected parameter correction.
Further, described second determines that unit includes: the second calculating sub module, is used for calculating described photographic head with described The distance of testeeWherein, v represents described image distance;It is right that f represents that described testee is carried out by described photographic head Burnt focal length.
Further, described photographic head is the photographic head of mobile device.
Pass through the above embodiment of the present invention, it is possible to use testee is focused by photographic head, to obtain testee To the defocused picture projecting generation on the image sensor, and after focusing completes, determined the picture of testee by photographic head Away from, by the image distance of testee, to determine the distance of photographic head and testee.Use the above embodiment of the present invention, permissible Utilize the image distance of testee to determine the distance of testee and photographic head, utilize photographic head to measure between testee Distance, can with the distance in measurement space, and photographic head carry out testee can't be disturbed in focus process, improve The accuracy of range measurement, solves the problem that in prior art, mobile phone range finding accuracy rate is low.
Further, above-described embodiment is passed through, it is achieved that utilize mobile phone camera can detect between object and photographic head The purpose of distance, and then facilitate user and know the distance of self and other objects, it is also possible to solve mobile phone range finding accurately The problem that rate is low.
Accompanying drawing explanation
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the part of the application, this Bright schematic description and description is used for explaining the present invention, is not intended that inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of the processing method of a kind of range information according to embodiments of the present invention;
Fig. 2 is that one according to embodiments of the present invention is optionally focused schematic diagram;
Fig. 3 is the schematic diagram of the processing means of a kind of range information according to embodiments of the present invention.
Detailed description of the invention
In order to make those skilled in the art be more fully understood that the present invention program, below in conjunction with in the embodiment of the present invention Accompanying drawing, is clearly and completely described the technical scheme in the embodiment of the present invention, it is clear that described embodiment is only The embodiment of a present invention part rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill people The every other embodiment that member is obtained under not making creative work premise, all should belong to the model of present invention protection Enclose.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, " Two " it is etc. for distinguishing similar object, without being used for describing specific order or precedence.Should be appreciated that so use Data can exchange in the appropriate case, in order to embodiments of the invention described herein can with except here diagram or Order beyond those described is implemented.Additionally, term " includes " and " having " and their any deformation, it is intended that cover Cover non-exclusive comprising, such as, contain series of steps or the process of unit, method, system, product or equipment are not necessarily limited to Those steps clearly listed or unit, but can include the most clearly listing or for these processes, method, product Or intrinsic other step of equipment or unit.
According to embodiments of the present invention, it is provided that the embodiment of the method for the processing method of a kind of range information, explanation is needed It is can to perform in the computer system of such as one group of computer executable instructions in the step shown in the flow chart of accompanying drawing, And, although show logical order in flow charts, but in some cases, can perform with the order being different from herein Shown or described step.
Fig. 1 is the flow chart of the processing method of range information according to embodiments of the present invention, as it is shown in figure 1, the method bag Include following steps:
Step S102, utilizes photographic head to focus testee;
Step S104, after focusing completes, determines the image distance of testee;
Step S106, according to image distance, determines the distance of photographic head and testee.
Pass through the above embodiment of the present invention, it is possible to use testee is focused by photographic head, to obtain testee To the defocused picture projecting generation on the image sensor, and after focusing completes, determined the picture of testee by photographic head Away from, by the image distance of testee, to determine the distance of photographic head and testee.Use the above embodiment of the present invention, permissible Utilize the image distance of testee to determine the distance of testee and photographic head, utilize photographic head to measure between testee Distance, can with the distance in measurement space, and photographic head carry out testee can't be disturbed in focus process, improve The accuracy of range measurement, solves the problem that in prior art, mobile phone range finding accuracy rate is low.
Further, above-described embodiment is passed through, it is achieved that utilize mobile phone camera can detect between object and photographic head The purpose of distance, and then facilitate user and know the distance of self and other objects, it is also possible to solve mobile phone range finding accurately The problem that rate is low.
Above-mentioned photographic head can be CCD (Charge Coupled Device, i.e. charge coupled device) photographic head, it is also possible to For CMOS (Complementary Metal-Oxide Semiconductor, i.e. metal oxide semiconductor device) photographic head. Above-mentioned testee can be live body (including humans and animals), it is also possible to for not being live body (such as photo, desk etc.).
Testee is focused and specifically can be accomplished in that by above-mentioned photographic head
In an optional embodiment, after the camera lens of photographic head captures the most original image, these view data Raw data can be taken as to be sent in ISP (Image Signal Processing, i.e. image-signal processor), now ISP Just being analyzed raw image data, the density variation between check image adjacent pixels, between ISP is according to adjacent pixels Density variation adjusts the distance of camera lens and imageing sensor, passes through tracking shot so that testee shape on the image sensor Become to project clearly, and then realize the photographic head focusing to testee.
In another optional embodiment, ISP adjusts camera lens according to the density variation between adjacent pixels and passes with image The distance of sensor, by push-and-pull imageing sensor so that testee is formed on the image sensor and projects clearly, Jin Ershi The existing photographic head focusing to testee.
Above-mentioned imageing sensor is including, but not limited to ccd sensor, cmos sensor and CIS sensor.
Further, after focusing completes, photographic head determines the image distance of testee, and above-mentioned image distance can be photographic head Distance between imageing sensor and camera lens.And photographic head is according to the image distance obtained, determine photographic head and testee away from From.Fig. 2 is the example that photographic head carries out focusing.
In fig. 2, the camera lens J1 of photographic head, after capturing testee W1, carries out auto-focusing to testee W1, Make on imageing sensor T1, to form an image clearly by the camera lens of push-and-pull video camera.
Use the above embodiment of the present invention, it is possible to use photographic head realizes finding range object, and distance-finding method is the most just Prompt.
According to the above embodiment of the present invention, method also includes: after focusing testee, if at photographic head The definition of image is presented higher than predetermined threshold, it is determined that focused on imageing sensor.
Above-mentioned threshold value can pre-set.
Optionally, after focusing testee, the projection of imageing sensor is analyzed by ISP, it is judged that on Whether the definition stating projection picture is higher than predetermined threshold, is judging the definition situation higher than predetermined threshold of projection picture Under, determine that the focusing of testee completes.
Use the above embodiment of the present invention, by judging that the definition presenting image on imageing sensor is higher than predetermined threshold Value, determines whether that focusing completes, has preferably reached the purpose of accurate focusing.
According to the above embodiment of the present invention, determine that the image distance of testee includes: at photographic head, testee is being carried out During focusing, the movable information of camera lens in acquisition camera;The movable information utilizing camera lens determines image distance.
Concrete, at photographic head during testee is focused, can be by camera lens in acquisition camera Movable information determine the image distance of testee, thus determine the distance of photographic head and testee according to image distance, reach The purpose of range finding can be realized with photographic head.
Concrete, utilize the movable information of camera lens to determine that image distance includes: to utilize the Current calculation quilt of photographic head solenoid Survey the image distance v=A × I+v of object0, wherein, A is the first constant, and I represents the electrical current of solenoid, v0It is the second constant, The electric current of the movable information solenoid of camera lens represents.
Such as, the focusing of photographic head is to rely on spring to promote camera lens by solenoid, makes testee at image sensing Device is formed image clearly.Photographic head is in the case of idle, and the initial position of spring is v0, v0It is the second constant, is taking the photograph When starting working as head, according to spring deformation formula: F=kx, wherein, F is the power making spring deformation, and k is spring deformation constant, X is spring deformation length, can obtain distance v=F+v of camera lens and imageing sensor0=kx+v0
Again by Ampere force formula: F=B × I × L × sin θ, wherein, F is the power (i.e. Ampere force) making spring deformation, and B is Magnetic flux, I is the electrical current of solenoid, and L is solenoid conductor length, and θ is the angle of solenoid.Due in shooting In Tou, B, L, θ are definite value, it can be assumed that A=B × L × sin θ, and wherein, A is the first constant, thus can obtain F=A × I.
To sum up can obtain, F=kx=A × I, then camera lens and distance (i.e. image distance) v=F+v of imageing sensor0=A × I+v0
Use the above embodiment of the present invention, the picture of testee can be calculated by the electric current of photographic head solenoid Away from, simplify computing, implement more convenient.
Optionally, before testee is focused by photographic head, method also includes: measure photographic head and predetermined object Distance, wherein, the distance between photographic head and predetermined object pre-sets;The first distance that relatively photographic head is measured with The second distance pre-set;In the case of the difference of the first distance with second distance exceedes predetermined threshold, true based on difference Determine corrected parameter;Utilize corrected parameter correction the first constant and/or the second constant.
Owing to the photographic head of different model exists certain diversity, its first constant and the second constant also can exist necessarily Difference, it is possible to utilize fixed value that mobile phone camera is calibrated.In measuring interface, such as preset calibration option, enter After Calibration interface, multiple fixed range can be selected to calibrate, such as, set tri-calibration values of 1m, 5m, 20m, calibrate After i.e. may utilize photographic head and carry out range measurement.
Use the above embodiment of the present invention, can ensure that first is normal by correcting the first constant and the second constant in advance Number and the accuracy of the second constant, and by the first constant after correction and the second constant, the distance of testee is counted Calculate, improve the accuracy of photographic head range finding to a certain extent.
Concrete, according to image distance, determine that photographic head includes with the distance of testee: calculate the distance of testeeWherein, v represents image distance;F represents the focal length that testee is focused by photographic head.
According to Gaussian imaging equationWherein, u is the distance of testee, and v is camera lens and imageing sensor Distance (i.e. image distance), f is focal length (i.e. camera lens is to the distance of focus), and for the photographic head of tight shot, its focal distance f is fixing Value.The most above-mentioned Gauss formula can be evolved intoTherefore, it can according to image distance, carry out calculating to testee Distance.
Concrete, can be by image distance v=A × I+v0Bring the distance of testee intoCan obtain:
u = u ( A × I + v 0 ) f - ( A × I + v 0 ) .
Therefore, it can the relational expression utilized between the electrical current of solenoid and the distance of testee, be calculated The distance (i.e. distance between testee and camera lens) of testee, has reached to utilize photographic head to carry out the purpose found range, and And the distance of testee it is calculated by the electrical current of solenoid, method is relatively simple.
Optionally, in fig. 2, overcome the elastic force of spring by camera lens for producing enough magnetic force, set and promote camera lens so that When testee forms picture rich in detail on the image sensor, as camera lens and imageing sensor 167.66mm apart, now survey The distance of the testee obtained is 2297mm;As camera lens and imageing sensor 259.91mm apart, the measured object now recorded The distance of body is 3297mm.
It should be noted that the distance (i.e. image distance) of above-mentioned camera lens and imageing sensor is for image effect, typically can be little In 10mm.
Use the above embodiment of the present invention, free focusing can be carried out by many testees, and based on testee Image distance obtains the distance of testee, has reached to utilize photographic head to carry out the purpose found range.
Optionally, photographic head is the photographic head of mobile device.
Above-mentioned mobile device is including, but not limited to mobile phone and flat board.Above-mentioned photographic head can be the built-in of mobile device Photographic head, it is also possible to for the external camera of mobile device.
Use the above embodiment of the present invention, in the case of not having specialty to measure distance, it is possible to use taking the photograph of mobile device As head carries out range measurement, facilitate mobile device user and know the distance of self and other objects.
According to a further aspect in the invention, present invention also offers the processing means of a kind of range information, Fig. 3 is according to this The schematic diagram of the processing means of a kind of range information of inventive embodiments, this device may include that
Focusing unit 301, is used for utilizing photographic head to focus testee;
First determines unit 303, for after focusing completes, determines the image distance of testee;
Second determines unit 305, for according to image distance, determines the distance of photographic head and testee.
Pass through the above embodiment of the present invention, it is possible to use testee is focused by photographic head, to obtain testee To the defocused picture projecting generation on the image sensor, and after focusing completes, determined the picture of testee by photographic head Away from, by the image distance of testee, to determine the distance of photographic head and testee.Use the above embodiment of the present invention, permissible Utilize the image distance of testee to determine the distance of testee and photographic head, utilize photographic head to measure between testee Distance, can with the distance in measurement space, and photographic head carry out testee can't be disturbed in focus process, improve The accuracy of range measurement, solves the problem that in prior art, mobile phone range finding accuracy rate is low.
Further, above-described embodiment is passed through, it is achieved that utilize mobile phone camera can detect between object and photographic head The purpose of distance, and then facilitate user and know the distance of self and other objects, it is also possible to solve mobile phone range finding accurately The problem that rate is low.
Above-mentioned photographic head can be CCD (Charge Coupled Device, i.e. charge coupled device) photographic head, it is also possible to For CMOS (Complementary Metal-Oxide Semiconductor, i.e. metal oxide semiconductor device) photographic head. Above-mentioned testee can be biological, it is also possible to for abiotic, it is possible to further be regular shape, it is also possible to for irregularly Shape.
Testee is focused and specifically can be accomplished in that by above-mentioned photographic head
In an optional embodiment, after the camera lens of photographic head captures the most original image, these view data Raw data can be taken as to be sent in ISP (Image Signal Processing, i.e. image-signal processor), now ISP Just being analyzed raw image data, the density variation between check image adjacent pixels, between ISP is according to adjacent pixels Density variation adjusts the distance of camera lens and imageing sensor, passes through tracking shot so that testee shape on the image sensor Become to project clearly, and then realize the photographic head focusing to testee.
In another optional embodiment, ISP adjusts camera lens according to the density variation between adjacent pixels and passes with image The distance of sensor, by push-and-pull imageing sensor so that testee is formed on the image sensor and projects clearly, Jin Ershi The existing photographic head focusing to testee.
Above-mentioned imageing sensor is including, but not limited to ccd sensor, cmos sensor and CIS sensor.
Further, after focusing completes, photographic head determines the image distance of testee, and above-mentioned image distance can be photographic head Distance between imageing sensor and camera lens.And photographic head is according to the image distance obtained, determine photographic head and testee away from From.Fig. 2 is the example that photographic head carries out focusing.
In fig. 2, the camera lens J1 of photographic head, after capturing testee W1, carries out auto-focusing to testee W1, Make on imageing sensor T1, to form an image clearly by the camera lens of push-and-pull video camera.
Use the above embodiment of the present invention, it is possible to use photographic head realizes finding range object, and distance-finding method is the most just Prompt.
According to the above embodiment of the present invention, device also includes: detector unit, for testee is being focused it After, if presenting the definition of image on the imageing sensor of photographic head higher than predetermined threshold, it is determined that focused.
Use the above embodiment of the present invention, by judging that the definition presenting image on imageing sensor is higher than predetermined threshold Value, determines whether that focusing completes, has preferably reached the purpose of accurate focusing.
According to the above embodiment of the present invention, first determines that unit includes: acquisition module, is used at photographic head to measured object During body is focused, the movable information of camera lens in acquisition camera;First determines module, for utilizing the motion of camera lens Information determines image distance.
Concrete, at photographic head during testee is focused, can be by camera lens in acquisition camera Movable information determine the image distance of testee, thus determine the distance of photographic head and testee according to image distance, reach The purpose of range finding can be realized with photographic head.
Concrete, first determines that module includes: first determines submodule, for utilizing the galvanometer of photographic head solenoid Calculate the image distance v=A × I+v of testee0, wherein, A is the first constant, and I represents the electrical current of solenoid, v0It is second normal Number, the electric current of the movable information solenoid of camera lens represents.
Use the above embodiment of the present invention, the picture of testee can be calculated by the electric current of photographic head solenoid Away from, simplify computing, implement more convenient.
Optionally, before testee is focused by photographic head, device also includes: measuring unit, takes the photograph for measurement As the distance of head with predetermined object, wherein, the distance between photographic head and predetermined object pre-sets;Comparing unit, uses In comparing the first distance and the second distance pre-set that photographic head is measured;Acquiring unit, in the first distance and second In the case of the difference of distance exceedes predetermined threshold, determine corrected parameter based on difference;Amending unit, is used for utilizing corrected parameter Revise the first constant and/or the second constant.
Use the above embodiment of the present invention, can ensure that first is normal by correcting the first constant and the second constant in advance Number and the accuracy of the second constant, and by the first constant after correction and the second constant, the distance of testee is counted Calculate, improve the accuracy of photographic head range finding to a certain extent.
Concrete, second determines that unit includes: the second calculating sub module, for calculating the distance of testeeWherein, v represents image distance;F represents the focal length that testee is focused by photographic head.
Therefore, it can the relational expression utilized between the electrical current of solenoid and the distance of testee, be calculated The distance (i.e. distance between testee and camera lens) of testee, has reached to utilize photographic head to carry out the purpose found range, and And the distance of testee it is calculated by the electrical current of solenoid, method is relatively simple.
Optionally, photographic head is the photographic head of mobile device.
Use the above embodiment of the present invention, in the case of not having specialty to measure distance, it is possible to use taking the photograph of mobile device As head carries out range measurement, facilitate mobile device user and know the distance of self and other objects.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
In the above embodiment of the present invention, the description to each embodiment all emphasizes particularly on different fields, and does not has in certain embodiment The part described in detail, may refer to the associated description of other embodiments.
In several embodiments provided herein, it should be understood that disclosed technology contents, can be passed through other Mode realizes.Wherein, device embodiment described above is only schematically, the division of the most described unit, Ke Yiwei A kind of logic function divides, actual can have when realizing other dividing mode, the most multiple unit or assembly can in conjunction with or Person is desirably integrated into another system, or some features can be ignored, or does not performs.Another point, shown or discussed is mutual Between coupling direct-coupling or communication connection can be the INDIRECT COUPLING by some interfaces, unit or module or communication link Connect, can be being electrical or other form.
The described unit illustrated as separating component can be or may not be physically separate, shows as unit The parts shown can be or may not be physical location, i.e. may be located at a place, or can also be distributed to multiple On unit.Some or all of unit therein can be selected according to the actual needs to realize the purpose of the present embodiment scheme.
It addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it is also possible to It is that unit is individually physically present, it is also possible to two or more unit are integrated in a unit.Above-mentioned integrated list Unit both can realize to use the form of hardware, it would however also be possible to employ the form of SFU software functional unit realizes.
If described integrated unit realizes and as independent production marketing or use using the form of SFU software functional unit Time, can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially The part that in other words prior art contributed or this technical scheme completely or partially can be with the form of software product Embodying, this computer software product is stored in a storage medium, including some instructions with so that a computer Equipment (can be for personal computer, server or the network equipment etc.) perform the whole of method described in each embodiment of the present invention or Part steps.And aforesaid storage medium includes: USB flash disk, read only memory (ROM, Read-Only Memory), random access memory are deposited Reservoir (RAM, Random Access Memory), portable hard drive, magnetic disc or CD etc. are various can store program code Medium.
The above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For Yuan, under the premise without departing from the principles of the invention, it is also possible to make some improvements and modifications, these improvements and modifications also should It is considered as protection scope of the present invention.

Claims (13)

1. the processing method of a range information, it is characterised in that including:
Utilize photographic head that testee is focused;
After focusing completes, determine the image distance of described testee;
According to described image distance, determine the distance of described photographic head and described testee.
Method the most according to claim 1, it is characterised in that described method also includes:
After described testee is focused, if presenting the definition of image on the imageing sensor of described photographic head Higher than predetermined threshold, it is determined that focused.
Method the most according to claim 1, it is characterised in that determine that the image distance of described testee includes:
At described photographic head during described testee is focused, gather the motion letter of camera lens in described photographic head Breath;
The movable information utilizing described camera lens determines described image distance.
Method the most according to claim 3, it is characterised in that utilize the movable information of described camera lens to determine described image distance bag Include:
Utilize the image distance v=A × I+v of testee described in the Current calculation of described photographic head solenoid0, wherein, A is first Constant, I represents the electrical current of described solenoid, v0It is the second constant, the described electromagnetic wire of the movable information of described camera lens The electric current of circle represents.
Method the most according to claim 4, it is characterised in that before testee is focused by photographic head, described Method also includes:
Measuring the distance of described photographic head and predetermined object, wherein, the distance between described photographic head and described predetermined object is Pre-set;
Compare the first distance and the second distance pre-set that described photographic head is measured;
In the case of the difference of described first distance with described second distance exceedes predetermined threshold, determine based on described difference and repair Positive parameter;
Utilize the first constant and/or the second constant described in described corrected parameter correction.
Method the most according to claim 1, it is characterised in that according to described image distance, determines described photographic head and described quilt The distance surveying object includes:
Calculate the distance of described photographic head and described testeeWherein, v represents described image distance;F takes the photograph described in representing The focal length described testee focused as head.
Method the most according to claim 1, it is characterised in that described photographic head is the photographic head of mobile device.
8. the processing means of a range information, it is characterised in that including:
Focusing unit, is used for utilizing photographic head to focus testee;
First determines unit, for after focusing completes, determines the image distance of described testee;
Second determines unit, for according to described image distance, determines the distance of described photographic head and described testee.
Device the most according to claim 8, it is characterised in that described device also includes:
Detector unit, for after described testee is focused, if on the imageing sensor of described photographic head in The definition of existing image is higher than predetermined threshold, it is determined that focused.
Device the most according to claim 8, it is characterised in that described first determines that unit includes:
Acquisition module, is used at described photographic head during focusing described testee, gathers described photographic head The movable information of middle camera lens;
First determines module, for utilizing the movable information of described camera lens to determine described image distance.
11. devices according to claim 10, it is characterised in that described first determines that module includes:
First determines submodule, for utilizing image distance v=A of testee described in the Current calculation of described photographic head solenoid ×I+v0, wherein, A is the first constant, and I represents the electrical current of described solenoid, v0It is the second constant, the fortune of described camera lens The dynamic information electric current of described solenoid represents.
12. devices according to claim 11, it is characterised in that before testee is focused by photographic head, institute State device also to include:
Measuring unit, for measuring the distance of described photographic head and predetermined object, wherein, described photographic head and described predetermined object Between distance pre-set;
Comparing unit, for the first distance and the second distance pre-set of relatively described photographic head measurement;
Acquiring unit, is used in the case of the difference of described first distance with described second distance exceedes predetermined threshold, based on Described difference determines corrected parameter;
Amending unit, is used for utilizing the first constant and/or the second constant described in described corrected parameter correction.
13. devices according to claim 8, it is characterised in that described second determines that unit includes:
Second calculating sub module, for calculating the distance of described photographic head and described testeeWherein, v represents Described image distance;F represents the focal length that described testee is focused by described photographic head.
CN201610630453.1A 2016-08-01 2016-08-01 The treating method and apparatus of range information Pending CN106197366A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610630453.1A CN106197366A (en) 2016-08-01 2016-08-01 The treating method and apparatus of range information
PCT/CN2017/073525 WO2018023961A1 (en) 2016-08-01 2017-02-14 Distance information processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610630453.1A CN106197366A (en) 2016-08-01 2016-08-01 The treating method and apparatus of range information

Publications (1)

Publication Number Publication Date
CN106197366A true CN106197366A (en) 2016-12-07

Family

ID=57498374

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610630453.1A Pending CN106197366A (en) 2016-08-01 2016-08-01 The treating method and apparatus of range information

Country Status (2)

Country Link
CN (1) CN106197366A (en)
WO (1) WO2018023961A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018023961A1 (en) * 2016-08-01 2018-02-08 珠海格力电器股份有限公司 Distance information processing method and device
CN108007426A (en) * 2017-11-29 2018-05-08 珠海亿智电子科技有限公司 A kind of camera distance measuring method and system
WO2023142830A1 (en) * 2022-01-25 2023-08-03 荣耀终端有限公司 Camera switching method, and electronic device
CN117177062A (en) * 2022-05-30 2023-12-05 荣耀终端有限公司 Camera switching method and electronic equipment
CN117177062B (en) * 2022-05-30 2024-06-25 荣耀终端有限公司 Camera switching method and electronic equipment

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109239698B (en) * 2018-08-02 2022-12-20 华勤技术股份有限公司 Camera ranging method and electronic equipment
CN113029089A (en) * 2021-03-17 2021-06-25 国网安徽省电力有限公司铜陵供电公司 Video image inner target distance estimation method based on electric power field auxiliary information
CN115442525A (en) * 2022-08-31 2022-12-06 丁非 Pupil distance measuring method, system, terminal and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102853810A (en) * 2012-09-04 2013-01-02 广东欧珀移动通信有限公司 Method for measuring object distance through mobile terminal, and system thereof
CN102857633A (en) * 2012-08-15 2013-01-02 苏州启智机电技术有限公司 Mobile phone ranging system
CN103458159A (en) * 2012-05-31 2013-12-18 鸿富锦精密工业(深圳)有限公司 Electronic device with distance measurement function and distance measurement method
CN104215216A (en) * 2014-08-21 2014-12-17 深圳市金立通信设备有限公司 Ranging device and terminal
CN104215215A (en) * 2014-08-21 2014-12-17 深圳市金立通信设备有限公司 Ranging method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110028851A (en) * 2009-09-14 2011-03-22 삼성전기주식회사 Apparatus for measuring distance and system for measuring distance using the same
CN103837129B (en) * 2014-02-27 2016-06-08 华为终端有限公司 Distance-finding method in a kind of terminal, device and terminal
CN104931957B (en) * 2015-06-01 2018-05-11 广东欧珀移动通信有限公司 A kind of distance measuring method and device based on mobile terminal
CN106197366A (en) * 2016-08-01 2016-12-07 珠海格力电器股份有限公司 The treating method and apparatus of range information

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103458159A (en) * 2012-05-31 2013-12-18 鸿富锦精密工业(深圳)有限公司 Electronic device with distance measurement function and distance measurement method
CN102857633A (en) * 2012-08-15 2013-01-02 苏州启智机电技术有限公司 Mobile phone ranging system
CN102853810A (en) * 2012-09-04 2013-01-02 广东欧珀移动通信有限公司 Method for measuring object distance through mobile terminal, and system thereof
CN104215216A (en) * 2014-08-21 2014-12-17 深圳市金立通信设备有限公司 Ranging device and terminal
CN104215215A (en) * 2014-08-21 2014-12-17 深圳市金立通信设备有限公司 Ranging method

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018023961A1 (en) * 2016-08-01 2018-02-08 珠海格力电器股份有限公司 Distance information processing method and device
CN108007426A (en) * 2017-11-29 2018-05-08 珠海亿智电子科技有限公司 A kind of camera distance measuring method and system
WO2023142830A1 (en) * 2022-01-25 2023-08-03 荣耀终端有限公司 Camera switching method, and electronic device
CN116546316A (en) * 2022-01-25 2023-08-04 荣耀终端有限公司 Method for switching cameras and electronic equipment
CN116546316B (en) * 2022-01-25 2023-12-08 荣耀终端有限公司 Method for switching cameras and electronic equipment
CN117177062A (en) * 2022-05-30 2023-12-05 荣耀终端有限公司 Camera switching method and electronic equipment
CN117177062B (en) * 2022-05-30 2024-06-25 荣耀终端有限公司 Camera switching method and electronic equipment

Also Published As

Publication number Publication date
WO2018023961A1 (en) 2018-02-08

Similar Documents

Publication Publication Date Title
CN106197366A (en) The treating method and apparatus of range information
US10455141B2 (en) Auto-focus method and apparatus and electronic device
CN107113415B (en) The method and apparatus for obtaining and merging for more technology depth maps
CN105933589B (en) A kind of image processing method and terminal
KR102143456B1 (en) Depth information acquisition method and apparatus, and image collection device
CN102973242B (en) Image processing equipment, image processing method, image processing system, program and recording medium
TWI393980B (en) The method of calculating the depth of field and its method and the method of calculating the blurred state of the image
US20110249117A1 (en) Imaging device, distance measuring method, and non-transitory computer-readable recording medium storing a program
CN104243800B (en) Control device and storage medium
CN103986854B (en) Image processing equipment, picture pick-up device and control method
CN110689577B (en) Active rigid body pose positioning method in single-camera environment and related equipment
CN107483774A (en) Filming apparatus and vehicle
CN104519328A (en) Image processing device, image capturing apparatus, and image processing method
CN106303267A (en) Image capture device and method
JPWO2019198701A1 (en) Analyzers, analytical methods, programs and aquatic organism monitoring systems
CN105180802A (en) Identification method and device of object size information
CN106888344A (en) Camera module and its inclined acquisition methods of image planes and method of adjustment
CN108151647A (en) A kind of image processing method, device and mobile terminal
WO2022052189A1 (en) Method and device for acquiring external features of animal, and computer device
TWI545936B (en) Electronic device and calibration method thereof
JP7300895B2 (en) Image processing device, image processing method, program, and storage medium
JPWO2018186255A1 (en) INFORMATION PROCESSING APPARATUS, INFORMATION PROCESSING METHOD, PROGRAM, AND RECORDING MEDIUM
CN102625045A (en) Electronic camera
CN106101542B (en) A kind of image processing method and terminal
CN109493391A (en) Camera calibration method and device, electronic equipment, computer readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20161207

RJ01 Rejection of invention patent application after publication