WO2022213340A1 - Focusing method, photographic device, photographic system and readable storage medium - Google Patents

Focusing method, photographic device, photographic system and readable storage medium Download PDF

Info

Publication number
WO2022213340A1
WO2022213340A1 PCT/CN2021/086073 CN2021086073W WO2022213340A1 WO 2022213340 A1 WO2022213340 A1 WO 2022213340A1 CN 2021086073 W CN2021086073 W CN 2021086073W WO 2022213340 A1 WO2022213340 A1 WO 2022213340A1
Authority
WO
WIPO (PCT)
Prior art keywords
lens position
photographing device
target
photographing
shooting
Prior art date
Application number
PCT/CN2021/086073
Other languages
French (fr)
Chinese (zh)
Inventor
滕文猛
胡涛
朱张豪
Original Assignee
深圳市大疆创新科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市大疆创新科技有限公司 filed Critical 深圳市大疆创新科技有限公司
Priority to PCT/CN2021/086073 priority Critical patent/WO2022213340A1/en
Priority to CN202180087692.6A priority patent/CN116686299A/en
Publication of WO2022213340A1 publication Critical patent/WO2022213340A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules

Definitions

  • the present application generally relates to the field of manual focusing, and more particularly, to a focusing method, a photographing device, a photographing system, and a readable storage medium.
  • Manual focusing is a commonly used focusing method in the field of film machines (video machines).
  • the follow focus operator controls the focus motor by rotating the follow focus wheel.
  • the movement of the focus motor will change the focus of the picture.
  • the current manual focus relies more on the experience of the follow focus engineer to control the position and speed of the follow focus.
  • a first aspect of the embodiments of the present application provides a focusing method, and the method includes:
  • the current lens position of the shooting device and the target lens position of the shooting device are acquired in real time, wherein when the shooting device is at the target lens position, the shooting target is in the shooting device is in focus in the shooting screen;
  • the current lens position and the focus prompt information are displayed through the display device, so as to prompt the user to focus on the shooting device according to the current lens position and the focus prompt information, and the current lens position is adjusted to the desired position by the user's operation.
  • a second aspect of the embodiments of the present application provides a focusing method, and the method includes:
  • a first lens position and a second lens position for enabling the shooting target to be in focus in the shooting picture of the shooting device, wherein the first lens position is determined based on the first focusing method, and the second lens position is determined based on the first focusing method.
  • the position is determined based on a second focusing method, and the first focusing method is different from the second focusing method;
  • a target lens position is determined according to the first lens position and the second lens position, so that the photographing device can be adjusted from the current lens position to the target lens position.
  • a third aspect of the embodiments of the present application provides a photographing device, where the photographing device includes:
  • At least one processor and a memory stores computer-executed instructions, and the at least one processor executes the computer-executed instructions stored in the memory, so that the following steps are implemented when the computer-executed instructions are executed: during the focusing process of the photographing device , obtain the current lens position of the shooting device and the target lens position of the shooting device in real time, wherein, when the shooting device is at the target lens position, the shooting target is in focus in the shooting screen of the shooting device state;
  • the current lens position and the focus prompt information are displayed through the display device, so as to prompt the user to focus on the shooting device according to the current lens position and the focus prompt information, and the current lens position is adjusted to the desired position by the user's operation.
  • a fourth aspect of the embodiments of the present application provides a photographing device, and the photographing device includes:
  • At least one processor and a memory stores computer-executed instructions, and the at least one processor executes the computer-executed instructions stored in the memory, so that the following steps are implemented when executing the computer-executed instructions:
  • a first lens position and a second lens position for enabling the shooting target to be in focus in the shooting picture of the shooting device, wherein the first lens position is determined based on the first focusing method, and the second lens position is determined based on the first focusing method.
  • the position is determined based on a second focusing method, and the first focusing method is different from the second focusing method;
  • a target lens position is determined according to the first lens position and the second lens position, so that the photographing device can be adjusted from the current lens position to the target lens position.
  • a fifth aspect of the embodiments of the present application provides a shooting system, including: a pan/tilt and the shooting device described in the third aspect; the pan/tilt is used to carry the shooting device.
  • a sixth aspect of an embodiment of the present application provides a shooting system, including: a pan/tilt and the shooting device described in the fourth aspect; the pan/tilt is used to carry the shooting device.
  • a seventh aspect of the embodiments of the present application provides a readable storage medium, where a computer program is stored on the readable storage medium; when the computer program is executed, the focusing method as described above is implemented.
  • the present application provides a focusing method, a photographing device, and a readable storage medium for the photographing system.
  • the display device will display the current lens position and focusing prompt information, and the user can focus the shooting device according to the current lens position and the focusing prompt information, so that the current lens position can be displayed by the user
  • the operation is adjusted to the target lens position, so that the shooting target is in focus in the shooting picture of the shooting device; and the focus prompt information includes an estimated lens position range formed based on the target lens position.
  • the method described in the present application provides focusing prompt information, and manual focusing can be performed more accurately through the focusing prompt information, without the need for the user to rely on the output image of the image sensor to judge and focus, thereby avoiding focusing caused by poor performance of the image sensor. Bad question.
  • FIG. 1 shows a schematic structural diagram of a photographing system provided by an embodiment of the present application
  • FIG. 2 shows a schematic diagram of a focusing process in a second focusing method provided by an embodiment of the present application
  • FIG. 3 shows a schematic diagram of a current lens position and an estimated lens position range displayed in a display device provided by an embodiment of the present application
  • FIG. 4 shows a schematic diagram of a display device provided in an embodiment of the present application in a focus state
  • FIG. 5 shows a schematic flowchart of a focusing method in an embodiment of the present application
  • FIG. 6 shows a schematic flowchart of a focusing method in another embodiment of the present application.
  • FIG. 7 shows a schematic structural diagram of a photographing device in another embodiment of the present application.
  • a first aspect of the present application provides a focusing method, as shown in FIG. 5 , the method includes:
  • Step 110 During the focusing process of the photographing device, acquire the current lens position of the photographing device and the target lens position of the photographing device in real time, wherein when the photographing device is at the target lens position, the photographing target is at the target lens position.
  • the shooting picture of the shooting equipment is in focus state;
  • Step 120 Display the current lens position and focus prompt information through a display device, so as to prompt the user to focus on the shooting device according to the current lens position and the focus prompt information, and make the current lens position manipulated by the user Adjusting to the target lens position, wherein the focus prompt information includes an estimated lens position range formed based on the target lens position.
  • the photographing device can operate independently as the execution subject, and can also be set on the gimbal, and the gimbal is used as the carrying subject for shooting.
  • the photographing system may include a distance sensor 110 and a photographing device 130 .
  • the distance sensor 110 includes a transmitting device 111, a receiving device 112 and a control device 113, which are used to control the transmitting device 111 to transmit an optical signal through the control device 113, and receive the reflected optical signal through the receiving device 112, so as to collect distance sensing data,
  • the real-time distance between the photographing target and the photographing device 130 is obtained according to the distance sensing data.
  • the receiving device 112 may be a receiving array.
  • the sensing data collected by the distance sensor 110 may include the measured distances M between the distance sensor 110 and the shooting target corresponding to different sampling moments.
  • the real-time distance between the photographing target and the photographing device 130 can be determined according to M and L.
  • the real-time distance between the shooting device 130 and the shooting target is the value M-L obtained by subtracting the distance difference L from the measured distance M .
  • the calculation and processing of the real-time distance may be performed by the distance sensor 110, the photographing device 130 or the pan/tilt head, which is not limited in this embodiment.
  • the photographing system may further include a follow focus motor 120, the follow focus motor 120 is an actuator that drives the rotation of the lens 131 of the photographing device 130, and includes a position controller 121 and a gear, the position controller 121 is used for according to the follow focus motor.
  • the follow focus motor 120 is engaged with the follow focus ring 0 of the lens 131 in the photographing device 130 .
  • the focus wheel 140 may be an independent control device, or may be integrated on the PTZ.
  • the follow focus motor 120 is connected in communication with the gimbal, and is used for receiving a user's control instruction for the follow focus motor 120 .
  • the operating member of the follow focus motor 120 can be provided on the hand-held part of the gimbal, and the operating member is used to receive a user's control command for the follow focus motor and further drive the follow focus motor according to the control command, so as to control the photographing device 130 to focus.
  • the operating member may include, but is not limited to, the focus wheel 140 .
  • the photographing device 130 includes a lens 131 and a camera body 132 , and the lens 131 is provided on the camera body 132 .
  • the photographing device 130 can photograph the photographing target to obtain an image.
  • the camera body 132 may be a camera body of a handheld single-lens reflex camera or a mirrorless camera.
  • the lens 131 in this embodiment can support manual focus.
  • the photographing system may further include a pan/tilt head.
  • the photographing device 130 and the follow focus motor 120 are carried on the gimbal.
  • the follow focus motor 120 and the bottom of the camera body 132 can be fixedly connected by using the accessories of the gimbal. After the lens 131 is mounted on the camera body 132 through the bayonet, the follow focus motor 120 can drive the lens 131 to rotate through the follow focus ring.
  • the photographing system may further include a follow focus wheel 140 , and the follow focus wheel 140 can push the current rotational position and rotational speed data of the follow focus wheel 140 to the follow focus motor 120 , so that the follow focus motor 120 rotates to the same level as the follow focus wheel 140 . the corresponding specified location.
  • parameters can be calibrated, for example, the follow focus motor 120 can be driven by the follow focus wheel 140 to reach at least two focus calibration points, so as to complete the mapping between the real-time distance between the shooting device 130 and the shooting target and the rotation position of the follow focus motor 120 Calibration of the relationship.
  • the display device 150 is used to display the current lens position and focus prompt information, so as to prompt the user how to focus.
  • the display device 150 may be provided in the photographing device 130, for example, an interactive interface inherent in the photographing device 130 for displaying various information, and the focus prompt information is directly displayed to the user through the interactive interface during the photographing process.
  • the display device may be provided outside the photographing device 130, independent of the photographing device 130, but connected in communication with the photographing device 130, and transmits the focus prompt information determined by the photographing device 130 to the display device by means of the communication connection and Display a focus prompt message to the user.
  • the display device 150 may also be disposed on the pan/tilt, such as a handheld part integrated in the pan/tilt.
  • the display device 150 is detachably arranged on the mounting seat of the pan/tilt (eg, connected to the handle), and the display device 150 is connected to the pan/tilt in communication, and the photographing device 130 is communicatively connected to the pan/tilt, and the photographing device 130 acquires the focus prompt information and transmits it After reaching the PTZ, the PTZ then transmits the focusing prompt information to the display device 150 and displays it to the user through the display device 150 for focusing.
  • the display device 150 is not limited to the listed installation positions, and the display device 150 may also be installed at other positions of the pan/tilt.
  • the photographing device 130 in addition to manual focusing, can also focus automatically. Based on this, the user can also select a mode by inputting a selection instruction on the display device 150 and switch the auto follow focus mode to the manual follow focus mode, thereby realizing flexible switching between the manual follow focus mode and the automatic follow focus mode.
  • the focus can be achieved by using the follow focus wheel 140 to control the position of the follow focus motor 120, or by directly manually rotating the position of the lens to focus.
  • the follow focus motor 120 can obtain a user's control instruction for the follow focus motor 120; and drive the follow focus motor 120 according to the control instruction, output torque, and drive and follow focus through gear transmission
  • the lens that engages the camera's motor is focused so that the subject is in focus in the shooting device's frame.
  • the photographing system may also not include the follow focus motor 120, but manually move the lens, so that the current lens position is manually adjusted to the target lens position by the user, thereby achieving focusing .
  • the photographing device 130 may not be installed on the pan/tilt, and the focusing method of the present application may be implemented independently by the photographing device 130, wherein the composition and operation method of the photographing device 130 described above are not carried on the pan/tilt and do not mutually Under the premise of contradiction, all relevant explanations and descriptions may be introduced into the photographing device 130 , which will not be repeated here.
  • the execution subject of the focusing method may be a processing device with independent computing capabilities, such as the follow focus motor 120, the distance sensor 110, the photographing device 130 or the pan/tilt in the embodiment shown in FIG. 1 .
  • the method can also be performed by one device to perform some steps, and another device to perform other steps, that is, it can be performed by any combination of the follow focus motor 120, the distance sensor 110, the photographing device 130 and the pan/tilt head, for example, to follow focus Taking the combination of the follower motor 120 and the pan/tilt as an example, the follow focus motor 120 may perform some steps, and the pan/tilt may perform the remaining steps, so that the follow focus motor 120 and the pan/tilt jointly perform the focusing method provided in this embodiment.
  • the follow focus motor 120 can be engaged with the follow focus ring of the lens 131 in the photographing device 130, then the follow focus motor 120 can be determined according to the current position of the follow focus motor 120. to determine the current position of the lens of the photographing device 130 .
  • the current position of the follow focus motor 120 can be detected by an angle sensor.
  • the current lens position of the photographing device can also be determined by other methods, for example, it can be calculated according to the current focusing degree, and the focusing degree can be determined according to a specific focusing method.
  • the target lens position of the photographing device 130 refers to the in-focus position of the lens of the photographing device 130 .
  • the focus prompt information is an estimated lens position range including the target lens position
  • the estimated lens position range is a numerical range, not a point value.
  • the estimated lens position range is a numerical range with the target lens position as the median.
  • the method for determining the target lens position and outputting the estimated lens position range formed based on the target lens position includes: obtaining the first lens position and the second lens position respectively through different methods, wherein the photographing device 130 is respectively at the first lens position and the second lens position, the shooting target can be in the in-focus state in the shooting picture of the shooting device 130 .
  • the first lens position is determined based on the first focusing method
  • the second lens position is determined based on the second focusing method
  • the first focusing method is different from the second focusing method.
  • the estimated lens position ranges respectively determined by the first lens position and the second lens position may be the same, may partially overlap or be completely different.
  • the first lens position and the second lens position may have different confidences, that is, the first lens position has the first confidence.
  • the second lens position has a second confidence level.
  • the target lens position may be determined based on the confidence to focus the photographing device 130 .
  • determining the target lens position based on the acquired first lens position and the second lens position specifically includes: comparing the first confidence level and the second confidence degree, and taking the first lens position and the second lens position with a higher confidence degree One is the target lens position.
  • the confidence level may be used to characterize the accuracy of the determined lens position, that is, the first confidence level may be used to characterize the determined accuracy of the first lens position, and the second confidence level may be used to characterize the determined accuracy of the first lens position The accuracy of the second lens position.
  • the confidence level can be negatively correlated with the size of the corresponding estimated lens position range, that is, the higher the confidence level, the smaller the corresponding estimated lens position range, and the lower the confidence level, the corresponding estimated lens position range. bigger. In this way, when the accuracy of the lens position determined based on the corresponding focusing method is low, the problem of jumping in the estimated lens position range can be avoided.
  • the target lens position will also be adjusted (for example, caused by the real-time switching of the focusing method), and the predicted lens position will be adjusted accordingly.
  • the estimated lens position range will also be adjusted, so it is possible to move from the range of B-D to a range such as C-E; and if the estimated lens position range is large, as the current lens position gets closer and closer to the target lens position, when the estimated lens position
  • the lens position range is adjusted with the target lens position, it can change from the range of A-E to the range of C-E, so it seems that the estimated lens position range is only adjusted within the original range, becoming more accurate, not happening. The overall movement of the original range and lead to the phenomenon of jumping.
  • the method further includes comparing the first confidence level and the second confidence level a step of performing a normalization process for comparing the first confidence level and the second confidence level under the same unit measure to determine the confidence level in the first shot position and the second shot position higher one.
  • the target lens position may also be determined according to other methods.
  • a weighting method may be used, that is, the first lens position and the second lens position are respectively provided with corresponding weights, and the weighted result may be used as the target lens position.
  • the respective weights of the first lens position and the second lens position can be dynamically adjusted according to their confidence.
  • the first focusing method includes the use of a distance sensor 110 that can provide multi-point ranging, has a high resolution, and can provide depth map information.
  • the image distance can be calculated when the object distance is known. Knowing the image distance is You can know the current focus state.
  • the photographing target refers to an object to be photographed and imaged, such as a person, an object, a scene, and the like.
  • the camera body generally marks the position of the focal plane, and the real-time distance between the photographing device 130 and the photographing target can be the distance between the focal plane of the camera body of the photographing device 130 and the photographing target, represented by d, so d is equal to the object distance u and the image distance v can be expressed as:
  • the image distance and the object distance satisfy the Gaussian imaging formula:
  • determining the first lens position based on the first focusing method includes: determining the distance d between the shooting target and the shooting device 130 by using the distance sensor 110; calculating the focusing object distance according to the distance d ; Then calculate the target image distance according to the focus object distance according to formulas (2) and (3), and determine the first lens position according to the target image distance.
  • the installation positions of the distance sensor 110 can be various, as long as the real-time distance between the photographing device 130 and the photographing target can be determined according to the sensing data collected by the distance sensor 110:
  • the distance sensor 110 is detachably provided on the photographing device 130 .
  • the distance sensor 110 may be disposed on the hot shoe of the photographing device 130.
  • the ranging reference plane of the distance sensor 110 and the focal plane of the lens of the photographing device 130 may be substantially coincident within a certain error range.
  • the distance measuring reference plane of the distance sensor 110 can also be installed at a fixed distance from the focal plane of the lens of the photographing device 130, as long as the fixed distance is taken into account in subsequent calculations.
  • the photographing device The real-time distance between 130 and the shooting target is the value M-L obtained by subtracting L from the measured distance M of the distance sensor 110 . This embodiment does not limit this.
  • the photographing device 130 is detachably carried on the bearing seat of the gimbal
  • the distance sensor 110 is detachably carried on the bearing seat of the gimbal.
  • both the photographing device 130 and the distance sensor 110 are carried by the pan/tilt.
  • the balance adjustment function of the pan/tilt can be used to ensure the balance of the photographing device 130, and on the other hand, the photographing device 130 and the distance sensor 110 can be ensured.
  • the distance sensor 110 can be set relatively fixedly, so as to realize the accurate calculation of the real-time distance between the above-mentioned photographing device 130 and the photographing target.
  • the shooting target in this embodiment may be selected by the user.
  • the specific selection method is that the photographing device 130 is detachably carried on the bearing seat of the gimbal, the gimbal is communicatively connected to the photographing device 130, the display device 150 is provided on the hand-held part of the gimbal, and the photographing target is Determined by detecting a user's selection operation on the display device 150 displaying the captured image of the capturing device 130 .
  • the distance sensor 110 includes a transmitting device for transmitting optical signals and a receiving device for receiving optical signals reflected by the photographing target.
  • the distance between the photographing device 130 and the photographing target is obtained according to the sensing data collected by the distance sensor 110 .
  • the real-time distance includes: determining the distance between the shooting target and the shooting device 130 according to the light signal received by the receiving device.
  • the distance sensor 110 may further include a transmitting device for emitting optical signals and a receiving device for receiving optical signals emitted by the photographing target.
  • the photographing device 130 and the photographing target are acquired according to the sensing data collected by the distance sensor 110 .
  • the real-time distance between them includes: determining the distance between the photographing target and the photographing device 130 according to the acoustic signal received by the receiving device.
  • the distance sensor 110 can be a single-point ranging sensor or a 3D ranging sensor, and the distance sensor 110 can be a TOF (Time Of Flight, time-of-flight) ranging sensor. This embodiment does not limit this.
  • the focus or follow focus of the lens generally keeps the position of the shooting target and the position of the focal plane of the camera body of the shooting device 130 unchanged.
  • the thread converts the rotation angle of rotation into the forward and backward translation distance of the lens group of the lens, which is equivalent to driving the lens manually or with the follow focus motor 120 under the condition that the real-time distance between the shooting device 130 and the shooting target remains unchanged. Rotate to adjust the object distance u and image distance v so that the shooting screen is in focus.
  • the effect will not be affected in low light or low contrast environments.
  • CMOS with phase sensor or CMOS with phase ranging more pixels, better focusing performance, but the image quality will be worse
  • so for the image sensor there is no loss of image quality, and it has better performance. high blur.
  • the first confidence level is positively correlated with the signal-to-noise ratio of the collected data of the distance sensor 110, that is, the smaller the distortion caused by the noise of the distance sensor 110, the greater the reflected light intensity of the distance sensor 110, and the higher the signal-to-noise ratio of the distance sensor 110.
  • the higher the first confidence level the higher the first confidence level.
  • the second focusing method is an ambiguity-based focusing method, and the method uses a point spread function (PSF) to focus, and the point spread function (PSF) is a function describing the ability of an optical system to resolve a point source. Because the point source will form an enlarged image point due to diffraction after passing through any optical system, the image information can be extracted more accurately by measuring the point spread function of the system.
  • PSF point spread function
  • the blur-based focusing method is to calculate the focusing curve according to different images captured at different focusing positions and their respective blur degrees (for example, represented by PSF), and then obtain the focusing positions.
  • PSF1 is equal to PSF1(d)
  • PSF2 is equal to PSF2(d)
  • picture1 convolving PSF2(d) is equal to picture2 convolving PSF1(d).
  • Picture0 is the ideal picture in the in-focus state
  • Picture1 is the image captured at the first position
  • PSF1 is the first blur of the lens when the target is captured at the first position
  • Picture2 is captured at the second position
  • PSF2 is the second blur degree of the lens when shooting the target at the second position
  • PSF1 (d) and PSF2 (d) are the blur degrees calibrated to the lens of the shooting device 130 on the focusing stroke, that is, the PSF database ambiguity in .
  • the shooting position of the shooting device 130 is calibrated on the focusing stroke, and different shooting positions correspond to different image blur degrees. Therefore, when focusing, the shooting device 130 can be controlled to shoot the shooting target at the first position and the second position respectively, and the first position is different from the second position; and the first position of the lens when shooting the shooting target at the first position can be obtained. a blur degree, and the second blur degree of the lens when the shooting target is photographed at the second position; then, the second lens position is determined according to the acquired first blur degree and the second blur degree.
  • determining the second lens position according to the first blurriness degree and the second blurriness degree includes: determining a curve for focusing according to the first blurriness degree and the second blurriness degree; then determining the second lens position according to the curve lens position. Among them, the position corresponding to the vertex in the curve is the target lens position.
  • the first ambiguity and the second ambiguity can be obtained by using the content corresponding to the above formula, and the method for determining the curve used for focusing according to the ambiguity can refer to the prior art, which will not be repeated here.
  • the target lens position in addition to determining the target lens position through the curve, the target lens position can also be obtained by obtaining a focusing data table and looking up the table, and the above focusing method is only exemplary.
  • the second focusing method has a second confidence level, and the second confidence level is positively correlated with the curvature of the curve, that is, the larger the curvature of the focusing curve, the smaller the opening degree, the higher the second confidence level, on the contrary, the smaller the curvature of the focusing curve is. , the greater the degree of opening, the lower the second confidence.
  • the focus prompt information includes, but is not limited to, at least one of a moving direction and a moving distance of the lens of the photographing device 130 .
  • the display device 150 can display the current position of the photographing device 130 and the estimated lens position range, and the display device 150 can display the specific numerical value of the current position of the photographing device 130 and estimate the specific numerical value of the lens position range, so that The user can determine the direction and distance that the photographing device 130 needs to move according to the specific numerical value of the current position of the photographing device 130 and the specific numerical value of the estimated lens position range and the positional relationship between the two.
  • the display device 150 displays that the photographing device 130 is currently located at a position of 0.3, and the estimated value of the lens position range is 0.4-0.7. Through the positional relationship between the two It can be known how the lens of the photographing device 130 needs to be adjusted so as to enter the estimated lens position range. In addition, for further prompting, the direction of movement may also be marked in the display device 150 .
  • the display mark corresponding to the current lens position can be changed to remind the user that the current lens position has reached the target lens position, and the rotation of the lens can be stopped.
  • the current lens position, the estimated lens position range, the moving direction and other related information may have their own display marks, and different display marks may have corresponding display methods such as color, shape, dynamic and static changes.
  • the display device may display a position adjustment progress bar, and distance data may be displayed above the position adjustment progress bar, and the distance data may be used to represent the current lens position and the estimated lens position;
  • the identification of the lens position and the identification of the estimated lens position range can be close to or far away from the identification of the estimated lens position range.
  • the color of the identification of the current lens position and the identification of the estimated lens position range And the size can be different; at the same time, a sign of the moving direction is provided on one side of the sign of the current lens position, and the sign of the moving direction is used to indicate the moving direction of the current lens position, so as to be close to the estimated lens position range, and is consistent with the moving direction.
  • the target lens positions are coincident. In this way, the user can better realize manual focusing by pressing the operation through the above-mentioned display.
  • the change of the display logo includes at least one of color change, shape change, and size change.
  • the color change may further include the change of the color or the dynamic flickering of the display mark, etc., and is not limited to a certain one.
  • the identification of the estimated lens position range corresponding to the target lens position continues to converge during the focusing process.
  • the current lens position and the target lens position The positions overlap and can be treated differently with bright green.
  • the lens positions of two adjacent frames are sampled, and the in-focus position range is displayed according to the result of the current frame (the estimated lens position range calculated with the target lens position as the center, the estimated lens position range is determined by the second confidence
  • the current lens position and the estimated lens position range are updated every frame.
  • the indicator corresponding to the estimated lens position range will also continue to converge during the focusing process.
  • the current lens position and the target lens position coincide, which can be treated differently by bright green.
  • the focusing method includes a first focusing method and a second focusing method, and the two focusing methods have their own advantages.
  • This application combines the advantages of the two focusing methods to further improve the accuracy of focusing.
  • the first focusing method of the distance sensor 110 determines that the position of the first lens has sufficient resolution and accuracy, and can satisfy ranging within a certain distance. Therefore, within the specifications of the first focusing method, manual focusing assistance can be satisfied. In cases outside the specifications of the first focusing method, a second focusing method is required to estimate the in-focus position and improve the effect of manual focus assistance.
  • the maximum ranging range in the first focusing method will not exceed 10 meters, but some lenses need to meet the manual focus assistance of more than 10 meters; the general first focusing method determines the position of the first lens with an accuracy of about 5%, but some lenses When the lens is at a relatively close distance, the accuracy requirements are very high, maybe around 1%. Therefore, when the first focusing method cannot satisfy the in-focus estimation, the second focusing method can be used to estimate the in-focus position.
  • the accuracy of the second focusing method in determining the position of the second lens is [-1F ⁇ , 1F ⁇ ], and in a low-contrast scene, the accuracy of determining the position of the second lens by the second focusing method is [-2F ⁇ , 2F ⁇ ], wherein the F ⁇ is the size of the diffused spot, which can meet the requirements of manual focus assistance.
  • the accuracy of determining the position of the second lens by the second focusing method will decrease accordingly. In this case, focusing can be performed by the first focusing method.
  • a high-contrast scene means that the subject and the ambient background have a large contrast and/or have good lighting conditions, for example, the shooting background is black, and the shooting target is white, and/or has good lighting, which is high contrast.
  • the color of the subject and the environment background are similar, and the lighting conditions are poor, it is a low-contrast scene.
  • the relationship between the accuracy of determining the position of the first lens by the first focusing method and the accuracy of determining the position of the second lens by the second focusing method and the application scene can be finally reflected in the confidence described above. Therefore, The target lens position selected based on the confidence can be better used for focusing in different dynamic and static, different contrast, and different distance application scenarios.
  • the present application combines the respective advantages of the second focusing method and the first focusing method to assist manual focusing and improve its accuracy.
  • the target lens position is included in the estimated lens position range.
  • the target lens position is the midpoint position of the estimated lens position range.
  • the first focusing method cannot meet the accuracy requirements, and the second focusing method is required to estimate the in-focus position.
  • the accuracy requirements are different in different contrast scenarios, and different accuracy requirements will cause the estimated lens position range to be different. Meet the requirements of manual focus and improve the focus accuracy.
  • the display device 150 will display the current lens position and focusing prompt information.
  • the focusing prompt information includes an estimated lens position range formed based on the target lens position.
  • the user can focus the shooting device 130 according to the current lens position and the focusing prompt information. , so that the current lens position is adjusted to the target lens position through a user operation, so that the shooting target is in the in-focus state in the shooting screen of the shooting device 130 .
  • the method of the present application provides focusing prompt information, and manual focusing can be performed more accurately through the focusing prompt information, and the scope of application is wider.
  • a second aspect of the embodiments of the present application provides a focusing method, as shown in FIG. 6 , the method includes:
  • Step S210 Acquire a first lens position and a second lens position for enabling the shooting target to be in focus in the shooting screen of the shooting device, wherein the first lens position is determined based on the first focusing method, and the first lens position is determined based on the first focusing method.
  • the second lens position is determined based on a second focusing method, and the first focusing method is different from the second focusing method;
  • Step S220 Determine a target lens position according to the first lens position and the second lens position, so that the photographing device can be adjusted from the current lens position to the target lens position.
  • the focusing method may be either automatic focusing or manual focusing, which is not limited herein.
  • a follow focus motor is coupled to the lens of the photographing device, and the follow focus motor is used to drive the lens of the photographing device to rotate, so that the photographing device can be adjusted from the current lens position to The target lens position.
  • the photographing device and the follow focus motor are carried on the gimbal.
  • the photographing device is connected to the PTZ in communication, wherein: the display device is arranged on the hand-held part of the PTZ; or
  • the display device is detachably arranged on the mounting seat of the PTZ, and the display device is connected in communication with the PTZ.
  • the follow focus motor is connected in communication with the pan/tilt, and the operating element of the follow focus motor is provided on the hand-held part of the pan/tilt, and the operating element is used for receiving user control instructions for the follow focus motor.
  • the current lens position and the target lens position are displayed through the display device.
  • the photographing device may not be installed on the pan/tilt, and the photographing device independently acts as an execution subject for focusing and photographing.
  • the specific structure of the photographing device, the execution body, and the setting method of the display device can all be referred to the explanations and descriptions related to the first aspect of the present application, and will not be repeated here.
  • the method further includes: normalizing the first confidence level and the second confidence level, so as to be used for comparing the first confidence level and the second confidence level.
  • determining the first lens position based on the first focusing method includes:
  • the target image distance is calculated according to the focused object distance, and the position of the first lens is determined according to the target image distance.
  • the signal-to-noise ratio of the collected data of the distance sensor is positively correlated with the first confidence level.
  • determining the first lens position based on the first focusing method includes:
  • the second lens position is determined based on the first blurriness and the second blurriness.
  • determining the second lens position according to the first ambiguity and the second ambiguity includes:
  • the second lens position is determined according to the curve.
  • the second confidence level is positively related to the curvature of the curve.
  • the size of the estimated lens position range is negatively correlated with the first confidence level or the second confidence level.
  • the target lens position is the midpoint position of the estimated lens position range.
  • the focus prompt information further includes the moving direction and/or the moving distance of the lens of the photographing device.
  • the moving distance is characterized by a set distance between the photographing target and the photographing device.
  • the display identifier corresponding to the current lens position changes.
  • the change includes at least one of color change, shape change, and size change.
  • both the first focusing method and the second focusing method may refer to the relevant descriptions and explanations in the first aspect of the present application, which will not be repeated here.
  • the present application combines the respective advantages of the second focusing method and the first focusing method to assist manual focusing and improve its accuracy.
  • the method can perform manual focusing more accurately, does not depend on the image sensor, and is applicable to a wider range.
  • a third aspect of the embodiments of the present application provides a photographing device, which is used to respectively execute the focusing methods provided in the first aspect and the second aspect.
  • the photographing device 700 in this embodiment may include: at least one processor 701 and a memory 702 .
  • the processor 701 and the memory 702 are connected through a bus 703 .
  • the memory 702 stores computer-executed instructions
  • at least one processor 701 executes the computer-executed instructions stored in the memory 702, so that the following steps are implemented when executing the computer-executed instructions:
  • the current lens position of the shooting device and the target lens position of the shooting device are acquired in real time, wherein, when the shooting device is at the target lens position, the shooting target is in the in-focus state in the shooting screen of the shooting device;
  • the current lens position and focus prompt information are displayed on the display device to prompt the user to focus on the shooting device according to the current lens position and focus prompt information, and the current lens position is adjusted to the target lens position through user operation, wherein the focus prompt information includes The estimated lens position range formed by the target lens position.
  • the photographing device includes:
  • At least one processor and a memory stores computer-executed instructions, and at least one processor executes the computer-executed instructions stored in the memory, so that the following steps are implemented when executing the computer-executed instructions:
  • a first lens position and a second lens position for enabling the shooting target to be in focus in the shooting picture of the shooting device, wherein the first lens position is determined based on the first focusing method, and the second lens position is determined based on the first focusing method.
  • the position is determined based on a second focusing method, and the first focusing method is different from the second focusing method;
  • a target lens position is determined according to the first lens position and the second lens position, so that the photographing device can be adjusted from the current lens position to the target lens position.
  • a fourth aspect of the present application provides a shooting system, comprising: a pan/tilt and the shooting device described in the third aspect; the pan/tilt is used to carry the shooting device.
  • pan/tilt in this embodiment can be used to implement the technical solutions of the above method embodiments of the present application, and the implementation principles and technical effects thereof are similar, and will not be repeated here.
  • a fifth aspect of the present application also provides a computer storage medium on which a computer program is stored.
  • One or more computer program instructions may be stored on the computer-readable storage medium, and the computer program contains at least one piece of code, and at least one piece of code can be executed by the computer to control the computer to perform the aforementioned focusing method.
  • Embodiments of the present application further provide a computer storage medium, where program instructions are stored in the computer storage medium, and when the program is executed, some or all of the steps of the focusing method of the first aspect or the second aspect may be included.
  • the above-mentioned readable storage medium may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.
  • SRAM Static Random Access Memory
  • EEPROM Electrically Erasable Programmable Read-Only Memory
  • EPROM Erasable Programmable Read Only Memory
  • PROM Programmable Read Only Memory
  • ROM Read Only Memory
  • Magnetic Memory Flash Memory
  • Magnetic or Optical Disk Magnetic Disk
  • An exemplary readable storage medium is coupled to the processor such that the processor can read information from, and write information to, the readable storage medium.
  • the readable storage medium can also be an integral part of the processor.
  • the processor and the readable storage medium may be located in an application specific integrated circuit (Application Specific Integrated Circuits, ASIC for short).
  • ASIC Application Specific Integrated Circuits
  • the processor and the readable storage medium may also exist in the device as discrete components.
  • the functions in the embodiments of the present application (implemented by the processor) and/or other desired functions can be realized, for example, to execute the corresponding steps of the focusing method according to the embodiments of the present application, and stored in a computer-readable storage
  • Various application programs and various data such as various data used and/or generated by the application program, can also be stored in the medium.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are only illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components may be combined or May be integrated into another device, or some features may be omitted, or not implemented.
  • Various component embodiments of the present application may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof.
  • a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all functions of some modules according to the embodiments of the present application.
  • DSP digital signal processor
  • the present application can also be implemented as a program of apparatus (eg, computer programs and computer program products) for performing part or all of the methods described herein.
  • Such a program implementing the present application may be stored on a computer-readable medium, or may be in the form of one or more signals. Such signals may be downloaded from Internet sites, or provided on carrier signals, or in any other form.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)
  • Lens Barrels (AREA)

Abstract

A focusing method, a photographic device, a photographic system and a readable storage medium. The method comprises: during a focusing process of a photographic device, acquiring, in real time, the current lens position of the photographic device and a target lens position of the photographic device, wherein when the photographic device is at the target lens position, a photographing target is in an in-focus state in a photographing picture of the photographic device; and displaying the current lens position and focusing prompt information by means of a display apparatus, so as to prompt a user to focus the photographic device according to the current lens position and the focusing prompt information, and enabling the current lens position to be adjusted to the target lens position by means of a user operation, wherein the focusing prompt information comprises an estimated lens position range formed on the basis of the target lens position. By means of the method, focusing prompt information is provided, and by means of the focusing prompt information, manual focusing can be performed more accurately without relying on an image sensor; and the method has a wider application range.

Description

对焦方法、拍摄设备、拍摄系统以及可读存储介质Focusing method, photographing device, photographing system, and readable storage medium 技术领域technical field
本申请总地涉及手动对焦领域,更具体地涉及一种对焦方法、拍摄设备、拍摄系统以及可读存储介质。The present application generally relates to the field of manual focusing, and more particularly, to a focusing method, a photographing device, a photographing system, and a readable storage medium.
背景技术Background technique
手动对焦是电影机(视频机)领域常用的对焦方式,跟焦师通过旋转跟焦轮来控制对焦电机,对焦电机的移动会使画面焦点发生变化。但目前的手动对焦较依赖于跟焦师的经验来控制跟焦的位置和速度。Manual focusing is a commonly used focusing method in the field of film machines (video machines). The follow focus operator controls the focus motor by rotating the follow focus wheel. The movement of the focus motor will change the focus of the picture. However, the current manual focus relies more on the experience of the follow focus engineer to control the position and speed of the follow focus.
发明内容SUMMARY OF THE INVENTION
在发明内容部分中引入了一系列简化形式的概念,这将在具体实施方式部分中进一步详细说明。本发明的发明内容部分并不意味着要试图限定出所要求保护的技术方案的关键特征和必要技术特征,更不意味着试图确定所要求保护的技术方案的保护范围。A series of concepts in simplified form have been introduced in the Summary section, which are described in further detail in the Detailed Description section. The Summary of the Invention section of the present invention is not intended to attempt to limit the key features and essential technical features of the claimed technical solution, nor is it intended to attempt to determine the protection scope of the claimed technical solution.
本申请实施例第一方面提供了一种对焦方法,所述方法包括:A first aspect of the embodiments of the present application provides a focusing method, and the method includes:
在拍摄设备的对焦过程中,实时获取所述拍摄设备的当前镜头位置以及所述拍摄设备的目标镜头位置,其中,在所述拍摄设备处于所述目标镜头位置时,拍摄目标在所述拍摄设备的拍摄画面中处于合焦状态;During the focusing process of the shooting device, the current lens position of the shooting device and the target lens position of the shooting device are acquired in real time, wherein when the shooting device is at the target lens position, the shooting target is in the shooting device is in focus in the shooting screen;
通过显示装置显示所述当前镜头位置以及对焦提示信息,以提示用户根据所述当前镜头位置以及所述对焦提示信息对所述拍摄设备进行对焦,并使得所述当前镜头位置经用户操作调节至所述目标镜头位置,其中,所述对焦提示信息包括基于所述目标镜头位置形成的预估镜头位置范围。The current lens position and the focus prompt information are displayed through the display device, so as to prompt the user to focus on the shooting device according to the current lens position and the focus prompt information, and the current lens position is adjusted to the desired position by the user's operation. the target lens position, wherein the focus prompt information includes an estimated lens position range formed based on the target lens position.
本申请实施例第二方面提供了一种对焦方法,所述方法包括:A second aspect of the embodiments of the present application provides a focusing method, and the method includes:
获取用于使得拍摄目标能够在拍摄设备的拍摄画面中处于合焦状态的第一镜头位置和第二镜头位置,其中,所述第一镜头位置为基于第一对焦方法确定,所述第二镜头位置为基于第二对焦方法确定,所述第一对焦方法不同于所述第二对焦方法;Acquire a first lens position and a second lens position for enabling the shooting target to be in focus in the shooting picture of the shooting device, wherein the first lens position is determined based on the first focusing method, and the second lens position is determined based on the first focusing method. The position is determined based on a second focusing method, and the first focusing method is different from the second focusing method;
根据所述第一镜头位置和所述第二镜头位置确定目标镜头位置,以使得 所述拍摄设备能够由当前镜头位置调节至所述目标镜头位置。A target lens position is determined according to the first lens position and the second lens position, so that the photographing device can be adjusted from the current lens position to the target lens position.
本申请实施例第三方面提供了一种拍摄设备,所述拍摄设备包括:A third aspect of the embodiments of the present application provides a photographing device, where the photographing device includes:
至少一个处理器和存储器,所述存储器存储计算机执行指令,所述至少一个处理器执行所述存储器存储的计算机执行指令,使得执行所述计算机执行指令时实现如下步骤:在拍摄设备的对焦过程中,实时获取所述拍摄设备的当前镜头位置以及所述拍摄设备的目标镜头位置,其中,在所述拍摄设备处于所述目标镜头位置时,拍摄目标在所述拍摄设备的拍摄画面中处于合焦状态;At least one processor and a memory, the memory stores computer-executed instructions, and the at least one processor executes the computer-executed instructions stored in the memory, so that the following steps are implemented when the computer-executed instructions are executed: during the focusing process of the photographing device , obtain the current lens position of the shooting device and the target lens position of the shooting device in real time, wherein, when the shooting device is at the target lens position, the shooting target is in focus in the shooting screen of the shooting device state;
通过显示装置显示所述当前镜头位置以及对焦提示信息,以提示用户根据所述当前镜头位置以及所述对焦提示信息对所述拍摄设备进行对焦,并使得所述当前镜头位置经用户操作调节至所述目标镜头位置,其中,所述对焦提示信息包括基于所述目标镜头位置形成的预估镜头位置范围。The current lens position and the focus prompt information are displayed through the display device, so as to prompt the user to focus on the shooting device according to the current lens position and the focus prompt information, and the current lens position is adjusted to the desired position by the user's operation. the target lens position, wherein the focus prompt information includes an estimated lens position range formed based on the target lens position.
本申请实施例第四方面提供了一种拍摄设备,所述拍摄设备包括:A fourth aspect of the embodiments of the present application provides a photographing device, and the photographing device includes:
至少一个处理器和存储器,所述存储器存储计算机执行指令,所述至少一个处理器执行所述存储器存储的计算机执行指令,使得执行所述计算机执行指令时实现如下步骤:At least one processor and a memory, the memory stores computer-executed instructions, and the at least one processor executes the computer-executed instructions stored in the memory, so that the following steps are implemented when executing the computer-executed instructions:
获取用于使得拍摄目标能够在拍摄设备的拍摄画面中处于合焦状态的第一镜头位置和第二镜头位置,其中,所述第一镜头位置为基于第一对焦方法确定,所述第二镜头位置为基于第二对焦方法确定,所述第一对焦方法不同于所述第二对焦方法;Acquire a first lens position and a second lens position for enabling the shooting target to be in focus in the shooting picture of the shooting device, wherein the first lens position is determined based on the first focusing method, and the second lens position is determined based on the first focusing method. The position is determined based on a second focusing method, and the first focusing method is different from the second focusing method;
根据所述第一镜头位置和所述第二镜头位置确定目标镜头位置,以使得所述拍摄设备能够由当前镜头位置调节至所述目标镜头位置。A target lens position is determined according to the first lens position and the second lens position, so that the photographing device can be adjusted from the current lens position to the target lens position.
本申请实施例第五方面提供了一种拍摄系统,包括:云台和第三方面所述的拍摄设备;所述云台用于承载所述拍摄设备。A fifth aspect of the embodiments of the present application provides a shooting system, including: a pan/tilt and the shooting device described in the third aspect; the pan/tilt is used to carry the shooting device.
本申请实施例第六方面提供了一种拍摄系统,包括:云台和第四方面所述的拍摄设备;所述云台用于承载所述拍摄设备。A sixth aspect of an embodiment of the present application provides a shooting system, including: a pan/tilt and the shooting device described in the fourth aspect; the pan/tilt is used to carry the shooting device.
本申请实施例第七方面提供了一种可读存储介质,所述可读存储介质上存储有计算机程序;所述计算机程序在被执行时,实现如前文所述对焦方法。A seventh aspect of the embodiments of the present application provides a readable storage medium, where a computer program is stored on the readable storage medium; when the computer program is executed, the focusing method as described above is implemented.
本申请提供了一种对焦方法、拍摄设备、拍摄系统可读存储介质。在所述对焦方法中,显示装置会显示当前镜头位置以及对焦提示信息,用户可以根据所述当前镜头位置以及所述对焦提示信息对所述拍摄设备进行对焦,以使所述当前镜头位置经用户操作调节至所述目标镜头位置,从而时拍摄目 标在所述拍摄设备的拍摄画面中处于合焦状态;并且所述对焦提示信息包括基于所述目标镜头位置形成的预估镜头位置范围。本申请所述方法提供了对焦提示信息,通过对焦提示信息可以更加准确地进行人工对焦,而无需用户依靠图像传感器的输出图像自行判断进行对焦,从而避免了图像传感器的性能不佳而导致的对焦不佳的问题。The present application provides a focusing method, a photographing device, and a readable storage medium for the photographing system. In the focusing method, the display device will display the current lens position and focusing prompt information, and the user can focus the shooting device according to the current lens position and the focusing prompt information, so that the current lens position can be displayed by the user The operation is adjusted to the target lens position, so that the shooting target is in focus in the shooting picture of the shooting device; and the focus prompt information includes an estimated lens position range formed based on the target lens position. The method described in the present application provides focusing prompt information, and manual focusing can be performed more accurately through the focusing prompt information, without the need for the user to rely on the output image of the image sensor to judge and focus, thereby avoiding focusing caused by poor performance of the image sensor. Bad question.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the accompanying drawings used in the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative labor.
在附图中:In the attached image:
图1示出本申请的实施例提供的拍摄系统的示意性架构图;FIG. 1 shows a schematic structural diagram of a photographing system provided by an embodiment of the present application;
图2示出本申请的实施例提供的第二对焦方法中对焦过程的示意图;2 shows a schematic diagram of a focusing process in a second focusing method provided by an embodiment of the present application;
图3示出本申请的实施例提供的显示装置中显示的当前镜头位置和预估镜头位置范围的示意图;3 shows a schematic diagram of a current lens position and an estimated lens position range displayed in a display device provided by an embodiment of the present application;
图4示出本申请的实施例提供的显示装置中合焦状态时的示意图;FIG. 4 shows a schematic diagram of a display device provided in an embodiment of the present application in a focus state;
图5示出本申请的一实施例中对焦方法的流程示意图;FIG. 5 shows a schematic flowchart of a focusing method in an embodiment of the present application;
图6示出本申请的另一实施例中对焦方法的流程示意图;6 shows a schematic flowchart of a focusing method in another embodiment of the present application;
图7示出本申请的另一实施例中拍摄设备的结构示意图。FIG. 7 shows a schematic structural diagram of a photographing device in another embodiment of the present application.
具体实施方式Detailed ways
为了使得本申请的目的、技术方案和优点更为明显,下面将参照附图详细描述根据本申请的示例实施例。显然,所描述的实施例仅仅是本申请的一部分实施例,而不是本申请的全部实施例,应理解,本申请不受这里描述的示例实施例的限制。基于本申请中描述的本申请实施例,本领域技术人员在没有付出创造性劳动的情况下所得到的所有其它实施例都应落入本申请的保护范围之内。In order to make the objectives, technical solutions and advantages of the present application more apparent, the exemplary embodiments according to the present application will be described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments of the present application, and it should be understood that the present application is not limited by the example embodiments described herein. Based on the embodiments of the present application described in the present application, all other embodiments obtained by those skilled in the art without creative efforts shall fall within the protection scope of the present application.
在下文的描述中,给出了大量具体的细节以便提供对本申请更为彻底的理解。然而,对于本领域技术人员而言显而易见的是,本申请可以无需一个或多个这些细节而得以实施。在其他的例子中,为了避免与本申请发生混淆, 对于本领域公知的一些技术特征未进行描述。In the following description, numerous specific details are set forth in order to provide a more thorough understanding of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced without one or more of these details. In other instances, some technical features known in the art have not been described in order to avoid confusion with the present application.
应当理解的是,本申请能够以不同形式实施,而不应当解释为局限于这里提出的实施例。相反地,提供这些实施例将使公开彻底和完全,并且将本申请的范围完全地传递给本领域技术人员。It should be understood that the application may be embodied in different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of this application to those skilled in the art.
在此使用的术语的目的仅在于描述具体实施例并且不作为本申请的限制。在此使用时,单数形式的“一”、“一个”和“所述/该”也意图包括复数形式,除非上下文清楚指出另外的方式。还应明白术语“组成”和/或“包括”,当在该说明书中使用时,确定所述特征、整数、步骤、操作、元件和/或部件的存在,但不排除一个或更多其它的特征、整数、步骤、操作、元件、部件和/或组的存在或添加。在此使用时,术语“和/或”包括相关所列项目的任何及所有组合。The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used herein, the singular forms "a," "an," and "the/the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It should also be understood that the terms "compose" and/or "include", when used in this specification, identify the presence of stated features, integers, steps, operations, elements and/or components, but do not exclude one or more other The presence or addition of features, integers, steps, operations, elements, parts and/or groups. As used herein, the term "and/or" includes any and all combinations of the associated listed items.
为了彻底理解本申请,将在下列的描述中提出详细的结构,以便阐释本申请提出的技术方案。本申请的可选实施例详细描述如下,然而除了这些详细描述外,本申请还可以具有其他实施方式。For a thorough understanding of the present application, detailed structures will be presented in the following description in order to explain the technical solutions proposed by the present application. Alternative embodiments of the present application are described in detail below, however, the present application may have other embodiments in addition to these detailed descriptions.
本申请的第一方面提供了一种对焦方法,如图5所示,该方法包括:A first aspect of the present application provides a focusing method, as shown in FIG. 5 , the method includes:
步骤110:在拍摄设备的对焦过程中,实时获取所述拍摄设备的当前镜头位置以及所述拍摄设备的目标镜头位置,其中,在所述拍摄设备处于所述目标镜头位置时,拍摄目标在所述拍摄设备的拍摄画面中处于合焦状态;Step 110: During the focusing process of the photographing device, acquire the current lens position of the photographing device and the target lens position of the photographing device in real time, wherein when the photographing device is at the target lens position, the photographing target is at the target lens position. The shooting picture of the shooting equipment is in focus state;
步骤120:通过显示装置显示所述当前镜头位置以及对焦提示信息,以提示用户根据所述当前镜头位置以及所述对焦提示信息对所述拍摄设备进行对焦,并使得所述当前镜头位置经用户操作调节至所述目标镜头位置,其中,所述对焦提示信息包括基于所述目标镜头位置形成的预估镜头位置范围。Step 120: Display the current lens position and focus prompt information through a display device, so as to prompt the user to focus on the shooting device according to the current lens position and the focus prompt information, and make the current lens position manipulated by the user Adjusting to the target lens position, wherein the focus prompt information includes an estimated lens position range formed based on the target lens position.
为了更好地说明上述对焦方法,下面先结合附图先对拍摄设备进行简要说明。其中,拍摄设备可以作为执行主体单独运行,还可以设置于云台上,以云台为承载主体进行拍摄,下面以拍摄设备承载于云台上为例对整体的拍摄系统进行详细的说明。In order to better illustrate the above-mentioned focusing method, a brief description of the photographing device is given below with reference to the accompanying drawings. Among them, the photographing device can operate independently as the execution subject, and can also be set on the gimbal, and the gimbal is used as the carrying subject for shooting.
其中,图1是根据本申请的实施例提供的拍摄系统的示意性架构图。如图1所示,拍摄系统可以包括距离传感器110和拍摄设备130。1 is a schematic structural diagram of a photographing system provided according to an embodiment of the present application. As shown in FIG. 1 , the photographing system may include a distance sensor 110 and a photographing device 130 .
其中,距离传感器110包括发射装置111、接收装置112和控制装置113,用于通过控制装置113控制发射装置111发射光信号,并通过接收装置112接收反射的光信号,从而采集距离传感数据,以根据该距离传感数据获得拍摄目标与拍摄设备130之间的实时距离。可选地,该接收装置112可以为接 收阵列。距离传感器110采集的传感数据可以包括不同采样时刻对应的距离传感器110与拍摄目标之间的测量距离M。距离传感器110与拍摄设备130之间的距离差为一固定值L,则可以根据M和L确定拍摄目标与拍摄设备130之间的实时距离。例如,距离传感器的基准面位于镜头的焦平面后方,即位于镜头背离拍摄目标的一侧,则拍摄设备130与拍摄目标之间的实时距离为测量距离M减去距离差L后得到的值M-L。该实时距离的计算处理可以通过距离传感器110、通过拍摄设备130或云台进行处理,本实施例对此不做限定。The distance sensor 110 includes a transmitting device 111, a receiving device 112 and a control device 113, which are used to control the transmitting device 111 to transmit an optical signal through the control device 113, and receive the reflected optical signal through the receiving device 112, so as to collect distance sensing data, The real-time distance between the photographing target and the photographing device 130 is obtained according to the distance sensing data. Optionally, the receiving device 112 may be a receiving array. The sensing data collected by the distance sensor 110 may include the measured distances M between the distance sensor 110 and the shooting target corresponding to different sampling moments. If the distance difference between the distance sensor 110 and the photographing device 130 is a fixed value L, the real-time distance between the photographing target and the photographing device 130 can be determined according to M and L. For example, if the reference plane of the distance sensor is located behind the focal plane of the lens, that is, on the side of the lens away from the shooting target, the real-time distance between the shooting device 130 and the shooting target is the value M-L obtained by subtracting the distance difference L from the measured distance M . The calculation and processing of the real-time distance may be performed by the distance sensor 110, the photographing device 130 or the pan/tilt head, which is not limited in this embodiment.
拍摄系统还可以包括跟焦器电机120,跟焦器电机120为驱动拍摄设备130的镜头131转动的执行机构,包括位置控制器121和齿轮,该位置控制器121用于根据与跟焦器电机120连接的跟焦轮140给出的控制指令或者与距离传感器110连接的控制器给出的控制指令,输出力矩,通过齿轮传动驱动与跟焦器电机120啮合的镜头131对焦,以使拍摄目标在拍摄设备130的拍摄画面中处于合焦状态。可选地,跟焦器电机120与拍摄设备130中镜头131的跟焦环0啮合。其中,跟焦轮140可以为独立的控制设备,或集成于云台上。The photographing system may further include a follow focus motor 120, the follow focus motor 120 is an actuator that drives the rotation of the lens 131 of the photographing device 130, and includes a position controller 121 and a gear, the position controller 121 is used for according to the follow focus motor. The control command given by the follow focus wheel 140 connected to 120 or the control command given by the controller connected with the distance sensor 110, output torque, and drive the lens 131 engaged with the follow focus motor 120 to focus through gear transmission, so as to make the shooting target It is in the in-focus state in the photographing screen of the photographing device 130 . Optionally, the follow focus motor 120 is engaged with the follow focus ring 0 of the lens 131 in the photographing device 130 . Wherein, the focus wheel 140 may be an independent control device, or may be integrated on the PTZ.
在一实施例中,跟焦器电机120与云台通信连接,用于接收用户针对跟焦器电机120的控制指令。具体地,跟焦器电机120的操作件可以设于云台的手持部,操作件用于接收用户针对跟焦器电机的控制指令并进一步根据控制指令驱动跟焦器电机,以对拍摄设备130进行对焦。其中,操作件可以包括但不限于跟焦轮140。In one embodiment, the follow focus motor 120 is connected in communication with the gimbal, and is used for receiving a user's control instruction for the follow focus motor 120 . Specifically, the operating member of the follow focus motor 120 can be provided on the hand-held part of the gimbal, and the operating member is used to receive a user's control command for the follow focus motor and further drive the follow focus motor according to the control command, so as to control the photographing device 130 to focus. The operating member may include, but is not limited to, the focus wheel 140 .
拍摄设备130,包括镜头131和相机本体132,镜头131设于相机本体132。在跟焦器电机120驱动镜头131对焦后,即拍摄目标在拍摄设备130的拍摄画面中处于合焦状态时,拍摄设备130能够对拍摄目标进行拍摄获得图像。相机本体132可以为手持单反或微单相机的相机本体。本实施例中的镜头131可以支持手动对焦。The photographing device 130 includes a lens 131 and a camera body 132 , and the lens 131 is provided on the camera body 132 . After the follow focus motor 120 drives the lens 131 to focus, that is, when the photographing target is in the in-focus state in the photographing screen of the photographing device 130 , the photographing device 130 can photograph the photographing target to obtain an image. The camera body 132 may be a camera body of a handheld single-lens reflex camera or a mirrorless camera. The lens 131 in this embodiment can support manual focus.
可选地,该拍摄系统还可以包括云台。拍摄设备130与跟焦器电机120承载于云台。使用该云台的配件可将跟焦器电机120和相机本体132底部固联,镜头131通过卡口安装到相机本体132上后,跟焦器电机120即可通过跟焦环驱动镜头131转动。Optionally, the photographing system may further include a pan/tilt head. The photographing device 130 and the follow focus motor 120 are carried on the gimbal. The follow focus motor 120 and the bottom of the camera body 132 can be fixedly connected by using the accessories of the gimbal. After the lens 131 is mounted on the camera body 132 through the bayonet, the follow focus motor 120 can drive the lens 131 to rotate through the follow focus ring.
该拍摄系统还可以包括跟焦轮140,跟焦轮140可以推送跟焦轮140当前的转动位置和转动速度数据给跟焦器电机120,从而使跟焦器电机120转 动到与跟焦轮140相对应的指定位置。其中,可以通过参数标定,例如使用跟焦轮140驱动跟焦器电机120到达至少两个对焦标定点,从而完成拍摄设备130与拍摄目标之间的实时距离与跟焦器电机120转动位置的映射关系的标定。The photographing system may further include a follow focus wheel 140 , and the follow focus wheel 140 can push the current rotational position and rotational speed data of the follow focus wheel 140 to the follow focus motor 120 , so that the follow focus motor 120 rotates to the same level as the follow focus wheel 140 . the corresponding specified location. Wherein, parameters can be calibrated, for example, the follow focus motor 120 can be driven by the follow focus wheel 140 to reach at least two focus calibration points, so as to complete the mapping between the real-time distance between the shooting device 130 and the shooting target and the rotation position of the follow focus motor 120 Calibration of the relationship.
另外,显示装置150用于显示当前镜头位置以及对焦提示信息,以提示用户如何进行对焦。In addition, the display device 150 is used to display the current lens position and focus prompt information, so as to prompt the user how to focus.
在一示例中,显示装置150可以设置于拍摄设备130,例如为拍摄设备130固有的用于显示各种信息的交互界面,在拍摄过程中通过交互界面直接向用户展示对焦提示信息。In an example, the display device 150 may be provided in the photographing device 130, for example, an interactive interface inherent in the photographing device 130 for displaying various information, and the focus prompt information is directly displayed to the user through the interactive interface during the photographing process.
在另一示例中,显示装置可以设置于拍摄设备130以外,独立于拍摄设备130,但是与拍摄设备130通信连接,将拍摄设备130所确定的对焦提示信息通过通信连接的方式传输至显示装置并向用户显示对焦提示信息。In another example, the display device may be provided outside the photographing device 130, independent of the photographing device 130, but connected in communication with the photographing device 130, and transmits the focus prompt information determined by the photographing device 130 to the display device by means of the communication connection and Display a focus prompt message to the user.
例如,显示装置150还可以设置在云台上,如集成于云台的手持部。或者显示装置150可拆卸地设置在云台的安装座(如与手柄连接)上,并且显示装置150与云台通信连接,拍摄设备130与云台通信连接,拍摄设备130获取对焦提示信息之后传输至云台,云台再将对焦提示信息传输至显示装置150,并通过显示装置150显示给用户,进行调焦。需要说明的是显示装置150但并不局限于所列举的安装位置,显示装置150还可以设置于云台的其他位置。For example, the display device 150 may also be disposed on the pan/tilt, such as a handheld part integrated in the pan/tilt. Or the display device 150 is detachably arranged on the mounting seat of the pan/tilt (eg, connected to the handle), and the display device 150 is connected to the pan/tilt in communication, and the photographing device 130 is communicatively connected to the pan/tilt, and the photographing device 130 acquires the focus prompt information and transmits it After reaching the PTZ, the PTZ then transmits the focusing prompt information to the display device 150 and displays it to the user through the display device 150 for focusing. It should be noted that the display device 150 is not limited to the listed installation positions, and the display device 150 may also be installed at other positions of the pan/tilt.
本申请实施例中,拍摄设备130除进行手动对焦之外,还可以自动对焦。基于此,用户还可以通过在显示装置150输入选择指令进行模式选择,将自动跟焦模式切换到手动跟焦模式,从而实现手动跟焦模式和自动跟焦模式的灵活切换。In this embodiment of the present application, in addition to manual focusing, the photographing device 130 can also focus automatically. Based on this, the user can also select a mode by inputting a selection instruction on the display device 150 and switch the auto follow focus mode to the manual follow focus mode, thereby realizing flexible switching between the manual follow focus mode and the automatic follow focus mode.
其中,手动对焦模式下,可以通过使用跟焦轮140来控制跟焦器电机120的位置来对焦,或者,直接手动转动镜头的位置来对焦。例如,在本申请的一实施例中,跟焦器电机120可以获取用户针对跟焦器电机120的控制指令;并根据控制指令驱动跟焦器电机120,输出力矩,通过齿轮传动驱动与跟焦器电机啮合的镜头对焦,以使拍摄目标在拍摄设备的拍摄画面中处于合焦状态。在本申请的另一实施例中,拍摄系统也可以不包含跟焦器电机120,而是通过手动的方式拨动镜头,以使当前镜头位置经用户手动转动调节至目标镜头位置,进而实现对焦。Wherein, in the manual focus mode, the focus can be achieved by using the follow focus wheel 140 to control the position of the follow focus motor 120, or by directly manually rotating the position of the lens to focus. For example, in an embodiment of the present application, the follow focus motor 120 can obtain a user's control instruction for the follow focus motor 120; and drive the follow focus motor 120 according to the control instruction, output torque, and drive and follow focus through gear transmission The lens that engages the camera's motor is focused so that the subject is in focus in the shooting device's frame. In another embodiment of the present application, the photographing system may also not include the follow focus motor 120, but manually move the lens, so that the current lens position is manually adjusted to the target lens position by the user, thereby achieving focusing .
应理解,上述对于拍摄系统各组成部分的命名仅是出于标识的目的,并 不应理解为对本申请的实施例的限制。It should be understood that the above naming of the components of the photographing system is only for the purpose of identification, and should not be construed as a limitation on the embodiments of the present application.
需说明,拍摄设备130也可以不设置于云台,通过拍摄设备130单独地实现本申请的对焦方法,其中前文拍摄设备130的构成以及运行方法在拍摄设备130不承载于云台上并且不相互矛盾的前提下,相关解释和说明可以全部引入到拍摄设备130中,在此不再赘述。It should be noted that the photographing device 130 may not be installed on the pan/tilt, and the focusing method of the present application may be implemented independently by the photographing device 130, wherein the composition and operation method of the photographing device 130 described above are not carried on the pan/tilt and do not mutually Under the premise of contradiction, all relevant explanations and descriptions may be introduced into the photographing device 130 , which will not be repeated here.
在本申请中,对焦方法的执行主体可以为具有独立计算能力的处理设备,例如图1所示实施例中的跟焦器电机120、距离传感器110、拍摄设备130或者云台,当然本实施例的方法还可以由一个设备执行一些步骤,由另一个设备执行其他步骤,也即可以由跟焦器电机120、距离传感器110、拍摄设备130和云台中任意组合来共同执行,例如,以跟焦器电机120和云台的组合为例,可以由跟焦器电机120执行一部分步骤,由云台执行剩余步骤,以使跟焦器电机120和云台共同执行本实施例提供的对焦方法。In this application, the execution subject of the focusing method may be a processing device with independent computing capabilities, such as the follow focus motor 120, the distance sensor 110, the photographing device 130 or the pan/tilt in the embodiment shown in FIG. 1 . Of course, this embodiment The method can also be performed by one device to perform some steps, and another device to perform other steps, that is, it can be performed by any combination of the follow focus motor 120, the distance sensor 110, the photographing device 130 and the pan/tilt head, for example, to follow focus Taking the combination of the follower motor 120 and the pan/tilt as an example, the follow focus motor 120 may perform some steps, and the pan/tilt may perform the remaining steps, so that the follow focus motor 120 and the pan/tilt jointly perform the focusing method provided in this embodiment.
在步骤S110中,在本申请的一实施例中,如前文所述,跟焦器电机120可以与拍摄设备130中镜头131的跟焦环啮合,那么可以根据跟焦器电机120的当前位置来来确定拍摄设备130的镜头当前所在的位置。其中,跟焦器电机120的当前位置可以通过角度传感器检测得到。当然,拍摄设备的当前镜头位置也可以采用其它来确定,例如,可以根据当前的对焦程度进行计算得到,该对焦程度可以依据具体的对焦方法而定。In step S110, in an embodiment of the present application, as described above, the follow focus motor 120 can be engaged with the follow focus ring of the lens 131 in the photographing device 130, then the follow focus motor 120 can be determined according to the current position of the follow focus motor 120. to determine the current position of the lens of the photographing device 130 . Wherein, the current position of the follow focus motor 120 can be detected by an angle sensor. Of course, the current lens position of the photographing device can also be determined by other methods, for example, it can be calculated according to the current focusing degree, and the focusing degree can be determined according to a specific focusing method.
其中,拍摄设备130的目标镜头位置是指拍摄设备130的镜头的合焦位置,即拍摄设备130处于目标镜头位置时,拍摄目标在拍摄设备130的拍摄画面中处于合焦状态。The target lens position of the photographing device 130 refers to the in-focus position of the lens of the photographing device 130 .
在本申请中对焦提示信息为包括目标镜头位置的预估镜头位置范围,预估镜头位置范围为一数值范围,并非点值。例如在本申请的一示例中,预估镜头位置范围为以目标镜头位置为中值的数值范围。其中,确定目标镜头位置并输出基于目标镜头位置形成的预估镜头位置范围的方法包括:通过不同的方法分别获得第一镜头位置和第二镜头位置,其中,拍摄设备130分别在第一镜头位置和第二镜头位置时,拍摄目标能够在拍摄设备130的拍摄画面中处于合焦状态。In the present application, the focus prompt information is an estimated lens position range including the target lens position, and the estimated lens position range is a numerical range, not a point value. For example, in an example of the present application, the estimated lens position range is a numerical range with the target lens position as the median. Wherein, the method for determining the target lens position and outputting the estimated lens position range formed based on the target lens position includes: obtaining the first lens position and the second lens position respectively through different methods, wherein the photographing device 130 is respectively at the first lens position and the second lens position, the shooting target can be in the in-focus state in the shooting picture of the shooting device 130 .
具体地,第一镜头位置基于第一对焦方法确定,第二镜头位置为基于第二对焦方法确定,第一对焦方法不同于第二对焦方法。其中,基于第一镜头位置和第二镜头位置的相同或不同,由第一镜头位置和第二镜头位置分别确定的预估镜头位置范围可以相同,也可以部分重叠或者完全不同。Specifically, the first lens position is determined based on the first focusing method, and the second lens position is determined based on the second focusing method, and the first focusing method is different from the second focusing method. Wherein, based on the same or different positions of the first lens and the second lens, the estimated lens position ranges respectively determined by the first lens position and the second lens position may be the same, may partially overlap or be completely different.
其中,由于第一对焦方法不同于第二对焦方法,其置信度的影响因素不同,那么第一镜头位置和第二镜头位置可以具有不同的置信度,也即第一镜头位置具有第一置信度,第二镜头位置具有第二置信度。Wherein, since the first focusing method is different from the second focusing method, and the influencing factors of the confidence are different, the first lens position and the second lens position may have different confidences, that is, the first lens position has the first confidence. , the second lens position has a second confidence level.
如此,可以基于置信度确定目标镜头位置,以对拍摄设备130进行对焦。其中,基于获取的第一镜头位置和第二镜头位置确定目标镜头位置,具体地包括:比较第一置信度和第二置信度,以第一镜头位置和第二镜头位置中置信度更高的一个为目标镜头位置。As such, the target lens position may be determined based on the confidence to focus the photographing device 130 . Wherein, determining the target lens position based on the acquired first lens position and the second lens position specifically includes: comparing the first confidence level and the second confidence degree, and taking the first lens position and the second lens position with a higher confidence degree One is the target lens position.
在本申请中,置信度可以用于表征确定的镜头位置的准确度,也即,第一置信度可以用于表征确定的第一镜头位置的准确度,第二置信度可以用于表征确定的第二镜头位置的准确度。其中,置信度可以与其对应的预估镜头位置范围的大小呈负相关,也即置信度越高,其对应的预估镜头位置范围越小,置信度越低,其对应的预估镜头位置范围越大。如此,可以避免在基于相应的对焦方法确定的镜头位置的准确度较低时,预估镜头位置范围存在跳变的问题。In this application, the confidence level may be used to characterize the accuracy of the determined lens position, that is, the first confidence level may be used to characterize the determined accuracy of the first lens position, and the second confidence level may be used to characterize the determined accuracy of the first lens position The accuracy of the second lens position. Among them, the confidence level can be negatively correlated with the size of the corresponding estimated lens position range, that is, the higher the confidence level, the smaller the corresponding estimated lens position range, and the lower the confidence level, the corresponding estimated lens position range. bigger. In this way, when the accuracy of the lens position determined based on the corresponding focusing method is low, the problem of jumping in the estimated lens position range can be avoided.
例如,在置信度低的情况下,若预估镜头位置范围较小,则随着当前镜头位置的调整,目标镜头位置也会发生调整(比如由对焦方法的实时切换所导致),随之预估镜头位置范围也会发生调整,那么即有可能从B-D的范围移动到诸如C-E的范围;而若预估镜头位置范围较大,随着当前镜头位置越来越靠近目标镜头位置,当预估镜头位置范围随着目标镜头位置发生调整时,其可以在A-E的范围变化到诸如C-E的范围,从而看来预估镜头位置范围只是在原有范围内发生了调整,变得更加精确,而非发生了原有范围的整体移动并导致产生跳变的现象。For example, in the case of low confidence, if the estimated lens position range is small, then along with the adjustment of the current lens position, the target lens position will also be adjusted (for example, caused by the real-time switching of the focusing method), and the predicted lens position will be adjusted accordingly. The estimated lens position range will also be adjusted, so it is possible to move from the range of B-D to a range such as C-E; and if the estimated lens position range is large, as the current lens position gets closer and closer to the target lens position, when the estimated lens position When the lens position range is adjusted with the target lens position, it can change from the range of A-E to the range of C-E, so it seems that the estimated lens position range is only adjusted within the original range, becoming more accurate, not happening. The overall movement of the original range and lead to the phenomenon of jumping.
在本申请中,由于第一对焦方法和第二对焦方法为不同的方法,因此获得的第一置信度和第二置信度的种类不同,方法还进一步包括对第一置信度和第二置信度进行归一化处理的步骤,通过归一化处理以用于在同一个单位量度下,对第一置信度和第二置信度进行比较,以确定第一镜头位置和第二镜头位置中置信度更高的一个。In this application, since the first focusing method and the second focusing method are different methods, the obtained first confidence level and the second confidence level are of different types, and the method further includes comparing the first confidence level and the second confidence level a step of performing a normalization process for comparing the first confidence level and the second confidence level under the same unit measure to determine the confidence level in the first shot position and the second shot position higher one.
在本申请中,除了通过比较置信度的高低来确定目标镜头位置之外,还可以根据其他方法确定目标镜头位置。例如,可以采用权重法,也即第一镜头位置和第二镜头位置分别设有对应的权重,可以将其加权结果作为目标镜头位置。其中,第一镜头位置和第二镜头位置各自的权重可以依据其置信度而动态调整。In this application, in addition to determining the target lens position by comparing the confidence level, the target lens position may also be determined according to other methods. For example, a weighting method may be used, that is, the first lens position and the second lens position are respectively provided with corresponding weights, and the weighted result may be used as the target lens position. Wherein, the respective weights of the first lens position and the second lens position can be dynamically adjusted according to their confidence.
其中,第一对焦方法包括采用可以提供多点测距的距离传感器110,分 辨率较高,可以提供深度图信息,根据高斯成像公式,知道物距的情况下可以算出像距,知道像距即可知当前的合焦状态。The first focusing method includes the use of a distance sensor 110 that can provide multi-point ranging, has a high resolution, and can provide depth map information. According to the Gaussian imaging formula, the image distance can be calculated when the object distance is known. Knowing the image distance is You can know the current focus state.
具体地,本申请的一实施例中,拍摄目标是指待拍摄成像的对象,例如人、物、景等。相机本体一般会标注焦平面的位置,拍摄设备130与拍摄目标之间的实时距离可以为拍摄设备130的相机本体的焦平面与拍摄目标之间的距离,以d代表,因此d与物距u和像距v之间的关系可以表示为:Specifically, in an embodiment of the present application, the photographing target refers to an object to be photographed and imaged, such as a person, an object, a scene, and the like. The camera body generally marks the position of the focal plane, and the real-time distance between the photographing device 130 and the photographing target can be the distance between the focal plane of the camera body of the photographing device 130 and the photographing target, represented by d, so d is equal to the object distance u and the image distance v can be expressed as:
d=u+v    (1)d=u+v (1)
在拍摄目标在拍摄设备130的拍摄画面中处于合焦状态时,像距和物距满足高斯成像公式:When the shooting target is in the in-focus state in the shooting picture of the shooting device 130, the image distance and the object distance satisfy the Gaussian imaging formula:
Figure PCTCN2021086073-appb-000001
Figure PCTCN2021086073-appb-000001
根据公式(1)和公式(2)可以得到:According to formula (1) and formula (2), we can get:
Figure PCTCN2021086073-appb-000002
Figure PCTCN2021086073-appb-000002
Figure PCTCN2021086073-appb-000003
Figure PCTCN2021086073-appb-000003
在本申请的一实施例中,基于所述第一对焦方法确定所述第一镜头位置,包括:通过距离传感器110确定拍摄目标与拍摄设备130之间的距离d;根据距离d计算对焦物距;然后根据公式(2)和(3)根据对焦物距计算目标像距,并根据目标像距确定第一镜头位置。In an embodiment of the present application, determining the first lens position based on the first focusing method includes: determining the distance d between the shooting target and the shooting device 130 by using the distance sensor 110; calculating the focusing object distance according to the distance d ; Then calculate the target image distance according to the focus object distance according to formulas (2) and (3), and determine the first lens position according to the target image distance.
本实施例中,距离传感器110的安装位置可以有多种,只要满足根据距离传感器110采集的传感数据能够确定拍摄设备130与拍摄目标之间的实时距离即可:In this embodiment, the installation positions of the distance sensor 110 can be various, as long as the real-time distance between the photographing device 130 and the photographing target can be determined according to the sensing data collected by the distance sensor 110:
在一种可实现方式中,距离传感器110可拆卸地设置在拍摄设备130上。例如,距离传感器110可以设置在拍摄设备130的热靴上,在此情况下,距离传感器110的测距基准面与拍摄设备130的镜头的焦平面可以在一定误差范围内实现基本重合。当然,也可以令距离传感器110的测距基准面与拍摄设备130的镜头的焦平面相距固定的距离进行安装,只要在后续计算中将该固定的距离考虑在内即可。例如,距离传感器110的基准面位于镜头的焦平面后方,即背离拍摄目标的一侧,且距离传感器110的基准面与镜头的焦平面之间的距离差为一固定值L,则,拍摄设备130与拍摄目标之间的实时距离为距离传感器110的测量距离M减去L后得到的值M-L。本实施例对此不做限定。In an implementation manner, the distance sensor 110 is detachably provided on the photographing device 130 . For example, the distance sensor 110 may be disposed on the hot shoe of the photographing device 130. In this case, the ranging reference plane of the distance sensor 110 and the focal plane of the lens of the photographing device 130 may be substantially coincident within a certain error range. Of course, the distance measuring reference plane of the distance sensor 110 can also be installed at a fixed distance from the focal plane of the lens of the photographing device 130, as long as the fixed distance is taken into account in subsequent calculations. For example, if the reference plane of the distance sensor 110 is located behind the focal plane of the lens, that is, on the side away from the shooting target, and the distance difference between the reference plane of the distance sensor 110 and the focal plane of the lens is a fixed value L, then the photographing device The real-time distance between 130 and the shooting target is the value M-L obtained by subtracting L from the measured distance M of the distance sensor 110 . This embodiment does not limit this.
在另一种实现方式中,拍摄设备130可拆卸地承载在云台的承载座上, 距离传感器110可拆卸地承载在云台的承载座上。该方式中,通过设置云台,将拍摄设备130和距离传感器110均由该云台承载,一方面可以利用云台的平衡调节功能保证拍摄设备130的平衡,另一方面可以保证拍摄设备130与距离传感器110能够相对固定的设置,实现上述拍摄设备130与拍摄目标之间的实时距离的准确计算。In another implementation manner, the photographing device 130 is detachably carried on the bearing seat of the gimbal, and the distance sensor 110 is detachably carried on the bearing seat of the gimbal. In this way, by setting the pan/tilt, both the photographing device 130 and the distance sensor 110 are carried by the pan/tilt. On the one hand, the balance adjustment function of the pan/tilt can be used to ensure the balance of the photographing device 130, and on the other hand, the photographing device 130 and the distance sensor 110 can be ensured. The distance sensor 110 can be set relatively fixedly, so as to realize the accurate calculation of the real-time distance between the above-mentioned photographing device 130 and the photographing target.
可选地,本实施例中的拍摄目标可以是由用户选中的。在一些实施例中,具体的选择方式是,拍摄设备130可拆卸地承载在云台的承载座上,云台与拍摄设备130通信连接,云台的手持部上设置显示装置150,拍摄目标是通过检测用户对显示拍摄设备130的拍摄图像的显示装置150的选择操作确定的。Optionally, the shooting target in this embodiment may be selected by the user. In some embodiments, the specific selection method is that the photographing device 130 is detachably carried on the bearing seat of the gimbal, the gimbal is communicatively connected to the photographing device 130, the display device 150 is provided on the hand-held part of the gimbal, and the photographing target is Determined by detecting a user's selection operation on the display device 150 displaying the captured image of the capturing device 130 .
在一些实施例中,距离传感器110包括发射光信号的发射装置和接收拍摄目标反射的光信号的接收装置,相应的,根据距离传感器110采集到的传感数据获取拍摄设备130与拍摄目标之间的实时距离,包括:根据接收装置接收到的光信号确定拍摄目标与拍摄设备130之间的距离。In some embodiments, the distance sensor 110 includes a transmitting device for transmitting optical signals and a receiving device for receiving optical signals reflected by the photographing target. Correspondingly, the distance between the photographing device 130 and the photographing target is obtained according to the sensing data collected by the distance sensor 110 . The real-time distance includes: determining the distance between the shooting target and the shooting device 130 according to the light signal received by the receiving device.
在一些实施例中,距离传感器110还可以包括发射光信号的发射装置和接收拍摄目标发射的光信号的接收装置,相应的,根据距离传感器110采集到的传感数据获取拍摄设备130与拍摄目标之间的实时距离,包括:根据接收装置接收到的声信号确定拍摄目标与拍摄设备130之间的距离。In some embodiments, the distance sensor 110 may further include a transmitting device for emitting optical signals and a receiving device for receiving optical signals emitted by the photographing target. Correspondingly, the photographing device 130 and the photographing target are acquired according to the sensing data collected by the distance sensor 110 . The real-time distance between them includes: determining the distance between the photographing target and the photographing device 130 according to the acoustic signal received by the receiving device.
本实施例中,距离传感器110可以为单点式测距传感器或者3D测距传感器,距离传感器110可以为TOF(Time Of Flight,时间飞行)测距传感器。本实施例对此不做限定。In this embodiment, the distance sensor 110 can be a single-point ranging sensor or a 3D ranging sensor, and the distance sensor 110 can be a TOF (Time Of Flight, time-of-flight) ranging sensor. This embodiment does not limit this.
在第一对焦方法中,镜头的对焦或跟焦一般是保持拍摄目标的位置和拍摄设备130的相机本体的焦平面位置均不变,通过转动拍摄设备130的镜头的跟焦环,镜头内壁的螺纹将转动的旋转角度转换成镜头的透镜组的前后平移距离,相当于在拍摄设备130与拍摄目标之间的实时距离保持不变的情况下,通过手动方式或者用跟焦器电机120驱动镜头转动,调整物距u和像距v使拍摄画面合焦。在第一对焦方法中,在暗光或低对比度环境下,效果不会受到影响。此外因为没有采用带有相位传感器的CMOS或者具备相位测距的CMOS(像素较多,对焦性能较好,但图像质量会变差),所以对于图像传感器来说,画质没有丝毫损失,具有更高的模糊度。In the first focusing method, the focus or follow focus of the lens generally keeps the position of the shooting target and the position of the focal plane of the camera body of the shooting device 130 unchanged. The thread converts the rotation angle of rotation into the forward and backward translation distance of the lens group of the lens, which is equivalent to driving the lens manually or with the follow focus motor 120 under the condition that the real-time distance between the shooting device 130 and the shooting target remains unchanged. Rotate to adjust the object distance u and image distance v so that the shooting screen is in focus. In the first focusing method, the effect will not be affected in low light or low contrast environments. In addition, because there is no CMOS with phase sensor or CMOS with phase ranging (more pixels, better focusing performance, but the image quality will be worse), so for the image sensor, there is no loss of image quality, and it has better performance. high blur.
其中,第一置信度与距离传感器110的采集数据的信噪比呈正相关,即距离传感器110的噪音引起的失真越小,距离传感器110的反射光强度越大,距离传感器110的信噪比越高,第一置信度也就越高。The first confidence level is positively correlated with the signal-to-noise ratio of the collected data of the distance sensor 110, that is, the smaller the distortion caused by the noise of the distance sensor 110, the greater the reflected light intensity of the distance sensor 110, and the higher the signal-to-noise ratio of the distance sensor 110. The higher the first confidence level, the higher the first confidence level.
第二对焦方法为基于模糊度的对焦方法,方法利用点扩散函数(PSF)进行对焦,点扩散函数(PSF)是描述光学系统对点源解析能力的函数。因为点源在经过任何光学系统后都会由于衍射而形成一个扩大的像点,通过测量系统的点扩展函数,能够更准确地提取图像信息。The second focusing method is an ambiguity-based focusing method, and the method uses a point spread function (PSF) to focus, and the point spread function (PSF) is a function describing the ability of an optical system to resolve a point source. Because the point source will form an enlarged image point due to diffraction after passing through any optical system, the image information can be extracted more accurately by measuring the point spread function of the system.
基于模糊度对焦的方法是根据不同合焦位置上拍摄的不同的图像和各自的模糊度(例如通过PSF表征),推算出对焦曲线,然后得到合焦位置。由如下公式可知,在PSF1等于PSF1(d)并且PSF2等于PSF2(d)的情况下,picture1卷积PSF2(d)等于picture2卷积PSF1(d)。The blur-based focusing method is to calculate the focusing curve according to different images captured at different focusing positions and their respective blur degrees (for example, represented by PSF), and then obtain the focusing positions. As can be seen from the following formula, in the case where PSF1 is equal to PSF1(d) and PSF2 is equal to PSF2(d), picture1 convolving PSF2(d) is equal to picture2 convolving PSF1(d).
Figure PCTCN2021086073-appb-000004
Figure PCTCN2021086073-appb-000004
Figure PCTCN2021086073-appb-000005
Figure PCTCN2021086073-appb-000005
其中,Picture0为合焦状态下的理想图片,Picture1为第一位置时拍摄得到的图像,PSF1为在第一位置对拍摄目标进行拍摄时镜头的第一模糊度,Picture2为第二位置时拍摄得到的图像,PSF2为在第二位置对拍摄目标进行拍摄时镜头的第二模糊度,PSF1(d)和PSF2(d)为在对焦行程上对拍摄设备130的镜头标定的模糊度,即PSF数据库中的模糊度。在手动对焦过程中,计算相邻位置的两张图像Picture1和Picture2,遍历数据库中的所有PSF,找到满足公式的PSF1(d)和PSF2(d),然后就确定了PSF1(d)和PSF2(d)对应的用于合焦的曲线,即可找到合焦点,如图2所示。Among them, Picture0 is the ideal picture in the in-focus state, Picture1 is the image captured at the first position, PSF1 is the first blur of the lens when the target is captured at the first position, and Picture2 is captured at the second position. , PSF2 is the second blur degree of the lens when shooting the target at the second position, PSF1 (d) and PSF2 (d) are the blur degrees calibrated to the lens of the shooting device 130 on the focusing stroke, that is, the PSF database ambiguity in . During the manual focusing process, two adjacent images, Picture1 and Picture2, are calculated, and all PSFs in the database are traversed to find PSF1(d) and PSF2(d) that satisfy the formula, and then determine PSF1(d) and PSF2( d) The corresponding curve used for focusing, the focusing point can be found, as shown in Figure 2.
在本申请的一实施例中,如图2所示,在第二对焦方法中,在对焦行程上对拍摄设备130的拍摄位置进行了标定,不同的拍摄位置对应不同的图像模糊度。因此,对焦时,可控制拍摄设备130在第一位置和第二位置分别对拍摄目标进行拍摄,第一位置不同于第二位置;并可以获取在第一位置对拍摄目标进行拍摄时镜头的第一模糊度,以及在第二位置对拍摄目标进行拍摄时镜头的第二模糊度;然后,根据获取第一模糊度和第二模糊度确定第二镜头位置。In an embodiment of the present application, as shown in FIG. 2 , in the second focusing method, the shooting position of the shooting device 130 is calibrated on the focusing stroke, and different shooting positions correspond to different image blur degrees. Therefore, when focusing, the shooting device 130 can be controlled to shoot the shooting target at the first position and the second position respectively, and the first position is different from the second position; and the first position of the lens when shooting the shooting target at the first position can be obtained. a blur degree, and the second blur degree of the lens when the shooting target is photographed at the second position; then, the second lens position is determined according to the acquired first blur degree and the second blur degree.
在本申请的一实施例中,根据第一模糊度和第二模糊度确定第二镜头位置,包括:根据第一模糊度和第二模糊度确定用于对焦的曲线;然后根据曲线确定第二镜头位置。其中,在曲线中顶点处对应的位置即目标镜头位置。In an embodiment of the present application, determining the second lens position according to the first blurriness degree and the second blurriness degree includes: determining a curve for focusing according to the first blurriness degree and the second blurriness degree; then determining the second lens position according to the curve lens position. Among them, the position corresponding to the vertex in the curve is the target lens position.
其中,第一模糊度、第二模糊度可以采用上述公式对应的内容获取,依据模糊度确定用于对焦的曲线的方法可以参照现有技术,此处不再赘述。The first ambiguity and the second ambiguity can be obtained by using the content corresponding to the above formula, and the method for determining the curve used for focusing according to the ambiguity can refer to the prior art, which will not be repeated here.
需要说明的是,在本申请除了通过曲线确定目标镜头位置之外,还可以通过获取对焦数据表,通过查表的方式得到目标镜头位置,上述对焦方法仅 仅为示例性的。It should be noted that in this application, in addition to determining the target lens position through the curve, the target lens position can also be obtained by obtaining a focusing data table and looking up the table, and the above focusing method is only exemplary.
第二对焦方法具有第二置信度,第二置信度与曲线的曲率呈正相关,即对焦曲线的曲率越大,开口程度越小,则第二置信度越高,相反,对焦曲线的曲率越小,开口程度越大,则第二置信度越低。The second focusing method has a second confidence level, and the second confidence level is positively correlated with the curvature of the curve, that is, the larger the curvature of the focusing curve, the smaller the opening degree, the higher the second confidence level, on the contrary, the smaller the curvature of the focusing curve is. , the greater the degree of opening, the lower the second confidence.
可选地,对焦提示信息包括但不限于拍摄设备130的镜头的移动方向和移动距离中的至少一种。在显示装置150中可以显示拍摄设备130的当前位置,预估镜头位置范围,并且在显示装置150中可以显示显示拍摄设备130的当前位置的具体数值,预估镜头位置范围的具体数值,以使得用户能够根据显示拍摄设备130的当前位置的具体数值和预估镜头位置范围的具体数值以及两者之间的位置关系来确定拍摄设备130需要移动的方向以及所需要移动的距离。Optionally, the focus prompt information includes, but is not limited to, at least one of a moving direction and a moving distance of the lens of the photographing device 130 . The display device 150 can display the current position of the photographing device 130 and the estimated lens position range, and the display device 150 can display the specific numerical value of the current position of the photographing device 130 and estimate the specific numerical value of the lens position range, so that The user can determine the direction and distance that the photographing device 130 needs to move according to the specific numerical value of the current position of the photographing device 130 and the specific numerical value of the estimated lens position range and the positional relationship between the two.
在本申请的一实施例中,如图3所示,显示装置150中显示拍摄设备130当前位于0.3的位置处,预估镜头位置范围的数值为0.4-0.7,通过两者之间的位置关系即可知道拍摄设备130的镜头需要如何调整,才能进入预估镜头位置范围。此外,为进一步提示,在显示装置150中还可以标示出移动的方向。In an embodiment of the present application, as shown in FIG. 3 , the display device 150 displays that the photographing device 130 is currently located at a position of 0.3, and the estimated value of the lens position range is 0.4-0.7. Through the positional relationship between the two It can be known how the lens of the photographing device 130 needs to be adjusted so as to enter the estimated lens position range. In addition, for further prompting, the direction of movement may also be marked in the display device 150 .
当当前镜头位置与目标镜头位置重合时,当前镜头位置对应的显示标识可以发生变化,以提示用户当前镜头位置已经到达目标镜头位置,可以停止对镜头的转动。When the current lens position coincides with the target lens position, the display mark corresponding to the current lens position can be changed to remind the user that the current lens position has reached the target lens position, and the rotation of the lens can be stopped.
其中,当前镜头位置、预估镜头位置范围、移动的方向等相关信息可以具有各自的显示标识,不同的显示标识,可以具有相应的颜色、形状、动静态变化等显示方式。Among them, the current lens position, the estimated lens position range, the moving direction and other related information may have their own display marks, and different display marks may have corresponding display methods such as color, shape, dynamic and static changes.
具体的,显示装置可以显示有以位置调整进度条,位置调整进度条的上方可以显示有距离数据,该距离数据可以用于表征当前镜头位置以及预估镜头位置;位置调整进度条上设有当前镜头位置的标识以及预估镜头位置范围的标识,在对焦过程中,当前镜头位置的标识可以靠近或远离预估镜头位置范围的标识,当前镜头位置的标识与预估镜头位置范围的标识的颜色以及尺寸可以不同;同时,在当前镜头位置的标识的一侧设有移动的方向的标识,该移动的方向的标识用于指示当前镜头位置的移动方向,以靠近预估镜头位置范围,并与目标镜头位置重合。如此,用户通过上述显示,按操作即可较好地实现手动对焦。Specifically, the display device may display a position adjustment progress bar, and distance data may be displayed above the position adjustment progress bar, and the distance data may be used to represent the current lens position and the estimated lens position; The identification of the lens position and the identification of the estimated lens position range. During the focusing process, the identification of the current lens position can be close to or far away from the identification of the estimated lens position range. The color of the identification of the current lens position and the identification of the estimated lens position range And the size can be different; at the same time, a sign of the moving direction is provided on one side of the sign of the current lens position, and the sign of the moving direction is used to indicate the moving direction of the current lens position, so as to be close to the estimated lens position range, and is consistent with the moving direction. The target lens positions are coincident. In this way, the user can better realize manual focusing by pressing the operation through the above-mentioned display.
当当前镜头位置与目标镜头位置重合时的显示标识的变化包括颜色变化、形状变化、尺寸变化中的至少一种。其中,颜色变化可以进一步包括颜色发 生变化或者显示标示发生动态闪烁等,并不局限于某一种。When the current lens position coincides with the target lens position, the change of the display logo includes at least one of color change, shape change, and size change. Wherein, the color change may further include the change of the color or the dynamic flickering of the display mark, etc., and is not limited to a certain one.
在第一对焦方法中,由于目标镜头位置的收敛,目标镜头位置对应的预估镜头位置范围的标识在对焦过程中不断收敛,如图4所示,当合焦时,当前镜头位置和目标镜头位置重合,可以用亮绿色区别对待,。In the first focusing method, due to the convergence of the target lens position, the identification of the estimated lens position range corresponding to the target lens position continues to converge during the focusing process. As shown in Figure 4, when the focus is achieved, the current lens position and the target lens position The positions overlap and can be treated differently with bright green.
在第二对焦方法中,采样相邻两帧的镜头位置,根据当前帧的结果显示合焦位置范围(以目标镜头位置为中心算出的预估镜头位置范围,预估镜头位置范围由第二置信度决定),当前镜头位置和预估镜头位置范围每帧更新,在目标镜头位置收敛时,也将导致预估镜头位置范围对应的标识在对焦过程中不断收敛。如图4所示当合焦时,当前镜头位置和目标镜头位置重合,可以用亮绿色区别对待。In the second focusing method, the lens positions of two adjacent frames are sampled, and the in-focus position range is displayed according to the result of the current frame (the estimated lens position range calculated with the target lens position as the center, the estimated lens position range is determined by the second confidence The current lens position and the estimated lens position range are updated every frame. When the target lens position converges, the indicator corresponding to the estimated lens position range will also continue to converge during the focusing process. As shown in Figure 4, when the focus is achieved, the current lens position and the target lens position coincide, which can be treated differently by bright green.
在本申请中,对焦方法中包括第一对焦方法和第二对焦方法,两种对焦方法具有各自的优点,本申请将两种对焦方法的优点集中在一起,进一步提高对焦的准确性,例如利用距离传感器110的第一对焦方法确定第一镜头位置有足够的分辨率和精度,可以满足一定距离内测距,所以第一对焦方法的规格内,可以满足手动对焦辅助。而在第一对焦方法的规格之外的情况,需要第二对焦方法来估计合焦位置,提升手动对焦辅助的效果。In the present application, the focusing method includes a first focusing method and a second focusing method, and the two focusing methods have their own advantages. This application combines the advantages of the two focusing methods to further improve the accuracy of focusing. The first focusing method of the distance sensor 110 determines that the position of the first lens has sufficient resolution and accuracy, and can satisfy ranging within a certain distance. Therefore, within the specifications of the first focusing method, manual focusing assistance can be satisfied. In cases outside the specifications of the first focusing method, a second focusing method is required to estimate the in-focus position and improve the effect of manual focus assistance.
例如,第一对焦方法中最大测距范围不会超过10米,但是部分镜头需要满足10米以上的手动对焦辅助;一般的第一对焦方法确定第一镜头位置的精度在5%左右,但部分镜头在较近距离情况下,对精度的要求非常高,可能在1%左右。因此,在第一对焦方法无法满足合焦估计的情况下,可以使用第二对焦方法估计合焦位置。For example, the maximum ranging range in the first focusing method will not exceed 10 meters, but some lenses need to meet the manual focus assistance of more than 10 meters; the general first focusing method determines the position of the first lens with an accuracy of about 5%, but some lenses When the lens is at a relatively close distance, the accuracy requirements are very high, maybe around 1%. Therefore, when the first focusing method cannot satisfy the in-focus estimation, the second focusing method can be used to estimate the in-focus position.
在静止情况下,对于高对比度场景,第二对焦方法确定第二镜头位置的精度在[-1Fδ,1Fδ],低对比度场景下,第二对焦方法确定第二镜头位置的精度在[-2Fδ,2Fδ],其中,所述Fδ为弥散斑的大小,可以满足手动对焦辅助的要求。但对于运动场景,尤其剧烈运动时,第二对焦方法确定第二镜头位置的精度会随之下降,此时可以通过第一对焦方法进行对焦。其中,高对比度场景是指拍摄目标和环境背景具有大的对比度和/或具有良好的光照条件,例如拍摄背景为黑色,而拍摄目标为白色,和/或具有良好的光照,此时为高度对比场景,反之,若拍摄目标和环境背景的颜色相近,光照条件较差则为低对比场景。In a static situation, for a high-contrast scene, the accuracy of the second focusing method in determining the position of the second lens is [-1Fδ, 1Fδ], and in a low-contrast scene, the accuracy of determining the position of the second lens by the second focusing method is [-2Fδ, 2Fδ], wherein the Fδ is the size of the diffused spot, which can meet the requirements of manual focus assistance. However, for a sports scene, especially during vigorous exercise, the accuracy of determining the position of the second lens by the second focusing method will decrease accordingly. In this case, focusing can be performed by the first focusing method. Among them, a high-contrast scene means that the subject and the ambient background have a large contrast and/or have good lighting conditions, for example, the shooting background is black, and the shooting target is white, and/or has good lighting, which is high contrast. On the contrary, if the color of the subject and the environment background are similar, and the lighting conditions are poor, it is a low-contrast scene.
需要说明的是,第一对焦方法确定第一镜头位置的精确度以及第二对焦方法确定第二镜头位置的精确度与应用场景的联系,最终可以反映在上述说明的置信度上,由此,基于置信度选择的目标镜头位置可以较好地用于不同 动静态、不同对比度、不同距离的应用场景的对焦。It should be noted that the relationship between the accuracy of determining the position of the first lens by the first focusing method and the accuracy of determining the position of the second lens by the second focusing method and the application scene can be finally reflected in the confidence described above. Therefore, The target lens position selected based on the confidence can be better used for focusing in different dynamic and static, different contrast, and different distance application scenarios.
由上可知,本申请则是结合第二对焦方法和第一对焦方法各自的优点来辅助手动对焦,提升其准确率。As can be seen from the above, the present application combines the respective advantages of the second focusing method and the first focusing method to assist manual focusing and improve its accuracy.
如前文,目标镜头位置包含在预估镜头位置范围内,在本申请的一实施例中,目标镜头位置为预估镜头位置范围的中点位置,在第一对焦方法的规格之外的情况,第一对焦方法无法达到精度的要求,需要第二对焦方法来估计合焦位置,在不同对比度场景下对精度的要求不同,不同的精度要求会使所述预估镜头位置范围的大小不同,以满足手动对焦的要求,提升对焦准确率。As mentioned above, the target lens position is included in the estimated lens position range. In an embodiment of the present application, the target lens position is the midpoint position of the estimated lens position range. When it is outside the specifications of the first focusing method, The first focusing method cannot meet the accuracy requirements, and the second focusing method is required to estimate the in-focus position. The accuracy requirements are different in different contrast scenarios, and different accuracy requirements will cause the estimated lens position range to be different. Meet the requirements of manual focus and improve the focus accuracy.
在对焦方法中,显示装置150会显示当前镜头位置以及对焦提示信息,对焦提示信息包括基于目标镜头位置形成的预估镜头位置范围,用户可以根据当前镜头位置以及对焦提示信息对拍摄设备130进行对焦,以使当前镜头位置经用户操作调节至目标镜头位置,从而使拍摄目标在拍摄设备130的拍摄画面中处于合焦状态。本申请方法提供了对焦提示信息,通过对焦提示信息可以更加准确地进行人工对焦,适用范围更广。In the focusing method, the display device 150 will display the current lens position and focusing prompt information. The focusing prompt information includes an estimated lens position range formed based on the target lens position. The user can focus the shooting device 130 according to the current lens position and the focusing prompt information. , so that the current lens position is adjusted to the target lens position through a user operation, so that the shooting target is in the in-focus state in the shooting screen of the shooting device 130 . The method of the present application provides focusing prompt information, and manual focusing can be performed more accurately through the focusing prompt information, and the scope of application is wider.
本申请实施例第二方面提供了一种对焦方法,如图6所示,所述方法包括:A second aspect of the embodiments of the present application provides a focusing method, as shown in FIG. 6 , the method includes:
步骤S210:获取用于使得拍摄目标能够在拍摄设备的拍摄画面中处于合焦状态的第一镜头位置和第二镜头位置,其中,所述第一镜头位置为基于第一对焦方法确定,所述第二镜头位置为基于第二对焦方法确定,所述第一对焦方法不同于所述第二对焦方法;Step S210: Acquire a first lens position and a second lens position for enabling the shooting target to be in focus in the shooting screen of the shooting device, wherein the first lens position is determined based on the first focusing method, and the first lens position is determined based on the first focusing method. The second lens position is determined based on a second focusing method, and the first focusing method is different from the second focusing method;
步骤S220:根据所述第一镜头位置和所述第二镜头位置确定目标镜头位置,以使得所述拍摄设备能够由当前镜头位置调节至所述目标镜头位置。Step S220: Determine a target lens position according to the first lens position and the second lens position, so that the photographing device can be adjusted from the current lens position to the target lens position.
在所述对焦方法中既可以为自动对焦还可以为手动对焦,在此不做限定。The focusing method may be either automatic focusing or manual focusing, which is not limited herein.
例如在本申请的一实施例中,拍摄设备的镜头耦合有跟焦器电机,所述跟焦器电机用于驱动所述拍摄设备的镜头转动,以使所述拍摄设备由当前镜头位置调节至所述目标镜头位置。For example, in an embodiment of the present application, a follow focus motor is coupled to the lens of the photographing device, and the follow focus motor is used to drive the lens of the photographing device to rotate, so that the photographing device can be adjusted from the current lens position to The target lens position.
可选地,拍摄设备与跟焦器电机承载于云台。例如拍摄设备与云台通信连接,其中:显示装置设于云台的手持部;或Optionally, the photographing device and the follow focus motor are carried on the gimbal. For example, the photographing device is connected to the PTZ in communication, wherein: the display device is arranged on the hand-held part of the PTZ; or
显示装置可拆卸地设置在云台的安装座上,显示装置与云台通信连接。The display device is detachably arranged on the mounting seat of the PTZ, and the display device is connected in communication with the PTZ.
可选地,跟焦器电机与云台通信连接,跟焦器电机的操作件设于云台的手持部,操作件用于接收用户针对跟焦器电机的控制指令。Optionally, the follow focus motor is connected in communication with the pan/tilt, and the operating element of the follow focus motor is provided on the hand-held part of the pan/tilt, and the operating element is used for receiving user control instructions for the follow focus motor.
可选地,通过显示装置显示当前镜头位置以及目标镜头位置。Optionally, the current lens position and the target lens position are displayed through the display device.
可选地,拍摄设备也可以不设置于云台上,拍摄设备独立的作为执行主体进行对焦和拍摄,可选地,显示装置为拍摄设备的交互界面,或,显示装置与拍摄设备通信连接。Optionally, the photographing device may not be installed on the pan/tilt, and the photographing device independently acts as an execution subject for focusing and photographing.
其中,拍摄设备的具体构成、执行主体、显示装置的设置方式均可以参照本申请的第一方面相关的解释和说明,在此不再赘述。The specific structure of the photographing device, the execution body, and the setting method of the display device can all be referred to the explanations and descriptions related to the first aspect of the present application, and will not be repeated here.
可选地,方法还包括:对第一置信度和第二置信度进行归一化处理,以用于对第一置信度和第二置信度进行比较。Optionally, the method further includes: normalizing the first confidence level and the second confidence level, so as to be used for comparing the first confidence level and the second confidence level.
可选地,基于所述第一对焦方法确定所述第一镜头位置,包括:Optionally, determining the first lens position based on the first focusing method includes:
通过距离传感器确定拍摄目标与拍摄设备之间的距离数据;Determine the distance data between the shooting target and the shooting device through the distance sensor;
根据距离数据计算对焦物距;Calculate the focal object distance according to the distance data;
根据对焦物距计算目标像距,并根据目标像距确定第一镜头位置。The target image distance is calculated according to the focused object distance, and the position of the first lens is determined according to the target image distance.
可选地,距离传感器的采集数据的信噪比与第一置信度呈正相关。Optionally, the signal-to-noise ratio of the collected data of the distance sensor is positively correlated with the first confidence level.
可选地,基于所述第一对焦方法确定所述第一镜头位置,包括:Optionally, determining the first lens position based on the first focusing method includes:
控制拍摄设备在第一位置和第二位置分别对拍摄目标进行拍摄,第一位置不同于第二位置;Controlling the photographing device to photograph the photographing target at a first position and a second position, where the first position is different from the second position;
在第一位置对拍摄目标进行拍摄时,获取拍摄设备拍摄的图像的第一模糊度;When the photographing target is photographed at the first position, acquiring the first blurring degree of the image photographed by the photographing device;
在第二位置对拍摄目标进行拍摄时,获取拍摄设备拍摄的图像的第二模糊度;When the photographing target is photographed at the second position, acquiring a second blurring degree of the image photographed by the photographing device;
根据第一模糊度和第二模糊度确定第二镜头位置。The second lens position is determined based on the first blurriness and the second blurriness.
可选地,根据第一模糊度和第二模糊度确定第二镜头位置,包括:Optionally, determining the second lens position according to the first ambiguity and the second ambiguity includes:
根据第一模糊度和第二模糊度确定用于对焦的曲线;determining a curve for focusing based on the first blurriness and the second blurriness;
根据曲线确定第二镜头位置。The second lens position is determined according to the curve.
可选地,第二置信度与曲线的曲率呈正相关。Optionally, the second confidence level is positively related to the curvature of the curve.
可选地,预估镜头位置范围的大小与第一置信度或第二置信度呈负相关。Optionally, the size of the estimated lens position range is negatively correlated with the first confidence level or the second confidence level.
可选地,目标镜头位置为预估镜头位置范围的中点位置。Optionally, the target lens position is the midpoint position of the estimated lens position range.
可选地,对焦提示信息还包括拍摄设备的镜头的移动方向和/或移动距离。Optionally, the focus prompt information further includes the moving direction and/or the moving distance of the lens of the photographing device.
可选地,移动距离为通过拍摄目标与拍摄设备之间的设定距离所表征。Optionally, the moving distance is characterized by a set distance between the photographing target and the photographing device.
可选地,当前镜头位置与目标镜头位置重合时,当前镜头位置对应的显示标识发生变化。Optionally, when the current lens position coincides with the target lens position, the display identifier corresponding to the current lens position changes.
可选地,变化包括颜色变化、形状变化、尺寸变化中的至少一种。Optionally, the change includes at least one of color change, shape change, and size change.
在对焦方法中,第一对焦方法和第二对焦方法均可以参照本申请第一方面中相关的说明和解释,在此不再赘述。In the focusing method, both the first focusing method and the second focusing method may refer to the relevant descriptions and explanations in the first aspect of the present application, which will not be repeated here.
本申请结合第二对焦方法和第一对焦方法各自的优点来辅助手动对焦,提升其准确率。方法可以更加准确地进行人工对焦,不依赖于图像传感器,适用范围更广。The present application combines the respective advantages of the second focusing method and the first focusing method to assist manual focusing and improve its accuracy. The method can perform manual focusing more accurately, does not depend on the image sensor, and is applicable to a wider range.
本申请实施例第三方面提供了一种拍摄设备,以分别用于执行第一方面和第二方面提供的对焦方法。A third aspect of the embodiments of the present application provides a photographing device, which is used to respectively execute the focusing methods provided in the first aspect and the second aspect.
在一个实施例中,如图7所示,本实施例的拍摄设备700可以包括:至少一个处理器701和存储器702。其中,处理器701和存储器702通过总线703连接。In one embodiment, as shown in FIG. 7 , the photographing device 700 in this embodiment may include: at least one processor 701 and a memory 702 . The processor 701 and the memory 702 are connected through a bus 703 .
在具体实现过程中,存储器702存储计算机执行指令,至少一个处理器701执行存储器702存储的计算机执行指令,使得执行计算机执行指令时实现如下步骤:In a specific implementation process, the memory 702 stores computer-executed instructions, and at least one processor 701 executes the computer-executed instructions stored in the memory 702, so that the following steps are implemented when executing the computer-executed instructions:
在拍摄设备的对焦过程中,实时获取拍摄设备的当前镜头位置以及拍摄设备的目标镜头位置,其中,在拍摄设备处于目标镜头位置时,拍摄目标在拍摄设备的拍摄画面中处于合焦状态;During the focusing process of the shooting device, the current lens position of the shooting device and the target lens position of the shooting device are acquired in real time, wherein, when the shooting device is at the target lens position, the shooting target is in the in-focus state in the shooting screen of the shooting device;
通过显示装置显示当前镜头位置以及对焦提示信息,以提示用户根据当前镜头位置以及对焦提示信息对拍摄设备进行对焦,并使得当前镜头位置经用户操作调节至目标镜头位置,其中,对焦提示信息包括基于目标镜头位置形成的预估镜头位置范围。The current lens position and focus prompt information are displayed on the display device to prompt the user to focus on the shooting device according to the current lens position and focus prompt information, and the current lens position is adjusted to the target lens position through user operation, wherein the focus prompt information includes The estimated lens position range formed by the target lens position.
在另一实施例中,拍摄设备包括:In another embodiment, the photographing device includes:
至少一个处理器和存储器,存储器存储计算机执行指令,至少一个处理器执行存储器存储的计算机执行指令,使得执行计算机执行指令时实现如下步骤:At least one processor and a memory, the memory stores computer-executed instructions, and at least one processor executes the computer-executed instructions stored in the memory, so that the following steps are implemented when executing the computer-executed instructions:
获取用于使得拍摄目标能够在拍摄设备的拍摄画面中处于合焦状态的第一镜头位置和第二镜头位置,其中,所述第一镜头位置为基于第一对焦方法确定,所述第二镜头位置为基于第二对焦方法确定,所述第一对焦方法不同于所述第二对焦方法;Acquire a first lens position and a second lens position for enabling the shooting target to be in focus in the shooting picture of the shooting device, wherein the first lens position is determined based on the first focusing method, and the second lens position is determined based on the first focusing method. The position is determined based on a second focusing method, and the first focusing method is different from the second focusing method;
根据所述第一镜头位置和所述第二镜头位置确定目标镜头位置,以使得所述拍摄设备能够由当前镜头位置调节至所述目标镜头位置。A target lens position is determined according to the first lens position and the second lens position, so that the photographing device can be adjusted from the current lens position to the target lens position.
具体步骤此处不再赘述,可以参照第一方面和第二方面的相关内容。The specific steps are not repeated here, and reference may be made to the related content of the first aspect and the second aspect.
本申请的第四方面提供了一种拍摄系统,包括:云台和第三方面所述的拍摄设备;所述云台用于承载所述拍摄设备。A fourth aspect of the present application provides a shooting system, comprising: a pan/tilt and the shooting device described in the third aspect; the pan/tilt is used to carry the shooting device.
其中,本实施例的云台,可以用于执行本申请上述各方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The pan/tilt in this embodiment can be used to implement the technical solutions of the above method embodiments of the present application, and the implementation principles and technical effects thereof are similar, and will not be repeated here.
需要说明的是,本申请上述各方法实施例的技术方案还可以通过组合设备来执行完成。例如,方法实施例中提供的对焦方法的部分步骤可以通过云台执行,另一部分步骤可以通过跟焦器电机来执行或者用户手动来执行。本申请实施例对此不做限定。It should be noted that, the technical solutions of the above method embodiments of the present application can also be implemented and completed by combining devices. For example, some steps of the focusing method provided in the method embodiments may be performed by a pan/tilt head, and another part of the steps may be performed by a follow focus motor or manually by a user. This embodiment of the present application does not limit this.
本申请的第五方面还提供了一种计算机存储介质,其上存储有计算机程序。在计算机可读存储介质上可以存储一个或多个计算机程序指令,计算机程序包含至少一段代码,至少一段代码可由计算机执行,以控制计算机执行前文的对焦方法。A fifth aspect of the present application also provides a computer storage medium on which a computer program is stored. One or more computer program instructions may be stored on the computer-readable storage medium, and the computer program contains at least one piece of code, and at least one piece of code can be executed by the computer to control the computer to perform the aforementioned focusing method.
本申请实施例中还提供了一种计算机存储介质,该计算机存储介质中存储有程序指令,程序执行时可包括第一方面或第二方面的对焦方法的部分或全部步骤。上述可读存储介质可以是由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。可读存储介质可以是通用或专用计算机能够存取的任何可用介质。Embodiments of the present application further provide a computer storage medium, where program instructions are stored in the computer storage medium, and when the program is executed, some or all of the steps of the focusing method of the first aspect or the second aspect may be included. The above-mentioned readable storage medium may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk. A readable storage medium can be any available medium that can be accessed by a general purpose or special purpose computer.
一种示例性的可读存储介质耦合至处理器,从而使处理器能够从该可读存储介质读取信息,且可向该可读存储介质写入信息。当然,可读存储介质也可以是处理器的组成部分。处理器和可读存储介质可以位于专用集成电路(Application Specific Integrated Circuits,简称:ASIC)中。当然,处理器和可读存储介质也可以作为分立组件存在于设备中。An exemplary readable storage medium is coupled to the processor such that the processor can read information from, and write information to, the readable storage medium. Of course, the readable storage medium can also be an integral part of the processor. The processor and the readable storage medium may be located in an application specific integrated circuit (Application Specific Integrated Circuits, ASIC for short). Of course, the processor and the readable storage medium may also exist in the device as discrete components.
计算机程序运行时,可以实现本文的本申请实施例中(由处理器实现)的功能以及/或者其它期望的功能,例如以执行根据本申请实施例的对焦方法的相应步骤,在计算机可读存储介质中还可以存储各种应用程序和各种数据,例如应用程序使用和/或产生的各种数据等。When the computer program runs, the functions in the embodiments of the present application (implemented by the processor) and/or other desired functions can be realized, for example, to execute the corresponding steps of the focusing method according to the embodiments of the present application, and stored in a computer-readable storage Various application programs and various data, such as various data used and/or generated by the application program, can also be stored in the medium.
尽管这里已经参考附图描述了示例实施例,应理解上述示例实施例仅仅是示例性的,并且不意图将本申请的范围限制于此。本领域普通技术人员可以在其中进行各种改变和修改,而不偏离本申请的范围和精神。所有这些改变和修改意在被包括在所附权利要求所要求的本申请的范围之内。Although example embodiments have been described herein with reference to the accompanying drawings, it should be understood that the above-described example embodiments are exemplary only, and are not intended to limit the scope of the application thereto. Various changes and modifications may be made therein by those of ordinary skill in the art without departing from the scope and spirit of the present application. All such changes and modifications are intended to be included within the scope of this application as claimed in the appended claims.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方 案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of this application.
在本申请所提供的几个实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。例如,以上所描述的设备实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个设备,或一些特征可以忽略,或不执行。In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or May be integrated into another device, or some features may be omitted, or not implemented.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本申请的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. It will be understood, however, that the embodiments of the present application may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
类似地,应当理解,为了精简本申请并帮助理解各个发明方面中的一个或多个,在对本申请的示例性实施例的描述中,本申请的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该本申请的方法解释成反映如下意图:即所要求保护的本申请要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如相应的权利要求书所反映的那样,其发明点在于可以用少于某个公开的单个实施例的所有特征的特征来解决相应的技术问题。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本申请的单独实施例。Similarly, it is to be understood that in the description of the exemplary embodiments of the present application, various features of the present application are sometimes grouped together into a single embodiment, FIG. , or in its description. However, this method of application should not be construed as reflecting an intention that the claimed application requires more features than are expressly recited in each claim. Rather, as the corresponding claims reflect, the invention lies in the fact that the corresponding technical problem may be solved with less than all features of a single disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this application.
本领域的技术人员可以理解,除了特征之间相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的替代特征来代替。It will be understood by those skilled in the art that all features disclosed in this specification (including the accompanying claims, abstract and drawings) and any method or apparatus so disclosed may be used in any combination, except that the features are mutually exclusive. Processes or units are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本申请的范围之内并且形成不同的实施例。例如,在权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will appreciate that although some of the embodiments described herein include certain features, but not others, included in other embodiments, that combinations of features of different embodiments are intended to be within the scope of the present application within and form different embodiments. For example, in the claims, any of the claimed embodiments may be used in any combination.
本申请的各个部件实施例可以以硬件实现,或者以在一个或者多个处 理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本申请实施例的一些模块的一些或者全部功能。本申请还可以实现为用于执行这里所描述的方法的一部分或者全部的装置程序(例如,计算机程序和计算机程序产品)。这样的实现本申请的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。Various component embodiments of the present application may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all functions of some modules according to the embodiments of the present application. The present application can also be implemented as a program of apparatus (eg, computer programs and computer program products) for performing part or all of the methods described herein. Such a program implementing the present application may be stored on a computer-readable medium, or may be in the form of one or more signals. Such signals may be downloaded from Internet sites, or provided on carrier signals, or in any other form.
应该注意的是上述实施例对本申请进行说明而不是对本申请进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。本申请可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-described embodiments illustrate rather than limit the application, and alternative embodiments may be devised by those skilled in the art without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The application can be implemented by means of hardware comprising several different elements and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. do not denote any order. These words can be interpreted as names.
以上所述,仅为本申请的具体实施方式或对具体实施方式的说明,本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。本申请的保护范围应以权利要求的保护范围为准。The above are only specific embodiments of the present application or descriptions of the specific embodiments, and the protection scope of the present application is not limited thereto. Any changes or substitutions should be included within the protection scope of the present application. The protection scope of the present application shall be subject to the protection scope of the claims.

Claims (83)

  1. 一种对焦方法,其特征在于,所述方法包括:A focusing method, characterized in that the method comprises:
    在拍摄设备的对焦过程中,实时获取所述拍摄设备的当前镜头位置以及所述拍摄设备的目标镜头位置,其中,在所述拍摄设备处于所述目标镜头位置时,拍摄目标在所述拍摄设备的拍摄画面中处于合焦状态;During the focusing process of the shooting device, the current lens position of the shooting device and the target lens position of the shooting device are acquired in real time, wherein when the shooting device is at the target lens position, the shooting target is in the shooting device is in focus in the shooting screen;
    通过显示装置显示所述当前镜头位置以及对焦提示信息,以提示用户根据所述当前镜头位置以及所述对焦提示信息对所述拍摄设备进行对焦,并使得所述当前镜头位置经用户操作调节至所述目标镜头位置,其中,所述对焦提示信息包括基于所述目标镜头位置形成的预估镜头位置范围。The current lens position and the focus prompt information are displayed through the display device, so as to prompt the user to focus on the shooting device according to the current lens position and the focus prompt information, and the current lens position is adjusted to the desired position by the user's operation. the target lens position, wherein the focus prompt information includes an estimated lens position range formed based on the target lens position.
  2. 根据权利要求1所述的方法,其特征在于,所述拍摄设备的镜头耦合有跟焦器电机,所述跟焦器电机用于根据用户指令驱动所述拍摄设备的镜头转动,以对所述拍摄设备进行对焦。The method according to claim 1, wherein a follow focus motor is coupled to the lens of the photographing device, and the follow focus motor is used to drive the lens of the photographing device to rotate according to a user instruction, so as to focus on the The camera is in focus.
  3. 根据权利要求2所述的方法,其特征在于,所述拍摄设备与所述跟焦器电机承载于云台。The method according to claim 2, wherein the photographing device and the follow focus motor are carried on a gimbal.
  4. 根据权利要求3所述的方法,其特征在于,所述拍摄设备与所述云台通信连接,其中:The method according to claim 3, wherein the photographing device is communicatively connected to the PTZ, wherein:
    所述显示装置设于所述云台的手持部;或the display device is arranged on the hand-held part of the pan/tilt; or
    所述显示装置可拆卸地设置在所述云台的安装座上,所述显示装置与所述云台通信连接。The display device is detachably arranged on the mounting seat of the pan/tilt, and the display device is connected in communication with the pan/tilt.
  5. 根据权利要求3所述的方法,其特征在于,所述跟焦器电机与所述云台通信连接,所述跟焦器电机的操作件设于所述云台的手持部,所述操作件用于接收用户针对所述跟焦器电机的控制指令。The method according to claim 3, wherein the follow focus motor is connected in communication with the pan/tilt, an operating member of the follow focus motor is provided on a hand-held part of the pan/tilt, and the operating member It is used to receive a user's control instruction for the follow focus motor.
  6. 根据权利要求1或2所述的方法,其特征在于,所述显示装置为所述拍摄设备的交互界面,或,所述显示装置与所述拍摄设备通信连接。The method according to claim 1 or 2, wherein the display device is an interactive interface of the photographing device, or the display device is connected in communication with the photographing device.
  7. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    获取用于使得所述拍摄目标能够在所述拍摄设备的拍摄画面中处于合焦状态的第一镜头位置和第二镜头位置,其中,所述第一镜头位置为基于第一对焦方法确定,所述第二镜头位置为基于第二对焦方法确定,所述第一对焦方法不同于所述第二对焦方法;Obtain a first lens position and a second lens position for enabling the shooting target to be in focus in the shooting picture of the shooting device, wherein the first lens position is determined based on the first focusing method, and the The second lens position is determined based on a second focusing method, and the first focusing method is different from the second focusing method;
    根据所述第一镜头位置和所述第二镜头位置确定所述目标镜头位置。The target lens position is determined according to the first lens position and the second lens position.
  8. 根据权利要求7所述的方法,其特征在于,所述第一镜头位置具有第一置信度,所述第二镜头位置具有第二置信度;The method of claim 7, wherein the first lens position has a first confidence level, and the second lens position has a second confidence level;
    所述根据所述第一镜头位置和所述第二镜头位置确定所述目标镜头位置,包括:The determining the target lens position according to the first lens position and the second lens position includes:
    确定所述第一镜头位置和所述第二镜头位置中置信度更高的一个为所述目标镜头位置。It is determined that one of the first lens position and the second lens position with a higher confidence is the target lens position.
  9. 根据权利要求8所述的方法,其特征在于,所述方法还包括:The method according to claim 8, wherein the method further comprises:
    对所述第一置信度和所述第二置信度进行归一化处理。Normalize the first confidence level and the second confidence level.
  10. 根据权利要求8所述的方法,其特征在于,基于所述第一对焦方法确定所述第一镜头位置,包括:The method according to claim 8, wherein determining the first lens position based on the first focusing method comprises:
    通过距离传感器确定所述拍摄目标与所述拍摄设备之间的距离数据;Determine the distance data between the shooting target and the shooting device through a distance sensor;
    根据所述距离数据计算对焦物距;calculating the focal object distance according to the distance data;
    根据所述对焦物距计算所述目标像距,并根据所述目标像距确定所述第一镜头位置。The target image distance is calculated according to the focused object distance, and the first lens position is determined according to the target image distance.
  11. 根据权利要求10所述的方法,其特征在于,所述距离传感器的采集数据的信噪比与所述第一置信度呈正相关。The method according to claim 10, wherein the signal-to-noise ratio of the collected data of the distance sensor is positively correlated with the first confidence level.
  12. 根据权利要求7所述的方法,其特征在于,基于所述第二对焦方法确定所述第二镜头位置,包括:The method according to claim 7, wherein determining the second lens position based on the second focusing method comprises:
    控制所述拍摄设备在第一位置和第二位置分别对所述拍摄目标进行拍摄,所述第一位置不同于所述第二位置;controlling the photographing device to photograph the photographing target at a first position and a second position, the first position being different from the second position;
    在所述第一位置对所述拍摄目标进行拍摄时,获取所述拍摄设备的镜头的第一模糊度;When photographing the photographing target at the first position, acquiring a first blurring degree of the lens of the photographing device;
    在所述第二位置对所述拍摄目标进行拍摄时,获取所述拍摄设备的镜头的的第二模糊度;When photographing the photographing target at the second position, acquiring a second blurring degree of the lens of the photographing device;
    根据所述第一模糊度和所述第二模糊度确定所述第二镜头位置。The second lens position is determined based on the first degree of ambiguity and the second degree of ambiguity.
  13. 根据权利要求12所述的方法,其特征在于,所述根据所述第一模糊度和所述第二模糊度确定所述第二镜头位置,包括:The method according to claim 12, wherein the determining the second lens position according to the first ambiguity and the second ambiguity comprises:
    根据所述第一模糊度和所述第二模糊度确定用于对焦的曲线;determining a curve for focusing based on the first blurriness and the second blurriness;
    根据所述曲线确定所述第二镜头位置。The second lens position is determined according to the curve.
  14. 根据权利要求8所述的方法,其特征在于,所述第二置信度与所述曲线的曲率呈正相关。The method of claim 8, wherein the second confidence level is positively correlated with the curvature of the curve.
  15. 根据权利要求8所述的方法,其特征在于,所述预估镜头位置范围的大小与所述第一置信度或所述第二置信度呈负相关。The method according to claim 8, wherein the size of the estimated lens position range is negatively correlated with the first confidence level or the second confidence level.
  16. 根据权利要求1所述的方法,其特征在于,所述目标镜头位置为所述预估镜头位置范围的中点位置。The method according to claim 1, wherein the target lens position is a midpoint position of the estimated lens position range.
  17. 根据权利要求1所述的方法,其特征在于,所述对焦提示信息还包括所述拍摄设备的镜头的移动方向和/或移动距离。The method according to claim 1, wherein the focus prompt information further includes a moving direction and/or a moving distance of a lens of the photographing device.
  18. 根据权利要求17所述的方法,其特征在于,所述移动距离为通过所述拍摄目标与所述拍摄设备之间的设定距离所表征。The method according to claim 17, wherein the moving distance is characterized by a set distance between the shooting target and the shooting device.
  19. 根据权利要求1所述的方法,其特征在于,所述当前镜头位置与所述目标镜头位置重合时,所述当前镜头位置对应的显示标识发生变化。The method according to claim 1, wherein when the current lens position coincides with the target lens position, the display identifier corresponding to the current lens position changes.
  20. 根据权利要求19所述的方法,其特征在于,所述变化包括颜色变化、形状变化、尺寸变化中的至少一种。The method of claim 19, wherein the change comprises at least one of a color change, a shape change, and a size change.
  21. 一种对焦方法,其特征在于,所述方法包括:A focusing method, characterized in that the method comprises:
    获取用于使得拍摄目标能够在拍摄设备的拍摄画面中处于合焦状态的第一镜头位置和第二镜头位置,其中,所述第一镜头位置为基于第一对焦方法确定,所述第二镜头位置为基于第二对焦方法确定,所述第一对焦方法不同于所述第二对焦方法;Acquire a first lens position and a second lens position for enabling the shooting target to be in focus in the shooting picture of the shooting device, wherein the first lens position is determined based on the first focusing method, and the second lens position is determined based on the first focusing method. The position is determined based on a second focusing method, and the first focusing method is different from the second focusing method;
    根据所述第一镜头位置和所述第二镜头位置确定目标镜头位置,以使得所述拍摄设备能够由当前镜头位置调节至所述目标镜头位置。A target lens position is determined according to the first lens position and the second lens position, so that the photographing device can be adjusted from the current lens position to the target lens position.
  22. 根据权利要求21所述的方法,其特征在于,所述拍摄设备的镜头耦合有跟焦器电机,所述跟焦器电机用于驱动所述拍摄设备的镜头转动,以使所述拍摄设备由当前镜头位置调节至所述目标镜头位置。The method according to claim 21, wherein a follow focus motor is coupled to the lens of the photographing device, and the follow focus motor is used to drive the lens of the photographing device to rotate, so that the photographing device is driven by The current lens position is adjusted to the target lens position.
  23. 根据权利要求22所述的方法,其特征在于,所述拍摄设备与所述跟焦器电机承载于云台。The method according to claim 22, wherein the photographing device and the follow focus motor are carried on a gimbal.
  24. 根据权利要求23所述的方法,其特征在于,所述拍摄设备与所述云台通信连接,其中:The method according to claim 23, wherein the photographing device is communicatively connected to the PTZ, wherein:
    所述显示装置设于所述云台的手持部;或the display device is arranged on the hand-held part of the pan/tilt; or
    所述显示装置可拆卸地设置在所述云台的安装座上,所述显示装置与所述云台通信连接。The display device is detachably arranged on the mounting seat of the pan/tilt, and the display device is connected in communication with the pan/tilt.
  25. 根据权利要求23所述的方法,其特征在于,所述跟焦器电机与所述云台通信连接,所述跟焦器电机的操作件设于所述云台的手持部,所述操作件用于接收用户针对所述跟焦器电机的控制指令。The method according to claim 23, characterized in that the follow focus motor is connected in communication with the pan/tilt, an operating member of the follow focus motor is provided on a hand-held part of the pan/tilt, and the operating member It is used to receive a user's control instruction for the follow focus motor.
  26. 根据权利要求21或22所述的方法,其特征在于,通过显示装置显示所述当前镜头位置以及对焦提示信息,所述对焦提示信息包括基于所述目标镜头位置形成的预估镜头位置范围。The method according to claim 21 or 22, wherein the current lens position and focus prompt information are displayed on a display device, and the focus prompt information includes an estimated lens position range formed based on the target lens position.
  27. 根据权利要求26所述的方法,其特征在于,所述显示装置为所述拍摄设备的交互界面,或,所述显示装置与所述拍摄设备通信连接。The method according to claim 26, wherein the display device is an interactive interface of the photographing device, or the display device is connected in communication with the photographing device.
  28. 根据权利要求21所述的方法,其特征在于,所述第一镜头位置具有第一置信度,所述第二镜头位置具有第二置信度;The method of claim 21, wherein the first lens position has a first confidence level, and the second lens position has a second confidence level;
    所述根据所述第一镜头位置和所述第二镜头位置确定所述目标镜头位置,包括:The determining the target lens position according to the first lens position and the second lens position includes:
    确定所述第一镜头位置和所述第二镜头位置中置信度更高的一个为所述目标镜头位置。It is determined that one of the first lens position and the second lens position with a higher confidence is the target lens position.
  29. 根据权利要求28所述的方法,其特征在于,所述方法还包括:The method of claim 28, wherein the method further comprises:
    对所述第一置信度和所述第二置信度进行归一化处理。Normalize the first confidence level and the second confidence level.
  30. 根据权利要求28所述的方法,其特征在于,基于所述第一对焦方法确定所述第一镜头位置,包括:The method according to claim 28, wherein determining the first lens position based on the first focusing method comprises:
    通过距离传感器确定所述拍摄目标与所述拍摄设备之间的距离数据;Determine the distance data between the shooting target and the shooting device through a distance sensor;
    根据所述距离数据计算对焦物距;calculating the focal object distance according to the distance data;
    根据所述对焦物距计算所述目标像距,并根据所述目标像距确定所述第一镜头位置。The target image distance is calculated according to the focused object distance, and the first lens position is determined according to the target image distance.
  31. 根据权利要求30所述的方法,其特征在于,所述距离传感器的采集数据的信噪比与所述第一置信度呈正相关。The method according to claim 30, wherein the signal-to-noise ratio of the collected data of the distance sensor is positively correlated with the first confidence level.
  32. 根据权利要求28所述的方法,其特征在于,基于所述第二对焦方法确定所述第二镜头位置,包括:The method according to claim 28, wherein determining the second lens position based on the second focusing method comprises:
    控制所述拍摄设备在第一位置和第二位置分别对所述拍摄目标进行拍摄,所述第一位置不同于所述第二位置;controlling the photographing device to photograph the photographing target at a first position and a second position, the first position being different from the second position;
    在所述第一位置对所述拍摄目标进行拍摄时,获取所述拍摄设备的镜头的第一模糊度;When photographing the photographing target at the first position, acquiring a first blurring degree of the lens of the photographing device;
    在所述第二位置对所述拍摄目标进行拍摄时,获取所述拍摄设备的镜头的第二模糊度;When shooting the shooting target at the second position, acquiring a second blurring degree of the lens of the shooting device;
    根据所述第一模糊度和所述第二模糊度确定所述第二镜头位置。The second lens position is determined based on the first degree of ambiguity and the second degree of ambiguity.
  33. 根据权利要求32所述的方法,其特征在于,所述根据所述第一模糊度和所述第二模糊度确定所述第二镜头位置,包括:The method according to claim 32, wherein the determining the second lens position according to the first ambiguity and the second ambiguity comprises:
    根据所述第一模糊度和所述第二模糊度确定用于对焦的曲线;determining a curve for focusing based on the first blurriness and the second blurriness;
    根据所述曲线确定所述第二镜头位置。The second lens position is determined according to the curve.
  34. 根据权利要求33所述的方法,其特征在于,所述第二置信度与所述曲线的曲率呈正相关。The method of claim 33, wherein the second confidence level is positively correlated with the curvature of the curve.
  35. 根据权利要求28所述的方法,其特征在于,通过显示装置显示所述当前镜头位置以及对焦提示信息,所述对焦提示信息包括基于所述目标镜头 位置形成的预估镜头位置范围;The method according to claim 28, wherein the current lens position and focus prompt information are displayed by a display device, and the focus prompt information includes an estimated lens position range formed based on the target lens position;
    所述预估镜头位置范围的大小与所述第一置信度或所述第二置信度呈负相关。The size of the estimated lens position range is negatively correlated with the first confidence level or the second confidence level.
  36. 根据权利要求26所述的方法,其特征在于,所述目标镜头位置为所述预估镜头位置范围的中点位置。The method according to claim 26, wherein the target lens position is a midpoint position of the estimated lens position range.
  37. 根据权利要求26所述的方法,其特征在于,所述对焦提示信息还包括所述拍摄设备的镜头的移动方向和/或移动距离。The method according to claim 26, wherein the focus prompt information further comprises a moving direction and/or a moving distance of the lens of the photographing device.
  38. 根据权利要求37所述的方法,其特征在于,所述移动距离为通过所述拍摄目标与所述拍摄设备之间的设定距离所表征。The method according to claim 37, wherein the moving distance is characterized by a set distance between the photographing target and the photographing device.
  39. 根据权利要求21所述的方法,其特征在于,所述当前镜头位置与所述目标镜头位置重合时,所述当前镜头位置对应的显示标识发生变化。The method according to claim 21, wherein when the current lens position coincides with the target lens position, the display identifier corresponding to the current lens position changes.
  40. 根据权利要求39所述的方法,其特征在于,所述变化包括颜色变化、形状变化、尺寸变化中的至少一种。The method of claim 39, wherein the change comprises at least one of a color change, a shape change, and a size change.
  41. 一种拍摄设备,其特征在于,所述拍摄设备包括:A photographing device, characterized in that the photographing device comprises:
    至少一个处理器和存储器,所述存储器存储计算机执行指令,所述至少一个处理器执行所述存储器存储的计算机执行指令,使得执行所述计算机执行指令时实现如下步骤:At least one processor and a memory, the memory stores computer-executed instructions, and the at least one processor executes the computer-executed instructions stored in the memory, so that the following steps are implemented when executing the computer-executed instructions:
    在所述拍摄设备的对焦过程中,实时获取所述拍摄设备的当前镜头位置以及所述拍摄设备的目标镜头位置,其中,在所述拍摄设备处于所述目标镜头位置时,拍摄目标在所述拍摄设备的拍摄画面中处于合焦状态;During the focusing process of the photographing device, the current lens position of the photographing device and the target lens position of the photographing device are acquired in real time, wherein when the photographing device is at the target lens position, the photographing target is at the The shooting device is in focus in the shooting screen;
    通过显示装置显示所述当前镜头位置以及对焦提示信息,以提示用户根据所述当前镜头位置以及所述对焦提示信息对所述拍摄设备进行对焦,并使得所述当前镜头位置经用户操作调节至所述目标镜头位置,其中,所述对焦提示信息包括基于所述目标镜头位置形成的预估镜头位置范围。The current lens position and the focus prompt information are displayed through the display device, so as to prompt the user to focus on the shooting device according to the current lens position and the focus prompt information, and the current lens position is adjusted to the desired position by the user's operation. the target lens position, wherein the focus prompt information includes an estimated lens position range formed based on the target lens position.
  42. 根据权利要求41所述的拍摄设备,其特征在于,所述拍摄设备的镜头耦合有跟焦器电机,所述跟焦器电机用于根据用户指令驱动所述拍摄设备的镜头转动,以对所述拍摄设备进行对焦。The photographing device according to claim 41, wherein a follow focus motor is coupled to the lens of the photographing device, and the follow focus motor is used to drive the lens of the photographing device to rotate according to a user's instruction, so as to focus on all the Focus on the camera described above.
  43. 根据权利要求42所述的拍摄设备,其特征在于,所述拍摄设备与所述跟焦器电机承载于云台。The photographing device according to claim 42, wherein the photographing device and the follow focus motor are carried on a pan/tilt head.
  44. 根据权利要求43所述的拍摄设备,其特征在于,所述拍摄设备与所述云台通信连接,其中:The photographing device according to claim 43, wherein the photographing device is communicatively connected to the PTZ, wherein:
    所述显示装置设于所述云台的手持部;或the display device is arranged on the hand-held part of the pan/tilt; or
    所述显示装置可拆卸地设置在所述云台的安装座上,所述显示装置与所 述云台通信连接。The display device is detachably arranged on the mounting seat of the pan/tilt, and the display device is connected in communication with the pan/tilt.
  45. 根据权利要求43所述的拍摄设备,其特征在于,所述跟焦器电机与所述云台通信连接,所述跟焦器电机的操作件设于所述云台的手持部,所述操作件用于接收用户针对所述跟焦器电机的控制指令。The photographing device according to claim 43, wherein the follow focus motor is connected in communication with the pan/tilt, and an operating member of the follow focus motor is provided on a hand-held part of the pan/tilt, and the operation The component is used to receive a user's control command for the follow focus motor.
  46. 根据权利要求41或42所述的拍摄设备,其特征在于,所述显示装置为所述拍摄设备的交互界面,或,所述显示装置与所述拍摄设备通信连接。The photographing device according to claim 41 or 42, wherein the display device is an interactive interface of the photographing device, or the display device is connected in communication with the photographing device.
  47. 根据权利要求41所述的拍摄设备,其特征在于,所述处理器执行所述计算机执行指令时还实现如下步骤:The photographing device according to claim 41, wherein the processor further implements the following steps when executing the computer-executed instruction:
    获取用于使得所述拍摄目标能够在所述拍摄设备的拍摄画面中处于合焦状态的第一镜头位置和第二镜头位置,其中,所述第一镜头位置为基于第一对焦方法确定,所述第二镜头位置为基于第二对焦方法确定,所述第一对焦方法不同于所述第二对焦方法;Obtain a first lens position and a second lens position for enabling the shooting target to be in focus in the shooting picture of the shooting device, wherein the first lens position is determined based on the first focusing method, and the The second lens position is determined based on a second focusing method, and the first focusing method is different from the second focusing method;
    根据所述第一镜头位置和所述第二镜头位置确定所述目标镜头位置。The target lens position is determined according to the first lens position and the second lens position.
  48. 根据权利要求46所述的拍摄设备,其特征在于,所述第一镜头位置具有第一置信度,所述第二镜头位置具有第二置信度;The photographing device of claim 46, wherein the first lens position has a first confidence level, and the second lens position has a second confidence level;
    所述根据所述第一镜头位置和所述第二镜头位置确定所述目标镜头位置,包括:The determining the target lens position according to the first lens position and the second lens position includes:
    确定所述第一镜头位置和所述第二镜头位置中置信度更高的一个为所述目标镜头位置。It is determined that one of the first lens position and the second lens position with a higher confidence is the target lens position.
  49. 根据权利要求48所述的拍摄设备,其特征在于,所述处理器执行所述计算机执行指令时还实现如下步骤:The photographing device according to claim 48, wherein the processor further implements the following steps when executing the computer-executed instruction:
    对所述第一置信度和所述第二置信度进行归一化处理。Normalize the first confidence level and the second confidence level.
  50. 根据权利要求47所述的拍摄设备,其特征在于,基于所述第一对焦方法确定所述第一镜头位置,包括:The photographing device according to claim 47, wherein determining the first lens position based on the first focusing method comprises:
    通过距离传感器确定所述拍摄目标与所述拍摄设备之间的距离数据;Determine the distance data between the shooting target and the shooting device through a distance sensor;
    根据所述距离数据计算对焦物距;calculating the focal object distance according to the distance data;
    根据所述对焦物距计算所述目标像距,并根据所述目标像距确定所述第一镜头位置。The target image distance is calculated according to the focused object distance, and the first lens position is determined according to the target image distance.
  51. 根据权利要求48所述的拍摄设备,其特征在于,所述距离传感器的采集数据的信噪比与所述第一置信度呈正相关。The photographing device according to claim 48, wherein the signal-to-noise ratio of the collected data of the distance sensor is positively correlated with the first confidence level.
  52. 根据权利要求47所述的拍摄设备,其特征在于,基于所述第二对焦方法确定所述第二镜头位置,包括:The photographing device according to claim 47, wherein determining the second lens position based on the second focusing method comprises:
    控制所述拍摄设备在第一位置和第二位置分别对所述拍摄目标进行拍摄, 所述第一位置不同于所述第二位置;controlling the photographing device to photograph the photographing target at a first position and a second position, where the first position is different from the second position;
    在所述第一位置对所述拍摄目标进行拍摄时,获取所述拍摄设备的镜头的第一模糊度;When photographing the photographing target at the first position, acquiring a first blurring degree of the lens of the photographing device;
    在所述第二位置对所述拍摄目标进行拍摄时,获取所述拍摄设备的镜头的第二模糊度;When shooting the shooting target at the second position, acquiring a second blurring degree of the lens of the shooting device;
    根据所述第一模糊度和所述第二模糊度确定所述第二镜头位置。The second lens position is determined based on the first degree of ambiguity and the second degree of ambiguity.
  53. 根据权利要求52所述的拍摄设备,其特征在于,所述根据所述第一模糊度和所述第二模糊度确定所述第二镜头位置,包括:The photographing device according to claim 52, wherein the determining the second lens position according to the first blurriness degree and the second blurriness degree comprises:
    根据所述第一模糊度和所述第二模糊度确定用于对焦的曲线;determining a curve for focusing based on the first blurriness and the second blurriness;
    根据所述曲线确定所述第二镜头位置。The second lens position is determined according to the curve.
  54. 根据权利要求48所述的拍摄设备,其特征在于,所述第二置信度与所述曲线的曲率呈正相关。The photographing device according to claim 48, wherein the second confidence level is positively correlated with the curvature of the curve.
  55. 根据权利要求48所述的拍摄设备,其特征在于,所述预估镜头位置范围的大小与所述第一置信度或所述第二置信度呈负相关。The photographing device according to claim 48, wherein the size of the estimated lens position range is negatively correlated with the first confidence level or the second confidence level.
  56. 根据权利要求41所述的拍摄设备,其特征在于,所述目标镜头位置为所述预估镜头位置范围的中点位置。The photographing device according to claim 41, wherein the target lens position is a midpoint position of the estimated lens position range.
  57. 根据权利要求41所述的拍摄设备,其特征在于,所述对焦提示信息还包括所述拍摄设备的镜头的移动方向和/或移动距离。The photographing device according to claim 41, wherein the focus prompt information further includes a moving direction and/or a moving distance of a lens of the photographing device.
  58. 根据权利要求57所述的拍摄设备,其特征在于,所述移动距离为通过所述拍摄目标与所述拍摄设备之间的设定距离所表征。The photographing device according to claim 57, wherein the moving distance is characterized by a set distance between the photographing target and the photographing device.
  59. 根据权利要求41所述的拍摄设备,其特征在于,所述当前镜头位置与所述目标镜头位置重合时,所述当前镜头位置对应的显示标识发生变化。The photographing device according to claim 41, wherein when the current lens position coincides with the target lens position, the display identifier corresponding to the current lens position changes.
  60. 根据权利要求59所述的拍摄设备,其特征在于,所述变化包括颜色变化、形状变化、尺寸变化中的至少一种。The photographing device according to claim 59, wherein the change comprises at least one of a color change, a shape change, and a size change.
  61. 一种拍摄设备,其特征在于,所述拍摄设备包括:A photographing device, characterized in that the photographing device comprises:
    至少一个处理器和存储器,所述存储器存储计算机执行指令,所述至少一个处理器执行所述存储器存储的计算机执行指令,使得执行所述计算机执行指令时实现如下步骤:At least one processor and a memory, the memory stores computer-executed instructions, and the at least one processor executes the computer-executed instructions stored in the memory, so that the following steps are implemented when executing the computer-executed instructions:
    获取用于使得拍摄目标能够在拍摄设备的拍摄画面中处于合焦状态的第一镜头位置和第二镜头位置,其中,所述第一镜头位置为基于第一对焦方法确定,所述第二镜头位置为基于第二对焦方法确定,所述第一对焦方法不同于所述第二对焦方法;Acquire a first lens position and a second lens position for enabling the shooting target to be in focus in the shooting picture of the shooting device, wherein the first lens position is determined based on the first focusing method, and the second lens position is determined based on the first focusing method. The position is determined based on a second focusing method, and the first focusing method is different from the second focusing method;
    根据所述第一镜头位置和所述第二镜头位置确定目标镜头位置,以使得 所述拍摄设备能够由当前镜头位置调节至所述目标镜头位置。A target lens position is determined according to the first lens position and the second lens position, so that the photographing device can be adjusted from the current lens position to the target lens position.
  62. 根据权利要求61所述的拍摄设备,其特征在于,所述拍摄设备的镜头耦合有跟焦器电机,所述跟焦器电机用于驱动所述拍摄设备的镜头转动,以使所述拍摄设备由当前镜头位置调节至所述目标镜头位置。The photographing device according to claim 61, wherein a follow focus motor is coupled to a lens of the photographing device, and the follow focus motor is used to drive the lens of the photographing device to rotate, so as to make the photographing device rotate. Adjust from the current lens position to the target lens position.
  63. 根据权利要求62所述的拍摄设备,其特征在于,所述拍摄设备与所述跟焦器电机承载于云台。The photographing device according to claim 62, wherein the photographing device and the follow focus motor are carried on a pan/tilt head.
  64. 根据权利要求63所述的拍摄设备,其特征在于,所述拍摄设备与所述云台通信连接,所述拍摄设备还包括显示装置,其中:The photographing device according to claim 63, wherein the photographing device is communicatively connected to the PTZ, and the photographing device further comprises a display device, wherein:
    所述显示装置设于所述云台的手持部;或the display device is arranged on the hand-held part of the pan/tilt; or
    所述显示装置可拆卸地设置在所述云台的安装座上,所述显示装置与所述云台通信连接。The display device is detachably arranged on the mounting seat of the pan/tilt, and the display device is connected in communication with the pan/tilt.
  65. 根据权利要求63所述的拍摄设备,其特征在于,所述跟焦器电机与所述云台通信连接,所述跟焦器电机的操作件设于所述云台的手持部,所述操作件用于接收用户针对所述跟焦器电机的控制指令。The photographing device according to claim 63, wherein the follow focus motor is connected in communication with the pan/tilt, and an operating member of the follow focus motor is provided on a hand-held part of the pan/tilt, and the operation The component is used to receive a user's control command for the follow focus motor.
  66. 根据权利要求61或62所述的拍摄设备,其特征在于,通过显示装置显示所述当前镜头位置以及对焦提示信息,所述对焦提示信息包括基于所述目标镜头位置形成的预估镜头位置范围。The photographing device according to claim 61 or 62, wherein the current lens position and focus prompt information are displayed through a display device, and the focus prompt information includes an estimated lens position range formed based on the target lens position.
  67. 根据权利要求66所述的拍摄设备,其特征在于,所述显示装置为所述拍摄设备的交互界面,或,所述显示装置与所述拍摄设备通信连接。The photographing device according to claim 66, wherein the display device is an interactive interface of the photographing device, or the display device is connected in communication with the photographing device.
  68. 根据权利要求61所述的拍摄设备,其特征在于,所述第一镜头位置具有第一置信度,所述第二镜头位置具有第二置信度;The photographing device of claim 61, wherein the first lens position has a first confidence level, and the second lens position has a second confidence level;
    所述根据所述第一镜头位置和所述第二镜头位置确定所述目标镜头位置,包括:The determining the target lens position according to the first lens position and the second lens position includes:
    确定所述第一镜头位置和所述第二镜头位置中置信度更高的一个为所述目标镜头位置。It is determined that one of the first lens position and the second lens position with a higher confidence is the target lens position.
  69. 根据权利要求68所述的拍摄设备,其特征在于,所述处理器执行所述计算机执行指令时还实现如下步骤:The photographing device according to claim 68, wherein the processor further implements the following steps when executing the computer-executed instruction:
    对所述第一置信度和所述第二置信度进行归一化处理。Normalize the first confidence level and the second confidence level.
  70. 根据权利要求68所述的拍摄设备,其特征在于,基于所述第一对焦拍摄设备确定所述第一镜头位置,包括:The photographing device according to claim 68, wherein determining the first lens position based on the first focus photographing device comprises:
    通过距离传感器确定所述拍摄目标与所述拍摄设备之间的距离数据;Determine the distance data between the shooting target and the shooting device through a distance sensor;
    根据所述距离数据计算对焦物距;calculating the focal object distance according to the distance data;
    根据所述对焦物距计算所述目标像距,并根据所述目标像距确定所述第 一镜头位置。The target image distance is calculated according to the focused object distance, and the first lens position is determined according to the target image distance.
  71. 根据权利要求70所述的拍摄设备,其特征在于,所述距离传感器的采集数据的信噪比与所述第一置信度呈正相关。The photographing device according to claim 70, wherein the signal-to-noise ratio of the collected data of the distance sensor is positively correlated with the first confidence level.
  72. 根据权利要求68所述的拍摄设备,其特征在于,基于所述第二对焦拍摄设备确定所述第二镜头位置,包括:The photographing device according to claim 68, wherein determining the second lens position based on the second focusing photographing device comprises:
    控制所述拍摄设备在第一位置和第二位置分别对所述拍摄目标进行拍摄,所述第一位置不同于所述第二位置;controlling the photographing device to photograph the photographing target at a first position and a second position, the first position being different from the second position;
    在所述第一位置对所述拍摄目标进行拍摄时,获取所述拍摄设备拍摄的图像的第一模糊度;When photographing the photographing target at the first position, acquiring a first blurring degree of the image photographed by the photographing device;
    在所述第二位置对所述拍摄目标进行拍摄时,获取所述拍摄设备拍摄的图像的第二模糊度;When photographing the photographing target at the second position, acquiring a second blurring degree of the image photographed by the photographing device;
    根据所述第一模糊度和所述第二模糊度确定所述第二镜头位置。The second lens position is determined based on the first degree of ambiguity and the second degree of ambiguity.
  73. 根据权利要求72所述的拍摄设备,其特征在于,所述根据所述第一模糊度和所述第二模糊度确定所述第二镜头位置,包括:The photographing device according to claim 72, wherein the determining the second lens position according to the first blurriness degree and the second blurriness degree comprises:
    根据所述第一模糊度和所述第二模糊度确定用于对焦的曲线;determining a curve for focusing based on the first blurriness and the second blurriness;
    根据所述曲线确定所述第二镜头位置。The second lens position is determined according to the curve.
  74. 根据权利要求73所述的拍摄设备,其特征在于,所述第二置信度与所述曲线的曲率呈正相关。The photographing device according to claim 73, wherein the second confidence level is positively correlated with the curvature of the curve.
  75. 根据权利要求68所述的拍摄设备,其特征在于,通过显示装置显示所述当前镜头位置以及对焦提示信息,所述对焦提示信息包括基于所述目标镜头位置形成的预估镜头位置范围;The photographing device according to claim 68, wherein the current lens position and focus prompt information are displayed through a display device, and the focus prompt information includes an estimated lens position range formed based on the target lens position;
    所述预估镜头位置范围的大小与所述第一置信度或所述第二置信度呈负相关。The size of the estimated lens position range is negatively correlated with the first confidence level or the second confidence level.
  76. 根据权利要求66所述的拍摄设备,其特征在于,所述目标镜头位置为所述预估镜头位置范围的中点位置。The photographing device according to claim 66, wherein the target lens position is a midpoint position of the estimated lens position range.
  77. 根据权利要求66所述的拍摄设备,其特征在于,所述对焦提示信息还包括所述拍摄设备的镜头的移动方向和/或移动距离。The photographing device according to claim 66, wherein the focus prompt information further comprises a moving direction and/or a moving distance of a lens of the photographing device.
  78. 根据权利要求77所述的拍摄设备,其特征在于,所述移动距离为通过所述拍摄目标与所述拍摄设备之间的设定距离所表征。The photographing device according to claim 77, wherein the moving distance is characterized by a set distance between the photographing target and the photographing device.
  79. 根据权利要求61所述的拍摄设备,其特征在于,所述当前镜头位置与所述目标镜头位置重合时,所述当前镜头位置对应的显示标识发生变化。The photographing device according to claim 61, wherein when the current lens position coincides with the target lens position, the display identifier corresponding to the current lens position changes.
  80. 根据权利要求79所述的拍摄设备,其特征在于,所述变化包括颜色变化、形状变化、尺寸变化中的至少一种。The photographing device according to claim 79, wherein the change includes at least one of color change, shape change, and size change.
  81. 一种拍摄系统,其特征在于,包括:云台和权利要求41-60任一项所述的拍摄设备;A photographing system, characterized in that, comprising: a PTZ and the photographing device according to any one of claims 41-60;
    所述云台用于承载所述拍摄设备。The pan/tilt is used to carry the photographing device.
  82. 一种拍摄系统,其特征在于,包括:云台和权利要求61-80任一项所述的拍摄设备;A photographing system, characterized in that, comprising: a PTZ and the photographing device described in any one of claims 61-80;
    所述云台用于承载所述拍摄设备。The pan/tilt is used to carry the photographing device.
  83. 一种可读存储介质,其特征在于,所述可读存储介质上存储有计算机程序;所述计算机程序在被执行时,实现如权利要求1-40任一项所述的对焦方法。A readable storage medium, characterized in that a computer program is stored on the readable storage medium; when the computer program is executed, the focusing method according to any one of claims 1-40 is implemented.
PCT/CN2021/086073 2021-04-09 2021-04-09 Focusing method, photographic device, photographic system and readable storage medium WO2022213340A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2021/086073 WO2022213340A1 (en) 2021-04-09 2021-04-09 Focusing method, photographic device, photographic system and readable storage medium
CN202180087692.6A CN116686299A (en) 2021-04-09 2021-04-09 Focusing method, photographing apparatus, photographing system, and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/086073 WO2022213340A1 (en) 2021-04-09 2021-04-09 Focusing method, photographic device, photographic system and readable storage medium

Publications (1)

Publication Number Publication Date
WO2022213340A1 true WO2022213340A1 (en) 2022-10-13

Family

ID=83544995

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/086073 WO2022213340A1 (en) 2021-04-09 2021-04-09 Focusing method, photographic device, photographic system and readable storage medium

Country Status (2)

Country Link
CN (1) CN116686299A (en)
WO (1) WO2022213340A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101126833A (en) * 2006-08-16 2008-02-20 佳能株式会社 Automatic focusing apparatus and image pickup apparatus
CN103929586A (en) * 2013-01-14 2014-07-16 三星电子株式会社 Focus aid system
CN108513709A (en) * 2017-08-25 2018-09-07 深圳市大疆创新科技有限公司 Manual focus householder method, device and unmanned vehicle
CN111052725A (en) * 2018-04-26 2020-04-21 深圳市大疆创新科技有限公司 Control device, imaging device, control method, and program
WO2021013143A1 (en) * 2019-07-23 2021-01-28 深圳市大疆创新科技有限公司 Apparatus, photgraphic apparatus, movable body, method, and program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101126833A (en) * 2006-08-16 2008-02-20 佳能株式会社 Automatic focusing apparatus and image pickup apparatus
CN103929586A (en) * 2013-01-14 2014-07-16 三星电子株式会社 Focus aid system
CN108513709A (en) * 2017-08-25 2018-09-07 深圳市大疆创新科技有限公司 Manual focus householder method, device and unmanned vehicle
CN111052725A (en) * 2018-04-26 2020-04-21 深圳市大疆创新科技有限公司 Control device, imaging device, control method, and program
WO2021013143A1 (en) * 2019-07-23 2021-01-28 深圳市大疆创新科技有限公司 Apparatus, photgraphic apparatus, movable body, method, and program

Also Published As

Publication number Publication date
CN116686299A (en) 2023-09-01

Similar Documents

Publication Publication Date Title
JP7145208B2 (en) Method and Apparatus and Storage Medium for Dual Camera Based Imaging
CN109451244B (en) Automatic focusing method and system based on liquid lens
US8335393B2 (en) Image processing apparatus and image processing method
JP6512810B2 (en) Image pickup apparatus, control method and program
JP3937678B2 (en) Electronic still camera
JP2003131121A (en) Device and method for automatic focus adjustment
WO2022061519A1 (en) Photographing control method and apparatus, gimbal, and follow focus motor
JP2002325199A (en) Electronic imaging device
KR20200041371A (en) Double camera-based imaging method and device
JP6377295B2 (en) Distance measuring device and distance measuring method
JP2002296494A (en) Image forming position detecting program and camera
JP2001141982A (en) Automatic focusing device for electronic camera
WO2022213340A1 (en) Focusing method, photographic device, photographic system and readable storage medium
KR100958352B1 (en) Monitoring method
WO2022213339A1 (en) Focusing method, photographing device, photographing system, and readable storage medium
JP2001141984A (en) Automatic focusing device for electronic camera
US10943328B2 (en) Image capturing apparatus, method for controlling same, and storage medium
JP2006319901A (en) Electronic camera and image processing program
JP2001141983A (en) Automatic focusing device for electronic camera
JP2016142853A (en) Control device of imaging device
JP2020046615A (en) Control device, imaging apparatus, control method, program, and storage medium
JP2014066959A (en) Imaging apparatus
WO2023029046A1 (en) Photographic device and focusing method therefor, and photographic system and readable storage medium
JP6627116B1 (en) Control device
JP5391587B2 (en) Imaging device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21935569

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 202180087692.6

Country of ref document: CN

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21935569

Country of ref document: EP

Kind code of ref document: A1