WO2017161523A1 - 一种终端的拍照对焦方法、装置及设备 - Google Patents
一种终端的拍照对焦方法、装置及设备 Download PDFInfo
- Publication number
- WO2017161523A1 WO2017161523A1 PCT/CN2016/077119 CN2016077119W WO2017161523A1 WO 2017161523 A1 WO2017161523 A1 WO 2017161523A1 CN 2016077119 W CN2016077119 W CN 2016077119W WO 2017161523 A1 WO2017161523 A1 WO 2017161523A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- object distance
- confidence
- camera
- determining
- ranging
- 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.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01B—MEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
- G01B11/00—Measuring arrangements characterised by the use of optical techniques
- G01B11/02—Measuring arrangements characterised by the use of optical techniques for measuring length, width or thickness
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/66—Remote control of cameras or camera parts, e.g. by remote control devices
- H04N23/661—Transmitting camera control signals through networks, e.g. control via the Internet
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/67—Focus control based on electronic image sensor signals
- H04N23/671—Focus control based on electronic image sensor signals in combination with active ranging signals, e.g. using light or sound signals emitted toward objects
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C3/00—Measuring distances in line of sight; Optical rangefinders
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C3/00—Measuring distances in line of sight; Optical rangefinders
- G01C3/02—Details
- G01C3/06—Use of electric means to obtain final indication
- G01C3/08—Use of electric radiation detectors
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C3/00—Measuring distances in line of sight; Optical rangefinders
- G01C3/10—Measuring distances in line of sight; Optical rangefinders using a parallactic triangle with variable angles and a base of fixed length in the observation station, e.g. in the instrument
- G01C3/14—Measuring distances in line of sight; Optical rangefinders using a parallactic triangle with variable angles and a base of fixed length in the observation station, e.g. in the instrument with binocular observation at a single point, e.g. stereoscopic type
-
- G—PHYSICS
- G02—OPTICS
- G02B—OPTICAL ELEMENTS, SYSTEMS OR APPARATUS
- G02B7/00—Mountings, adjusting means, or light-tight connections, for optical elements
- G02B7/28—Systems for automatic generation of focusing signals
- G02B7/287—Systems for automatic generation of focusing signals including a sight line detecting device
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/45—Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from two or more image sensors being of different type or operating in different modes, e.g. with a CMOS sensor for moving images in combination with a charge-coupled device [CCD] for still images
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/63—Control of cameras or camera modules by using electronic viewfinders
Definitions
- the present invention relates to the field of electronic device technologies, and in particular, to a camera focusing method, apparatus, and device for a terminal.
- the commonly used focusing algorithms mainly include active focusing and passive focusing.
- the active focusing can be realized by the ranging method
- the passive focusing can be realized by the mountain climbing method.
- the mountain climbing method mainly analyzes the sharpness of the image corresponding to all the lens positions, finds the lens position with the largest contrast as the lens position corresponding to the quasi-focus image, and completes the focus; the ranging method mainly calculates the corresponding focus image according to the object distance.
- the lens position and the VCM reach the specified lens position by moving the voice coil motor (English: Voice Coil Motor, VCM for short) to complete the focus.
- the mountain climbing method is used to complete the focusing process, it is necessary to obtain an image obtained by moving the VCM to a plurality of lens positions, and comparing and analyzing the sharpness of each image means that it takes a lot of time to complete the mountain climbing method. Solution, therefore, in order to achieve focus quickly and accurately, the cost-effective ranging method is usually used to achieve the focusing process.
- the object distance measurement can be performed by binocular ranging or laser ranging, and the use of binocular ranging can not only make the ranging range as long as 2 meters, but also compared with laser measurement. From the process, binocular ranging can be used to complete the ranging of the entire image. Therefore, binocular ranging is usually used to calculate the object distance of the image subject, and then the VCM is moved to the specified lens position by moving the VCM, thereby completing the active focusing. process.
- the embodiment of the invention provides a camera focusing method, device and device for the terminal, which can improve the focusing accuracy of the terminal during the camera focusing process.
- the embodiment of the present invention adopts the following technical solutions:
- an embodiment of the present invention provides a camera focusing method for a terminal, where the terminal includes a laser sensor, a first camera, and a second camera, and the first camera and the second camera are arranged side by side; the method includes Obtaining a first confidence level that is a confidence level of the object distance measured by the laser ranging method, and a second confidence level of the object measured by the binocular ranging method Confidence of the distance, wherein the confidence is used to indicate the accuracy of the object distance measured by the ranging method; when the first confidence level and the second confidence meet the preset condition, the target ranging method is determined And the target object, the preset condition is that the first confidence is greater than a first confidence threshold, and/or the second confidence is greater than a second confidence threshold, the target ranging manner is the laser a ranging method or the binocular ranging mode; determining a target position within the lens position interval to facilitate focusing of the first camera and the second camera.
- the binocular distance is used to calculate the object distance of the image body, and then the VCM is controlled to move the lens to the specified lens position to complete the active focus process, which can be compared according to the requirements of different application scenarios.
- the different ranging methods are the target ranging methods, and the target object distance is determined at the same time, and then in the lens position interval, the process of focusing near the quasi-focus is achieved.
- the invention can adopt different ranging methods for different situations, thereby effectively avoiding the problem that the focus of the object in the focusing window is weak or the focus in the focusing window is repeated, so that the focus can be quickly And accurately determining the position of the quasi-focus to complete the first camera and the second camera Focusing process.
- the present invention can improve the focusing accuracy of the terminal during photographing and focusing.
- determining a target ranging manner and a target object distance includes: acquiring a first object distance and a second object distance, wherein the first object distance is an object distance measured by using the laser ranging method, and the second object distance is using the binocular distance measuring method.
- the method is capable of comparing the magnitude relationship between the first confidence level and the first confidence threshold and the magnitude relationship between the second confidence level and the second confidence threshold, respectively, based on the implementation of the first aspect. It is determined that the laser ranging method and the binocular ranging method are more suitable for the ranging method, so that the different ranging methods can be determined according to the requirements of different application scenarios, and the target distance measuring method is determined, and the target object distance is determined, and then In the lens position interval, the process of focusing near the quasi focus is achieved.
- the present invention proposes a method specifically for determining the ranging method and the target object distance, from Furthermore, the focus accuracy of the terminal during photographing and focusing is further improved.
- the first camera collects the first image and sends the image to the display of the terminal, so that the user previews the The first image, the second image captured by the second camera is not used for user preview, and the speed at which the second camera captures the second image is greater than the speed at which the first camera captures the first image.
- the method takes into account the correlation between the focus speed and the image acquisition speed, and fully utilizes the characteristics of the two cameras, which not only ensures the user preview.
- the first image is displayed while ensuring a second image that is not used for user preview, providing users with a faster focusing effect.
- the determining the ranging manner is the binocular ranging manner
- determining the second object distance includes: determining that the second object distance obtained by ranging according to the first image and the second image is the target object distance.
- the method provides a specific method for determining the second object distance as the target object distance based on the second possible implementation manner of the first aspect, that is, performing ranging according to the first image and the second image.
- the first camera includes a first lens
- the second camera includes a second lens and a second
- the voice coil motor VCM before determining the target position in the lens position interval, includes: determining an initial position corresponding to the target object distance, the initial position being the first lens determined according to the target object distance And determining a target position in the lens position interval, including: starting, by using the initial position as a starting point, controlling the second VCM to select the second lens in the lens position interval
- the inner movement is performed to complete the preliminary focus; among the results of all the preliminary focusing, the lens position corresponding to the second image having the largest contrast is the target position.
- the method defines the internal structure of the two cameras based on the second or third possible implementation of the first aspect, and determines the initial position as the improved climb-up method.
- the starting point is used to realize the determination process of the target position by using the position of the lens near the quasi-focus or the quasi-focus as the starting point in the lens position interval, and the time for determining the target position is reduced compared with the conventional climbing method. In turn, the focus rate of the terminal is increased.
- the first camera includes a first VCM, and after determining the target location in the lens position interval, including Controlling the second VCM to move the second lens to the target position, and obtaining a focus result of the second mirror camera; synchronizing the focus result of the second camera to the first camera; Determining the focus of the second camera, controlling the first VCM to move the first lens to the target position.
- the method further defines the internal structure of the first camera on the basis of the fourth possible implementation manner of the first aspect, and at the same time, considering that the speed at which the first camera captures images is smaller than the speed at which the second camera captures images, therefore, The focusing speed of the two cameras is faster, that is, the second camera compares the first camera, and the focusing process is completed first. Therefore, a method of synchronizing the focusing result of the second camera to the first camera is proposed, that is, the rate at which the dual camera completes the focusing process is further improved while not affecting the image captured by the first camera for previewing.
- an embodiment of the present invention provides a camera focusing device of a terminal, where the terminal includes a laser sensor, a first camera, and a second camera, wherein the first camera and the second camera are arranged side by side;
- the device includes An obtaining module, configured to obtain a first confidence level and a second confidence level, where the first confidence level is a confidence level of an object distance measured by a laser ranging method, and the second confidence level is a binocular distance measurement Means measure the confidence of the object distance, wherein the confidence is used to indicate the accuracy of the object distance measured by the ranging method;
- the determining module is configured to use the first confidence and the acquired by the acquiring module Determining a target ranging manner and a target object distance when the second confidence meets a preset condition, the preset condition is that the first confidence is greater than a first confidence threshold, and/or the second confidence More than a second confidence threshold, the target ranging manner is the laser ranging method or the binocular ranging method;
- the determining module is further configured
- the device and the prior art adopt binocular ranging to calculate the object distance of the image body, and then control the VCM to move the lens to the specified lens position to complete the active focusing process, according to the requirements of different application scenarios. It is determined that the different ranging methods are the target ranging methods, and the target object distance is determined at the same time, and then in the lens position interval, the process of focusing near the quasi-focus is achieved.
- the invention can adopt different ranging methods for different situations, thereby effectively avoiding the problem that the focus of the object in the focusing window is weak or the focus in the focusing window is repeated, so that the focus can be quickly And accurately determining the position of the quasi-focus, thereby completing the focusing process of the first camera and the second camera.
- the present invention can improve the focusing accuracy of the terminal during photographing and focusing.
- the acquiring module is further configured to acquire a first object distance and a second object distance, where the first object distance is the laser ranging The measured object distance, the second object distance is the object distance measured by the binocular ranging method; the determining module is specifically configured to use the first confidence level acquired by the acquiring module Greater than the first confidence threshold, and the second confidence is greater than the second confidence threshold, and the absolute value of the difference between the first object distance and the second object distance is less than the object distance gate Determining, determining that the ranging mode is the binocular ranging mode, and determining that the second object distance is the target object distance; or, when the first confidence is less than or equal to the first confidence threshold And the second confidence is greater than the second confidence threshold, determining that the ranging mode is the binocular ranging mode, and determining that the second object distance is the target object distance; The first confidence is greater than the first confidence threshold, and the second confidence And determining, in the second confidence threshold, that the absolute
- the first camera collects the first image and sends the image to the display of the terminal, so that the user previews the The first image, the second image captured by the second camera is not used for user preview, and the speed at which the second camera captures the second image is greater than the speed at which the first camera captures the first image.
- the determining the ranging manner is the binocular ranging manner, and the determining module is specifically configured to determine The second object distance obtained by ranging the first image and the second image is the target object distance.
- the first camera includes a first lens
- the second camera includes a second lens and a second a voice coil motor VCM
- the determining module configured to determine an initial position corresponding to the target object distance, where the initial position is a position of the first lens and the second lens determined according to the target object distance
- the determining module is specifically configured to use the initial position as a starting point, and control the second VCM to move the second lens in the lens position interval to complete preliminary focusing; determine all preliminary focusing results.
- the lens position corresponding to the second image having the largest contrast is the target position.
- the first camera includes a first VCM, including: a control module, configured to control the second VCM The second lens moves to the target position, and obtains a focus result of the second mirror camera; a synchronization module is configured to synchronize the focus result of the second camera obtained by the control module to the first camera The control module is further configured to control the first VCM to move the first lens to the target position according to a focus result of the second camera synchronized by the synchronization module.
- an embodiment of the present invention provides a camera focusing device of a terminal, where the terminal includes a laser sensor, a first camera, and a second camera, wherein the first camera and the second camera are arranged side by side;
- the device includes An interface circuit, configured to obtain a first confidence level and a second confidence level, where the first confidence level is a confidence level of the object distance measured by using a laser ranging method, and the second confidence level is a binocular distance measurement Method measurement Confidence of the object distance, wherein the confidence is used to indicate the accuracy of the object distance measured by the ranging method;
- the processor is configured to use the first confidence level and the number obtained by the interface circuit When the second confidence meets the preset condition, the target ranging manner and the target object distance are determined, the preset condition is that the first confidence is greater than the first confidence threshold, and/or the second confidence is greater than the second a confidence threshold, the target ranging mode is the laser ranging mode or the binocular ranging mode;
- the processor is further configured to determine a target
- the device and the prior art use binocular ranging to calculate the object distance of the image body, and then control the VCM to move the lens to the specified lens position to complete the active focus process, according to different application scenarios. It is determined that the different ranging methods are the target ranging methods, and the target object distance is determined at the same time, and then in the lens position interval, the process of focusing near the quasi-focus is achieved.
- the invention can adopt different ranging methods for different situations, thereby effectively avoiding the problem that the focus of the object in the focusing window is weak or the focus in the focusing window is repeated, so that the focus can be quickly And accurately determining the position of the quasi-focus, thereby completing the focusing process of the first camera and the second camera.
- the present invention can improve the focusing accuracy of the terminal during photographing and focusing.
- the interface circuit is further configured to acquire a first object distance and a second object distance, where the first object distance is an object distance measured by using the laser ranging method, and the second object distance is adopted The object distance measured by the binocular ranging method; the processor, specifically, when the first confidence obtained by the interface circuit is greater than the first confidence threshold, and the second confidence When the absolute value of the difference between the first object distance and the second object distance is smaller than the object distance difference threshold, determining that the ranging mode is the binocular ranging mode, Simultaneously determining that the second object distance is the target object distance; or, when the first confidence level is less than or equal to the first confidence threshold, and the second confidence is greater than the second confidence threshold When determining the distance The mode is the binocular ranging mode, and the second object distance is determined to be the target object distance; when the
- the first camera collects the first image and sends the image to the display of the terminal, so that the user previews the The first image, the second image captured by the second camera is not used for user preview, and the speed at which the second camera captures the second image is greater than the speed at which the first camera captures the first image.
- the determining a ranging manner is the binocular ranging manner
- the processor is specifically configured to determine The second object distance obtained by ranging the first image and the second image is the target object distance.
- the first camera includes a first lens
- the second camera includes a second lens and a second a voice coil motor VCM
- the processor is further configured to determine an initial position corresponding to the target object distance, where the initial position is determined according to the target object distance a position of the first lens and the second lens; the processor is specifically configured to use the initial position as a starting point, and control the second VCM to select the second lens in the lens position interval
- the inner movement is performed to complete the preliminary focus; among the results of all the preliminary focusing, the lens position corresponding to the second image having the largest contrast is the target position.
- the first camera includes a first VCM, and after determining the target location in the lens position interval, The processor is further configured to control the second VCM Moving the second lens to the target position, and obtaining a focus result of the second mirror camera; the interface circuit is further configured to synchronize a focus result of the second camera obtained by the processor to The first camera; the processor is further configured to control the first VCM to move the first lens to the target position according to a focus result of the second camera synchronized by the interface circuit.
- an embodiment of the present invention provides a computer program product, the computer program product comprising a readable storage medium for storing computer program code, the computer program code running on a processor, the computer program code
- the method includes: obtaining a first confidence level and a second confidence level, where the first confidence level is a confidence level of an object distance measured by using a laser ranging method, and the second confidence level is a binocular distance measuring method.
- the distance mode is the laser ranging method or the binocular ranging method; and is used for determining a target position in a lens position interval, so that the first camera and the second camera complete focusing,
- the first camera and the second camera are disposed side by side on the terminal, and the terminal further includes a laser sensor.
- the product and the prior art use binocular ranging to calculate the object distance of the image body, and then control the VCM to move the lens to the specified lens position to complete the active focus process, according to the needs of different application scenarios.
- the different ranging methods are the target ranging methods, and the target object distance is determined at the same time, and then in the lens position interval, the process of focusing near the quasi-focus is achieved.
- the invention can adopt different ranging methods for different situations, thereby effectively avoiding the problem that the focus of the object in the focusing window is weak or the focus in the focusing window is repeated, so that the focus can be quickly And accurately determining the position of the quasi-focus, thereby completing the focusing process of the first camera and the second camera.
- the present invention can improve the focusing accuracy of the terminal during photographing and focusing.
- the computer program code further includes: for acquiring the first object distance and the second, before determining the target ranging manner and the target object distance, when the first confidence level and the second confidence level satisfy the preset condition
- the object distance, the first object distance is an object distance measured by the laser ranging method
- the second object distance is an object distance measured by the binocular ranging method
- the computer program code Specifically, the method includes: when the first confidence is greater than the first confidence threshold, and the second confidence is greater than the second confidence threshold, and the first object distance and the second object When the absolute value of the difference of the distance is less than the object distance difference threshold, determining that the ranging mode is the binocular ranging mode, and determining that the second object distance is the target object distance; or, When the first confidence is less than or equal to the first confidence threshold, and the second confidence is greater than the second confidence threshold, determining that the ranging mode is the binocular ranging mode, and determining the a second object distance is the
- the first camera collects the first image and sends the image to the display of the terminal, so that the user previews the The first image, the second image captured by the second camera is not used for user preview, and the speed at which the second camera captures the second image is greater than the speed at which the first camera captures the first image.
- the determining the ranging method is the binocular ranging mode
- the computer program code includes: The determining that the second object distance obtained by ranging according to the first image and the second image is the target object distance.
- the first camera includes a first lens
- the second camera includes a second lens and a second voice coil motor VCM
- the computer program code further includes: an initial position corresponding to the target object distance, before determining the target position in the lens position interval, The initial position is a position of the first lens and the second lens determined according to the target object distance;
- the computer program code specifically includes: controlling, by using the initial position as a starting point, the The second VCM moves the second lens in the lens position interval to complete preliminary focusing; and in determining the results of all preliminary focusing, the lens position corresponding to the second image having the largest contrast is the target position.
- the first camera includes a first VCM, and after determining a target location in the lens position interval, The computer program code, further comprising: controlling the second VCM to move the second lens to the target position, and obtaining a focus result of the second mirror camera; and synchronizing the second camera Focusing the result to the first camera; and controlling the first VCM to move the first lens to the target position according to a focus result of the second camera.
- FIG. 1 is a schematic structural diagram of a ranging focus system according to an embodiment of the present invention.
- FIG. 2 is a flowchart of a method for photographing a focus of a terminal according to an embodiment of the present invention
- FIG. 3 is a flowchart of another method for photographing a focus of a terminal according to an embodiment of the present invention.
- FIG. 4 is a flowchart of another method for photographing a focus of a terminal according to an embodiment of the present invention.
- FIG. 5 is a flowchart of another method for photographing a focus of a terminal according to an embodiment of the present invention.
- FIG. 6 is a flowchart of another method for photographing a focus of a terminal according to an embodiment of the present invention.
- FIG. 7 is a schematic structural diagram of a camera focusing device of a terminal according to an embodiment of the present disclosure.
- FIG. 8 is a schematic structural diagram of a camera focusing device of a terminal according to an embodiment of the present disclosure.
- FIG. 9 is a schematic structural diagram of a computer program product according to an embodiment of the present invention.
- Embodiments of the present invention can be used in a ranging focus system that has both a binocular ranging function, a laser ranging function, and a focusing function.
- the ranging focus system shown in FIG. 1 includes: a first lens, a second lens, a first image sensor (English: Image Sensor), a second image sensor, and a first image signal processor (English: Image Signal Processor (abbreviation: ISP), second image signal processor, central processing unit (English: Central Processing Unit, CPU for short), liquid crystal display (English: Liquid Crystal Display, referred to as: LCD), image memory, laser sensor, Battery, touch screen, and random access memory (English: Random Access Memory, referred to as: RAM).
- the first camera comprises a first lens, a first image sensor and a first image signal processor
- the second camera comprises a second lens, a second image sensor and a second image signal processor.
- the binocular ranging method is mainly based on the parallax principle and uses the first camera and the second camera to acquire two images of the measured object from different positions in the simultaneous working mode.
- the signal processor sends it to the central processing unit for processing. Ranging, focusing is then performed by the central processing unit, and the processing result is fed back to the first image signal processor and the first image signal processor.
- first camera and the second camera can work at the same time, or work according to the current demand, and the working time of the first camera and the second camera are consistent, which is not specifically limited in the embodiment of the present invention. , can be adjusted according to the needs of the application scenario.
- the laser ranging method mainly uses the laser to accurately measure the distance of the measured object.
- the emitter inside the laser sensor emits a very thin laser beam to the target, and then the laser beam reflected by the measured object is received by the photoelectric element, and the laser beam is emitted from the inside of the laser sensor.
- the distance from the observer to the measured object that is, the object distance, is calculated.
- the object distance is then sent to the central processor and the focus is achieved by the central processor.
- the above two ranging methods can be simultaneously performed, because the above-mentioned laser ranging process and the binocular ranging process have no interference during the execution process.
- the laser ranging method and the binocular ranging method have their own advantages and disadvantages, as shown in Table 1.
- An embodiment of the present invention provides a camera focusing method for a terminal. As shown in FIG. 2, the method is performed by a device having a focusing function, such as a terminal, where the terminal includes a laser sensor, a first camera, and a second camera, where The first camera and the second camera are arranged side by side, and the method comprises:
- the first confidence is the confidence of the object distance measured by the laser ranging method
- the second confidence is the confidence of the object distance measured by the binocular ranging method, wherein the confidence is used to indicate the measurement
- the distance method measures the accuracy of the object distance.
- the transmitter of the device emits laser light, and after the laser hits the object, some of the photons in the laser are reflected to the receiver. Therefore, the laser ranging module can calculate the received reflected photon and the emitter. The ratio of the number of photons to determine the first confidence. It should be noted that, in general, the closer the object is to the lens, the higher the confidence and the farther the object is from the lens, the lower the confidence.
- the manner of obtaining the first confidence is not limited to the above manner, and is not specifically limited in the embodiment of the present invention.
- the value of the second confidence can be expressed by the number of feature points or by the ratio of the high-confidence feature points to the number of all feature points. Among them, the number of feature points and the way to determine the high-confidence feature points will be proposed later, and will not be described here. It should be noted that the manner of expressing the second confidence is not specifically limited in the embodiment of the present invention, and the manner of acquiring the second confidence is not limited to the foregoing manner.
- the preset condition is that the first confidence is greater than the first confidence threshold, and/or the second confidence is greater than the second confidence threshold, and the ranging manner is a laser ranging method or a binocular ranging method.
- the traditional hill climbing method may be used. Focus. That is, by the device with the focusing function, by analyzing the sharpness of the image corresponding to the different lens positions, the lens position with the largest contrast is found as the lens position corresponding to the quasi-focus image, and then the VCM moves the lens to the lens position corresponding to the quasi-focus image, thereby Finish the focus.
- the adopted ranging manner can be accurately determined.
- the first confidence threshold and the second confidence threshold may be preset by a staff member according to historical experience values, or may be pre-generated by the device according to a certain rule, for the first confidence threshold and the second confidence threshold.
- the manner of setting is not specifically limited in the embodiment of the present invention.
- the first lens in the first camera may share a VCM with the second lens in the second camera, or a unique corresponding VCM may be set for each lens.
- the VCM can be set in the camera or it can be set independently of the camera.
- the setting manner of the VCM and the correspondence between the VCM and the lens are not specifically limited, and may be set according to the requirements of the application scenario.
- the binocular ranging method or the laser ranging method is used for the ranging process, there may be a certain error, so that the lens position corresponding to the quasi-focal image may not be accurately determined according to the obtained object distance, and therefore, the present invention is implemented.
- the present invention in order to ensure that the VCM can move the lens to the lens position corresponding to the quasi-focus image, not only the image acquisition needs to be completed at the lens position corresponding to the acquired object distance, but also needs to be completed by traversing the lens positions in the lens position interval. The image is acquired, and then the target position is determined.
- the lens position interval is the interval range determined by the device when the device is shipped from the factory, that is, the interval formed by the near focus position and the far focus position of the lens
- the lens position interval may include multiple lens positions, and the lens positions are included.
- binocular ranging is used The mode or the laser ranging method may have a certain error, but the error range is small, which means that the lens position determined according to the measured object distance is the lens position near the lens position corresponding to the quasi-focus image.
- the corresponding lens position of the target object may be used as the traversal starting point of the lens position interval, and the step size of the traversing process is determined according to the historical experience value, and then the lens position interval is selected according to the user's demand. The direction is traversed in large or small directions until the target position is reached. It should be noted that the manner of determining the target position is not limited to the above manner, and in the embodiment of the present invention, the manner of determining the target position is not specifically limited.
- a method for photographing a focus of a terminal obtains a confidence level of an object distance obtained by using a laser ranging method and a binocular ranging method, wherein at least one confidence degree is greater than the two confidence levels.
- the confidence level corresponds to the confidence threshold
- the target ranging mode and the target object distance are determined, and then the target position is determined within the lens position interval, so that the first camera and the second camera complete the focusing.
- the confidence is used to indicate the accuracy of the object distance measured by the ranging method.
- binocular ranging is used to calculate the object distance of the image body, and then the VCM is controlled to reach the specified lens position to complete the active focusing process.
- the present invention can determine different according to the needs of different application scenarios.
- the method of ranging is the target ranging method, and the target object distance is determined at the same time, and then the focus process is completed in the vicinity of the quasi-focus in the lens position interval.
- the invention can adopt different ranging methods for different situations, thereby effectively avoiding the problem that the focus of the object in the focusing window is weak or the focus in the focusing window is repeated, so that the focus can be quickly And accurately determining the position of the quasi-focus, thereby completing the focusing process of the first camera and the second camera.
- the present invention can improve the focusing accuracy of the terminal during photographing and focusing.
- the size relationship between the first confidence level and the first confidence threshold is compared, and the second confidence level is compared.
- the size relationship between the second confidence thresholds is used to determine a more suitable ranging method in the laser ranging method and the binocular ranging method. Therefore, on the basis of the implementation shown in FIG. 2, an implementation as shown in FIG. 3 can also be implemented.
- the step 104 may be performed, and the step 102 may be specifically implemented as steps 1021 to 1024 when the first confidence level and the second confidence level satisfy the preset condition, and the distance measurement mode and the target object distance are determined.
- the first object distance is an object distance measured by a laser ranging method
- the second object distance is an object distance measured by a binocular ranging method
- the ranging method is the binocular ranging mode, and the second object distance is determined as the target object distance.
- the ranging method is the laser ranging method, and the first object distance is determined as the target object distance.
- the ranging method is a laser ranging manner, and determine that the first object distance is the target object distance.
- the target object distance is measured by the binocular ranging method, and specifically, the feature point depth information, that is, the target object distance, is calculated according to the parallax of the same feature point in the image acquired by the two cameras.
- the two cameras may specifically be a first camera and a second camera, and each camera may be regarded as a focusing window, and the image acquired by the camera may be The image acquired by the first camera is the first image and the image acquired by the second camera is the second image.
- the manner for acquiring features includes various methods, such as harris corner extraction method or surf feature extraction method.
- the weighted average of the depth information of each feature point in the first image is calculated, and the average value of the depth information of all the feature points in the first image is obtained, and the average value is determined as the distance measurement result measured by the binocular ranging method, that is, the object distance.
- the first image is usually used as the image to be displayed for display, that is, the first camera captures the first image.
- the image is sent to the display of the terminal, so that the user can preview the first image. Therefore, in general, when determining the object distance, the average value of the depth information in the first image is taken as the standard.
- the second image captured by the second camera is not used for user preview. Moreover, in order to ensure that the second camera can complete the focusing process as soon as possible, the second camera captures the second image at a higher rate than the first camera captures the first image. For example, the first camera takes 12 frames per second, while the second camera captures 24 frames per second. Since the camera performs focus every time during the shooting, the higher the number of frames per second, the faster the focus of the camera.
- all the feature points in the first image are sequentially matched with the feature points in the second image in order from left to right, and at the same time, All feature points in the first image are sequentially matched with feature points in the second image in order from right to left. Then, according to the two matching results, determining that the feature points of the same feature point in the first image match the same feature point in the second image are high-confidence feature points, and calculating the number of high-confidence feature points and all features in the first image
- the ratio of the number of points when the ratio is less than the given threshold T2, determines that the confidence of the ranging using the binocular ranging method is low.
- the first image and the second image are considered.
- the deviation of the image is small, and the first image is usually displayed as a feed image. Therefore, in general, when determining the number of all feature points, the number of all feature points in the first image is taken as the standard.
- the depth information of each high-confidence feature point may be separately determined, and then the average value of the depth information of all the high-confidence feature points is calculated, and the average value is determined as binocular.
- the ranging result obtained by the ranging method that is, the object distance.
- the given threshold T1 is used to determine whether the number of feature points meets the condition of high confidence
- the given threshold T2 is used to determine whether the ratio of the number of high-confidence feature points to the number of all feature points in the first image is consistent.
- the condition of high confidence; the given threshold T1 and the given threshold T2 can be preset by the staff according to the historical experience value.
- the setting manner of the given threshold T1 and the given threshold T2 is not made. Specifically limited.
- the confidence threshold is used as a standard for measuring the level of confidence in the laser ranging method and the binocular ranging method.
- the magnitude relationship between the first confidence level and the first confidence threshold, and the second confidence level and the first confidence level can be adopted.
- the magnitude relationship between the two confidence thresholds determines the level of the first confidence level and the second confidence level relative to the confidence threshold corresponding to itself.
- the laser ranging method and the binocular ranging method have their respective advantages and disadvantages, as shown in Table 1 above, in the embodiment of the present invention, in order to better utilize the laser ranging method and the binocular ranging method.
- the characteristics of the different ranging methods can be selected according to different situations. The specific options are as follows:
- the laser ranging method is used for fast focusing, if The two ranging results differ greatly.
- the laser ranging method is affected by reflections from objects such as glass and mirrors, binocular ranging results are used for fast focusing; if laser ranging and binocular ranging When only one of the confidence levels of the mode is high, in order to improve the accuracy of the focus, a relatively high degree of confidence can be selected for fast focus; if the confidence of the laser ranging method and the binocular ranging mode are relatively low, , which means laser ranging and binocular ranging The obtained ranging results all have large errors. Therefore, in order to achieve accurate focusing, in the embodiment of the present invention, the fast focusing can be abandoned, and the conventional mountain climbing method is used to complete the focusing.
- the laser ranging and the binocular ranging can be adopted at the same time. Two ranging results are obtained after measurement, and then the discrimination result is used to determine the ranging result corresponding to the ranging method, and the obtained ranging result is directly obtained, and the object distance result is determined as the target. Object distance, thus completing the focus.
- a method for photographing a focus of a terminal obtains a confidence level of an object distance obtained by using a laser ranging method and a binocular ranging method, wherein at least one confidence degree is greater than the two confidence levels.
- the confidence threshold corresponding to the confidence level is determined according to the magnitude relationship between the first confidence level and the first confidence threshold, and the relationship between the second confidence level and the second confidence threshold to determine whether to use the laser ranging method or the binocular measurement.
- the distance is measured, and after the target object distance is determined, the target position is determined within the lens position interval, so that the first camera and the second camera complete the focus.
- binocular ranging is used to calculate the object distance of the image main body, and then the VCM is controlled to move the lens to the specified lens position to complete the active focusing process
- the present invention can compare the laser ranging method and The confidence level of the binocular ranging method is used, and the relationship between the confidence thresholds and the corresponding confidence thresholds is determined to determine the distance by using the laser ranging method or the binocular ranging method, and then completing the vicinity of the quasi-focus in the lens position interval.
- the process of focusing the ranging method can be selected according to the relationship between the confidence levels of the two ranging methods and the respective confidence thresholds. Therefore, different ranging methods can be adopted for different situations, thereby avoiding the focus window.
- the inner object has a weak texture, or the focus in the focus window is repeated and the focus fails. Therefore, the position of the quasi-focus can be determined quickly and accurately, thereby completing the focusing process of the first camera and the second camera.
- the present invention can improve the focusing accuracy of the terminal during photographing and focusing.
- the binocular ranging camera specifically includes the first camera and the second camera, and Moreover, the image captured by the first camera is used for user preview, and the image captured by the second camera is not used for user preview. Therefore, in order not to affect the display effect of the first image captured by the first camera, in order to improve the focusing speed, in order to improve the focusing speed, in an implementation manner of the embodiment of the present invention, the ranging speed of the second camera can be improved by increasing the speed at which the second camera captures the image, thereby improving the focusing speed. That is to say, in the embodiment of the present invention, the speed at which the second camera captures the second image is greater than the speed at which the first camera captures the image.
- step 1021 when the first confidence is greater than the first confidence threshold, and the second confidence is greater than the second confidence threshold, and the absolute value of the difference between the first object distance and the second object distance is less than the object distance threshold And determining that the ranging mode is the binocular ranging mode, and determining that the second object distance is the target object distance, which may be specifically implemented as step 10211; in step 1022, when the first confidence is less than or equal to the first confidence threshold, and the second When the confidence level is greater than the second confidence threshold, the distance measurement mode is determined as the binocular ranging mode, and the second object distance is determined as the target object distance, which may be specifically implemented as step 10221:
- the first confidence level is less than or equal to the first confidence threshold, and the second confidence is greater than the second confidence threshold, determining that the second object distance obtained by ranging according to the first image and the second image is the target Object distance.
- the general high brightness is 30 fps (English: frame per second)
- Low illumination may reach 16fps or lower.
- the imaging speed of the frame image determines the speed of focusing to a certain extent, that is, the speed of the captured image is higher, then the focusing speed Faster.
- the binocular ranging mode includes the first camera and the second camera, and at the same time, only one image captured by the camera is used for user preview, and therefore, when the first camera collects The image is used for user preview, and the image captured by the second camera is not required for user preview.
- the imaging speed of the first camera can be compared with the imaging speed of the second camera. Lower. That is to say, the image captured by the first camera is sent and displayed to ensure the sharpness of the image previewed by the user, and at the same time, the distance measurement and focusing are completed by the second camera. That is to say, the first camera corresponding to the lower imaging speed ensures the preview effect of the image, and the second camera corresponding to the higher imaging speed ensures the focus speed.
- a method for photographing a focus of a terminal when the first confidence is greater than a first confidence threshold, and the second confidence is greater than a second confidence threshold, and the difference between the first object distance and the second object distance
- the target distance is obtained by binocular ranging.
- it may be implemented to determine the second object distance obtained by ranging according to the first image and the second image as the target object distance.
- binocular ranging is used to calculate the object distance of the image body, and then the VCM is controlled to reach the specified lens position to complete the active focusing process.
- the present invention needs to adopt the binocular ranging method to complete.
- the image captured by the first camera of the two cameras can be used to display the image, and the image captured by the second camera does not send the characteristic, and the focusing speed is improved by increasing the speed of the image captured by the second camera. Therefore, in the case of avoiding the focus failure caused by the object texture in the focus window being weak or the object in the focus window being repeated, the method for determining the ranging method and the target object distance is further provided, thereby further Improve the focus accuracy of the terminal during the camera focus process.
- the first camera includes a first lens
- the second camera includes a second lens and a second VCM.
- the terminal can use the initial position as a starting point, traverse the plurality of lens positions in the lens position interval according to a certain step size, and according to each image in the preliminary focusing result Contrast to determine the target position. Therefore, on the basis of the implementation shown in FIG. 3, an implementation as shown in FIG. 5 can also be implemented.
- the target position is determined in the lens position interval, so that the first camera and the second camera can perform the step 104 before the focus is completed.
- Step 103 can be specifically implemented as step 1031 and step 1032:
- the initial position is a position of the first lens and the second lens determined according to the target object distance.
- the initial position corresponding to the target object distance is determined, that is, the corresponding target distance is determined.
- the lens position of the first lens is the same as the lens position of the second lens.
- the terminal may control the second VCM to take the second lens to the initial position.
- the starting point moves toward a direction in which the lens position becomes smaller or larger, thereby completing the initial focus.
- the traversing may be performed according to a preset step size, or the lens position may be adjusted one by one according to the position of the sampling point set in advance.
- step size in the process of moving the lens and the setting manner of the sampling point are not specifically limited in the embodiment of the present invention, and may be preset by the staff according to the empirical value.
- steps 1031 and 1032 can be regarded as an improved hill climbing method.
- the specific execution process of the foregoing steps 1031 and 1032 can refer to the implementation manner of the traditional hill climbing method, and details are not described herein.
- the method for photographing a focus of a terminal controls the second VCM to move the second lens in the lens position interval by determining the initial position corresponding to the target object distance and starting from the initial position, and completing the preliminary Focus. Then, from among the plurality of preliminary focus results, the lens position corresponding to the second image having the largest contrast is determined as the target position.
- binocular ranging is used to calculate the object distance of the image body, and then the VCM is controlled to bring the lens to the specified lens position to complete the active focusing process.
- the present invention can be in the vicinity of the quasi-focus or the quasi-focus.
- the initial position is the starting point, and traversal is performed in the lens position interval until the target position in the lens position interval is determined.
- the invention is capable of improving the focus accuracy of the terminal during the photographing focus process.
- a faster focusing process can be achieved by improving the traditional hill climbing method.
- step 1031 and step 1032 step 105 to step 107 may be performed:
- the second camera obtains the focus result earlier than the first camera obtains the focus result. time.
- the second result may be After the camera finishes focusing and gets the focus result, the focus result is synchronized to the first camera. After that, according to the focusing result, the lens position of the second lens is adjusted to complete the focusing process of the dual camera.
- a method for photographing a focus of a terminal after determining a target position in all lens positions in a lens position interval by using an improved hill climbing method, moving the second lens to a target position by controlling the second VCM Focusing of the second lens, and then synchronizing the focusing result of the second lens to the first lens, so that the first lens is also moved to the target position, thereby completing the focusing process.
- binocular ranging is used to calculate the object distance of the image body, and then the VCM is controlled to reach the specified lens position to complete the active focusing process.
- the present invention needs to adopt the binocular ranging method to complete.
- the image acquired by the first camera of the two cameras can be used for display, and the image acquired by the second camera does not send the characteristic, and the speed of the image is collected by the second camera to improve the focusing speed. And, after the second camera completes the focusing process, the focusing result of the second camera is synchronized to the first camera.
- the focus speed of the dual camera is improved by the synchronization of the focus result, which means that the focus speed of the dual camera is improved, which means It not only improves the focusing accuracy of the terminal during the camera focusing process, but also ensures the consistency of the focusing results of the first camera and the second camera by means of the synchronization of the focusing results, and improves the focusing speed of the dual camera.
- the embodiment of the present invention provides a camera focusing device 20 of a terminal, as shown in FIG. 7 , for performing the method flow shown in FIG. 2 to FIG. 6 .
- the terminal includes a laser sensor, a first camera and a second camera, and the first camera and the second camera are arranged side by side; the device 20 includes:
- the obtaining module 21 is configured to obtain a first confidence level and a second confidence level, where the first confidence level is a confidence level of the object distance measured by using a laser ranging method, and the second confidence level is measured by using a binocular ranging method.
- the confidence of the object distance wherein the confidence is used to indicate the accuracy of the object distance measured by the ranging method.
- a determining module 22 configured to determine a target ranging manner and a target object distance when the first confidence degree and the second confidence degree acquired by the obtaining module 21 satisfy the preset condition, the preset strip
- the first ranging degree is greater than the first confidence threshold, and/or the second confidence is greater than the second confidence threshold, and the target ranging mode is a laser ranging method or a binocular ranging method.
- the determining module 22 is further configured to determine a target position within the lens position interval so that the first camera and the second camera complete focusing.
- the acquiring module 21 is further configured to acquire a first object distance and a second object distance, where the first object distance is an object distance measured by a laser ranging method, and the second object distance is The object distance measured by the binocular ranging method is used.
- the determining module 22 is configured to: when the first confidence obtained by the obtaining module 21 is greater than the first confidence threshold, and the second confidence is greater than the second confidence threshold, and the difference between the first object distance and the second object distance When the absolute value is less than the object distance difference threshold, it is determined that the ranging method is the binocular ranging mode, and the second object distance is determined as the target object distance;
- the ranging mode is the binocular ranging mode, and determining that the second object distance is the target object distance;
- Determining the ranging method is a laser ranging method, and determining that the first object distance is the target object distance;
- the first camera captures the first image and sends it to the display of the terminal, so that the user previews the first image, the second image captured by the second camera is not used for user preview, and the second camera captures the speed of the second image. Greater than the speed at which the first camera captures the first image.
- the determining module 22 is specifically configured to determine that the second object distance obtained by ranging according to the first image and the second image is a target object. distance.
- the first camera includes a first lens
- the second camera includes a second lens and a second voice coil motor VCM
- the determining module 22 is further configured to determine an initial position corresponding to the target object distance, the initial position being a position of the first lens and the second lens determined according to the target object distance.
- the determining module 22 is specifically configured to use the initial position as a starting point, and control the second VCM to move the second lens in the lens position interval to complete preliminary focusing;
- the lens position corresponding to the second image having the largest contrast is the target position.
- the first camera includes a first VCM, including:
- the control module 23 is configured to control the second VCM to move the second lens to the target position, and obtain a focusing result of the second mirror camera.
- the synchronization module 24 is configured to synchronize the focus result of the second camera obtained by the control module 23 to the first camera.
- the control module 23 is further configured to control the first VCM to move the first lens to the target position according to the focusing result of the second camera synchronized by the synchronization module 24.
- a photographing and focusing device for a terminal obtains a confidence level of an object distance obtained by using a laser ranging method and a binocular ranging method, wherein at least one confidence degree between the two confidence levels is greater than the
- the confidence level corresponds to the confidence threshold
- the target ranging mode and the target object distance are determined, and then the target position is determined within the lens position interval, so that the first camera and the second camera complete the focusing.
- the confidence is used to indicate the accuracy of the object distance measured by the ranging method.
- binocular ranging is used to calculate the object distance of the image body, and then the VCM is controlled to reach the specified lens position to complete the active focusing process.
- the present invention can determine different according to the needs of different application scenarios.
- the method of ranging is the target ranging method, and the target object distance is determined at the same time, and then the focus process is completed in the vicinity of the quasi-focus in the lens position interval.
- This means that the invention can adopt different ranging methods for different situations, thereby effectively avoiding the problem that the focus of the object in the focusing window is weak or the focus in the focusing window is repeated, so that the focus can be quickly And accurately determining the position of the quasi-focus, thereby completing the focusing process of the first camera and the second camera.
- this The invention can improve the focusing accuracy of the terminal during photographing and focusing.
- the embodiment of the present invention provides a camera focusing device 30 of a terminal, as shown in FIG. 8 , for performing the method flow shown in FIG. 2 to FIG. 6 .
- the terminal includes a laser sensor, a first camera and a second camera, and the first camera and the second camera are arranged side by side.
- the device 30 includes a processor 31 and an interface circuit 32, which also shows a memory 33 and a bus 34 that are connected by bus 34 and that communicate with each other.
- the processor 31 herein may be a processing component or a collective name of multiple processing components.
- the processing component may be a CPU, or may be an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention, for example: one or A plurality of microprocessors (English: digital singnal processor, referred to as DSP), or one or more field programmable gate arrays (English: Field Programmable Gate Array, referred to as: FPGA).
- DSP digital singnal processor
- FPGA Field Programmable Gate Array
- the memory 33 may be a storage device or a collective name of a plurality of storage elements, and is used to store executable program code or parameters, data, and the like required for the operation of the access network management device.
- the memory 33 may include a random access memory (abbreviation: RAM), and may also include a non-volatile memory (English: non-volatile memory), such as a magnetic disk memory, a flash memory (English: Flash), or the like.
- the bus 34 can be an industry standard architecture (English: Industry Standard Architecture, ISA for short), a peripheral device interconnection (English: Peripheral Component, PCI for short) or an extended industry standard architecture (English: Extended Industry Standard Architecture, Abbreviation: EISA) bus.
- the bus 34 can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 8, but it does not mean that there is only one bus or one type of bus.
- the device 30 may also include input and output devices coupled to the bus 34 for connection to other portions, such as the processor 31, via the bus 34.
- the processor 31 calls the program code in the memory 33 for executing the above
- the operations performed by device 30 in the method embodiments include:
- the first confidence level and the second confidence level are obtained by the interface circuit 32.
- the first confidence level is a confidence level of the object distance measured by the laser ranging method
- the second confidence level is the object measured by the binocular ranging method.
- the confidence of the distance wherein the confidence is used to indicate the accuracy of the object distance measured by the ranging method.
- the target ranging mode and the target object distance are determined, and the preset condition is that the first confidence is greater than the first confidence.
- the threshold, and/or the second confidence is greater than the second confidence threshold, and the target ranging mode is a laser ranging method or a binocular ranging method.
- the target position is determined so that the first camera and the second camera complete the focusing.
- the first object distance is obtained through the interface circuit 32.
- the second object distance, the first object distance is the object distance measured by the laser ranging method, and the second object distance is the object distance measured by the binocular ranging method.
- the processor 31 when the first confidence obtained by the interface circuit 32 is greater than the first confidence threshold, and the second confidence is greater than the second confidence threshold, and the absolute difference between the first object distance and the second object distance is absolute When the value is less than the object distance difference threshold, it is determined that the ranging method is the binocular ranging mode, and the second object distance is determined as the target object distance;
- the ranging mode is the binocular ranging mode, and determining that the second object distance is the target object distance;
- Determining the ranging method is a laser ranging method, and determining that the first object distance is the target object distance;
- the first camera captures the first image and sends it to the display of the terminal, so that the user previews the first image, the second image captured by the second camera is not used for user preview, and the second camera captures the speed of the second image. Greater than the speed at which the first camera captures the first image.
- the processor 31 determines that the second object distance obtained by ranging according to the first image and the second image is the target object distance.
- the first camera includes a first lens
- the second camera includes a second lens and a second voice coil motor VCM, and passes through the processor 31 before determining the target position in the lens position interval. And determining an initial position corresponding to the target object distance, wherein the initial position is a position of the first lens and the second lens determined according to the target object distance.
- the lens position corresponding to the second image having the largest contrast is the target position.
- the first camera includes a first VCM
- the second VCM is controlled by the processor 31 to move the second lens to the target position, and The focus result of the second mirror camera is obtained.
- the focus result of the second camera obtained by the processor 31 is synchronized to the first camera.
- the first VCM is controlled to move the first lens to the target position by the processor 31 in accordance with the focus result of the second camera synchronized by the interface circuit 32.
- the camera focus device of the terminal provides the confidence of the object distance obtained by using the laser ranging method and the binocular ranging method, when at least one confidence degree is greater than the
- the confidence level corresponds to the confidence threshold
- the target ranging mode and the target object distance are determined, and then the target position is determined within the lens position interval, so that the first camera and the second camera complete the focusing.
- the confidence is used to indicate the accuracy of the object distance measured by the ranging method.
- Binocular ranging is used to calculate the object distance of the image body, and then the VCM is controlled to make the lens reach the specified lens position to complete the active focusing process.
- the present invention can determine different ranging methods for the target measurement according to the requirements of different application scenarios.
- the target object distance is determined at the same time, and then in the lens position interval, the process of completing the focus near the quasi-focus is realized.
- the invention can adopt different ranging methods for different situations, thereby effectively avoiding the problem that the focus of the object in the focusing window is weak or the focus in the focusing window is repeated, so that the focus can be quickly And accurately determining the position of the quasi-focus, thereby completing the focusing process of the first camera and the second camera.
- the present invention can improve the focusing accuracy of the terminal during photographing and focusing.
- the embodiment of the present invention provides a computer program product 40.
- the computer program product 40 includes a readable storage medium 41 for storing computer program code, and the computer program code is run on a processor 42, the computer program code.
- the computer program product 40 includes a readable storage medium 41 for storing computer program code, and the computer program code is run on a processor 42, the computer program code.
- the first confidence is the confidence of the object distance measured by the laser ranging method
- the second confidence is the confidence of the object distance measured by the binocular ranging method.
- Degree where confidence is used to indicate the accuracy of the object distance measured by the ranging method.
- the target ranging method is a laser ranging method or a binocular ranging method.
- the terminal For determining the target position in the lens position interval, so that the first camera and the second camera complete the focusing, wherein the first camera and the second camera are disposed side by side on the terminal, and the terminal further includes a laser sensor.
- the computer program code before determining the target ranging manner and the target object distance, when the first confidence level and the second confidence degree satisfy the preset condition, the computer program code further includes:
- the first object distance and the second object distance are obtained, the first object distance is an object distance measured by a laser ranging method, and the second object distance is an object distance measured by a binocular distance measuring method.
- the ranging method is the binocular ranging mode, and the second object distance is determined as the target object distance.
- the ranging mode is the binocular ranging mode, and determining that the second object distance is Target distance.
- the ranging method is the laser ranging method, and the first object distance is determined as the target object distance.
- the ranging mode is the laser ranging mode, and determining the first object distance as the target Object distance.
- the first camera captures the first image and sends it to the display of the terminal, so that the user previews the first image, the second image captured by the second camera is not used for user preview, and the second camera captures the speed of the second image. Greater than the speed at which the first camera captures the first image.
- determining that the ranging method is a binocular ranging method and the computer program code specifically includes:
- the first camera includes a first lens
- the second camera includes a second lens and a second voice coil motor VCM.
- the computer program code Also includes:
- An initial position for determining a target object distance the initial position being a position of the first lens and the second lens determined according to the target object distance.
- the lens position corresponding to the second image having the largest contrast is the target position.
- the first camera includes a first VCM
- the computer program code further includes:
- a computer program product obtains a confidence level of an object distance obtained by using a laser ranging method and a binocular ranging method, wherein at least one confidence level between the two confidence levels is greater than the confidence level
- the target ranging mode and the target object distance are determined, and then the target position is determined within the lens position interval, so that the first camera and the second camera complete the focusing.
- the confidence is used to indicate the accuracy of the object distance measured by the ranging method.
- binocular ranging is used to calculate the object distance of the image body, and then the VCM is controlled to reach the specified lens position to complete the active focusing process.
- the present invention can determine different according to the needs of different application scenarios.
- the method of ranging is the target ranging method, and the target object distance is determined at the same time, and then the focus process is completed in the vicinity of the quasi-focus in the lens position interval.
- the invention can adopt different ranging methods for different situations, thereby effectively avoiding the problem that the focus of the object in the focusing window is weak or the focus in the focusing window is repeated, so that the focus can be quickly And accurately determining the position of the quasi-focus, thereby completing the focusing process of the first camera and the second camera.
- the present invention can improve the focusing accuracy of the terminal during photographing and focusing.
- the disclosed apparatus and method may be implemented in other manners.
- the device embodiments described above are merely illustrative.
- the division of the modules is only a logical function division.
- there may be another division manner for example, multiple modules or components may be combined or It can be integrated into another device, or some features can be ignored or not executed.
- the mutual coupling or direct coupling or communication connection shown or discussed may be indirectly coupled or communicatively coupled through some interface, device or module, and may be electrical, mechanical or otherwise.
- the modules described as separate components may or may not be physically separated.
- the components displayed as modules may be one physical module or multiple physical modules, that is, may be located in one place, or may be distributed to multiple different places. . Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
- each functional module in each embodiment of the present invention may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.
- the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
- the integrated modules if implemented in the form of software functional modules and sold or used as separate products, may be stored in a readable storage medium. Based on such understanding, the technical solution of the present invention may contribute to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a device (which may be a microcontroller, chip, etc.) or a processor to perform all or part of the steps of the methods described in various embodiments of the present invention.
- the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (English: Read-Only Memory, ROM for short), a random access memory (abbreviation: RAM), a magnetic disk, or an optical disk, and the like.
- a U disk a mobile hard disk
- a read-only memory English: Read-Only Memory, ROM for short
- a random access memory abbreviation: RAM
- a magnetic disk or an optical disk, and the like.
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Remote Sensing (AREA)
- Electromagnetism (AREA)
- Radar, Positioning & Navigation (AREA)
- Optics & Photonics (AREA)
- Human Computer Interaction (AREA)
- Automatic Focus Adjustment (AREA)
- Focusing (AREA)
- Studio Devices (AREA)
- Measurement Of Optical Distance (AREA)
Abstract
本发明实施例公开了一种终端的拍照对焦方法、装置及设备,涉及电子设备技术领域,能够提高终端在拍照对焦过程中的对焦精度。本发明实施例的方法包括:获取第一置信度和第二置信度;当第一置信度和第二置信度满足预设条件时,确定目标测距方式和目标物距;在镜头位置区间内,确定目标位置,以便于第一摄像头和第二摄像头完成对焦。本发明适用于对焦过程。
Description
本发明涉及电子设备技术领域,尤其涉及一种终端的拍照对焦方法、装置及设备。
随着电子设备技术领域的发展,尤其是拍摄设备的普及,用户对于拍摄过程中的对焦速度也有了更高的需求。目前,常用的对焦算法主要包括主动式对焦和被动式对焦,其中,主动式对焦具体可以实现为通过测距法来完成对焦,被动式对焦可以具体实现为通过爬山法来完成对焦。爬山法,主要是通过分析所有镜头位置对应图像的清晰度,找到对比度最大的镜头位置作为准焦图像对应的镜头位置,从而完成对焦;测距法,主要是根据物距计算出准焦图像对应的镜头位置,并通过移动音圈马达(英文:Voice Coil Motor,简称:VCM),使VCM到达指定的镜头位置,从而完成对焦。由于采用爬山法来完成对焦的过程中,需要获取将VCM移动至多个镜头位置所得到的图像,并对各个图像的清晰度进行对比、分析,也就意味着需要耗费大量时间来完成爬山法对焦方案,因此,为了快速、准确地完成对焦,通常采用成本较高的测距法来实现对焦过程。在测距法进行对焦过程中,物距的测量可以采用双目测距方式或激光测距方式,而由于采用双目测距不仅可以使测距范围长达2米,且相比较于激光测距过程,采用双目测距可以对整个图像都完成测距,因此,通常采用双目测距来计算图像主体的物距,之后通过移动VCM,使VCM到达指定的镜头位置,从而完成主动对焦过程。
但是,由于双目测距存在一定局限性,比如:对于低照度、平坦区和重复图案的精准度很差;当VCM位置与准焦位置相距较远时测距精度较低;以及,整体测距精度低于激光测距的精度。因此,
当对焦窗内物体纹理较弱,比如:白墙、蓝天等,或是对焦窗内物体有重复时,比如:格子衬衫等,在这些场景下,采用双目测距结合VCM的方式来完成主动对焦,往往容易获得错误的深度信息,从而导致对焦过程失败,大幅度降低对焦过程的精度。
发明内容
本发明实施例提供一种终端的拍照对焦方法、装置及设备,能够提高终端在拍照对焦过程中的对焦精度。
为达到上述目的,本发明实施例采用如下技术方案:
第一方面,本发明实施例提供一种终端的拍照对焦方法,所述终端包括激光传感器、第一摄像头和第二摄像头,所述第一摄像头和所述第二摄像头并排设置;所述方法包括:获取第一置信度和第二置信度,所述第一置信度为采用激光测距方式测量得到的物距的置信度,所述第二置信度为采用双目测距方式测量得到的物距的置信度,其中,置信度用于表示采用测距方式测量得到的物距的准确性;当所述第一置信度和所述第二置信度满足预设条件时,确定目标测距方式和目标物距,所述预设条件为所述第一置信度大于第一置信度阈值,和/或所述第二置信度大于第二置信度阈值,所述目标测距方式为所述激光测距方式或所述双目测距方式;在镜头位置区间内,确定目标位置,以便于所述第一摄像头和所述第二摄像头完成对焦。
该方法与现有技术中采用双目测距来计算图像主体的物距,之后通过控制VCM,使镜头移动至指定镜头位置以完成主动对焦过程的方式相比,可以根据不同应用场景的需求,确定不同的测距方式为目标测距方式,同时确定目标物距,之后在镜头位置区间内,实现在准焦点附近完成对焦的过程。这就意味着,本发明可以针对不同情况采取不同的测距方式,有效避免了因对焦窗内物体纹理较弱,或是对焦窗内物体有重复而导致的对焦失败的问题,因此,可以快速且准确的确定准焦点的位置,从而完成第一摄像头和第二摄像头
的对焦过程。综上所述,本发明能够提高终端在拍照对焦过程中的对焦精度。
结合第一方面,在第一方面第一种可能的实现方式中,在所述当所述第一置信度和所述第二置信度满足预设条件时,确定目标测距方式和目标物距之前,包括:获取第一物距和第二物距,所述第一物距为采用所述激光测距方式测量得到的物距,所述第二物距为采用所述双目测距方式测量得到的物距;所述当所述第一置信度和所述第二置信度满足预设条件时,确定目标测距方式和目标物距,包括:当所述第一置信度大于所述第一置信度阈值,且所述第二置信度大于所述第二置信度阈值,且所述第一物距与所述第二物距的差值的绝对值小于物距差门限时,则确定测距方式为所述双目测距方式,同时确定所述第二物距为所述目标物距;或者,当所述第一置信度小于或等于所述第一置信度阈值,且所述第二置信度大于所述第二置信度阈值时,则确定测距方式为所述双目测距方式,同时确定所述第二物距为所述目标物距;当所述第一置信度大于所述第一置信度阈值,且所述第二置信度大于所述第二置信度阈值,且所述第一物距与所述第二物距的差值的绝对值大于或等于所述物距差门限时,则确定测距方式为所述激光测距方式,同时确定所述第一物距为所述目标物距;或者,当所述第一置信度大于所述第一置信度阈值,且所述第二置信度小于或等于所述第二置信度阈值时,则确定测距方式为所述激光测距方式,同时确定所述第一物距为所述目标物距。
该方法在第一方面实现方式的基础上,能够通过分别比较第一置信度与第一置信度阈值之间的大小关系,以及第二置信度与第二置信度阈值之间的大小关系,来确定激光测距方式与双目测距方式中更加合适的测距方式,从而具体实现了可以根据不同应用场景的需求,确定不同的测距方式为目标测距方式,并确定目标物距,之后在镜头位置区间内,实现在准焦点附近完成对焦的过程。这就意味着,本发明提出了具体用于确定测距方式和目标物距的方法,从
而更进一步提高了终端在拍照对焦过程中的对焦精度。
结合第一方面第一种可能的实现方式,在第一方面第二种可能的实现方式中,所述第一摄像头采集第一图像,并发送给所述终端的显示器,以便于用户预览所述第一图像,所述第二摄像头采集的第二图像不用于用户预览,所述第二摄像头采集所述第二图像的速度大于所述第一摄像头采集所述第一图像的速度。
该方法在第一方面第一种可能的实现方式的基础上,考虑到对焦速度与图像采集速度之间的相关关系,充分利用了两个摄像头各自所具备的特性,不仅能够确保用于用户预览的第一图像的显示效果,同时还确保了不用于用户预览的第二图像,为用户提供更加快速的对焦效果。
结合第一方面第二种可能的实现方式,在第一方面第三种可能的实现方式中,所述确定测距方式为所述双目测距方式,所述同时确定所述第二物距为所述目标物距,包括:确定根据所述第一图像和所述第二图像进行测距得到的所述第二物距为所述目标物距。
该方法在第一方面第二种可能的实现方式的基础上,提供了具体的确定第二物距为目标物距的方式,即根据第一图像和第二图像进行测距。
结合第一方面第二或第三种可能的实现方式,在第一方面第四种可能的实现方式中,所述第一摄像头包括第一镜头,所述第二摄像头包括第二镜头和第二音圈马达VCM,在所述在镜头位置区间内,确定目标位置之前,包括:确定所述目标物距对应的初始位置,所述初始位置为根据所述目标物距确定的所述第一镜头和所述第二镜头的位置;所述在镜头位置区间内,确定目标位置,包括:以所述初始位置为起始点,控制所述第二VCM将所述第二镜头在所述镜头位置区间内移动,完成初步对焦;确定所有初步对焦的结果中,对比度最大的第二图像对应的镜头位置为所述目标位置。
该方法在第一方面第二或第三种可能的实现方式的基础上,限定了两个摄像头的内部结构,并将初始位置确定为改进后爬上法的
起始点,以实现在镜头位置区间内,将准焦点或是准焦点附近的镜头位置作为起始点,来完成目标位置的确定过程,相比较于传统爬上法,减少了确定目标位置的时间,进而提升终端的对焦速率。
结合第一方面第四种可能的实现方式,在第一方面第五种可能的实现方式中,所述第一摄像头包括第一VCM,在所述在镜头位置区间内,确定目标位置之后,包括:控制所述第二VCM将所述第二镜头移动至所述目标位置,并得到所述第二镜摄像头的对焦结果;同步所述第二摄像头的对焦结果至所述第一摄像头;根据所述第二摄像头的对焦结果,控制所述第一VCM将所述第一镜头移动至所述目标位置。
该方法在第一方面第四种可能的实现方式的基础上,进一步限定了第一摄像头的内部结构,同时,考虑到第一摄像头采集图像的速度小于第二摄像头采集图像的速度,因此,第二摄像头的对焦速度较快,即第二摄像头相比较于第一摄像头,会先完成对焦过程。因此,提出了一种同步第二摄像头的对焦结果至第一摄像头的方法,也就是在不影响第一摄像头采集用于预览的图像的同时,进一步提高双摄像头完成对焦过程的速率。
第二方面,本发明实施例提供一种终端的拍照对焦装置,所述终端包括激光传感器、第一摄像头和第二摄像头,所述第一摄像头和所述第二摄像头并排设置;所述装置包括:获取模块,用于获取第一置信度和第二置信度,所述第一置信度为采用激光测距方式测量得到的物距的置信度,所述第二置信度为采用双目测距方式测量得到的物距的置信度,其中,置信度用于表示采用测距方式测量得到的物距的准确性;确定模块,用于当通过所述获取模块获取的所述第一置信度和所述第二置信度满足预设条件时,确定目标测距方式和目标物距,所述预设条件为所述第一置信度大于第一置信度阈值,和/或所述第二置信度大于第二置信度阈值,所述目标测距方式为所述激光测距方式或所述双目测距方式;所述确定模块,还用于在镜头位置区间内,确定目标位置,以便于所述第一摄像头和所述
第二摄像头完成对焦。
该装置与现有技术中采用双目测距来计算图像主体的物距,之后通过控制VCM,使镜头移动至指定镜头位置以完成主动对焦过程的方式相比,可以根据不同应用场景的需求,确定不同的测距方式为目标测距方式,同时确定目标物距,之后在镜头位置区间内,实现在准焦点附近完成对焦的过程。这就意味着,本发明可以针对不同情况采取不同的测距方式,有效避免了因对焦窗内物体纹理较弱,或是对焦窗内物体有重复而导致的对焦失败的问题,因此,可以快速且准确的确定准焦点的位置,从而完成第一摄像头和第二摄像头的对焦过程。综上所述,本发明能够提高终端在拍照对焦过程中的对焦精度。
结合第二方面,在第二方面第一种可能的实现方式中,所述获取模块,还用于获取第一物距和第二物距,所述第一物距为采用所述激光测距方式测量得到的物距,所述第二物距为采用所述双目测距方式测量得到的物距;所述确定模块,具体用于当通过所述获取模块获取的所述第一置信度大于所述第一置信度阈值,且所述第二置信度大于所述第二置信度阈值,且所述第一物距与所述第二物距的差值的绝对值小于物距差门限时,则确定测距方式为所述双目测距方式,同时确定所述第二物距为所述目标物距;或者,当所述第一置信度小于或等于所述第一置信度阈值,且所述第二置信度大于所述第二置信度阈值时,则确定测距方式为所述双目测距方式,同时确定所述第二物距为所述目标物距;当所述第一置信度大于所述第一置信度阈值,且所述第二置信度大于所述第二置信度阈值,且所述第一物距与所述第二物距的差值的绝对值大于或等于所述物距差门限时,则确定测距方式为所述激光测距方式,同时确定所述第一物距为所述目标物距;或者,当所述第一置信度大于所述第一置信度阈值,且所述第二置信度小于或等于所述第二置信度阈值时,则确定测距方式为所述激光测距方式,同时确定所述第一物距为所述目标物距。
结合第二方面第一种可能的实现方式,在第二方面第二种可能的实现方式中,所述第一摄像头采集第一图像,并发送给所述终端的显示器,以便于用户预览所述第一图像,所述第二摄像头采集的第二图像不用于用户预览,所述第二摄像头采集所述第二图像的速度大于所述第一摄像头采集所述第一图像的速度。
结合第二方面第二种可能的实现方式,在第二方面第三种可能的实现方式中,所述确定测距方式为所述双目测距方式,所述确定模块,具体用于确定根据所述第一图像和所述第二图像进行测距得到的所述第二物距为所述目标物距。
结合第二方面第二或第三种可能的实现方式,在第二方面第四种可能的实现方式中,所述第一摄像头包括第一镜头,所述第二摄像头包括第二镜头和第二音圈马达VCM,所述确定模块,还用于确定所述目标物距对应的初始位置,所述初始位置为根据所述目标物距确定的所述第一镜头和所述第二镜头的位置;所述确定模块,具体用于以所述初始位置为起始点,控制所述第二VCM将所述第二镜头在所述镜头位置区间内移动,完成初步对焦;确定所有初步对焦的结果中,对比度最大的第二图像对应的镜头位置为所述目标位置。结合第二方面第四种可能的实现方式,在第二方面第五种可能的实现方式中,所述第一摄像头包括第一VCM,包括:控制模块,用于控制所述第二VCM将所述第二镜头移动至所述目标位置,并得到所述第二镜摄像头的对焦结果;同步模块,用于同步通过所述控制模块得到的所述第二摄像头的对焦结果至所述第一摄像头;所述控制模块,还用于根据通过所述同步模块同步的所述第二摄像头的对焦结果,控制所述第一VCM将所述第一镜头移动至所述目标位置。第三方面,本发明实施例提供一种终端的拍照对焦设备,所述终端包括激光传感器、第一摄像头和第二摄像头,所述第一摄像头和所述第二摄像头并排设置;所述设备包括:接口电路,用于获取第一置信度和第二置信度,所述第一置信度为采用激光测距方式测量得到的物距的置信度,所述第二置信度为采用双目测距方式测量得到
的物距的置信度,其中,置信度用于表示采用测距方式测量得到的物距的准确性;处理器,用于当通过所述接口电路获取的所述第一置信度和所述第二置信度满足预设条件时,确定目标测距方式和目标物距,所述预设条件为所述第一置信度大于第一置信度阈值,和/或所述第二置信度大于第二置信度阈值,所述目标测距方式为所述激光测距方式或所述双目测距方式;所述处理器,还用于在镜头位置区间内,确定目标位置,以便于所述第一摄像头和所述第二摄像头完成对焦。
该设备与现有技术中采用双目测距来计算图像主体的物距,之后通过控制VCM,使镜头移动至指定镜头位置以完成主动对焦过程的方式相比,可以根据不同应用场景的需求,确定不同的测距方式为目标测距方式,同时确定目标物距,之后在镜头位置区间内,实现在准焦点附近完成对焦的过程。这就意味着,本发明可以针对不同情况采取不同的测距方式,有效避免了因对焦窗内物体纹理较弱,或是对焦窗内物体有重复而导致的对焦失败的问题,因此,可以快速且准确的确定准焦点的位置,从而完成第一摄像头和第二摄像头的对焦过程。综上所述,本发明能够提高终端在拍照对焦过程中的对焦精度。
结合第三方面,在第三方面第一种可能的实现方式中,在所述当所述第一置信度和所述第二置信度满足预设条件时,确定目标测距方式和目标物距之前,所述接口电路,还用于获取第一物距和第二物距,所述第一物距为采用所述激光测距方式测量得到的物距,所述第二物距为采用所述双目测距方式测量得到的物距;所述处理器,具体用于当通过所述接口电路获取的所述第一置信度大于所述第一置信度阈值,且所述第二置信度大于所述第二置信度阈值,且所述第一物距与所述第二物距的差值的绝对值小于物距差门限时,则确定测距方式为所述双目测距方式,同时确定所述第二物距为所述目标物距;或者,当所述第一置信度小于或等于所述第一置信度阈值,且所述第二置信度大于所述第二置信度阈值时,则确定测距
方式为所述双目测距方式,同时确定所述第二物距为所述目标物距;当所述第一置信度大于所述第一置信度阈值,且所述第二置信度大于所述第二置信度阈值,且所述第一物距与所述第二物距的差值的绝对值大于或等于所述物距差门限时,则确定测距方式为所述激光测距方式,同时确定所述第一物距为所述目标物距;或者,当所述第一置信度大于所述第一置信度阈值,且所述第二置信度小于或等于所述第二置信度阈值时,则确定测距方式为所述激光测距方式,同时确定所述第一物距为所述目标物距。
结合第三方面第一种可能的实现方式,在第三方面第二种可能的实现方式中,所述第一摄像头采集第一图像,并发送给所述终端的显示器,以便于用户预览所述第一图像,所述第二摄像头采集的第二图像不用于用户预览,所述第二摄像头采集所述第二图像的速度大于所述第一摄像头采集所述第一图像的速度。
结合第三方面第二种可能的实现方式,在第三方面第三种可能的实现方式中,所述确定测距方式为所述双目测距方式,所述处理器,具体用于确定根据所述第一图像和所述第二图像进行测距得到的所述第二物距为所述目标物距。
结合第三方面第二或第三种可能的实现方式,在第三方面第四种可能的实现方式中,所述第一摄像头包括第一镜头,所述第二摄像头包括第二镜头和第二音圈马达VCM,在所述在镜头位置区间内,确定目标位置之前,所述处理器,还用于确定所述目标物距对应的初始位置,所述初始位置为根据所述目标物距确定的所述第一镜头和所述第二镜头的位置;所述处理器,具体用于以所述初始位置为起始点,控制所述第二VCM将所述第二镜头在所述镜头位置区间内移动,完成初步对焦;确定所有初步对焦的结果中,对比度最大的第二图像对应的镜头位置为所述目标位置。
结合第三方面第四种可能的实现方式,在第三方面第五种可能的实现方式中,所述第一摄像头包括第一VCM,在所述在镜头位置区间内,确定目标位置之后,所述处理器,还用于控制所述第二VCM
将所述第二镜头移动至所述目标位置,并得到所述第二镜摄像头的对焦结果;所述接口电路,还用于同步通过所述处理器得到的所述第二摄像头的对焦结果至所述第一摄像头;所述处理器,还用于根据通过所述接口电路同步的所述第二摄像头的对焦结果,控制所述第一VCM将所述第一镜头移动至所述目标位置。
第四方面,本发明实施例提供一种计算机程序产品,所述计算机程序产品包括可读取存储介质用于存储计算机程序代码,所述计算机程序代码运行在一个处理器上,所述计算机程序代码,包括:用于获取第一置信度和第二置信度,所述第一置信度为采用激光测距方式测量得到的物距的置信度,所述第二置信度为采用双目测距方式测量得到的物距的置信度,其中,置信度用于表示采用测距方式测量得到的物距的准确性;用于当所述第一置信度和所述第二置信度满足预设条件时,确定目标测距方式和目标物距,所述预设条件为所述第一置信度大于第一置信度阈值,和/或所述第二置信度大于第二置信度阈值,所述目标测距方式为所述激光测距方式或所述双目测距方式;用于在镜头位置区间内,确定目标位置,以便于第一摄像头和第二摄像头完成对焦,其中,所述第一摄像头和所述第二摄像头并排设置于终端上,所述终端还包括激光传感器。
该产品与现有技术中采用双目测距来计算图像主体的物距,之后通过控制VCM,使镜头移动至指定镜头位置以完成主动对焦过程的方式相比,可以根据不同应用场景的需求,确定不同的测距方式为目标测距方式,同时确定目标物距,之后在镜头位置区间内,实现在准焦点附近完成对焦的过程。这就意味着,本发明可以针对不同情况采取不同的测距方式,有效避免了因对焦窗内物体纹理较弱,或是对焦窗内物体有重复而导致的对焦失败的问题,因此,可以快速且准确的确定准焦点的位置,从而完成第一摄像头和第二摄像头的对焦过程。综上所述,本发明能够提高终端在拍照对焦过程中的对焦精度。
结合第四方面,在第四方面第一种可能的实现方式中,在所述
当所述第一置信度和所述第二置信度满足预设条件时,确定目标测距方式和目标物距之前,所述计算机程序代码,还包括:用于获取第一物距和第二物距,所述第一物距为采用所述激光测距方式测量得到的物距,所述第二物距为采用所述双目测距方式测量得到的物距;所述计算机程序代码,具体包括:用于当所述第一置信度大于所述第一置信度阈值,且所述第二置信度大于所述第二置信度阈值,且所述第一物距与所述第二物距的差值的绝对值小于物距差门限时,则确定测距方式为所述双目测距方式,同时确定所述第二物距为所述目标物距;或者,用于当所述第一置信度小于或等于所述第一置信度阈值,且所述第二置信度大于所述第二置信度阈值时,则确定测距方式为所述双目测距方式,同时确定所述第二物距为所述目标物距;用于当所述第一置信度大于所述第一置信度阈值,且所述第二置信度大于所述第二置信度阈值,且所述第一物距与所述第二物距的差值的绝对值大于或等于所述物距差门限时,则确定测距方式为所述激光测距方式,同时确定所述第一物距为所述目标物距;或者,用于当所述第一置信度大于所述第一置信度阈值,且所述第二置信度小于或等于所述第二置信度阈值时,则确定测距方式为所述激光测距方式,同时确定所述第一物距为所述目标物距。
结合第四方面第一种可能的实现方式,在第四方面第二种可能的实现方式中,所述第一摄像头采集第一图像,并发送给所述终端的显示器,以便于用户预览所述第一图像,所述第二摄像头采集的第二图像不用于用户预览,所述第二摄像头采集所述第二图像的速度大于所述第一摄像头采集所述第一图像的速度。
结合第四方面第二种可能的实现方式,在第四方面第三种可能的实现方式中,所述确定测距方式为所述双目测距方式,所述计算机程序代码,具体包括:用于确定根据所述第一图像和所述第二图像进行测距得到的所述第二物距为所述目标物距。
结合第四方面第二或第三种可能的实现方式,在第四方面第四种可能的实现方式中,所述第一摄像头包括第一镜头,所述第二摄
像头包括第二镜头和第二音圈马达VCM,在所述在镜头位置区间内,确定目标位置之前,所述计算机程序代码,还包括:用于确定所述目标物距对应的初始位置,所述初始位置为根据所述目标物距确定的所述第一镜头和所述第二镜头的位置;所述计算机程序代码,具体包括:用于以所述初始位置为起始点,控制所述第二VCM将所述第二镜头在所述镜头位置区间内移动,完成初步对焦;确定所有初步对焦的结果中,对比度最大的第二图像对应的镜头位置为所述目标位置。
结合第四方面第四种可能的实现方式,在第四方面第五种可能的实现方式中,所述第一摄像头包括第一VCM,在所述在镜头位置区间内,确定目标位置之后,所述计算机程序代码,还包括:用于控制所述第二VCM将所述第二镜头移动至所述目标位置,并得到所述第二镜摄像头的对焦结果;用于同步所述第二摄像头的对焦结果至所述第一摄像头;用于根据所述第二摄像头的对焦结果,控制所述第一VCM将所述第一镜头移动至所述目标位置。
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。
图1为本发明实施例提供的一种测距对焦系统的结构示意图;
图2为本发明实施例提供的一种终端的拍照对焦方法流程图;
图3为本发明实施例提供的另一种终端的拍照对焦方法流程图;
图4为本发明实施例提供的另一种终端的拍照对焦方法流程图;
图5为本发明实施例提供的另一种终端的拍照对焦方法流程
图;
图6为本发明实施例提供的另一种终端的拍照对焦方法流程图;
图7为本发明实施例提供的一种终端的拍照对焦装置的结构示意图;
图8为本发明实施例提供的一种终端的拍照对焦设备的结构示意图;
图9为本发明实施例提供的一种计算机程序产品的结构示意图。
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。
本发明实施例可以用于一种测距对焦系统,该系统同时具有双目测距功能、激光测距功能,以及对焦功能。例如:如图1所示的测距对焦系统中,包括:第一镜头、第二镜头、第一图像传感器(英文:Image Sensor)、第二图像传感器、第一图像信号处理器(英文:Image Signal Processor,简称:ISP)、第二图像信号处理器、中央处理器(英文:Central Processing Unit,简称:CPU)、液晶显示器(英文:Liquid Crystal Display,简称:LCD)、图像存储器、激光传感器、电池、触摸屏,以及随机存储器(英文:Random Access Memory,简称:RAM)。其中,第一摄像头包括第一镜头、第一图像传感器和第一图像信号处理器,第二摄像头包括第二镜头、第二图像传感器和第二图像信号处理器。
双目测距方式,主要是基于视差原理并利用第一摄像头和第二摄像头在同时工作模式时,从不同的位置采集被测物体的两幅图像,
通过计算这两幅图像对应点间的位置偏差,来获取物体三维几何信息的方法。也就意味着,第一摄像头可以将获取的图像经过第一图像传感器和第一图像信号处理器发送至中央处理器进行处理,第二摄像头可以将获取的图像经过第二图像传感器和第二图像信号处理器发送至中央处理器进行处理。之后由中央处理器完成测距、对焦,并将处理结果反馈至第一图像信号处理器和第一图像信号处理器。需要说明的是,上述第一摄像头和第二摄像头可以同时工作,或是根据当前需求不同时进行工作,对于第一摄像头和第二摄像头的工作时间是否一致,在本发明实施例中不作具体限定,可以根据应用场景的需求进行调整。
激光测距方式,主要是利用激光对被测物体的距离进行准确测量。在进行激光测距时,激光传感器内部的发射器通过向目标射出一束很细的激光,之后由光电元件接收被测物体反射的激光束,同时由激光传感器内部的计时器测定激光束从发射到接收的时间,之后计算出从观测者到被测物体的距离,即物距。之后将物距发送至中央处理器,并由中央处理器完成对焦。
需要说明的是,由于上述激光测距过程与双目测距过程在执行过程中不存在干扰,因此,在本发明实施例中,上述两种测距方式可以同时执行。另外,激光测距方式和双目测距方式都具有各自的优劣性,具体如表一所示。
表一
本发明实施例提供一种终端的拍照对焦方法,如图2所示,该方法由具有对焦功能的设备来执行,比如:终端,该终端包括激光传感器、第一摄像头和第二摄像头,其中,第一摄像头和第二摄像头并排设置,该方法包括:
101、获取第一置信度和第二置信度。
其中,第一置信度为采用激光测距方式测量得到的物距的置信度,第二置信度为采用双目测距方式测量得到的物距的置信度,其中,置信度用于表示采用测距方式测量得道的物距的准确性。
由于激光测距方式中,该设备的发射器发射激光,并在激光打到物体之后,反射激光中部分光子至接收器,因此,激光测距模块可以通过计算接收到的反射光子与发射器发射的光子数量的比值来确定第一置信度。需要说明的是,一般情况下,物体距离镜头越近,则置信度越高,物体距离镜头越远,则置信度越低。第一置信度的获取方式不仅限于上述方式,在本发明实施例中不作具体限定。
在双目测距方式中,第二置信度的数值可以用特征点的数量来表示,或是用高置信度特征点占所有特征点数量的比值来表示。其中,特征点的数量,以及高置信度特征点的确定方式将在后文提出,在此不做赘述。需要说明的是,第二置信度的表示方式,在本发明实施例中不作具体限定,且第二置信度的获取方式不仅限于上述方式。
102、当第一置信度和第二置信度满足预设条件时,确定测距方式和目标物距。
其中,预设条件为第一置信度大于第一置信度阈值,和/或第二置信度大于第二置信度阈值,测距方式为激光测距方式或双目测距方式。
需要说明的是,为了确保对焦过程的准确性,当第一置信度小于或等于第一置信度阈值,且第二置信度小于或等于第二置信度阈值时,可以采用传统的爬山法来进行对焦。也就是由具有对焦功能的设备,通过分析不同镜头位置对应图像的清晰度,找到对比度最大的镜头位置作为准焦图像对应的镜头位置,之后VCM将镜头移动至准焦图像对应的镜头位置,从而完成对焦。
在本发明实施例中,结合第一置信度阈值与第一置信度,以及第二置信度阈值与第二置信度,可以准确确定采用的测距方式。其中,第一置信度阈值与第二置信度阈值可以根据历史经验值,由工作人员预先设定,或是由该设备根据一定规则预先生成,对于第一置信度阈值和第二置信度阈值的设置方式,在本发明实施例中不作具体限定。
需要说明的是,第一摄像头中的第一镜头,与第二摄像头中的第二镜头可以共用一个VCM,或是为每个镜头设置唯一对应的VCM。并且,VCM可以设置在摄像头中,也可以独立设置在摄像头之外。在本发明实施例中,关于VCM的设置方式,以及VCM与镜头之间的对应关系,不作具体限定,可以根据应用场景的需求,进行设置。
103、在镜头位置区间内,确定目标位置,以便于第一摄像头和第二摄像头完成对焦。
由于采用双目测距方式或激光测距方式进行测距过程中,可能存在一定误差,从而导致根据所得到的物距不一定能准确确定准焦图像对应的镜头位置,因此,在本发明实施例中,为了保证VCM能够将镜头移动至准焦图像对应的镜头位置,不仅需要在所获取的物距对应的镜头位置完成图像的采集,还需要通过在镜头位置区间中遍历各个镜头位置来完成图像的采集,之后确定出目标位置。需要说明的是,由于镜头位置区间为设备出厂时就确定的区间范围,即镜头近焦位置与远焦位置所构成的区间,该镜头位置区间内可以包括多个镜头位置,且这些镜头位置中应该存在准焦图像对应的镜头位置,同时也包括目标物距对应的镜头位置。虽然采用双目测距方
式或激光测距方式可能存在也一定误差,但误差范围较小,也就意味着根据测得的物距确定的镜头位置为准焦图像对应的镜头位置附近的镜头位置。
在本发明实施例中,具体可以将目标物距对应的镜头位置作为镜头位置区间的遍历起始点,并根据历史经验值来确定遍历过程的步长,之后根据用户的需求选择向镜头位置区间中大或小的方向进行遍历,直到得出目标位置为止。需要说明的是,确定目标位置的方式不仅限于上述方式,在本发明实施例中,对于确定目标位置的方式不作具体限定。
需要说明的是,在确定目标位置的过程中,可以参考现有技术中采用传统爬山法来完成对焦的过程,或是参考现有技术中采用测距法来完成对焦的过程,控制VCM将镜头移动至目标位置以完成对焦。
本发明实施例提供的一种终端的拍照对焦方法,分别获取采用激光测距方式与采用双目测距方式得到的物距的置信度,当这两个置信度中存在至少一个置信度大于该置信度对应的置信度阈值时,确定目标测距方式和目标物距,之后在镜头位置区间内确定目标位置,以便于第一摄像头和第二摄像头完成对焦。其中,置信度用于表示采用测距方式测量得到的物距的准确性。相比较于现有技术中采用双目测距来计算图像主体的物距,之后通过控制VCM,使镜头到达指定的镜头位置以完成主动对焦过程,本发明可以根据不同应用场景的需求,确定不同的测距方式为目标测距方式,同时确定目标物距,之后在镜头位置区间内,实现在准焦点附近完成对焦的过程。这就意味着,本发明可以针对不同情况采取不同的测距方式,有效避免了因对焦窗内物体纹理较弱,或是对焦窗内物体有重复而导致的对焦失败的问题,因此,可以快速且准确的确定准焦点的位置,从而完成第一摄像头和第二摄像头的对焦过程。综上所述,本发明能够提高终端在拍照对焦过程中的对焦精度。
由于不同的测距方式适用于不同的应用场景,因此,为了确保
所选用的测距方式能够适应当前的应用场景,在本发明实施例的一个实现方式中,可以通过分别比较第一置信度与第一置信度阈值之间的大小关系,以及第二置信度与第二置信度阈值之间的大小关系,来确定激光测距方式与双目测距方式中更加合适的测距方式。因此,在如图2所示的实现方式的基础上,还可以实现为如图3所示的实现方式。其中,在执行步骤102当第一置信度和第二置信度满足预设条件时,确定测距方式和目标物距之前,可以执行步骤104,且步骤102可以具体实现为步骤1021至步骤1024:
105、获取第一物距和第二物距。
其中,第一物距为采用激光测距方式测量得到的物距,第二物距为采用双目测距方式测量得到的物距。
1021、当第一置信度大于第一置信度阈值,且第二置信度大于第二置信度阈值,且第一物距与第二物距的差值的绝对值小于物距差门限时,则确定测距方式为双目测距方式,同时确定第二物距为目标物距。
1022、当第一置信度小于或等于第一置信度阈值,且第二置信度大于第二置信度阈值时,则确定测距方式为双目测距方式,同时确定第二物距为目标物距。
1023、当第一置信度大于第一置信度阈值,且第二置信度大于第二置信度阈值,且第一物距与第二物距的差值的绝对值大于或等于物距差门限时,则确定测距方式为激光测距方式,同时确定第一物距为目标物距。
1024、当第一置信度大于第一置信度阈值,且第二置信度小于或等于第二置信度阈值时,则确定测距方式为激光测距方式,同时确定第一物距为目标物距。
采用双目测距方式测量得到目标物距,具体可以实现为根据两个摄像头所获取的图像中相同特征点视差计算特征点深度信息,也就是目标物距。其中,两个摄像头具体可以为第一摄像头和第二摄像头,每个摄像头可以被视为一个对焦窗,摄像头所获取的图像可
以被视为对焦窗内的图像,第一摄像头获取的图像为第一图像,第二摄像头获取的图像为第二图像。
在现有技术中,用于获取特征的方式包括多种,比如:harris角点提取法,或是surf特征提取法等方法。
当分别成功获取第一图像和第二图像各自的特征点之后,若第一图像和第二图像中,存在至少一个图像的特征点的个数小于给定门限T1,则判定采用双目测距方式进行测距的置信度较低。之后计算第一图像中每个特征点的深度信息的加权平均,得到第一图像中所有特征点的深度信息平均值,确定该平均值为双目测距方式测量得到的测距结果,即物距。需要说明的是,在计算深度信息平均值的过程中,考虑到第一图像与第二图像的偏差较小,而第一图像通常作为送显图像来进行图像显示,即第一摄像头采集第一图像,并发送给终端的显示器,以便于用户预览第一图像,因此,通常情况下在确定物距时,以第一图像中深度信息平均值为准。
需要说明的是,第二摄像头所采集的第二图像不用于用户预览。并且,为了确保第二摄像头可以尽快完成对焦过程,第二摄像头采集第二图像的速率大于第一摄像头采集第一图像的速率。比如:第一摄像头每秒拍摄12帧图片,而第二摄像头每秒拍摄24帧图片。由于摄像头每一次拍摄过程中,都会进行一次对焦,因此,每秒拍摄图片帧数越高的摄像头的对焦速度越快。
或者,当确定第一图像和第二图像中各自对应的特征点之后,将第一图像中所有特征点按照从左至右的顺序,依次与第二图像中的特征点进行匹配,同时,将第一图像中所有特征点按照从右至左的顺序,依次与第二图像中的特征点进行匹配。之后根据两种匹配结果,确定第一图像中同一特征点匹配到第二图像中同一特征点的特征点为高置信度特征点,并计算高置信度特征点的数量与第一图像中所有特征点的数量的比值,当该比值小于给定门限T2时,则判定采用双目测距方式进行测距的置信度较低。
需要说明的是,在计算比值的过程中,考虑到第一图像与第二
图像的偏差较小,而第一图像通常作为送显图像来进行图像显示,因此,通常情况下在确定所有特征点的数量时,以第一图像中所有特征点的数量为准。为了更加准确的确定物距,在本发明实施例中,可以分别确定每个高置信度特征点的深度信息,之后计算所有高置信度特征点的深度信息平均值,确定该平均值为双目测距方式得到的测距结果,即物距。
其中,给定门限T1用于判断特征点的数量是否符合高置信度的条件,和给定门限T2用于判断高置信度特征点的数量与第一图像中所有特征点的数量的比值是否符合高置信度的条件;给定门限T1和给定门限T2可以根据历史经验值,由工作人员预先设定,在本发明实施例中,对于给定门限T1和给定门限T2的设定方式不作具体限定。
置信度阈值作为激光测距方式和双目测距方式中统一用于衡量置信度高低的标准,可以通过第一置信度与第一置信度阈值之间的大小关系,以及第二置信度与第二置信度阈值之间的大小关系,来确定第一置信度、第二置信度相对与自身对应的置信度阈值的高低情况。
由于激光测距方式和双目测距方式都具有各自的优劣性,如上述表一所示,因此,在本发明实施例中,为了更好的利用激光测距方式和双目测距方式的特性,可以根据不同的情况来选择不同的测距方式。具体选择方式如下:
如果激光测距方式和双目测距方式的置信度都较高时,若两个测距结果相近,由于激光测距方式的精度更高,因此,采用激光测距方式来进行快速对焦,若两个测距结果相差较大,考虑到激光测距方式会受到玻璃、镜子等物体反射的影响,因此,采用双目测距结果方式来进行快速对焦;如果激光测距方式和双目测距方式的置信度中只有一个较高时,为了提高对焦的准确性,可以选择置信度相对较高的方式来进行快速对焦;如果激光测距方式和双目测距方式的置信度都比较低时,也就意味着激光测距方式和双目测距方式
所得到的测距结果都存在较大误差,因此,为了实现准确对焦,在本发明实施例中,可以放弃快速对焦,采用传统爬山法来完成对焦。
需要说明的是,为了避免重复测距,在本发明实施例中,由于需要采用较快的速度来完成对焦过程,因此,可以在同一时刻,分别采用激光测距和双目测距两种方式经测量得到两个测距结果,之后通过对置信度的判别,来确定使用哪种测距方式对应的测距结果之后,并直接获取已得到的测距结果,将该物距结果确定为目标物距,从而完成对焦。
本发明实施例提供的一种终端的拍照对焦方法,分别获取采用激光测距方式与采用双目测距方式得到的物距的置信度,当这两个置信度中存在至少一个置信度大于该置信度对应的置信度阈值时,根据第一置信度与第一置信度阈值的大小关系,以及第二置信度与第二置信度阈值的大小关系,来确定采用激光测距方式或双目测距方式进行测距,并在确定目标物距之后,在镜头位置区间内确定目标位置,以便于第一摄像头和第二摄像头完成对焦。相比较于现有技术中采用双目测距来计算图像主体的物距,之后通过控制VCM,使镜头移动至指定镜头位置以完成主动对焦过程,本发明可以通过分别比较采用激光测距方式和采用双目测距方式的置信度,与各自对应的置信度阈值的大小关系,来确定采用激光测距方式或双目测距方式进行测距,之后在镜头位置区间内实现在准焦点附近完成对焦的过程。由于在本发明中具体可以根据两种测距方式的置信度与各自对应的置信度阈值的大小关系来选择测距方式,因此,可以针对不同情况采取不同的测距方式,避免了因对焦窗内物体纹理较弱,或是对焦窗内物体有重复而导致的对焦失败。因此,可以快速且准确的确定准焦点的位置,从而完成第一摄像头和第二摄像头的对焦过程。综上所述,本发明能够提高终端在拍照对焦过程中的对焦精度。
由于对焦速度与摄像头采集图像的速度呈斜率为正的线性关系,双目测距方式的摄像头具体包括第一摄像头和第二摄像头,并
且,第一摄像头采集的图像用于用户预览,第二摄像头采集的图像不用于用户预览,因此,在不影响第一摄像头采集的第一图像的显示效果的情况下,为了提高对焦速度,在本发明实施例的一个实现方式中,可以通过提高第二摄像头采集图像的速度来提高第二摄像头的测距速度,从而提高对焦速度。也就是说,在本发明实施例中,第二摄像头采集第二图像的速度大于第一摄像头采集图像的速度。因此,在如图3所示的实现方式的基础上,还可以实现为如图4所示的实现方式。其中,步骤1021当第一置信度大于第一置信度阈值,且第二置信度大于第二置信度阈值,且第一物距与第二物距的差值的绝对值小于物距差门限时,则确定测距方式为双目测距方式,同时确定第二物距为目标物距,可以具体实现为步骤10211;步骤1022当第一置信度小于或等于第一置信度阈值,且第二置信度大于第二置信度阈值时,则确定测距方式为双目测距方式,同时确定第二物距为目标物距,可以具体实现为步骤10221:
10211、当第一置信度大于第一置信度阈值,且第二置信度大于第二置信度阈值,且第一物距与第二物距的差值的绝对值小于物距差门限时,则确定根据第一图像和第二图像进行测距得到的第二物距为目标物距。
10221、当第一置信度小于或等于第一置信度阈值,且第二置信度大于第二置信度阈值时,则确定根据第一图像和第二图像进行测距得到的第二物距为目标物距。
传统单镜头采用爬山法进行对焦的方案中,由于预览图像在用于对焦的同时还需要用于送显,因此,考虑到预览图像的显示效果,一般高亮度为30fps(英文:frame per second)低照度可能达到16fps或者更低。
需要说明的是,由于在每次VCM推动镜头之后,都要等下一帧图像成像后才能判断新的镜头位置对应图像的清晰度,从而决定下一步VCM推动镜头的运动方向,因此,下一帧图像的成像速度,在一定程度上决定了对焦的速度,即采集图像速度较高,则对焦速度
较快。
在本发明实施例中,由于双目测距方式的镜头中包括第一摄像头和第二摄像头,且同一时刻,只能有一个摄像头所采集的图像用于用户预览,因此,当第一摄像头采集的图像用于用户预览,而第二摄像头采集的图像不需要用于用户预览时,为了保证用于预览的图像的效果,可以使第一摄像头的成像速度相比较于第二摄像头的成像速度,较低。也就意味着,通过第一摄像头采集的图像进行送显,来保证用户所预览的图像的清晰度,同时,通过第二摄像头来完成测距、对焦。也就是说,较低成像速度对应的第一摄像头保证了图像的预览效果,而较高成像速度对应的第二摄像头保证了对焦速度。
本发明实施例提供的一种终端的拍照对焦方法,当第一置信度大于第一置信度阈值,且第二置信度大于第二置信度阈值,且第一物距与第二物距的差值的绝对值小于物距差门限时,或者,当第一置信度小于或等于第一置信度阈值,且第二置信度大于第二置信度阈值时,采用双目测距方式得到目标物距,具体可以实现为将根据第一图像和第二图像进行测距得到的第二物距确定为目标物距。相比较于现有技术中采用双目测距来计算图像主体的物距,之后通过控制VCM,使镜头到达指定的镜头位置以完成主动对焦过程,本发明在需要采用双目测距方式来完成测距时,可以利用两个摄像头中第一摄像头采集的图像送显,且第二摄像头采集的图像不送显的特性,通过提高第二摄像头采集图像的速度,来提高对焦速度。因此,在避免了因对焦窗内物体纹理较弱,或是对焦窗内物体有重复而导致的对焦失败的情况下,提供了具体用于确定测距方式和目标物距的方法,从而更进一步提高了终端在拍照对焦过程中的对焦精度。
为了尽可能准确的确定准焦位置,在本发明实施例的一个实现方式中,第一摄像头包括第一镜头,第二摄像头包括第二镜头和第二VCM。终端能够将初始位置作为起始点,根据一定步长来遍历镜头位置区间内的多个镜头位置,并根据初步对焦结果中各个图像的
对比度,来确定目标位置。因此,在如图3所示的实现方式的基础上,还可以实现为如图5所示的实现方式。其中,在执行步骤103在镜头位置区间内,确定目标位置,以便于第一摄像头和第二摄像头完成对焦之前,还可以执行步骤104;且步骤103可以具体实现为步骤1031和步骤1032:
104、确定目标物距对应的初始位置。
其中,初始位置为根据目标物距确定的第一镜头和第二镜头的位置。
由于一个物距会对应一个镜头位置,考虑到第一镜头和第二镜头在本发明实施例中能够处于同一镜头位置,因此,确定目标物距对应的初始位置,即确定目标物距对应的第一镜头的镜头位置和第二镜头的镜头位置。其中,第一镜头的镜头位置与第二镜头的镜头位置相同。
1031、以初始位置为起始点,控制第二VCM将第二镜头在镜头位置区间内移动,完成初步对焦。
在本发明实施例中,由于初始位置为准焦位置或是准焦位置附近的镜头位置,因此,为了尽可能快的确定目标位置,终端可以控制第二VCM将第二镜头,以初始位置为起始点向着镜头位置逐渐变小或是变大的方向进行移动,从而完成初步对焦。在镜头移动的过程中,可以按照预先设置的步长进行遍历,也可以按照预先设置的采样点的位置逐一进行镜头位置的调整。
需要说明的是,镜头移动过程中的步长,以及采样点的设置方式在本发明实施例中不作具体限定,可以根据经验值,由工作人员预先设定。
1032、确定所有初步对焦的结果中,对比度最大的第二图像对应的镜头位置为目标位置。
需要说明的是,上述步骤1031和步骤1032可以被视为改进后的爬山法,其中,上述步骤1031和步骤1032的具体执行过程,可以参照传统爬山法的实现方式,在此不做赘述。
本发明实施例提供的一种终端的拍照对焦方法,通过确定目标物距对应的初始位置,并以初始位置为起始点,来控制第二VCM将第二镜头在镜头位置区间内移动,完成初步对焦。之后从多个初步对焦结果中,确定对比度最大的第二图像对应的镜头位置为目标位置。相比较于现有技术中采用双目测距来计算图像主体的物距,之后通过控制VCM,使镜头到达指定的镜头位置以完成主动对焦过程,本发明能够以准焦点或是准焦点附近的初始位置为起始点,在镜头位置区间内进行遍历,直至确定镜头位置区间中的目标位置。因此,在避免了因对焦窗内物体纹理较弱,或是对焦窗内物体有重复而导致的对焦失败的同时,也就是本发明在能够解提高终端在拍照对焦过程中的对焦精度的情况下,可以通过对传统爬山法进行改进,来实现更快速的对焦过程。
当采用双目测距方式时,由于对焦过程是第二摄像头来完成的,因此,为了确保第一摄像头与第二摄像头的对焦信息一致,在本发明实施例的一个实现方式中,第一摄像头包括第一VCM,当第二摄像头完成对焦之后,可以将第二摄像头的对焦结果同步至第一摄像头。因此,在如图5所示的实现方式的基础上,还可以实现为如图6所示的实现方式。其中,在执行步骤1031和步骤1032之后,可以执行步骤105至步骤107:
105、控制第二VCM将第二镜头移动至目标位置,并得到第二摄像头的对焦结果。
106、同步第二摄像头的对焦结果至第一摄像头。
107、根据第二摄像头的对焦结果,控制第一VCM将第一镜头移动至目标位置。
由于第一摄像头和第二摄像头采集图像的速度不同,且第二摄像头采集图像的速度大于第一摄像头采集图像的速度,因此,第二摄像头得到对焦结果的时间早于第一摄像头得到对焦结果的时间。在本发明实施例中,为了减少第一摄像头得到对焦结果的时间,同时确保第一摄像头与第二摄像头的对焦结果的一致性,可以在第二
摄像头完成对焦并得到对焦结果之后,将对焦结果同步至第一摄像头。之后,根据对焦结果,调整第二镜头的镜头位置,完成双摄像头的对焦过程。
本发明实施例提供的一种终端的拍照对焦方法,当采用改进后的爬山法确定镜头位置区间内所有镜头位置中的目标位置之后,通过控制第二VCM将第二镜头移动至目标位置来完成第二镜头的对焦,之后将第二镜头的对焦结果同步至第一镜头,使第一镜头也移动至目标位置,从而完成对焦过程。相比较于现有技术中采用双目测距来计算图像主体的物距,之后通过控制VCM,使镜头到达指定的镜头位置以完成主动对焦过程,本发明在需要采用双目测距方式来完成测距时,可以利用两个摄像头中第一摄像头获取的图像送显,且第二摄像头获取的图像不送显的特性,通过提第二摄像头采集图像的速度,来提高对焦速度。并且,在第二摄像头完成对焦过程之后,将第二摄像头的对焦结果同步至第一摄像头。因此,避免了因对焦窗内物体纹理较弱,或是对焦窗内物体有重复而导致的对焦失败,同时,通过对焦结果同步的方式,提高了双摄像头完成对焦的对焦速度,也就意味着不仅提高了终端在拍照对焦过程中的对焦精度,还通过对焦结果同步的方式,确保了第一摄像头与第二摄像头的对焦结果的一致性,并且,提高了双摄像头的对焦速度。
本发明实施例提供一种终端的拍照对焦装置20,如图7所示,用于执行如图2至图6所示的方法流程。其中,终端包括激光传感器、第一摄像头和第二摄像头,第一摄像头和第二摄像头并排设置;装置20包括:
获取模块21,用于获取第一置信度和第二置信度,第一置信度为采用激光测距方式测量得到的物距的置信度,第二置信度为采用双目测距方式测量得到的物距的置信度,其中,置信度用于表示采用测距方式测量得到的物距的准确性。
确定模块22,用于当通过获取模块21获取的第一置信度和第二置信度满足预设条件时,确定目标测距方式和目标物距,预设条
件为第一置信度大于第一置信度阈值,和/或第二置信度大于第二置信度阈值,目标测距方式为激光测距方式或双目测距方式。
确定模块22,还用于在镜头位置区间内,确定目标位置,以便于第一摄像头和第二摄像头完成对焦。
在本发明实施例的一个实现方式中,获取模块21,还用于获取第一物距和第二物距,第一物距为采用激光测距方式测量得到的物距,第二物距为采用双目测距方式测量得到的物距。
确定模块22,具体用于当通过获取模块21获取的第一置信度大于第一置信度阈值,且第二置信度大于第二置信度阈值,且第一物距与第二物距的差值的绝对值小于物距差门限时,则确定测距方式为双目测距方式,同时确定第二物距为目标物距;
或者,当第一置信度小于或等于第一置信度阈值,且第二置信度大于第二置信度阈值时,则确定测距方式为双目测距方式,同时确定第二物距为目标物距;
当第一置信度大于第一置信度阈值,且第二置信度大于第二置信度阈值,且第一物距与第二物距的差值的绝对值大于或等于物距差门限时,则确定测距方式为激光测距方式,同时确定第一物距为目标物距;
或者,当第一置信度大于第一置信度阈值,且第二置信度小于或等于第二置信度阈值时,则确定测距方式为激光测距方式,同时确定第一物距为目标物距。
需要说明的是,第一摄像头采集第一图像,并发送给终端的显示器,以便于用户预览第一图像,第二摄像头采集的第二图像不用于用户预览,第二摄像头采集第二图像的速度大于第一摄像头采集第一图像的速度。
在本发明实施例的一个实现方式中,确定测距方式为双目测距方式,确定模块22,具体用于确定根据第一图像和第二图像进行测距得到的第二物距为目标物距。
在本发明实施例的一个实现方式中,第一摄像头包括第一镜头,
第二摄像头包括第二镜头和第二音圈马达VCM,确定模块22,还用于确定目标物距对应的初始位置,初始位置为根据目标物距确定的第一镜头和第二镜头的位置。
确定模块22,具体用于以初始位置为起始点,控制第二VCM将第二镜头在镜头位置区间内移动,完成初步对焦;
确定所有初步对焦的结果中,对比度最大的第二图像对应的镜头位置为目标位置。
在本发明实施例的一个实现方式中,第一摄像头包括第一VCM,包括:
控制模块23,用于控制第二VCM将第二镜头移动至目标位置,并得到第二镜摄像头的对焦结果。
同步模块24,用于同步通过控制模块23得到的第二摄像头的对焦结果至第一摄像头。
控制模块23,还用于根据通过同步模块24同步的第二摄像头的对焦结果,控制第一VCM将第一镜头移动至目标位置。
本发明实施例提供的一种终端的拍照对焦装置,分别获取采用激光测距方式与采用双目测距方式得到的物距的置信度,当这两个置信度中存在至少一个置信度大于该置信度对应的置信度阈值时,确定目标测距方式和目标物距,之后在镜头位置区间内确定目标位置,以便于第一摄像头和第二摄像头完成对焦。其中,置信度用于表示采用测距方式测量得到的物距的准确性。相比较于现有技术中采用双目测距来计算图像主体的物距,之后通过控制VCM,使镜头到达指定的镜头位置以完成主动对焦过程,本发明可以根据不同应用场景的需求,确定不同的测距方式为目标测距方式,同时确定目标物距,之后在镜头位置区间内,实现在准焦点附近完成对焦的过程。这就意味着,本发明可以针对不同情况采取不同的测距方式,有效避免了因对焦窗内物体纹理较弱,或是对焦窗内物体有重复而导致的对焦失败的问题,因此,可以快速且准确的确定准焦点的位置,从而完成第一摄像头和第二摄像头的对焦过程。综上所述,本
发明能够提高终端在拍照对焦过程中的对焦精度。
本发明实施例提供一种终端的拍照对焦设备30,如图8所示,用于执行如图2至图6所示的方法流程。其中,终端包括激光传感器、第一摄像头和第二摄像头,第一摄像头和第二摄像头并排设置。该设备30包括处理器31和接口电路32,图中还示出了存储器33和总线34,该处理器31、接口电路32和存储器33通过总线34连接并完成相互间的通信。
需要说明的是,这里的处理器31可以是一个处理元件,也可以是多个处理元件的统称。例如,该处理元件可以是CPU,也可以是特定集成电路(英文:Application Specific Integrated Circuit,简称:ASIC),或者是被配置成实施本发明实施例的一个或多个集成电路,例如:一个或多个微处理器(英文:digital singnal processor,简称:DSP),或,一个或者多个现场可编程门阵列(英文:Field Programmable Gate Array,简称:FPGA)。
存储器33可以是一个存储装置,也可以是多个存储元件的统称,且用于存储可执行程序代码或接入网管理设备运行所需要参数、数据等。且存储器33可以包括随机存储器(简称:RAM),也可以包括非易失性存储器(英文:non-volatile memory),例如磁盘存储器,闪存(英文:Flash)等。
总线34可以是工业标准体系结构(英文:Industry Standard Architecture,简称:ISA)总线、外部设备互连(英文:Peripheral Component,简称:PCI)总线或扩展工业标准体系结构(英文:Extended Industry Standard Architecture,简称:EISA)总线等。该总线34可以分为地址总线、数据总线、控制总线等。为便于表示,图8中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。
该设备30还可以包括输入输出装置,连接于总线34,以通过总线34与处理器31等其它部分连接。
其中,处理器31调用存储器33中的程序代码,用于执行以上
方法实施例中设备30执行的操作。例如,包括:
通过接口电路32,获取第一置信度和第二置信度,第一置信度为采用激光测距方式测量得到的物距的置信度,第二置信度为采用双目测距方式测量得到的物距的置信度,其中,置信度用于表示采用测距方式测量得到的物距的准确性。
通过处理器31,当通过接口电路32获取的第一置信度和第二置信度满足预设条件时,确定目标测距方式和目标物距,预设条件为第一置信度大于第一置信度阈值,和/或第二置信度大于第二置信度阈值,目标测距方式为激光测距方式或双目测距方式。
通过处理器31,在镜头位置区间内,确定目标位置,以便于第一摄像头和第二摄像头完成对焦。
在本发明实施例的一个实现方式中,在当第一置信度和第二置信度满足预设条件时,确定目标测距方式和目标物距之前,通过接口电路32,获取第一物距和第二物距,第一物距为采用激光测距方式测量得到的物距,第二物距为采用双目测距方式测量得到的物距。
通过处理器31,当通过接口电路32获取的第一置信度大于第一置信度阈值,且第二置信度大于第二置信度阈值,且第一物距与第二物距的差值的绝对值小于物距差门限时,则确定测距方式为双目测距方式,同时确定第二物距为目标物距;
或者,当第一置信度小于或等于第一置信度阈值,且第二置信度大于第二置信度阈值时,则确定测距方式为双目测距方式,同时确定第二物距为目标物距;
当第一置信度大于第一置信度阈值,且第二置信度大于第二置信度阈值,且第一物距与第二物距的差值的绝对值大于或等于物距差门限时,则确定测距方式为激光测距方式,同时确定第一物距为目标物距;
或者,当第一置信度大于第一置信度阈值,且第二置信度小于或等于第二置信度阈值时,则确定测距方式为激光测距方式,同时确定第一物距为目标物距。
需要说明的是,第一摄像头采集第一图像,并发送给终端的显示器,以便于用户预览第一图像,第二摄像头采集的第二图像不用于用户预览,第二摄像头采集第二图像的速度大于第一摄像头采集第一图像的速度。
在本发明实施例的一个实现方式中,确定测距方式为双目测距方式,通过处理器31,确定根据第一图像和第二图像进行测距得到的第二物距为目标物距。
在本发明实施例的一个实现方式中,第一摄像头包括第一镜头,第二摄像头包括第二镜头和第二音圈马达VCM,在在镜头位置区间内,确定目标位置之前,通过处理器31,确定目标物距对应的初始位置,初始位置为根据目标物距确定的第一镜头和第二镜头的位置。
通过处理器31,以初始位置为起始点,控制第二VCM将第二镜头在镜头位置区间内移动,完成初步对焦;
确定所有初步对焦的结果中,对比度最大的第二图像对应的镜头位置为目标位置。
在本发明实施例的一个实现方式中,第一摄像头包括第一VCM,在在镜头位置区间内,确定目标位置之后,通过处理器31,控制第二VCM将第二镜头移动至目标位置,并得到第二镜摄像头的对焦结果。
通过接口电路32,同步通过处理器31得到的第二摄像头的对焦结果至第一摄像头。
通过处理器31,根据通过接口电路32同步的第二摄像头的对焦结果,控制第一VCM将第一镜头移动至目标位置。
本发明实施例提供的一种终端的拍照对焦设备,分别获取采用激光测距方式与采用双目测距方式得到的物距的置信度,当这两个置信度中存在至少一个置信度大于该置信度对应的置信度阈值时,确定目标测距方式和目标物距,之后在镜头位置区间内确定目标位置,以便于第一摄像头和第二摄像头完成对焦。其中,置信度用于表示采用测距方式测量得到的物距的准确性。相比较于现有技术中
采用双目测距来计算图像主体的物距,之后通过控制VCM,使镜头到达指定的镜头位置以完成主动对焦过程,本发明可以根据不同应用场景的需求,确定不同的测距方式为目标测距方式,同时确定目标物距,之后在镜头位置区间内,实现在准焦点附近完成对焦的过程。这就意味着,本发明可以针对不同情况采取不同的测距方式,有效避免了因对焦窗内物体纹理较弱,或是对焦窗内物体有重复而导致的对焦失败的问题,因此,可以快速且准确的确定准焦点的位置,从而完成第一摄像头和第二摄像头的对焦过程。综上所述,本发明能够提高终端在拍照对焦过程中的对焦精度。
本发明实施例提供一种计算机程序产品40,如图9所示,计算机程序产品40包括可读取存储介质41用于存储计算机程序代码,计算机程序代码运行在一个处理器42上,计算机程序代码,包括:
用于获取第一置信度和第二置信度,第一置信度为采用激光测距方式测量得到的物距的置信度,第二置信度为采用双目测距方式测量得到的物距的置信度,其中,置信度用于表示采用测距方式测量得到的物距的准确性。
用于当第一置信度和第二置信度满足预设条件时,确定目标测距方式和目标物距,预设条件为第一置信度大于第一置信度阈值,和/或第二置信度大于第二置信度阈值,目标测距方式为激光测距方式或双目测距方式。
用于在镜头位置区间内,确定目标位置,以便于第一摄像头和第二摄像头完成对焦,其中,第一摄像头和第二摄像头并排设置于终端上,终端还包括激光传感器。
在本发明实施例的一个实现方式中,在当第一置信度和第二置信度满足预设条件时,确定目标测距方式和目标物距之前,计算机程序代码,还包括:
用于获取第一物距和第二物距,第一物距为采用激光测距方式测量得到的物距,第二物距为采用双目测距方式测量得到的物距。
计算机程序代码,具体包括:
用于当第一置信度大于第一置信度阈值,且第二置信度大于第二置信度阈值,且第一物距与第二物距的差值的绝对值小于物距差门限时,则确定测距方式为双目测距方式,同时确定第二物距为目标物距。
或者,用于当第一置信度小于或等于第一置信度阈值,且第二置信度大于第二置信度阈值时,则确定测距方式为双目测距方式,同时确定第二物距为目标物距。
用于当第一置信度大于第一置信度阈值,且第二置信度大于第二置信度阈值,且第一物距与第二物距的差值的绝对值大于或等于物距差门限时,则确定测距方式为激光测距方式,同时确定第一物距为目标物距。
或者,用于当第一置信度大于第一置信度阈值,且第二置信度小于或等于第二置信度阈值时,则确定测距方式为激光测距方式,同时确定第一物距为目标物距。
需要说明的是,第一摄像头采集第一图像,并发送给终端的显示器,以便于用户预览第一图像,第二摄像头采集的第二图像不用于用户预览,第二摄像头采集第二图像的速度大于第一摄像头采集第一图像的速度。
在本发明实施例的一个实现方式中,确定测距方式为双目测距方式,计算机程序代码,具体包括:
用于确定根据第一图像和第二图像进行测距得到的第二物距为目标物距。
在本发明实施例的一个实现方式中,第一摄像头包括第一镜头,第二摄像头包括第二镜头和第二音圈马达VCM,在在镜头位置区间内,确定目标位置之前,计算机程序代码,还包括:
用于确定目标物距对应的初始位置,初始位置为根据目标物距确定的第一镜头和第二镜头的位置。
计算机程序代码,具体包括:
用于以初始位置为起始点,控制第二VCM将第二镜头在镜头位
置区间内移动,完成初步对焦;
确定所有初步对焦的结果中,对比度最大的第二图像对应的镜头位置为目标位置。
在本发明实施例的一个实现方式中,第一摄像头包括第一VCM,在在镜头位置区间内,确定目标位置之后,计算机程序代码,还包括:
用于控制第二VCM将第二镜头移动至目标位置,并得到第二镜摄像头的对焦结果。
用于同步第二摄像头的对焦结果至第一摄像头。
用于根据第二摄像头的对焦结果,控制第一VCM将第一镜头移动至目标位置。
本发明实施例提供的一种计算机程序产品,分别获取采用激光测距方式与采用双目测距方式得到的物距的置信度,当这两个置信度中存在至少一个置信度大于该置信度对应的置信度阈值时,确定目标测距方式和目标物距,之后在镜头位置区间内确定目标位置,以便于第一摄像头和第二摄像头完成对焦。其中,置信度用于表示采用测距方式测量得到的物距的准确性。相比较于现有技术中采用双目测距来计算图像主体的物距,之后通过控制VCM,使镜头到达指定的镜头位置以完成主动对焦过程,本发明可以根据不同应用场景的需求,确定不同的测距方式为目标测距方式,同时确定目标物距,之后在镜头位置区间内,实现在准焦点附近完成对焦的过程。这就意味着,本发明可以针对不同情况采取不同的测距方式,有效避免了因对焦窗内物体纹理较弱,或是对焦窗内物体有重复而导致的对焦失败的问题,因此,可以快速且准确的确定准焦点的位置,从而完成第一摄像头和第二摄像头的对焦过程。综上所述,本发明能够提高终端在拍照对焦过程中的对焦精度。
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功
能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的装置的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或模块间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是一个物理模块或多个物理模块,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。
另外,在本发明各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。
所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取存储器(简称:RAM)、磁碟或者光盘等各种可以存储程序
代码的介质。
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保护范围为准。
Claims (24)
- 一种终端的拍照对焦方法,其特征在于,所述终端包括激光传感器、第一摄像头和第二摄像头,所述第一摄像头和所述第二摄像头并排设置;所述方法包括:获取第一置信度和第二置信度,所述第一置信度为采用激光测距方式测量得到的物距的置信度,所述第二置信度为采用双目测距方式测量得到的物距的置信度,其中,置信度用于表示采用测距方式测量得到的物距的准确性;当所述第一置信度和所述第二置信度满足预设条件时,确定目标测距方式和目标物距,所述预设条件为所述第一置信度大于第一置信度阈值,和/或所述第二置信度大于第二置信度阈值,所述目标测距方式为所述激光测距方式或所述双目测距方式;在镜头位置区间内,确定目标位置,以便于所述第一摄像头和所述第二摄像头完成对焦。
- 根据权利要求1所述的方法,其特征在于,在所述当所述第一置信度和所述第二置信度满足预设条件时,确定目标测距方式和目标物距之前,包括:获取第一物距和第二物距,所述第一物距为采用所述激光测距方式测量得到的物距,所述第二物距为采用所述双目测距方式测量得到的物距;所述当所述第一置信度和所述第二置信度满足预设条件时,确定目标测距方式和目标物距,包括:当所述第一置信度大于所述第一置信度阈值,且所述第二置信度大于所述第二置信度阈值,且所述第一物距与所述第二物距的差值的绝对值小于物距差门限时,则确定测距方式为所述双目测距方式,同时确定所述第二物距为所述目标物距;或者,当所述第一置信度小于或等于所述第一置信度阈值,且所述第二置信度大于所述第二置信度阈值时,则确定测距方式为所述双目测距方式,同时确定所述第二物距为所述目标物距;当所述第一置信度大于所述第一置信度阈值,且所述第二置信度大于所述第二置信度阈值,且所述第一物距与所述第二物距的差值的绝对值大于或等于所述物距差门限时,则确定测距方式为所述激光测距方式,同时确定所述第一物距为所述目标物距;或者,当所述第一置信度大于所述第一置信度阈值,且所述第二置信度小于或等于所述第二置信度阈值时,则确定测距方式为所述激光测距方式,同时确定所述第一物距为所述目标物距。
- 根据权利要求2所述的方法,其特征在于,所述第一摄像头采集第一图像,并发送给所述终端的显示器,以便于用户预览所述第一图像,所述第二摄像头采集的第二图像不用于用户预览,所述第二摄像头采集所述第二图像的速度大于所述第一摄像头采集所述第一图像的速度。
- 根据权利要求3所述的方法,其特征在于,所述确定测距方式为所述双目测距方式,所述同时确定所述第二物距为所述目标物距,包括:确定根据所述第一图像和所述第二图像进行测距得到的所述第二物距为所述目标物距。
- 根据权利要求3或4所述的方法,其特征在于,所述第一摄像头包括第一镜头,所述第二摄像头包括第二镜头和第二音圈马达VCM,在所述在镜头位置区间内,确定目标位置之前,包括:确定所述目标物距对应的初始位置,所述初始位置为根据所述目标物距确定的所述第一镜头和所述第二镜头的位置;所述在镜头位置区间内,确定目标位置,包括:以所述初始位置为起始点,控制所述第二VCM将所述第二镜头在所述镜头位置区间内移动,完成初步对焦;确定所有初步对焦的结果中,对比度最大的第二图像对应的镜头位置为所述目标位置。
- 根据权利要求5所述的方法,其特征在于,所述第一摄像头包括第一VCM,在所述在镜头位置区间内,确定目标位置之后,包括:控制所述第二VCM将所述第二镜头移动至所述目标位置,并得到所述第二镜摄像头的对焦结果;同步所述第二摄像头的对焦结果至所述第一摄像头;根据所述第二摄像头的对焦结果,控制所述第一VCM将所述第一镜头移动至所述目标位置。
- 一种终端的拍照对焦装置,其特征在于,所述终端包括激光传感器、第一摄像头和第二摄像头,所述第一摄像头和所述第二摄像头并排设置;所述装置包括:获取模块,用于获取第一置信度和第二置信度,所述第一置信度为采用激光测距方式测量得到的物距的置信度,所述第二置信度为采用双目测距方式测量得到的物距的置信度,其中,置信度用于表示采用测距方式测量得到的物距的准确性;确定模块,用于当通过所述获取模块获取的所述第一置信度和所述第二置信度满足预设条件时,确定目标测距方式和目标物距,所述预设条件为所述第一置信度大于第一置信度阈值,和/或所述第二置信度大于第二置信度阈值,所述目标测距方式为所述激光测距方式或所述双目测距方式;所述确定模块,还用于在镜头位置区间内,确定目标位置,以便于所述第一摄像头和所述第二摄像头完成对焦。
- 根据权利要求7所述的装置,其特征在于,所述获取模块,还用于获取第一物距和第二物距,所述第一物距为采用所述激光测距方式测量得到的物距,所述第二物距为采用所述双目测距方式测量得到的物距;所述确定模块,具体用于当通过所述获取模块获取的所述第一置信度大于所述第一置信度阈值,且所述第二置信度大于所述第二置信度阈值,且所述第一物距与所述第二物距的差值的绝对值小于物距差门限时,则确定测距方式为所述双目测距方式,同时确定所述第二物距为所述目标物距;或者,当所述第一置信度小于或等于所述第一置信度阈值,且所 述第二置信度大于所述第二置信度阈值时,则确定测距方式为所述双目测距方式,同时确定所述第二物距为所述目标物距;当所述第一置信度大于所述第一置信度阈值,且所述第二置信度大于所述第二置信度阈值,且所述第一物距与所述第二物距的差值的绝对值大于或等于所述物距差门限时,则确定测距方式为所述激光测距方式,同时确定所述第一物距为所述目标物距;或者,当所述第一置信度大于所述第一置信度阈值,且所述第二置信度小于或等于所述第二置信度阈值时,则确定测距方式为所述激光测距方式,同时确定所述第一物距为所述目标物距。
- 根据权利要求8所述的装置,其特征在于,所述第一摄像头采集第一图像,并发送给所述终端的显示器,以便于用户预览所述第一图像,所述第二摄像头采集的第二图像不用于用户预览,所述第二摄像头采集所述第二图像的速度大于所述第一摄像头采集所述第一图像的速度。
- 根据权利要求9所述的装置,其特征在于,所述确定测距方式为所述双目测距方式,所述确定模块,具体用于确定根据所述第一图像和所述第二图像进行测距得到的所述第二物距为所述目标物距。
- 根据权利要求9或10所述的装置,其特征在于,所述第一摄像头包括第一镜头,所述第二摄像头包括第二镜头和第二音圈马达VCM,所述确定模块,还用于确定所述目标物距对应的初始位置,所述初始位置为根据所述目标物距确定的所述第一镜头和所述第二镜头的位置;所述确定模块,具体用于以所述初始位置为起始点,控制所述第二VCM将所述第二镜头在所述镜头位置区间内移动,完成初步对焦;确定所有初步对焦的结果中,对比度最大的第二图像对应的镜头位置为所述目标位置。
- 根据权利要求11所述的装置,其特征在于,所述第一摄像头包括第一VCM,包括:控制模块,用于控制所述第二VCM将所述第二镜头移动至所述目 标位置,并得到所述第二镜摄像头的对焦结果;同步模块,用于同步通过所述控制模块得到的所述第二摄像头的对焦结果至所述第一摄像头;所述控制模块,还用于根据通过所述同步模块同步的所述第二摄像头的对焦结果,控制所述第一VCM将所述第一镜头移动至所述目标位置。
- 一种终端的拍照对焦设备,其特征在于,所述终端包括激光传感器、第一摄像头和第二摄像头,所述第一摄像头和所述第二摄像头并排设置;所述设备包括:接口电路,用于获取第一置信度和第二置信度,所述第一置信度为采用激光测距方式测量得到的物距的置信度,所述第二置信度为采用双目测距方式测量得到的物距的置信度,其中,置信度用于表示采用测距方式测量得到的物距的准确性;处理器,用于当通过所述接口电路获取的所述第一置信度和所述第二置信度满足预设条件时,确定目标测距方式和目标物距,所述预设条件为所述第一置信度大于第一置信度阈值,和/或所述第二置信度大于第二置信度阈值,所述目标测距方式为所述激光测距方式或所述双目测距方式;所述处理器,还用于在镜头位置区间内,确定目标位置,以便于所述第一摄像头和所述第二摄像头完成对焦。
- 根据权利要求13所述的设备,其特征在于,在所述当所述第一置信度和所述第二置信度满足预设条件时,确定目标测距方式和目标物距之前,所述接口电路,还用于获取第一物距和第二物距,所述第一物距为采用所述激光测距方式测量得到的物距,所述第二物距为采用所述双目测距方式测量得到的物距;所述处理器,具体用于当通过所述接口电路获取的所述第一置信度大于所述第一置信度阈值,且所述第二置信度大于所述第二置信度阈值,且所述第一物距与所述第二物距的差值的绝对值小于物距差门限时,则确定测距方式为所述双目测距方式,同时确定所述第二物距 为所述目标物距;或者,当所述第一置信度小于或等于所述第一置信度阈值,且所述第二置信度大于所述第二置信度阈值时,则确定测距方式为所述双目测距方式,同时确定所述第二物距为所述目标物距;当所述第一置信度大于所述第一置信度阈值,且所述第二置信度大于所述第二置信度阈值,且所述第一物距与所述第二物距的差值的绝对值大于或等于所述物距差门限时,则确定测距方式为所述激光测距方式,同时确定所述第一物距为所述目标物距;或者,当所述第一置信度大于所述第一置信度阈值,且所述第二置信度小于或等于所述第二置信度阈值时,则确定测距方式为所述激光测距方式,同时确定所述第一物距为所述目标物距。
- 根据权利要求14所述的设备,其特征在于,所述第一摄像头采集第一图像,并发送给所述终端的显示器,以便于用户预览所述第一图像,所述第二摄像头采集的第二图像不用于用户预览,所述第二摄像头采集所述第二图像的速度大于所述第一摄像头采集所述第一图像的速度。
- 根据权利要求15所述的设备,其特征在于,所述确定测距方式为所述双目测距方式,所述处理器,具体用于确定根据所述第一图像和所述第二图像进行测距得到的所述第二物距为所述目标物距。
- 根据权利要求15或16所述的设备,其特征在于,所述第一摄像头包括第一镜头,所述第二摄像头包括第二镜头和第二音圈马达VCM,在所述在镜头位置区间内,确定目标位置之前,所述处理器,还用于确定所述目标物距对应的初始位置,所述初始位置为根据所述目标物距确定的所述第一镜头和所述第二镜头的位置;所述处理器,具体用于以所述初始位置为起始点,控制所述第二VCM将所述第二镜头在所述镜头位置区间内移动,完成初步对焦;确定所有初步对焦的结果中,对比度最大的第二图像对应的镜头位置为所述目标位置。
- 根据权利要求17所述的设备,其特征在于,所述第一摄像 头包括第一VCM,在所述在镜头位置区间内,确定目标位置之后,所述处理器,还用于控制所述第二VCM将所述第二镜头移动至所述目标位置,并得到所述第二镜摄像头的对焦结果;所述接口电路,还用于同步通过所述处理器得到的所述第二摄像头的对焦结果至所述第一摄像头;所述处理器,还用于根据通过所述接口电路同步的所述第二摄像头的对焦结果,控制所述第一VCM将所述第一镜头移动至所述目标位置。
- 一种计算机程序产品,其特征在于,所述计算机程序产品包括可读取存储介质用于存储计算机程序代码,所述计算机程序代码运行在一个处理器上,所述计算机程序代码,包括:用于获取第一置信度和第二置信度,所述第一置信度为采用激光测距方式测量得到的物距的置信度,所述第二置信度为采用双目测距方式测量得到的物距的置信度,其中,置信度用于表示采用测距方式测量得到的物距的准确性;用于当所述第一置信度和所述第二置信度满足预设条件时,确定目标测距方式和目标物距,所述预设条件为所述第一置信度大于第一置信度阈值,和/或所述第二置信度大于第二置信度阈值,所述目标测距方式为所述激光测距方式或所述双目测距方式;用于在镜头位置区间内,确定目标位置,以便于第一摄像头和第二摄像头完成对焦,其中,所述第一摄像头和所述第二摄像头并排设置于终端上,所述终端还包括激光传感器。
- 根据权利要求19所述的计算机程序产品,其特征在于,在所述当所述第一置信度和所述第二置信度满足预设条件时,确定目标测距方式和目标物距之前,所述计算机程序代码,还包括:用于获取第一物距和第二物距,所述第一物距为采用所述激光测距方式测量得到的物距,所述第二物距为采用所述双目测距方式测量得到的物距;所述计算机程序代码,具体包括:用于当所述第一置信度大于所述第一置信度阈值,且所述第二置信度大于所述第二置信度阈值,且所述第一物距与所述第二物距的差值的绝对值小于物距差门限时,则确定测距方式为所述双目测距方式,同时确定所述第二物距为所述目标物距;或者,用于当所述第一置信度小于或等于所述第一置信度阈值,且所述第二置信度大于所述第二置信度阈值时,则确定测距方式为所述双目测距方式,同时确定所述第二物距为所述目标物距;用于当所述第一置信度大于所述第一置信度阈值,且所述第二置信度大于所述第二置信度阈值,且所述第一物距与所述第二物距的差值的绝对值大于或等于所述物距差门限时,则确定测距方式为所述激光测距方式,同时确定所述第一物距为所述目标物距;或者,用于当所述第一置信度大于所述第一置信度阈值,且所述第二置信度小于或等于所述第二置信度阈值时,则确定测距方式为所述激光测距方式,同时确定所述第一物距为所述目标物距。
- 根据权利要求20所述的计算机程序产品,其特征在于,所述第一摄像头采集第一图像,并发送给所述终端的显示器,以便于用户预览所述第一图像,所述第二摄像头采集的第二图像不用于用户预览,所述第二摄像头采集所述第二图像的速度大于所述第一摄像头采集所述第一图像的速度。
- 根据权利要求21所述的计算机程序产品,其特征在于,所述确定测距方式为所述双目测距方式,所述计算机程序代码,具体包括:用于确定根据所述第一图像和所述第二图像进行测距得到的所述第二物距为所述目标物距。
- 根据权利要求21或22所述的计算机程序产品,其特征在于,所述第一摄像头包括第一镜头,所述第二摄像头包括第二镜头和第二音圈马达VCM,在所述在镜头位置区间内,确定目标位置之前,所述计算机程序代码,还包括:用于确定所述目标物距对应的初始位置,所述初始位置为根据所 述目标物距确定的所述第一镜头和所述第二镜头的位置;所述计算机程序代码,具体包括:用于以所述初始位置为起始点,控制所述第二VCM将所述第二镜头在所述镜头位置区间内移动,完成初步对焦;确定所有初步对焦的结果中,对比度最大的第二图像对应的镜头位置为所述目标位置。
- 根据权利要求23所述的计算机程序产品,其特征在于,所述第一摄像头包括第一VCM,在所述在镜头位置区间内,确定目标位置之后,所述计算机程序代码,还包括:用于控制所述第二VCM将所述第二镜头移动至所述目标位置,并得到所述第二镜摄像头的对焦结果;用于同步所述第二摄像头的对焦结果至所述第一摄像头;用于根据所述第二摄像头的对焦结果,控制所述第一VCM将所述第一镜头移动至所述目标位置。
Priority Applications (4)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201680009577.6A CN108028887B (zh) | 2016-03-23 | 2016-03-23 | 一种终端的拍照对焦方法、装置及设备 |
| US16/087,926 US10630884B2 (en) | 2016-03-23 | 2016-03-23 | Camera focusing method, apparatus, and device for terminal |
| EP16894878.4A EP3416370B1 (en) | 2016-03-23 | 2016-03-23 | Photography focusing method, device, and apparatus for terminal |
| PCT/CN2016/077119 WO2017161523A1 (zh) | 2016-03-23 | 2016-03-23 | 一种终端的拍照对焦方法、装置及设备 |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2016/077119 WO2017161523A1 (zh) | 2016-03-23 | 2016-03-23 | 一种终端的拍照对焦方法、装置及设备 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2017161523A1 true WO2017161523A1 (zh) | 2017-09-28 |
Family
ID=59899845
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2016/077119 Ceased WO2017161523A1 (zh) | 2016-03-23 | 2016-03-23 | 一种终端的拍照对焦方法、装置及设备 |
Country Status (4)
| Country | Link |
|---|---|
| US (1) | US10630884B2 (zh) |
| EP (1) | EP3416370B1 (zh) |
| CN (1) | CN108028887B (zh) |
| WO (1) | WO2017161523A1 (zh) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110196422A (zh) * | 2019-06-26 | 2019-09-03 | Oppo广东移动通信有限公司 | 激光测距的测试方法、测试装置及移动终端 |
| CN113658251A (zh) * | 2021-08-25 | 2021-11-16 | 北京市商汤科技开发有限公司 | 测距方法、装置、电子设备、存储介质及系统 |
| US11810277B2 (en) | 2018-07-20 | 2023-11-07 | Huawei Technologies Co., Ltd. | Image acquisition method, apparatus, and terminal |
Families Citing this family (15)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP7346135B2 (ja) * | 2019-07-30 | 2023-09-19 | キヤノン株式会社 | 電子機器、電子機器の制御方法、プログラムおよび記憶媒体 |
| CN111131623A (zh) * | 2019-12-30 | 2020-05-08 | Oppo广东移动通信有限公司 | 移动终端及其接近检测方法 |
| CN114189622B (zh) * | 2020-09-14 | 2023-11-24 | 北京小米移动软件有限公司 | 图像拍摄方法、装置、电子设备及存储介质 |
| CN112291473B (zh) * | 2020-10-28 | 2022-01-11 | 维沃移动通信有限公司 | 对焦方法、装置及电子设备 |
| US11381729B1 (en) | 2021-01-08 | 2022-07-05 | Hand Held Products, Inc. | Systems, methods, and apparatuses for focus selection using image disparity |
| CN115134517A (zh) * | 2021-03-29 | 2022-09-30 | 北京小米移动软件有限公司 | 拍摄控制方法、装置及存储介质 |
| CN115214637B (zh) * | 2021-04-01 | 2024-02-02 | 广州汽车集团股份有限公司 | 倒车制动辅助方法、辅助控制器、驾驶辅助系统和汽车 |
| CN114466173B (zh) * | 2021-11-16 | 2024-12-20 | 海信视像科技股份有限公司 | 投影设备及自动投入幕布区域的投影显示控制方法 |
| JP7632248B2 (ja) * | 2021-11-26 | 2025-02-19 | トヨタ自動車株式会社 | 車両撮影システムおよび車両撮影方法 |
| JP7767167B2 (ja) * | 2022-01-31 | 2025-11-11 | 富士フイルム株式会社 | 選択方法、撮像方法、及び撮像装置 |
| CN114666508B (zh) * | 2022-04-06 | 2025-03-21 | Oppo广东移动通信有限公司 | 对焦方法和装置、终端计算机可读存储介质 |
| CN114827462B (zh) * | 2022-04-15 | 2024-04-16 | 深圳市道通智能航空技术股份有限公司 | 对焦方法、对焦装置、电子设备及无人机 |
| CN114827481B (zh) * | 2022-06-29 | 2022-10-25 | 深圳思谋信息科技有限公司 | 对焦方法、装置、变焦设备和存储介质 |
| CN116847194B (zh) * | 2023-09-01 | 2023-12-08 | 荣耀终端有限公司 | 一种对焦方法及电子设备 |
| CN117970737B (zh) * | 2024-04-01 | 2024-06-04 | 广州芯特智能装备有限公司 | 一种基于双视觉相机的目标焦距点获取方法、系统及存储介质 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102914262A (zh) * | 2012-09-29 | 2013-02-06 | 北京控制工程研究所 | 一种基于附加视距的非合作目标贴近测量方法 |
| CN103292779A (zh) * | 2012-02-28 | 2013-09-11 | 联想(北京)有限公司 | 一种测量距离的方法及图像获取设备 |
| CN104573646A (zh) * | 2014-12-29 | 2015-04-29 | 长安大学 | 基于激光雷达和双目相机的车前行人检测方法及系统 |
| CN104883502A (zh) * | 2015-05-19 | 2015-09-02 | 广东欧珀移动通信有限公司 | 移动终端的对焦方法及装置 |
| WO2016035955A1 (ko) * | 2014-09-01 | 2016-03-10 | 엘지전자 주식회사 | 이동 단말기 및 그 제어방법 |
Family Cites Families (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2005021453A (ja) * | 2003-07-03 | 2005-01-27 | Toshiba Corp | 治療線照射装置 |
| CN100557384C (zh) | 2003-11-14 | 2009-11-04 | 北京理工大学 | 一种基于双目视觉和激光测距的主动实时三维定位系统 |
| US8233078B2 (en) | 2009-02-19 | 2012-07-31 | Apple Inc. | Auto focus speed enhancement using object recognition and resolution |
| CN201378223Y (zh) * | 2009-02-25 | 2010-01-06 | 重庆蓝硕光电科技有限公司 | 半导体激光测距中轴调焦双目望远镜 |
| US20120098971A1 (en) * | 2010-10-22 | 2012-04-26 | Flir Systems, Inc. | Infrared binocular system with dual diopter adjustment |
| US8760567B2 (en) | 2010-12-21 | 2014-06-24 | Samsung Electronics Co., Ltd. | Photographing apparatus and method to reduce auto-focus time |
| CN102494609B (zh) | 2011-11-18 | 2013-09-18 | 李志扬 | 一种基于激光探针阵列的三维摄影方法及装置 |
| KR101784526B1 (ko) | 2011-11-29 | 2017-10-11 | 엘지이노텍 주식회사 | 오토 포커스 캘리브레이션의 오류 검출 방법 및 시스템 |
| KR101888956B1 (ko) | 2012-05-31 | 2018-08-17 | 엘지이노텍 주식회사 | 카메라 모듈 및 그의 오토 포커싱 방법 |
| EP2972478B1 (en) | 2013-03-15 | 2020-12-16 | Uatc, Llc | Methods, systems, and apparatus for multi-sensory stereo vision for robotics |
| US10317205B2 (en) * | 2015-02-24 | 2019-06-11 | Rambus Inc. | Depth measurement using a phase grating |
| CN105100605A (zh) | 2015-06-18 | 2015-11-25 | 惠州Tcl移动通信有限公司 | 移动终端及其拍照的快速对焦方法 |
-
2016
- 2016-03-23 CN CN201680009577.6A patent/CN108028887B/zh active Active
- 2016-03-23 WO PCT/CN2016/077119 patent/WO2017161523A1/zh not_active Ceased
- 2016-03-23 EP EP16894878.4A patent/EP3416370B1/en active Active
- 2016-03-23 US US16/087,926 patent/US10630884B2/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103292779A (zh) * | 2012-02-28 | 2013-09-11 | 联想(北京)有限公司 | 一种测量距离的方法及图像获取设备 |
| CN102914262A (zh) * | 2012-09-29 | 2013-02-06 | 北京控制工程研究所 | 一种基于附加视距的非合作目标贴近测量方法 |
| WO2016035955A1 (ko) * | 2014-09-01 | 2016-03-10 | 엘지전자 주식회사 | 이동 단말기 및 그 제어방법 |
| CN104573646A (zh) * | 2014-12-29 | 2015-04-29 | 长安大学 | 基于激光雷达和双目相机的车前行人检测方法及系统 |
| CN104883502A (zh) * | 2015-05-19 | 2015-09-02 | 广东欧珀移动通信有限公司 | 移动终端的对焦方法及装置 |
Non-Patent Citations (1)
| Title |
|---|
| See also references of EP3416370A4 * |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US11810277B2 (en) | 2018-07-20 | 2023-11-07 | Huawei Technologies Co., Ltd. | Image acquisition method, apparatus, and terminal |
| CN110196422A (zh) * | 2019-06-26 | 2019-09-03 | Oppo广东移动通信有限公司 | 激光测距的测试方法、测试装置及移动终端 |
| CN113658251A (zh) * | 2021-08-25 | 2021-11-16 | 北京市商汤科技开发有限公司 | 测距方法、装置、电子设备、存储介质及系统 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN108028887B (zh) | 2020-06-02 |
| US10630884B2 (en) | 2020-04-21 |
| EP3416370A1 (en) | 2018-12-19 |
| EP3416370B1 (en) | 2023-07-26 |
| US20190320120A1 (en) | 2019-10-17 |
| EP3416370A4 (en) | 2019-01-02 |
| CN108028887A (zh) | 2018-05-11 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108028887B (zh) | 一种终端的拍照对焦方法、装置及设备 | |
| CN110335211B (zh) | 深度图像的校正方法、终端设备以及计算机存储介质 | |
| EP3248374B1 (en) | Method and apparatus for multiple technology depth map acquisition and fusion | |
| CN113129241B (zh) | 图像处理方法及装置、计算机可读介质、电子设备 | |
| CN109640066B (zh) | 高精度稠密深度图像的生成方法和装置 | |
| WO2019114617A1 (zh) | 快速抓拍的方法、装置及系统 | |
| WO2019105214A1 (zh) | 图像虚化方法、装置、移动终端和存储介质 | |
| WO2019037088A1 (zh) | 一种曝光的控制方法、装置以及无人机 | |
| WO2016049889A1 (zh) | 一种自动对焦方法、装置及电子设备 | |
| CN110336942B (zh) | 一种虚化图像获取方法及终端、计算机可读存储介质 | |
| CN104333710A (zh) | 相机曝光方法、装置及设备 | |
| US20110221869A1 (en) | Imaging device, display method and recording medium | |
| CN108513121B (zh) | 用于场景的景深图评估的方法和设备 | |
| CN104333748A (zh) | 获取图像主体对象的方法、装置及终端 | |
| WO2013146269A1 (ja) | 画像撮像装置、画像処理方法およびプログラム | |
| CN104363378A (zh) | 相机对焦方法、装置及终端 | |
| WO2016000330A1 (zh) | 一种焦距调节方法、装置和终端、计算机存储介质 | |
| CN106226976A (zh) | 一种双摄像头拍摄方法、系统及终端 | |
| CN113014899B (zh) | 一种双目图像的视差确定方法、装置及系统 | |
| WO2018076529A1 (zh) | 场景深度计算方法、装置及终端 | |
| CN110232707A (zh) | 一种测距方法及装置 | |
| JP2026026303A (ja) | 表示方法及び情報処理装置 | |
| WO2021081909A1 (zh) | 拍摄设备的对焦方法、拍摄设备、系统及存储介质 | |
| CN106506969B (zh) | 摄像模组、通过其进行人像追踪的方法以及电子设备 | |
| CN113379816B (zh) | 结构变动检测方法、电子设备及存储介质 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| WWE | Wipo information: entry into national phase |
Ref document number: 2016894878 Country of ref document: EP |
|
| ENP | Entry into the national phase |
Ref document number: 2016894878 Country of ref document: EP Effective date: 20180913 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16894878 Country of ref document: EP Kind code of ref document: A1 |

