CN109151438A - A kind of method and apparatus of shooting stereo image - Google Patents
A kind of method and apparatus of shooting stereo image Download PDFInfo
- Publication number
- CN109151438A CN109151438A CN201811066312.7A CN201811066312A CN109151438A CN 109151438 A CN109151438 A CN 109151438A CN 201811066312 A CN201811066312 A CN 201811066312A CN 109151438 A CN109151438 A CN 109151438A
- Authority
- CN
- China
- Prior art keywords
- subject
- light
- distance information
- probing light
- probing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01S—RADIO 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
- G01S17/00—Systems using the reflection or reradiation of electromagnetic waves other than radio waves, e.g. lidar systems
- G01S17/02—Systems using the reflection of electromagnetic waves other than radio waves
- G01S17/06—Systems determining position data of a target
- G01S17/08—Systems determining position data of a target for measuring distance only
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01S—RADIO 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
- G01S17/00—Systems using the reflection or reradiation of electromagnetic waves other than radio waves, e.g. lidar systems
- G01S17/88—Lidar systems specially adapted for specific applications
- G01S17/89—Lidar systems specially adapted for specific applications for mapping or imaging
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Electromagnetism (AREA)
- Computer Networks & Wireless Communication (AREA)
- General Physics & Mathematics (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Measurement Of Optical Distance (AREA)
Abstract
This application involves field of terminal more particularly to a kind of method and apparatus of shooting stereo image, are caused the stereopsis of shooting unsharp by environment shadow pilot in the prior art to solve the problems, such as.This method comprises: the first probing light of transmitting, the first distance information of subject is determined according to the first probing light of part by subject reflection received;The emissive porwer of the second probing light is determined according to the first distance information of subject, emits the second probing light;The second distance information of subject is determined according to the second probing light of part of reflection;The stereopsis of subject is generated according to second distance information.Technical solution provided by the present application is able to achieve stereo image shooting, in shooting process, according to the range information emission detection light of subject, the probing light intensity after guarantee to receive reflected by subject is better than ambient light, improves the clarity of stereopsis.
Description
Technical field
This application involves field of terminal more particularly to a kind of method and apparatus of shooting stereo image.
Background technique
In the prior art, often used when shooting stereo image flight time imaging method (Time of flight,
TOF it) is shot.Light pulse is continuously transmitted particular by subject, while being received with sensor from object and being returned
Light, the distance of subject is calculated by the flight time of detecting optical pulses.It is received by multiple sensors
The multiple distances of optical oomputing, array arrangement form stereo-picture.
In above-mentioned existing image pickup method, the light pulse of transmitting is often infrared light pulse, due to also including in environment light
There is infrared light pulse, therefore, when the optical pulse intensity of transmitting is weaker, the light pulse received is rung by environment shadow, so that
The stereo-picture of generation is smudgy.It is past in the prior art in order to make the light pulse of transmitting be different from the infrared ray in environment light
Toward using increasing optical pulse intensity by the way of, make optical pulse intensity higher than the infrared ray in environment light, but the energy consumption of this mode
It is higher.
It can be seen that how to make the stereopsis of shooting clear and reduce power consumption to be urgently to be resolved in the prior art ask
Topic.
Summary of the invention
The embodiment of the present application provides a kind of method and apparatus of shooting stereo image, to solve in the prior art by ring
Border shadow pilot causes the problem that the stereopsis of shooting is unintelligible and power consumption is larger.
The embodiment of the present application adopts the following technical solutions:
In a first aspect, providing a kind of method of shooting stereo image, comprising:
Emit the first probing light, is determined and clapped according to the first probing light by subject reflection received
Take the photograph the first distance information of object, the first distance information is used to characterize the subject and shooting stereo image
The distance between device;
The emissive porwer of the second probing light, transmitting second are determined according to the first distance information of the subject
Probing light, second probing light are used to detect the surface shape of the subject;
The second distance information of the subject is determined according to the part of reflection second probing light, it is described
Second distance information is used to characterize the surface shape of the subject;
The stereopsis of the subject is generated according to the second distance information.
Second aspect provides a kind of device of shooting stereo image, comprising:
First determining module emits the first probing light, according to the first detection by subject reflection received
Light determines the first distance information of subject, and the first distance information is for characterizing the subject and clapping
Take the photograph the distance between the device of stereopsis;
Transmitting module determines the emissive porwer of the second probing light according to the first distance information of the subject,
Emit the second probing light, second probing light is used to detect the surface shape of the subject;
Second determining module determines the second of the subject according to the part of reflection second probing light
Range information, the second distance information are used to characterize the surface shape of the subject;
Generation module generates the stereopsis of the subject according to the second distance information.
The third aspect provides a kind of terminal device, which includes processor, memory and be stored in described
On memory and the computer program that can run on the processor, when the computer program is executed by the processor
The step of realizing method as described in relation to the first aspect.
Fourth aspect provides a kind of computer readable storage medium, which is characterized in that the computer-readable storage
Computer program is stored on medium, and method as described in relation to the first aspect is realized when the computer program is executed by processor
Step.
The embodiment of the present application use at least one above-mentioned technical solution can reach it is following the utility model has the advantages that
Technical solution provided by the present application primarily determines the approximate location of subject first, and then basis is determined
Position determine transmitting probing light intensity, emission detection light determines subject further according to the probing light of reflection
The surface shape of body, the last stereo-picture that subject is generated according to the surface shape determined.Skill provided by the present application
Art scheme is able to achieve stereo image shooting, in shooting process, according to the range information emission detection light of subject,
It can guarantee that the probing light intensity after being reflected by subject is better than ambient light, improve the clarity of stereopsis.We
Case according to the range transmission probing light of subject, be able to achieve subject distance farther out when guarantee shooting clear
Degree reduces shooting energy consumption when subject is closer under the premise of guaranteeing image-capturing resolution.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present application, constitutes part of this application, this Shen
Illustrative embodiments and their description please are not constituted an undue limitation on the present application for explaining the application.In the accompanying drawings:
Fig. 1 is a kind of one of method flow schematic diagram of shooting stereo image provided by the invention;
Fig. 2 is the two of a kind of method flow schematic diagram of shooting stereo image provided by the invention;
Fig. 3 is the illustrative timing diagram provided by the invention for sending and receiving probing light;
Fig. 4 a is the three of a kind of method flow schematic diagram of shooting stereo image provided by the invention;
Fig. 4 b is that photosensitive element opens one of schematic diagram in the embodiment of the present invention;
Fig. 4 c is photosensitive element opens schematic diagram in the embodiment of the present invention two;
Fig. 5 a is a kind of one of schematic device of shooting stereo image provided by the invention;
Fig. 5 b is the two of a kind of schematic device of shooting stereo image provided by the invention;
A kind of hardware structural diagram of Fig. 6 mobile terminal of each embodiment to realize the present invention.
Specific embodiment
To keep the purposes, technical schemes and advantages of the application clearer, below in conjunction with the application specific embodiment and
Technical scheme is clearly and completely described in corresponding attached drawing.Obviously, described embodiment is only the application
A part of the embodiment, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not having
Every other embodiment obtained under the premise of creative work is made, shall fall in the protection scope of this application.
In the prior art, TOF picture pick-up device is mainly by light source, sensitive chip, camera lens, sensor, drive control circuit
And the multiple portions such as processing circuit composition.In TOF picture pick-up device, including transmitting module and receiving module the two core moulds
Block generates stereopsis according to the data of this two big nucleus module.It is had more by the stereo-picture that TOF mode can be shot
The sense of reality, and the information for shooting acquisition can also derive other more application functions.
Wherein, transmitting module can be Infrared laser emission pipe array, and receiving module can be photosensitive element (Charge-
Coupled Device, CCD), when shooting, infrared light is emitted to subject by transmitting module, by receiving mould
Block receives the infrared light reflected by subject, and then calculates what infrared light was propagated according to transmitting and the received time difference
Distance, to calculate the distance between subject and picture pick-up device.
The method of shooting stereo image provided by the present application can be widely applied to various with shooting stereo image function
Electronic equipment, such as mobile phone, tablet computer, smartwatch, are also applied for the picture pick-up devices such as camera, video camera, to solve
The problem that the stereopsis of shooting is unintelligible and power consumption is larger is caused by environment shadow pilot in the prior art.Below in conjunction with attached
Figure, the technical scheme provided by various embodiments of the present application will be described in detail.Accompanying drawing number is only used for each in differentiation scheme in the application
A step, is not used in the sequence that executes for limiting each step, and specific execution sequence is subject in specification and is described.
Embodiment one
The embodiment of the present application provides a kind of method of shooting stereo image, as shown in Figure 1, method packet provided by the present application
It includes:
Step 11: the first probing light of transmitting, it is true according to the first probing light by subject reflection received
Determine the first distance information of subject, the first distance information is three-dimensional for characterizing the subject and shooting
The distance between device of image.
Stereo image shooting is carried out by video camera in application scheme embodiment, subject is sphere.This step
In 11, the first distance information is used to characterize the position of the subject, specifically, first distance information can be
One coordinate points, region or other be used to characterize the data information of position.In this example, first distance information be sphere with take the photograph
The distance between camera lens.
Specifically, can emit first probing light by infrared module, the infrared module, which can be, to be set to
Light emitting module inside video camera, for emitting infrared light, which may include near infrared light, also may include
Far red light.The wavelength of infrared light is typically larger than 770 nanometers, and less than 1 millimeter, infrared light has preferable penetration performance.
Since its wavelength is longer, light-wave energy is not easy to lose in communication process, can be shot in the environment such as night, underwater.
Therefore, stereo image shooting is carried out using infrared light, energy consumption can not only be reduced, moreover it is possible to be suitable for a variety of shooting environmentals, application
Range is wide.
Above-mentioned infrared module specifically can be Infrared laser emission pipe array, can specifically include the multiple of array arrangement
Infrared light-emitting diode, the infrared light-emitting diode are alternatively referred to as infrared diode.Above-mentioned first probing light is for detecting
The position of subject.When the first probing light is infrared light, the intensity of the infrared light of transmitting should be greater than environment light
In infrared light intensity.Infrared light difference to be subsequently received and the infrared light in environment light, avoid environment light
Line has an impact the ambient light received.
Under normal conditions, the infrared light in environment light is related with many factors in environment, for example, in sunshine abundance
Outdoor, the infrared light in environment light is often stronger, and in dark lighttight interior, the infrared light in environment light is past
It is past weaker.The intensity of the first probing light emitted in the application can be preset according to actual photographed environment.
Preferably, before above-mentioned steps 11, as shown in Fig. 2, the above method further include:
Step 15: with the first preset strength emission detection light, if received reflection light does not meet ranging requirement, with
Second preset strength emits the first probing light, and second preset strength is greater than first preset strength.
Above-mentioned first preset strength can be preset according to actual needs, be wanted if received reflection light meets ranging
It asks, then can emit the first probing light according to the first preset strength.If the reflection light received does not meet ranging and wants
It asks, then the first probing light is emitted with the second preset strength for being better than the first preset strength.Second preset strength can be camera shooting
The maximum intensity that function issues, is also possible to preset intensity according to actual needs.
Ranging requirement in this step, can specifically refer to: the reflection light received is better than ambient light.Work as reception
To reflection light be better than ambient light when, can guarantee that ranging is accurate in subsequent step.When the reflection light received close to
It carries out being easy to produce error when ranging when ambient light, in subsequent step.
Technical solution provided by the present application can primarily determine the emissive porwer of the first probing light, and then improve subsequent step
The accuracy of the first distance information of the shooting object determined in rapid, reduces range error.And then it improves in subsequent step and determines
Second distance information accuracy, improve the clarity of the stereopsis of generation.
Infrared light is reflected in subject close to the surface of video camera, and the infrared light of reflection, which travels to, to be taken the photograph
Camera, specifically, the infrared light of reflection can be received by photosensitive element (Charge-coupled Device, CCD).It should
Photosensitive element can be arranged in video camera with array structure to be multiple.
Specifically, the time span by the infrared light S1 of video camera transmitting is Tp, the corresponding shade table of Tp referring to Fig. 3
Levy the power consumption of infrared light-emitting diode.The power consumption of the infrared light-emitting diode corresponds to the intensity of infrared light, therefore, in figure
Region shown in shade can characterize the intensity of the infrared light of video camera transmitting.
Above-mentioned time span Tp can be understood as the time span of infrared light-emitting diode unlatching, in Fig. 3, when high level
Light emitting diode opens (luminous), and light emitting diode turns off (extinguishing) when low level.
Corresponding with the time span that light emitting diode is opened, photosensitive element is opened in above-mentioned time span Tp, that is, is existed
Above-mentioned photosensitive element is photosensitive by camera lens in the Tp period, is reflected back video camera to receive from subject
Infrared light.As shown in S2 in Fig. 3, since light reaches subject from camera, then is reflected and reached by subject
During camera, infrared light propagation needs elapsed time, therefore, compared with the infrared light of transmitting, receives infrared
The time of light, there are delay time length Td, time span Td, that is, infrared light compared with the time of transmitting infrared light
Travel to and fro between the time between camera and subject.The energy for the infrared light that shade characterization in S2 receives, is based on
Light velocity c, (1) is it is estimated that the distance between video camera and subject surface according to the following formula.
Technical solution provided by the present application can primarily determine the position of subject, by the side for emitting infrared light
Formula calculates the approximate location of subject according to the time that infrared light is propagated.The above method is convenient and efficient, accuracy compared with
It is high.Infrared light-emitting diode used in this programme and CCD photosensitive element both can be used for determining subject in this step
Position, can also further determine that the surface shape of subject, the process of shooting stereo image in a subsequent step
In can use identical hardware, using excessive hardware device when avoiding shooting stereo image, so that it is whole just to improve scheme
Victory.
Step 12: determining the emissive porwer of the second probing light according to the first distance information of the subject, send out
The second probing light is penetrated, second probing light is used to detect the surface shape of the subject.
Specifically, above-mentioned second probing light can be sent by infrared module, during infrared light is propagated,
It inevitably can be causing energy attenuation due to colliding, scatter etc., so that the energy of the infrared light received is lower than and to launch
The energy of infrared light.If the energy for the infrared light launched is lower, and the infrared light energy in environment light is higher,
The energy for being then likely to result in the infrared light received is close with the energy of environment light, cause the infrared light received by
It then handles to obtain by the infrared light received to the influence of environment light so that the infrared light that video camera obtains is unintelligible
Data and accuracy of information it is not high so that generate stereopsis it is unintelligible.So for apart from the farther away quilt of video camera
Object is shot, it, can be with the higher probing light of emitted energy, in the present solution, should according to the intensity of environment light mid-infrared light line
Probing light can be infrared light.
And for apart from the closer subject of video camera, since infrared light travels to and fro between video camera and subject
Distance between body is shorter, and the amount of energy attenuation is less, so that the energy of the infrared light of transmitting and the infrared light received
Energy it is close.If the energy of the infrared light of transmitting is higher, the energy of the infrared light received is apparently higher than environment light
Line, it will cause energy wastes.In fact, the difference of the infrared light in the infrared light received and environment light reaches one
Determine preset value, the infrared light received is enabled to be different from ambient light.Therefore, for closer apart from video camera
Subject can be with the lower probing light of emitted energy, so that receiving according to the intensity of the infrared light in environment light
To infrared light can be distinguished with the infrared light in environment light.
Referring to Fig. 3, the energy of the area attribute probing light in figure shown in shade, therefore, lengthening pulse width can be mentioned
The energy of the infrared light of high-incidence injection, similarly, chopped pulse width can reduce the energy for the infrared light launched.
In the present solution, determining that the pulse of the second probing light of transmitting is wide according to the first distance information of subject
Degree, i.e., the energy value of the second probing light of controllable transmitting.For apart from farther away subject, pulse width is wider,
I.e. the opening time is longer;For the subject being closer, pulse width is relatively narrow, i.e. the opening time is shorter.
Scheme provided by the present application is for guaranteeing apart from the farther away higher infrared light of subject emitted energy
The infrared light received can be different from the infrared light in environment light, for the subject emitted energy being closer
Lower infrared light, on the basis of guaranteeing that the infrared light received can be different from the infrared light in environment light, moreover it is possible to
Power consumption is further decreased, energy-efficient effect is reached.
Step 13: determining that the second distance of the subject is believed according to the part of reflection second probing light
Breath, the second distance information are used to characterize the surface shape of the subject.
After the probing light launched reaches subject surface, transmitting reflection is propagated back to the position where video camera,
The probing light of reflection can be received by CCD photosensitive element.Due to transmitting probing light at the time of with received probing light
At the time of there are differences, the distance between subject and video camera can be calculated according to above-mentioned formula (1).
When in video camera including the CCD photosensitive element of array arrangement, each photosensitive element passes through the above method
The distance between subject and video camera are calculated, can be obtained multiple distance values of array arrangement.These array arrangements
Distance value can characterize the surface shape of subject.The quantity of CCD photosensitive element in video camera is more, camera shooting
The surface shape for the subject that machine obtains is more clear, these the second probing lights received by multiple CCD photosensitive elements
The information that processing obtains is above-mentioned second distance information.
Step 14: the stereopsis of the subject is generated according to the second distance information.
Due to include in second distance information characterize subject surface shape information, according to second away from
Subject can be generated close to the stereopsis of video camera side from information.
Specifically, may include the multiple range informations for having array arrangement in second distance information, each information can be right
It should be in a pixel of the stereopsis of generation.When CCD photosensitive elements multiple in video camera are arranged as rectangular array structure
When, then calculating the second distance information obtained also can wrap multiple distance values containing array arrangement, when each distance value pair
The rectangle stereopsis of above-mentioned subject should then can be generated when a pixel of stereopsis.
Technical solution provided by the present application primarily determines the approximate location of subject first, and then basis is determined
Position determine transmitting the second probing light intensity, determine subject further according to the second probing light of reflection
Surface shape, the last stereo-picture that subject is generated according to the surface shape determined.Technical side provided by the present application
Case is able to achieve stereo image shooting.In shooting process, the second probing light is emitted according to the range information of subject,
It can guarantee that the second probing light intensity after being reflected by subject is better than ambient light, improve the clarity of stereopsis,
Be able to achieve subject distance farther out when guarantee image-capturing resolution, when subject is closer, guarantee shoot
Shooting energy consumption is reduced under the premise of clarity.
The method based on the above embodiment, the method also includes:
When the second distance information and the first distance information meet preset condition, described clapped is redefined
The range information for taking the photograph object updates the first distance information according to new range information.
Under normal conditions, the first distance information and the time interval of second distance information got is shorter, subject
The surface shape of body tends not to that there are excessive differences.In the present solution, above-mentioned first distance information and second distance information are equal
It is to be calculated and determined with the time difference for receiving probing light according to transmitting, by the time difference for emitting and receiving probing light
The relative position between subject and video camera can be calculated.
In the present solution, can according to first distance information calculate subject between video camera at a distance from, can also
With according to second distance information calculate the distance between subject and video camera, if two be calculated apart from base
This is identical, then can be considered and obtaining first distance information and obtaining in the time between second distance information, video camera with clapped
The relative position for taking the photograph object does not have significant change.In this case, due to being sent out according to first distance information in above scheme
Penetrate probing light, then according to the probing light of reflection obtain second distance information, therefore, the second probing light of transmitting with
The position for the subject that first distance information is detected is corresponding, so obtain second distance information also with first away from
The position of the subject detected from information is corresponding, and the second distance information obtained in this case can be clearly anti-
Mirror the surface shape of subject.
But if two distances being calculated there are biggish gap, show obtain first distance information and
It obtains in the time between second distance information, biggish variation has occurred in the relative position of video camera and subject.?
In this case, although the second probing light of transmitting is opposite with the position for the subject that first distance information is detected
It answers, but according to the different surface shape for surely clearly reflecting subject of the probing light of reflection.Subject with
The relative position of video camera is possible to reflecting the first probing light and occurring in the period reflected between the second probing light
Biggish variation.
For example, the distance between video camera and subject increase sharply in above-mentioned shooting process, subject
Body is more and more remoter apart from video camera, emits the first probing light by video camera, reflects on subject surface, propagates
After returning video camera, calculating the distance between first distance information representation video camera and subject of acquisition is M.According to this
Distance M emits the second probing light, since the distance between subject and video camera are continuously increased, so that subject
It is farther apart from video camera when body reflecting the second probing light than the first probing light of reflection.This visits second be propagated back to
There is biggish decaying in the energy for surveying light, the second probing light of the reflection that video camera receives be possible to in environment light
The energy of infrared light is essentially identical.It can not at this point, calculating the second distance information obtained according to the second probing light of reflection
The accurately surface shape of reaction subject, so that the stereopsis finally obtained is smudgy clear.
Therefore, when first distance information and second distance information gap are larger, scheme provided by the present application is redefined
The range information of the subject, using new range information as first distance information, so that subject exists
It reflects between the second probing light of the first probing light and reflection, the relative position between video camera does not have excessive variation, from
And guarantee that the stereopsis finally obtained is clear.
The method based on the above embodiment, a referring to fig. 4, in above-mentioned steps 11, according to receiving by being taken
The first probing light of part of object reflection determines the first distance information of subject, specifically includes:
Step 16: the first probing light of part reflected by the subject, root are received by part photosensitive element
The first distance information of the subject is determined according to the first probing light of part received;
Above-mentioned steps 13, according to the part of reflection second probing light determine the second of the subject away from
From information, specifically include:
Step 17: being received by least partly photosensitive element and light is detected by the part second that the subject reflects
Line determines the second distance information of the subject according to second probing light received.
In the above scheme, the first probing light received is mainly used for primarily determining subject and video camera
Between relative position, then to emit and received second probing light can clearly reflect the table of subject
Face shape.The first probing light for receiving reflection in this programme by part photosensitive element, i.e., only open the photosensitive member of part CCD
Part receives above-mentioned first probing light of reflection, the energy consumed when so as to further decrease shooting.And in subsequent step
In, the second probing light of reflection is received by least partly photosensitive element, preferably, is received by whole photosensitive elements anti-
The second probing light penetrated, i.e. unlatching whole CCD photosensitive element, can receive as much as possible by subject surface reflection
Probing light improve the stereopsis subsequently generated to capture subject surface shape details as much as possible
Resolution ratio, optimize shooting effect.
Specifically, as shown in Figure 4 b, the CCD photosensitive element arranged with 5 row, 5 column array is shown in figure, when reception reflection
When the first probing light, multiple photosensitive elements in unlatching figure shown in shade are preferably opened when receiving the first probing light
The photosensitive element positioned at corner and center is opened, on the basis of reducing energy consumption, comprehensively obtains subject corner as far as possible
With the position at center, to substantially determine the relative distance of subject and video camera.It is with situation shown in scheming
Example, opens 5 photosensitive elements, can calculate 5 distance values according to this 5 photosensitive elements.Preferably, to calculated 5
Distance value calculates average value, will calculate the average value obtained and is determined as the distance between video camera and subject, generation the
One range information.
Then, when receiving the second probing light of reflection, as illustrated in fig. 4 c, whole photosensitive elements are opened, this unlatching
Photosensitive element also include 5 photosensitive elements opening when receiving the first probing light.It in this case, can be as more as possible
The second probing light for rebounding back of reception, so that the clarity of the subject surface shape of acquisition is improved, so that then
The stereopsis of generation resolution ratio with higher and preferably shooting effect.
Technical solution provided by the present application receives reflected by subject first by small number of photosensitive element
Probing light receives the second probing light reflected by subject by greater number of photosensitive element.Wherein, by connecing
The first probing light received can determine that the relative position between subject and video camera, and can reduce in shooting process
Energy consumption.The surface of more subjects can be obtained as far as possible by receiving the second probing light by more photosensitive element
Shape details make the stereopsis subsequently generated resolution ratio with higher, guarantee preferably shooting effect.
The scheme based on the above embodiment, the intensity value of the second probing light of the determination and described is taken
The distance between device of object and shooting stereo image is positively correlated.
If the distance between device of subject and shooting stereo image is farther out, since probing light is being propagated
There is energy loss in the process, shooting body surface can be touched and the energy for being reflected back the probing light of above-mentioned apparatus is lower,
It is easy to cause the unsharp situation of shooting picture.Therefore, the intensity value of the second probing light is directly proportional to above-mentioned distance value, right
In apart from farther away subject, emissive porwer is worth biggish second probing light, for the subject being closer
Body can send lesser second probing light of intensity value, to guarantee probing light arrival subject and be reflected back
Energy with higher when the device of shooting stereo image guarantees that the device of shooting stereo image can be by the second detection of reflection
Light is distinguished from environment light, and then improves image-capturing resolution.
Embodiment two
The embodiment of the present application provides a kind of device of shooting stereo image, to solve in the prior art by environment shadow
Pilot causes the problem that the stereopsis of shooting is unintelligible and power consumption is larger, and device provided by the present application is as shown in Figure 5 a, the bat
The device 50 for taking the photograph stereopsis includes:
First determining module 51 emits the first probing light, is visited according to what is received by the first of subject reflection
Survey light and determine the first distance information of subject, the first distance information for characterize the subject with
The distance between device of shooting stereo image;
Transmitting module 52 determines that the transmitting of the second probing light is strong according to the first distance information of the subject
Degree, emits the second probing light, and second probing light is used to detect the surface shape of the subject;
Second determining module 53, according to the second probing light of part of reflection determine the second of the subject away from
From information, the second distance information is used to characterize the surface shape of the subject;
Generation module 54 generates the stereopsis of the subject according to the second distance information.
Technical solution provided by the present application primarily determines the approximate location of subject first, and then basis is determined
Position determine transmitting probing light intensity, the surface shape of subject is determined further according to the probing light of reflection,
The last stereo-picture that subject is generated according to the surface shape determined.Technical solution provided by the present application is able to achieve
Stereo image shooting according to the range information emission detection light of subject, can guarantee by being clapped in shooting process
Probing light intensity after taking the photograph object reflection is better than ambient light, improves the clarity of stereopsis.This programme is according to being taken
The range transmission probing light of object, be able to achieve subject distance farther out when guarantee image-capturing resolution, in subject
When body is closer, shooting energy consumption is reduced under the premise of guaranteeing image-capturing resolution.
The device based on the above embodiment, as shown in Figure 5 b, described device further include:
Update module 55, when the second distance information meets preset condition with the first distance information, again really
The range information of the fixed subject updates the first distance information according to new range information.
Above-mentioned apparatus provided by the present application, when first distance information and second distance information gap are larger, the application is mentioned
The scheme of confession redefines the range information of the subject, using new range information as first distance information, in turn
So that subject is reflecting between the second probing light of the first probing light and reflection, the opposite position between video camera
No excessive variation is set, to guarantee that the stereopsis finally obtained is clear.
The device, first determining module 51 are specifically used for based on the above embodiment:
First probing light that reflection is received by part photosensitive element, according to first detection received
Light determines the first distance information of the subject;
Determine that the second distance information of the subject is specifically wrapped according to the part of reflection second probing light
It includes:
Second probing light that reflection is received by least partly photosensitive element, according to described second received
Probing light determines the second distance information of the subject.
Technical solution provided by the present application receives reflected by subject first by small number of photosensitive element
Probing light receives the second probing light reflected by subject by greater number of photosensitive element.Wherein, by connecing
The first probing light received can determine that the relative position between subject and video camera, and can reduce in shooting process
Energy consumption.The surface of more subjects can be obtained as far as possible by receiving the second probing light by more photosensitive element
Shape details make the stereopsis subsequently generated resolution ratio with higher, guarantee preferably shooting effect.
The device based on the above embodiment, the intensity value of the second probing light of the determination and described is taken
The distance between device of object and shooting stereo image is positively correlated.
Scheme provided by the present application can guarantee that the second probing light reaches subject and is reflected back shooting stereo image
Device when energy with higher, guarantee that the device of shooting stereo image can be by the second probing light of reflection from environment light
In distinguish, and then improve image-capturing resolution.
The device, first determining module 51 are also used to based on the above embodiment:
It is default with second if received reflection light does not meet ranging requirement with the first preset strength emission detection light
Intensity emits the first probing light, and second preset strength is greater than first preset strength.
Technical solution provided by the present application can primarily determine the emissive porwer of the first probing light, and then improve subsequent step
The accuracy of the first distance information of the shooting object determined in rapid, reduces range error.And then it improves in subsequent step and determines
Second distance information accuracy, improve the clarity of the stereopsis of generation.
Embodiment three
A kind of hardware structural diagram of Fig. 6 mobile terminal of each embodiment to realize the present invention, the mobile terminal
600 include but is not limited to: radio frequency unit 601, network module 602, audio output unit 603, input unit 604, sensor
605, display unit 606, user input unit 607, interface unit 608, memory 609, processor 610 and power supply 611
Equal components.It will be understood by those skilled in the art that mobile terminal structure shown in Fig. 6 does not constitute the limit to mobile terminal
Fixed, mobile terminal may include perhaps combining certain components or different component cloth than illustrating more or fewer components
It sets.In embodiments of the present invention, mobile terminal include but is not limited to mobile phone, tablet computer, laptop, palm PC,
Car-mounted terminal, wearable device and pedometer etc..
Wherein, processor 610, for emitting first probing light, according to receiving by the of subject reflection
One probing light determines the first distance information of subject, and the first distance information is for characterizing the subject
The distance between body and the device of shooting stereo image;
The emissive porwer of the second probing light, transmitting second are determined according to the first distance information of the subject
Probing light, second probing light are used to detect the surface shape of the subject;
It is determined described in the second distance information of the subject according to the part of reflection second probing light
Two range informations are used to characterize the surface shape of the subject;
The stereopsis of the subject is generated according to the second distance information.
Technical solution provided by the present application primarily determines the approximate location of subject first, and then basis is determined
Position determine transmitting probing light intensity, emission detection light determines subject further according to the probing light of reflection
The surface shape of body, the last stereo-picture that subject is generated according to the surface shape determined.Skill provided by the present application
Art scheme is able to achieve stereo image shooting, in shooting process, according to the range information emission detection light of subject,
It can guarantee that the probing light intensity after being reflected by subject is better than ambient light, improve the clarity of stereopsis.We
Case according to the range transmission probing light of subject, be able to achieve subject distance farther out when guarantee shooting clear
Degree reduces shooting energy consumption when subject is closer under the premise of guaranteeing image-capturing resolution.
It should be understood that the embodiment of the present invention in, radio frequency unit 601 can be used for receiving and sending messages or communication process in, signal
Send and receive, specifically, by from base station downlink data receive after, to processor 610 handle;In addition, by uplink
Data are sent to base station.In general, radio frequency unit 601 includes but is not limited to antenna, at least one amplifier, transceiver, coupling
Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 601 can also by wireless communication system and network and other
Equipment communication.
Mobile terminal provides wireless broadband internet by network module 602 for user and accesses, and such as user is helped to receive
It sends e-mails, browse webpage and access streaming video etc..
Audio output unit 603 can be received by radio frequency unit 601 or network module 602 or in memory 609
The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 603 can also provide with
The relevant audio output of specific function that mobile terminal 600 executes is (for example, call signal receives sound, message sink sound etc.
Deng).Audio output unit 603 includes loudspeaker, buzzer and receiver etc..
Input unit 604 is for receiving audio or video signal.Input unit 604 may include graphics processor
(Graphics Processing Unit, GPU) 6041 and microphone 6042, graphics processor 6041 capture mould in video
The image data of the static images or video that are obtained in formula or image capture mode by image capture apparatus (such as camera) carries out
Processing.Treated, and picture frame may be displayed on display unit 606.Through graphics processor 6041, treated that picture frame can
To be stored in memory 609 (or other storage mediums) or be sent via radio frequency unit 601 or network module 602.
Microphone 6042 can receive sound, and can be audio data by such acoustic processing.Treated, and audio data can
To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 601 in the case where telephone calling model.
Mobile terminal 600 further includes at least one sensor 605, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 6061, and proximity sensor can close when mobile terminal 600 is moved in one's ear
Close display panel 6061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect (one in all directions
As be three axis) acceleration size, can detect that size and the direction of gravity when static, can be used to identify mobile terminal posture
(such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion)
Deng;Sensor 605 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, gas
Meter, hygrometer, thermometer, infrared sensor etc. are pressed, details are not described herein.
Display unit 606 is for showing information input by user or being supplied to the information of user.Display unit 606 can
Including display panel 6061, liquid crystal display (Liquid Crystal Display, LCD), organic light-emitting diodes can be used
Forms such as (Organic Light-Emitting Diode, OLED) are managed to configure display panel 6061.
User input unit 607 can be used for receiving the number or character information of input, and generate the use with mobile terminal
Family setting and the related key signals input of function control.Specifically, user input unit 607 include touch panel 6071 with
And other input equipments 6072.Touch panel 6071, also referred to as touch screen collect the touch behaviour of user on it or nearby
Make (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 6071 or in touch panel
Operation near 6071).Touch panel 6071 may include both touch detecting apparatus and touch controller.Wherein, it touches
Detection device detects the touch orientation of user, and detects touch operation bring signal, transmits a signal to touch controller;
Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor
610, it receives the order that processor 610 is sent and is executed.Furthermore, it is possible to using resistance-type, condenser type, infrared ray and
The multiple types such as surface acoustic wave realize touch panel 6071.In addition to touch panel 6071, user input unit 607 can also be wrapped
Include other input equipments 6072.Specifically, other input equipments 6072 can include but is not limited to physical keyboard, function key (ratio
Such as volume control button, switch key), trace ball, mouse, operating stick, details are not described herein.
Further, touch panel 6071 can be covered on display panel 6061, when touch panel 6071 is detected at it
On or near touch operation after, send processor 610 to determine the type of touch event, be followed by subsequent processing device 610 according to touching
The type for touching event provides corresponding visual output on display panel 6061.Although in Fig. 6, touch panel 6071 and aobvious
Show that panel 6061 is the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain implementations
In example, touch panel 6071 and display panel 6061 can be integrated and be realized the function that outputs and inputs of mobile terminal, specifically
Herein without limitation.
Interface unit 608 is the interface that external device (ED) is connect with mobile terminal 600.For example, external device (ED) may include having
Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card
Port, port, the port audio input/output (I/O), video i/o port, ear for connecting the device with identification module
Generator terminal mouth etc..Interface unit 608 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED)
And by one or more elements that the input received is transferred in mobile terminal 600 or it can be used in mobile terminal
Data are transmitted between 600 and external device (ED).
Memory 609 can be used for storing software program and various data.Memory 609 can mainly include storage program
Area and storage data area, wherein storing program area can application program needed for storage program area, at least one function (such as
Sound-playing function, image player function etc.) etc.;Storage data area, which can be stored, uses created data (ratio according to mobile phone
Such as audio data, phone directory) etc..In addition, memory 609 may include high-speed random access memory, it can also include non-
Volatile memory, for example, at least a disk memory, flush memory device or other volatile solid-state parts.
Processor 610 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection
A part by running or execute the software program and/or module that are stored in memory 609, and calls and is stored in storage
Data in device 609 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place
Managing device 610 may include one or more processing units;Preferably, processor 610 can integrate application processor and modulatedemodulate is mediated
Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main
Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 610.
Mobile terminal 600 can also include the power supply 611 (such as battery) powered to all parts, it is preferred that power supply
611 can be logically contiguous by power-supply management system and processor 610, thus charged by power-supply management system realization management,
The functions such as electric discharge and power managed.
In addition, mobile terminal 600 includes some unshowned functional modules, details are not described herein.
Preferably, the embodiment of the present invention also provides a kind of mobile terminal, including processor 610, and memory 609 is stored in
On memory 609 and the computer program that can run on the processor 610, the computer program are executed by processor 610
A kind of above-mentioned each process of the embodiment of the method for shooting stereo image of Shi Shixian, and identical technical effect can be reached, to keep away
Exempt to repeat, which is not described herein again.
The embodiment of the present invention also provides a kind of computer readable storage medium, is stored on computer readable storage medium
Computer program, the computer program realize a kind of embodiment of the method for above-mentioned shooting stereo image when being executed by processor
Each process, and identical technical effect can be reached, to avoid repeating, which is not described herein again.Wherein, the computer can
Storage medium is read, such as read-only memory (Read-Only Memory, abbreviation ROM), random access memory (Random
Access Memory, abbreviation RAM), magnetic or disk etc..
It should be noted that, in this document, the terms "include", "comprise" or its any other variant be intended to it is non-
It is exclusive to include, so that the process, method, article or the device that include a series of elements not only include those elements,
It but also including other elements that are not explicitly listed, or further include for this process, method, article or device institute
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or device including the element.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but many situations
It is lower the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to the prior art
The part to contribute can be embodied in the form of software products, which is stored in a storage and is situated between
In matter (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, clothes
Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned tools
Body embodiment, the above mentioned embodiment is only schematical, rather than restrictive, the ordinary skill of this field
Personnel under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, can also make
Many forms belong within protection of the invention.
Claims (12)
1. a kind of method of shooting stereo image, which is characterized in that the device applied to shooting stereo image, comprising:
Emit the first probing light, is determined and be taken according to the first probing light of part by subject reflection received
The first distance information of object, the first distance information are used to characterize the device of the subject and shooting stereo image
The distance between;
The emissive porwer of the second probing light, transmitting the second detection light are determined according to the first distance information of the subject
Line, second probing light are used to detect the surface shape of the subject;
Determine the second distance information of the subject according to the part of reflection second probing light, described second away from
From the surface shape that information is used to characterize the subject;
The stereopsis of the subject is generated according to the second distance information.
2. the method as described in claim 1, which is characterized in that determine institute in part second probing light according to reflection
After the second distance information for stating subject, the method also includes:
When the second distance information and the first distance information meet preset condition, the subject is redefined
Range information, the first distance information is updated according to new range information.
3. method according to claim 1 or 2, which is characterized in that according to the part reflected by subject received
First probing light determines the first distance information of subject, specifically includes:
The first probing light of part reflected by the subject is received by part photosensitive element, according to the portion received
The first distance information for dividing the first probing light to determine the subject;
The second distance information that the subject is determined according to the part of reflection second probing light, specifically includes:
The second probing light of part for being reflected by the subject is received by least partly photosensitive element, according to receiving
Second probing light determine the second distance information of the subject.
4. method as claimed in claim 3, which is characterized in that the intensity value of the second probing light of the determination and described
The distance between device of subject and shooting stereo image is positively correlated.
5. the method as described in claim 1, which is characterized in that the first probing light of the transmitting, according to receiving by quilt
The first probing light of part of shooting object reflection determines before the first distance information of subject, further includes:
With the first preset strength emission detection light, if received reflection light does not meet ranging requirement, with the second preset strength
Emit the first probing light, second preset strength is greater than first preset strength.
6. a kind of device of shooting stereo image characterized by comprising
First determining module emits the first probing light, is detected according to the part first by subject reflection received
Light determines the first distance information of subject, and the first distance information is for characterizing the subject and shooting
The distance between device of stereopsis;
Transmitting module determines the emissive porwer of the second probing light according to the first distance information of the subject, transmitting
Second probing light, second probing light are used to detect the surface shape of the subject;
Second determining module determines that the second distance of the subject is believed according to the part of reflection second probing light
Breath, the second distance information are used to characterize the surface shape of the subject;
Generation module generates the stereopsis of the subject according to the second distance information.
7. device as claimed in claim 6, which is characterized in that described device further include:
Update module redefines described when the second distance information meets preset condition with the first distance information
The range information of subject updates the first distance information according to new range information.
8. device as claimed in claims 6 or 7, which is characterized in that first determining module is specifically used for:
The first probing light of part reflected by the subject is received by part photosensitive element, according to the institute received
State the first distance information that the first probing light determines the subject;
The second distance information that the subject is determined according to the part of reflection second probing light, specifically includes:
The second probing light of part for being reflected by the subject is received by least partly photosensitive element, according to receiving
Second probing light determine the second distance information of the subject.
9. device as claimed in claim 8, which is characterized in that the intensity value of the second probing light of the determination and described
The distance between device of subject and shooting stereo image is positively correlated.
10. device as claimed in claim 6, which is characterized in that first determining module is also used to:
With the first preset strength emission detection light, if received reflection light does not meet ranging requirement, with the second preset strength
Emit the first probing light, second preset strength is greater than first preset strength.
11. a kind of mobile terminal characterized by comprising memory, processor and be stored on the memory and can be in institute
The computer program run on processor is stated, such as claim 1 to 5 is realized when the computer program is executed by the processor
Any one of described in method the step of.
12. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium
Program, the step of method as described in any one of claims 1 to 5 is realized when the computer program is executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811066312.7A CN109151438A (en) | 2018-09-13 | 2018-09-13 | A kind of method and apparatus of shooting stereo image |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811066312.7A CN109151438A (en) | 2018-09-13 | 2018-09-13 | A kind of method and apparatus of shooting stereo image |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109151438A true CN109151438A (en) | 2019-01-04 |
Family
ID=64824988
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811066312.7A Pending CN109151438A (en) | 2018-09-13 | 2018-09-13 | A kind of method and apparatus of shooting stereo image |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109151438A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110213480A (en) * | 2019-04-30 | 2019-09-06 | 华为技术有限公司 | A kind of focusing method and electronic equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103456007A (en) * | 2013-08-09 | 2013-12-18 | 华为终端有限公司 | Method and device for obtaining depth information |
CN105765558A (en) * | 2013-09-03 | 2016-07-13 | 醒眸行有限公司 | Low power eye tracking system and method |
CN107148640A (en) * | 2014-10-22 | 2017-09-08 | 微软技术许可有限责任公司 | Flight time depth camera |
CN108508453A (en) * | 2018-05-25 | 2018-09-07 | 洛伦兹(北京)科技有限公司 | Laser detection equipment and method |
-
2018
- 2018-09-13 CN CN201811066312.7A patent/CN109151438A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103456007A (en) * | 2013-08-09 | 2013-12-18 | 华为终端有限公司 | Method and device for obtaining depth information |
CN105765558A (en) * | 2013-09-03 | 2016-07-13 | 醒眸行有限公司 | Low power eye tracking system and method |
CN107148640A (en) * | 2014-10-22 | 2017-09-08 | 微软技术许可有限责任公司 | Flight time depth camera |
CN108508453A (en) * | 2018-05-25 | 2018-09-07 | 洛伦兹(北京)科技有限公司 | Laser detection equipment and method |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110213480A (en) * | 2019-04-30 | 2019-09-06 | 华为技术有限公司 | A kind of focusing method and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110113528A (en) | A kind of parameter acquiring method and terminal device | |
CA3087731C (en) | Screen on-and-off state control method and mobile terminal | |
CN109068043A (en) | A kind of image imaging method and device of mobile terminal | |
CN109633683A (en) | Emitting mould train, flight time TOF mould group, mobile terminal and depth detection method | |
CN107864336B (en) | A kind of image processing method, mobile terminal | |
CN109639897A (en) | A kind of light transmission method and device | |
CN109558715A (en) | A kind of terminal device and face identification method | |
CN110300267A (en) | Photographic method and terminal device | |
CN107765251A (en) | Distance detection method and terminal device | |
CN107884157A (en) | A kind of method for detecting abnormality of diffractive-optical element, mobile terminal | |
CN109672785A (en) | A kind of Pop-up camera Repossession method and mobile terminal | |
CN107463897A (en) | Fingerprint identification method and mobile terminal | |
CN109348504A (en) | Power detecting method, mobile terminal and power-sensing circuit | |
CN107782250B (en) | Depth information measuring method and device and mobile terminal | |
CN109859637A (en) | A kind of electronic equipment and its control method | |
CN109739394A (en) | A kind of processing method of SAR value, mobile terminal | |
CN109471119A (en) | A kind of method and terminal device controlling power consumption | |
CN109164456B (en) | Depth camera module, mobile terminal and camera module mutual interference processing method | |
CN109274957A (en) | A kind of depth image image pickup method and mobile terminal | |
CN109143254A (en) | A kind of working method and terminal device of laser emitter | |
CN106454078B (en) | A kind of focal modes control method and terminal device | |
CN109472825A (en) | A kind of object search method and terminal device | |
CN109031330B (en) | Method for measuring object distance and terminal equipment | |
CN107706703B (en) | A kind of laser optical path control method, device and mobile terminal | |
CN109151438A (en) | A kind of method and apparatus of shooting stereo image |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190104 |