WO2022151473A1 - Photographing control method, photographing control apparatus and gimbal assembly - Google Patents

Photographing control method, photographing control apparatus and gimbal assembly Download PDF

Info

Publication number
WO2022151473A1
WO2022151473A1 PCT/CN2021/072468 CN2021072468W WO2022151473A1 WO 2022151473 A1 WO2022151473 A1 WO 2022151473A1 CN 2021072468 W CN2021072468 W CN 2021072468W WO 2022151473 A1 WO2022151473 A1 WO 2022151473A1
Authority
WO
WIPO (PCT)
Prior art keywords
motor
photographing device
photographing
lens
zoom
Prior art date
Application number
PCT/CN2021/072468
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/072468 priority Critical patent/WO2022151473A1/en
Publication of WO2022151473A1 publication Critical patent/WO2022151473A1/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 relates to the field of control technology, and in particular, to a photographing control method, a photographing control device, and a pan/tilt assembly.
  • Dolly Zoom is also known as "Hitchcock-style zoom”.
  • the FOV of the camera is evenly reduced (zoomed in), so that the proportion of the target object in the frame remains unchanged.
  • the objects on the background of the screen will be continuously enlarged (reduced), which can achieve the shooting effect of highlighting the main position of the target object.
  • using a manual lens requires the lens operator to manually adjust the lens in real time according to the distance between the subject and the camera to achieve follow focus. The above-mentioned scenes require a high level of operating experience for the photographer.
  • the embodiments of the present application provide a shooting control method, a shooting control device, and a pan/tilt assembly, so as to reduce the dependence of the manual lens on operating experience when dealing with the above-mentioned scenarios.
  • an embodiment of the present application provides a photographing control method, the method comprising: determining a position change amount of a photographing device in a specific direction through measurement information of an accelerometer in an inertial measurement unit (Inertial Measurement Unit, IMU for short) , the inertial measurement unit is arranged on the photographing device, or the inertial measuring unit is arranged on the pan/tilt carrying the photographing device, and the inertial measuring unit is used to measure the attitude information of the photographing device; control the focusing or zooming of the photographing device according to the position change amount.
  • IMU Inertial Measurement Unit
  • an embodiment of the present application provides a shooting control device, the device includes: at least one processor and a memory; the memory stores computer-executed instructions; at least one processor executes the computer-executed instructions stored in the memory, so that the computer-executed instructions are executed.
  • the following steps are implemented when the measurement information of the accelerometer in the inertial measurement unit is used to determine the position change amount of the shooting device in a specific direction, the inertial measurement unit is set on the shooting device, or the inertial measurement unit is set on the pan/tilt carrying the shooting device, the inertial The measuring unit is used to measure the attitude information of the photographing device; control the photographing device to follow focus or zoom according to the position change amount.
  • an embodiment of the present application provides a pan-tilt assembly, the pan-tilt assembly includes a pan-tilt and a motor detachable from the pan-tilt, the pan-tilt assembly further includes a shooting control device, and the shooting control device is arranged in the pan-tilt and the motor
  • the shooting control device includes: at least one processor and a memory; the memory stores computer-executed instructions; 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: Acceleration in the inertial measurement unit
  • the measurement information of the meter is used to determine the position change amount of the photographing device in a specific direction, the inertial measurement unit is arranged on the photographing device, or the inertial measurement unit is arranged on the pan-tilt carrying the photographing device, and the inertial measuring unit is used to measure the attitude information of the photographing device;
  • the motor is controlled according to the amount
  • an embodiment of the present application provides a readable storage medium on which a computer program is stored; when the computer program is executed, the shooting control method of the embodiment of the present application according to the first aspect is implemented.
  • embodiments of the present application provide a computer program, including executable instructions, which, when executed, implement the above method.
  • the position change amount of the photographing device in a specific direction is determined based on the measurement information of the accelerometer in the inertial measurement unit, so that the photographing device can be driven to follow focus or zoom based on the position change amount, reducing the user's High reliance on operating experience when implementing follow focus operation or zoom operation in special scenarios.
  • the inertial measurement unit can be configured to measure the attitude information of the photographing device, there is no need to configure an additional costly sensor to detect the distance change between the photographing device and the photographing object, thereby realizing the multiplexing of the inertial measurement unit.
  • FIG. 1 is an application scenario of a shooting control method, a shooting control device, and a pan-tilt assembly provided by an embodiment of the present application;
  • FIG. 2 is an application scenario of a shooting control method, a shooting control device, and a pan-tilt assembly provided by another embodiment of the present application;
  • FIG. 3 is a schematic flowchart of a shooting control method provided by an embodiment of the present application.
  • FIG. 4 is a schematic diagram of adjusting the focal length by changing the distance between lenses according to an embodiment of the present application
  • FIG. 5 is a schematic diagram of a lens provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram of a flange provided in an embodiment of the present application.
  • Figure 7 is a schematic diagram of the implementation principle of dolly zoom
  • FIG. 8 is a schematic structural diagram of a PTZ provided by an embodiment of the present application.
  • FIG. 9 is a schematic diagram of a specific direction provided by an embodiment of the present application.
  • FIG. 10 is a schematic diagram of a zoom motor provided by an embodiment of the application.
  • FIG. 11 is a flowchart of a calibration process for a zoom motor provided by an embodiment of the present application.
  • FIG. 12 is a schematic diagram of a calibration process for a zoom motor provided by an embodiment of the present application.
  • FIG. 13 is a schematic diagram of a follow focus motor provided by an embodiment of the application.
  • 15 is a schematic diagram of a calibration process for a follow focus motor provided by an embodiment of the application.
  • 16 is a schematic diagram of an included angle satisfying a simplified condition provided by an embodiment of the present application.
  • FIG. 17 is a block diagram of a PTZ provided by an embodiment of the present application.
  • FIG. 18 is a block diagram of a pan/tilt assembly provided by an embodiment of the present application.
  • FIG. 19 is a schematic diagram of a motor provided by an embodiment of the present application.
  • a component when referred to as being "fixed to" another component, it can be directly on the other component or there may also be a centered component.
  • the other component When a component is said to "carry” another component, the other component may be carried on a surface of the component, or disposed within the component, or disposed within or on the surface of other components that the component carries.
  • a component When a component is considered to be “connected” to another component, it may be directly connected to the other component or there may also be an intervening component.
  • the lenses of SLR and mirrorless cameras have three parameters: follow focus, zoom, and aperture.
  • the follow focus function can be achieved by an automatic follow focus lens, or a manual follow focus lens plus a follow focus device (follow focus wheel and follow focus motor, etc.). Most of the zoom lenses are manually adjusted, and there are many prime lenses.
  • the camera moves at a constant speed forward and backward relative to the target object, and at the same time evenly reduces (enlarges) the camera's Field Of View (FOV), so that the target object occupies the same proportion of the screen, while the screen
  • FOV Field Of View
  • the objects in the background will be continuously enlarged (reduced), which can achieve shooting effects such as highlighting the main position of the target object.
  • the shooting control method, the shooting control device, and the pan/tilt assembly provided by the embodiments of the present application can effectively reduce the high requirements on the user's operating experience when performing the above-mentioned lens movement shooting, and improve the user experience.
  • the above shooting scenes may be shooting scenes for people shooting, still scene shooting, animal shooting, video shooting, movie shooting, TV drama shooting, and the like.
  • the above scenarios are only exemplary descriptions and should not be construed as limitations on the present application. For example, it can be applied to various operations that require at least one of a follow focus operation and a zoom operation.
  • the appearance of the gimbal not only provides a stable shooting environment for taking pictures and video recordings, but also provides a wealth of possibilities for photographers to move the mirror.
  • a hand-held gimbal can cause the camera set on it to adjust the pose to track the target object.
  • the pan/tilt provided by the embodiments of the present application can make the camera set on it change the focal length to achieve specific visual effects, such as follow focus and Dolly Zoom effects.
  • the gimbal can make the camera arranged on it rotate around at least one of the yaw axis, the pitch axis and the roll axis, so as to achieve a specific lens movement shooting effect.
  • an inertial measurement unit (Inertial Measurement Unit, IMU for short) (such as the original IMU on the pan/tilt or the external
  • IMU Inertial Measurement Unit
  • the measurement information output by the IMU estimates the distance change between the lens and the target object, and obtains continuous zoom information according to the distance change.
  • the motor-driven manual zoom lens performs zoom or follow focus based on the zoom information, to achieve such as dolly zoom, etc. Corresponding mirror movement method. It allows novice users to shoot film-level shooting effects, enriching shooting techniques and creative expression effects.
  • FIG. 1 is an application scenario of a shooting control method, a shooting control device, and a pan/tilt assembly provided by an embodiment of the present application.
  • the user can achieve the above shooting effect with the help of the gimbal and the motor set on the gimbal.
  • the user controls the motor carried by the gimbal to drive the lens to zoom synchronously.
  • the focal length change amount of the zoom may be determined based on the position change amount of the gimbal, and the corresponding relationship between the focal length change amount and the position change amount of the gimbal may be determined by calculation and/or calibration.
  • the pan/tilt in FIG. 1 may be a handheld pan/tilt or a pan/tilt mounted on a movable platform, and the pan/tilt carries a photographing device, and the photographing device may have a focus adjustment component.
  • a handheld pan/tilt head may include a stand, a handle, and the like.
  • the bracket may include a matching motor and a shaft arm, and the motor is used to drive the shaft arm to rotate, so as to drive the movement of the photographing device.
  • the pan/tilt head may include, but is not limited to, a single-axis or multi-axis attitude-adjustable structure for fixing the photographing device on the hand-held part.
  • the gimbal allows the camera to be displaced relative to the handpiece, or rotated along one or more axes, such as the gimbal allows the camera to move along one or more of the pitch, pan, and roll axes combined translational motion.
  • the pan/tilt head may allow the camera to rotate about one or more of a pitch axis, a pan axis, and a roll axis.
  • There may be a linkage conversion relationship between the gimbal and the hand-held part for example, the first movement (such as movement or rotation) of the hand-held part can be converted into the second movement of the gimbal. vice versa.
  • a sensor system may also be included on the gimbal.
  • the sensing system may include one or more sensors to sense spatial orientation, velocity, and/or acceleration (eg, rotation and translation with respect to up to three degrees of freedom).
  • the one or more sensors include, but are not limited to, GPS sensors, motion sensors, inertial measurement units, or image sensors.
  • the sensing data provided by the sensing system can be used to control the pose, speed and/or acceleration of the photographing device.
  • a sensing system may be used to detect data about the environment of the gimbal, such as climatic conditions, the location of man-made structures, and the like.
  • the PTZ may also include a communication system.
  • the communication system can realize the communication between the PTZ and the control terminal with the communication system through wired or wireless signals sent and received.
  • a communication system may include any number of transmitters, receivers, and/or transceivers for wireless communication.
  • Communication can be one-way communication, so that data can be sent from one direction.
  • one-way communication may include that only the pan/tilt transmits data to the camera, or vice versa.
  • One or more transmitters of the communication system may transmit data to one or more receivers of the communication system, and vice versa.
  • the communication may be two-way communication, so that data can be transmitted in both directions between the pan/tilt and the camera.
  • Two-way communication includes that one or more transmitters of the communication system can send data to one or more receivers of the communication system, and vice versa.
  • Control data from the pan/tilt can control the operation of the camera or other image capture device it carries (capture still or moving images, zoom, turn on or off, switch imaging modes, change image resolution, change focus, change depth of field, change exposure time, changing the viewing angle or field of view).
  • the movable pan can also be connected to the control terminal.
  • the control terminal can be connected to the PTZ or the photographing device, and the control terminal can connect to one of the PTZ and the photographing device. or more provide control commands, and receive information from one or more of the pan/tilt and the camera (such as the position and/or motion information of the carrier or the camera, data sensed by the camera, such as the image data of the camera) .
  • the control data of the control terminal may include instructions on position, motion, braking, or control of the pan/tilt and/or camera. For example, the control data may cause a change in the position and/or orientation of the carrier.
  • the control data of the control terminal can control the operation of the camera or other image capture devices (capturing still or moving images, zooming, turning on or off, switching imaging modes, changing image resolution, changing focal length, changing depth of field, changing exposure time, changing viewing angle or field of view).
  • communications to the pan/tilt and/or camera may include information from one or more sensors.
  • Communication may include sensory information transmitted from one or more different types of sensors, such as GPS sensors, motion sensors, inertial sensors, proximity sensors, or image sensors.
  • the sensing information is about the position (eg, orientation, position), motion, or acceleration of the gimbal and/or the camera.
  • the sensing information transmitted from the camera includes data captured by the camera or the status of the camera.
  • the control data transmitted and provided by the control terminal can be used to control the state of one or more of the pan/tilt or the photographing device.
  • one or more of the pan/tilt and the photographing device may include a communication module for communicating with the control terminal, so that the control terminal can communicate or control the pan/tilt and the photographing device individually.
  • the control terminal may be a remote controller of the PTZ, or may be an intelligent electronic device such as a mobile phone, an iPad, a wearable electronic device, etc., which can be used to control the PTZ.
  • control terminal can be far away from the gimbal to realize remote control of the gimbal, and can be fixed or detachable on the gimbal, and can be set as required.
  • the pan-tilt can communicate with other remote devices other than the control terminal, or with remote devices other than the control terminal.
  • the control terminal can also communicate with another remote device and PTZ.
  • the pan/tilt and/or the control terminal may communicate with another movable platform or a carrier or a camera of another movable platform.
  • the additional remote device may be a second terminal or other computing device (eg, a computer, desktop, tablet, smartphone, or other mobile device).
  • the remote device may transmit data to the pan/tilt, receive data from the pan/tilt, transmit data to the control terminal, and/or receive data from the control terminal.
  • the remote device may be connected to the Internet or other telecommunication network to allow data received from the pan-tilt and/or control terminal to be uploaded to a website or server.
  • FIG. 2 is an application scenario of a shooting control method, a shooting control device, and a pan/tilt assembly provided by another embodiment of the present application.
  • a gimbal capable of carrying a third-party photographing device is taken as an example for description. It should be noted that the photographing device and the motor may also be integrated with the gimbal, which is not limited here.
  • the novice photographer on the right in Figure 2 shoots the image of the user on the left in Figure 2 by holding the gimbal. Because the novice photographer is not skilled enough in shooting, it is easy to shake involuntarily during the shooting process. This easily results in an unclear image of the user on the left in the captured image, which fails to achieve the desired effect of the user.
  • a novice shooting user can drive the lens to follow focus with the help of a gimbal and a motor set on the gimbal, such as determining the focal length change based on the position change detected by the gimbal,
  • the drive motor compensates for the change in the focal length to achieve a follow focus effect.
  • the position change amount of the photographing device detected by the gimbal may be determined through measurement information output by the IMU.
  • the amount of change in focus may be determined based on the amount of change in the position of the photographing device.
  • the corresponding relationship between the focal length change amount and the position change amount of the pan/tilt head may be determined by calculation and/or calibration.
  • FIG. 3 is a schematic flowchart of a shooting control method provided by an embodiment of the present application.
  • the photographing control method may include operations S302 to S304.
  • the amount of position change of the photographing device in a specific direction is determined through the measurement information of the accelerometer in the inertial measurement unit.
  • the photographing control method can be used in a pan/tilt head, where the pan/tilt head carries a photographing device and an inertial measurement unit, and the inertial measurement unit (IMU) is used to measure the attitude information of the photographing device.
  • the shooting control method can be used in a shooting device, such as an IMU in the shooting device.
  • the shooting control method can be used for a motor, for example, the motor has an IMU or the motor is set on the gimbal (to receive measurement data from the IMU on the gimbal).
  • IMU is a device that measures the three-axis attitude angle (or angular rate) and acceleration of an object.
  • a three-axis gyroscope and a three-axis accelerometer can be set in the IMU, and the attitude of the object can be calculated by measuring the angular velocity and acceleration of the object in three-dimensional space.
  • the inertial measurement unit may include a gyroscope and/or an accelerometer
  • the gyroscope may be used to determine the angular acceleration information of the gimbal
  • the accelerometer may be used to determine the acceleration information of the gimbal. Since the photographing device and the gimbal can be fixed to each other, the angular acceleration information and acceleration information of the gimbal can be used to represent the attitude information and acceleration information of the photographing device.
  • the IMU is used to calculate the posture of the camera mounted on it, and to perform stabilization and follow-up control.
  • the original IMU of the gimbal can also be used to calculate the displacement.
  • the specific direction may refer to the direction of the line connecting the photographing device and the photographing object.
  • the position change amount of the photographing device in the specific direction may be used as the position changing amount between the photographing device and the photographing object.
  • the specific direction may refer to the direction of the line connecting the photographing device and the photographing object at a specific historical moment, for example, after the specific historical moment, the photographing device has undergone a lateral displacement relative to the photographing object. If moving, the moving distance of the photographing device can be projected to the direction of the connection line between the photographing device and the photographing object at the certain historical moment, to obtain the position change amount of the photographing device relative to the photographing object in a specific direction.
  • the photographing apparatus is controlled to perform a follow focus or zoom operation according to the position change amount.
  • the position change amount can be used as the object distance change amount of the shooting object relative to a certain lens, and the image distance change amount for the certain lens can be determined based on the object distance change amount, and then based on the distance change amount Control the photographing device to perform a follow focus operation to achieve a follow focus effect; or control the photographing device to perform a zoom operation based on the distance change amount to achieve an effect such as Dolly Zoom.
  • the photographing object may be stationary.
  • the change amount of the distance between the photographing object relative to the photographing device may be determined only by relying on the IMU to calculate the position change of the photographing device.
  • the photographing object may also be moving.
  • the change amount of the photographing object relative to the distance between the photographing devices determined in other ways may be optimized based on the position change amount of the photographing device calculated by the IMU.
  • the amount of change of the distance between the photographing object relative to the photographing device can also be determined in the following manner.
  • the target ranging can be measured by Time of Flight (TOF)
  • the focus position can be searched by screen contrast (CDAF)
  • the diagonal position can be measured and estimated by PDAF pixels. , to achieve focus control.
  • An exemplary description is made by taking a scene in which the subject is moving as an example.
  • TOF needs to be equipped with a dedicated distance detection device, which is costly; some PTZs are not equipped with this device, and a corresponding distance detection device needs to be added; the frame rate of TOF is low, such as 10fps, which may cause some key frames to be missing from the camera
  • the relative distance change to the target cannot meet the needs of follow focus or zoom scenarios.
  • the CDAF method has the same refresh rate as the screen, but consumes more computing resources; requires multi-frame convergence; and has obvious breathing effects, which cannot well meet the operational requirements for follow focus or zooming in some scenarios.
  • the PDAF method has the same refresh rate as the screen, but has certain requirements for light intensity, which cannot meet the needs of follow-focus or zoom scenarios when the light is poor.
  • the embodiments of the present application can optimize the ranging effect in some scenarios, such as TOF, CDAF, or PDAF, based on the position change amount of the photographing device calculated by the IMU.
  • the focusing system achieves accurate focusing through TOF or CDAF or the like.
  • the target does not move, or the movement of the photographer is the main moving factor.
  • VIO Visual Inertial Odometry
  • the calculated camera position change is used to estimate the relative distance change between the camera and the target, and used to fine-tune the results of the focusing system (such as the upper part of the key frame that lacks the relative distance change between the camera and the target).
  • a frame or the latest relative distance change is fine-tuned to predict the relative distance change between the camera and the target corresponding to the key frame.
  • controlling the camera to follow focus or zoom according to the position change amount includes: controlling a motor engaged with the lens of the camera device to drive the lens to follow focus or zoom according to the position change amount.
  • FIG. 4 is a schematic diagram of adjusting the focal length by changing the distance between lenses according to an embodiment of the present application.
  • a zoom lens is generally composed of 3-4 groups of lens groups (such as L1, L2 and L3).
  • the zoom ring or the follow focus ring can be rotated through the motor output torque to drive the movement of the lens groups.
  • a change in position will change the equivalent focal length of the lens as a whole.
  • the moving lens groups may be different, and the relationship between the moving distance of the lens group and the change of the focal length may be different. In this case, only the mapping relationship needs to be changed, and this embodiment is also applicable.
  • FIG. 4 by moving the middle concave lens L2 to change the focal length f, the focal length f and the position x of the lens L2 can be considered as a linear relationship, as shown in formula (1).
  • k 1 and b 1 are undetermined constants related to the mechanical structure and lens group parameters.
  • the motor drives the zoom ring to rotate or drives the follow focus ring to rotate through gear meshing.
  • mapping relationship may be obtained by calibration and/or calculation.
  • controlling the motor engaged with the lens of the photographing device to drive the lens to change the focal length according to the position change amount includes: controlling the motor engaged with the lens of the photographing device to drive the lens to change the focal length according to the position change amount and the mapping relationship, wherein, The mapping relationship represents the relationship between the amount of position change and the rotor position of the motor.
  • FIG. 5 is a schematic diagram of a lens provided by an embodiment of the present application.
  • the lens has threads inside, and is provided with a focus ring and a zoom ring to adjust the front and rear distances of the lens group of the lens.
  • the focus or follow focus of the lens is generally to keep the position of the photographed object and the position of the focal plane of the camera body of the photographing device unchanged, and the follow focus ring or the zoom ring of the lens of the photographing device is rotated by a motor.
  • the thread on the inner wall of the lens converts the rotation angle of rotation into the front and rear translation distance of the lens group of the lens, which is equivalent to using follow focus when the real-time distance between the shooting device and the subject remains unchanged.
  • the camera motor drives the lens to rotate, and adjusts the object distance d and image distance f to make the shooting picture in focus. That is, during the focusing process, there is a one-to-one correspondence between the real-time distance between the shooting device and the subject and the target rotational position of the rotor of the follow focus motor, and the target rotational position of the rotor of the follow focus motor and the lens of the lens.
  • the position of the group also has a one-to-one correspondence. According to the distance change between the shooting device and the object, the target rotation position of the rotor of the motor corresponding to the distance change can be determined, and then the rotor of the motor can be rotated.
  • the lens is moved to the target position to achieve focusing, so that the subject is in a state of focus in the shooting screen of the shooting device.
  • the process of adjusting the zoom ring by the motor is similar to the above-mentioned focusing process, and will not be repeated here.
  • the lens may also include an aperture ring for adjusting the aperture.
  • the motor for driving the follow focus ring and the motor for driving the zoom ring can be set at different positions on the gimbal, for example, on both sides of the photographing device, so as to achieve an even distribution of the load.
  • FIG. 6 is a schematic diagram of a flange provided in an embodiment of the present application.
  • the manner in which the follow focus ring drives the movement of the lens may be the cam barrel structure as shown in FIG. 6 .
  • the focus motor rotor position motor_position and the focal length f have a linear relationship, as shown in formula (2).
  • k 2 and b 2 are constants related to the structural parameters of the cam cylinder and the gear reduction ratio of the motor.
  • the focal length of the lens can be controlled by controlling the motor rotor position motor_position.
  • the velocity can be obtained by integrating the acceleration data, and the displacement can be obtained by integrating again. If an IMU with good performance is used, an accurate displacement can be directly obtained for zoom control, while low-cost accelerometers inevitably have problems such as drift error and bias wandering, and the displacement calculation will be inaccurate.
  • acc is the acceleration of translation
  • vel is the moving speed of the camera
  • the distance from the camera to the object can be expressed as shown in formula (5).
  • ⁇ d is the position change
  • d 0 is the distance from the camera to the subject when the integration starts
  • d is the distance from the camera to the subject.
  • ⁇ d can be calculated in real time through acceleration data, but the initial distance is related to the shooting scene.
  • Figure 7 is a schematic diagram of the implementation principle of dolly zoom.
  • the object distance d can be obtained by integrating the acceleration obtained by the IMU twice.
  • Equation (6) the expression of the image distance f that can be obtained from similar triangles can be as shown in Equation (6).
  • the motor rotor position motor_position can be expressed as shown in equation (7).
  • ⁇ d is obtained by real-time double integration according to the acceleration data.
  • the embodiment of the present application provides a calibration process as shown below.
  • mapping relationship includes at least one of the following.
  • the first mapping relationship between the rotor position of the motor and the position change amount is determined. For example, after calibrating the first mapping relationship between the rotor position of the motor and the position change amount, the first mapping relationship is stored.
  • Second determine the second mapping relationship between the rotor position of the motor and the focal length change amount, and then calculate the rotor position of the motor corresponding to each position change amount based on the second mapping relationship, the image size of the photographed object, and the size of the photographed object.
  • FIG. 8 is a schematic structural diagram of a pan/tilt according to an embodiment of the present application.
  • the pan/tilt head may include: a bracket assembly and at least one motor.
  • the bracket assembly may include at least two relatively movable bracket parts, and the bracket assembly is used for supporting the photographing device.
  • the at least one motor is respectively used to drive the corresponding bracket parts to move, so as to adjust the posture of the photographing device.
  • a pitch axis motor and a pitch axis arm cooperate to drive the camera to rotate about the pitch axis.
  • the roll axis motor cooperates with the roll axis arm to drive the photographing device to rotate around the roll axis.
  • the yaw axis motor cooperates with the yaw axis arm to drive the photographing device to rotate about the yaw axis.
  • the pitch axis motor can drive the movement of the pitch axis arm
  • the roll axis motor can drive the movement of the roll axis arm
  • the yaw axis motor can drive the movement of the yaw axis arm.
  • the yaw axis arm may be connected to one end of the roll axis arm, and the other end of the roll axis arm may be connected to the pitch axis arm, but the embodiment of the present application is not limited to this, the yaw axis arm, the roll axis arm and the pitch axis arm
  • the axle arms can also be connected in other sequences.
  • pan/tilt head can also enable the photographing device to rotate around only one, two or four axes, etc., which is not limited herein.
  • the embodiments of the present application do not exclude that the power components (such as air cylinders, liquid cylinders, linear motors, etc.) that drive translation correspond to any of the above tracking modes. At least one motor combined embodiment.
  • the photographing device is detachably carried on the bearing seat of the gimbal; and/or the inertial measurement unit is provided on the gimbal and/or the photographing device; and/or the motor is detachably carried on the gimbal on the bearing seat.
  • a photographing device such as a camera
  • a photographing device fixing mechanism may be fixed on the pan/tilt horizontally or vertically by a photographing device fixing mechanism. Referring to FIG. 8 , the photographing device is laterally placed on the pan/tilt by the photographing device fixing mechanism.
  • the fixing mechanism of the photographing device can rotate relative to one or more shaft arms.
  • the fixing mechanism of the photographing device includes a rotating arm that can rotate relative to the tilt axis and a fixing portion that can cooperate with the photographing device.
  • the fixing part can move linearly with respect to the rotating arm, so as to fix photographing devices of different sizes or different configurations.
  • the fixing mechanism of the photographing device may be a separate component or a part of a certain axis arm.
  • the fixing mechanism of the photographing device may be a component of the pitch axis arm or the yaw axis arm, which is not limited here.
  • the camera when the camera needs to be loaded on the platform, the camera can be fixed on the rotating arm first, and the position of the fixed part can be adjusted so that the fixed part can be matched with the positioning part of the camera, and then the camera can be fixed.
  • the photographing device In a designated position, the photographing device is set on the photographing device fixing mechanism.
  • the IMU can be set anywhere on the gimbal to determine the attitude information of the components supported by the set inertial measurement unit.
  • the inertial measurement unit may be arranged on the fixing mechanism of the photographing device, and is used to measure the attitude information of the fixing mechanism.
  • the inertial measurement unit may be arranged on the shaft arm.
  • the inertial measurement unit may be at least one of an accelerometer or a gyroscope, and may be used to measure the attitude and acceleration of the photographing device.
  • the fixing mechanism of the photographing device can also be used to carry a motor, such as a zoom motor and a follow focus motor.
  • a motor such as a zoom motor and a follow focus motor.
  • the zoom motor and the follow focus motor are respectively arranged on the fixing mechanism of the photographing device, and are located on both sides of the photographing device.
  • the shaft of the zoom motor is engaged with the zoom ring of the lens
  • the shaft of the follow focus motor is engaged with the follow focus ring of the lens.
  • the photographing device is detachably carried on the bearing seat of the pan/tilt, the pan/tilt is communicatively connected to the photographing device, and a display screen is provided on the hand-held part of the pan/tilt, and the display screen can display the photographing image of the photographing device.
  • the PTZ may be provided with components such as a display screen, a lever, and a dial to facilitate human-computer interaction between the user and the PTZ.
  • the human-computer interaction interface can be displayed on the display screen.
  • Track wheels include but are not limited to focus wheels and/or zoom wheels.
  • FIG. 9 is a schematic diagram of a specific direction provided by an embodiment of the present application.
  • the specific direction is the direction of the connecting line between the photographing device and the photographing object when the mapping relationship is calibrated.
  • the embodiment of the present application requires the user to calibrate the parameters k 3 and b 3 in the formula (10) before implementing the dolly zoom, and needs to calibrate 2 or more different distance points, and the image is displayed in which in the screen Display the scale ruler, adjust the zoom ring of the lens at each distance point, so that the subject at each distance point coincides with the same position of the scale ruler in the screen, so as to ensure that the image width of the subject is unchanged in the camera sensor. .
  • adjust the lens follow focus ring at each distance point to get a sharper image of the subject.
  • determining the first mapping relationship between the rotor position of the motor and the position change amount may include the following operations.
  • a first preset proportion is determined, and the first preset proportion is the proportion of the image of the photographing object in the photographing screen of the photographing device.
  • the proportion of the image of the photographing object in the photographing screen of the photographing device is determined based on the first user operation.
  • the user may input the first user operation by the user through the interactive interface displayed on the display screen.
  • the user may input the first user operation through a lever or a wheel or the like.
  • a first zoom adjustment instruction is obtained, where the first zoom adjustment instruction is used to control the zoom motor to drive the lens to change the focal length, so that the image of the photographed object occupies an image of the photographing device.
  • the ratio is at a first preset ratio, resulting in a first rotor position.
  • a second zoom adjustment instruction from the user is obtained, and the second zoom adjustment instruction is used to control the zoom motor to drive the lens to change the focal length, so that the image of the photographed object is displayed on the photographing screen of the photographing device.
  • the middle ratio is at the first preset ratio, and the second rotor position is obtained.
  • a first mapping relationship is determined based on the first distance, the first rotor position, the second distance, and the second rotor position.
  • FIG. 10 is a schematic diagram of a zoom motor provided by an embodiment of the present application.
  • the zoom motor is arranged on one side of the manual lens of the photographing device, and the zoom motor is engaged with the zoom ring of the lens.
  • the zoom motor can be fixed on the photographing device fixing mechanism.
  • FIG. 11 is a flowchart of a calibration process for a zoom motor provided by an embodiment of the present application.
  • FIG. 12 is a schematic diagram of a calibration process for a zoom motor provided by an embodiment of the present application.
  • the zoom-related parameters are read.
  • the camera moves to the position after the camera moves, receives measurement information from the IMU, and can calculate the object distance change amount based on the measurement information.
  • the FOV of the camera changes.
  • the focal length of the camera can be adjusted by the motor, so that the information such as the rotor position of the motor can be obtained.
  • the above operations are repeated to obtain at least two sets of correspondences between the object distance change and the rotor position.
  • k 3 , b 3 based on the method shown in Equation (10).
  • determining the first mapping relationship between the rotor position of the motor and the position change amount includes the following operations.
  • the photographing device moves a third distance in a specific direction
  • the user's first focus adjustment instruction is obtained
  • the first focus adjustment instruction is used to control the follow focus motor to drive the lens to follow focus, so that the image of the subject is captured during the shooting.
  • the photographed picture of the device is in focus state, and the third rotor position is obtained.
  • the photographing device moves a fourth distance in a specific direction
  • a second focus adjustment instruction from the user is obtained
  • the second focus adjustment instruction is used to control the follow focus motor to drive the lens to follow focus, so that the image of the photographed object is captured during the shooting.
  • the photographed picture of the device is in the in-focus state, and the fourth rotor position is obtained.
  • a first mapping relationship is determined based on the third distance, the third rotor position, the fourth distance, and the fourth rotor position.
  • FIG. 13 is a schematic diagram of a follow focus motor provided by an embodiment of the present application.
  • the follow focus motor can be arranged on one side of the manual lens of the photographing device, and the follow focus motor is engaged with the follow focus ring of the lens.
  • the follow focus motor can be fixed on the fixing mechanism of the photographing device.
  • FIG. 14 is a flowchart of a calibration process for a follow focus motor according to an embodiment of the present application.
  • FIG. 15 is a schematic diagram of a calibration process for a follow focus motor according to an embodiment of the present application.
  • the focus-related parameters are read. Then, the camera moves to the position after the camera moves, receives measurement information from the IMU, and can calculate the object distance change amount based on the measurement information.
  • the image clarity of the target object in the image captured by the camera deteriorates.
  • the focus of the camera can be adjusted by the focus motor to make the image of the target object clearer. In this way, information such as the rotor position of the follow focus motor can be obtained. Then, the above operations are repeated to obtain at least two sets of correspondences between the object distance change and the rotor position. In order to calculate k 3 , b 3 based on the method shown in Equation (10).
  • zoom motor and the follow focus motor can also be calibrated at the same time.
  • the subject is placed in a designated area of the camera, such as a central area, by moving the mirror to determine the current position a of the photographing device.
  • control the zoom ring by rotating the zoom motor to realize the zooming of the subject.
  • determine the size ratio of the current subject mark the zoom motor parameters of the current position a, and drive the follow focus ring to rotate through the follow focus motor.
  • make the focal plane of the current position a clear and mark the parameters of the follow focus motor at the current position a.
  • the zoom motor rotor to drive the zoom ring, the zooming of the shooting object is realized.
  • the size ratio of the current shooting object is determined, and the zoom motor parameters of the current position b are marked.
  • the rotor of the follow focus motor drives the follow focus ring, so that the focal plane of the current position b is clear, and the parameters of the follow focus motor at the current position b are marked. Determine the change amount d of the distance measured by the current IMU.
  • k 3 , b 3 as shown in equation (10) can be obtained according to the above-determined zoom motor parameters, follow focus motor parameters, distance change c and distance change d, etc. combined with the parameter fitting method.
  • controlling a motor engaged with the lens of the photographing device to drive the lens to follow focus or zoom according to the position change amount includes at least one of the following: controlling the lens of the photographing device according to the position change amount
  • the engaged zoom motor drives the zoom of the lens, so that the proportion of the image of the subject in the shooting frame of the shooting device remains stable.
  • a follow focus motor engaged with the lens of the photographing device is controlled according to the position change amount to drive the lens to follow focus, so that the photographing object is in a state of focus in the photographing picture of the photographing device.
  • the above method further includes: when a re-calibration condition of the mapping relationship is satisfied, outputting calibration prompt information or forcibly terminating the use of the mapping relationship. Due to the limited detection accuracy of the IMU, or due to the influence of the IMU's own characteristics (for example, the detection accuracy for large acceleration scenarios is lower than the detection accuracy for small acceleration scenarios), the applicable scenarios of the mapping relationship for one calibration are limited. Therefore, the user can be prompted to re-calibrate in time to determine the accuracy of the calibrated mapping relationship.
  • the recalibration condition includes at least one of the following: the inertial measurement unit has undergone a power-off operation, the gimbal has experienced a power-off operation, the displacement of the gimbal in the power-off state exceeds the recalibration displacement threshold, or the acceleration of the inertial measurement unit is greater than a set value. Fixed acceleration threshold.
  • the above-mentioned mapping relationship may also be determined by calculation. For example, there is a linear relationship between the amount of position change and the focal length of the lens.
  • the calculation parameters involved in the calculation include: the image size of the shooting object, the size of the shooting object, the object distance at the starting position, and the flange distance , among which, the flange distance is related to the structural parameters of the cam barrel and the gear reduction ratio of the motor.
  • the above method may further include the following operations. If the angle between the connection direction between the photographing device and the photographed object and the specific direction satisfies the simplified condition, the position change amount determined based on the measurement information of the accelerometer in the inertial measurement unit is used as the position of the photographing device in the specific direction The amount of change.
  • FIG. 16 is a schematic diagram of an included angle satisfying a simplified condition provided by an embodiment of the present application.
  • the user moves the gimbal in the direction of approaching the subject to achieve a shooting effect such as dolly zoom.
  • the user may not be able to move in a specific direction at the time of calibration (eg lack of reference control or the user wishes to change the angle of the shot, etc.).
  • the position change determined based on the measurement information can be used as the shooting device in the specific direction. position change amount.
  • the zoom optical structure design of different lenses may be different, common lenses can be processed according to the technical solutions of the present application.
  • the variable distance and the position of the focus ring of some lenses are not necessarily linearly related. It is only necessary to bring in the nonlinear model and fit the corresponding parameters, which has a wide range of applications.
  • the content related to the human-computer interaction mode is exemplified below.
  • the proportion of the image of the target object in the captured image may be input in the following manner.
  • a display screen is provided on the PTZ, and a user interaction interface is displayed on the display screen.
  • the first user operation includes an operation for the user to input a proportion in the user interaction interface, wherein the proportion of the user input in the user interaction interface is It is based on the preset shooting control method, shooting control device and pan/tilt assembly.
  • the user can make the image of the photographed object reach a desired proportion in the photographed image through a zoom operation.
  • the user can enter a percentage by entering a percentage value.
  • the first user operation includes an operation in which the user inputs the percentage and the base point in the user interaction interface. In this way, it is convenient for the user to achieve the required proportion of the image of the photographed object in the photographed image in the designated area.
  • the first user operation includes an operation of the user inputting at least two base points in the user interaction interface.
  • the photographing object of the photographing device is determined based on a second user operation of the user with respect to the user interface. For example, the user changes the posture of the pan/tilt head so that the photographed object is located in the designated area of the photographed image.
  • the photographed object of the photographing device is determined through image recognition. For example, after a user inputs a photographic subject, the photographing device automatically recognizes the image of the photographing subject from the photographed image. For example, the user inputs the object to be photographed through a click operation or the like.
  • the photographing device is set on a pan/tilt head, and a focus wheel and/or a zoom wheel are provided on the hand-held part of the pan/tilt head.
  • the above method further includes: receiving a third user operation on the focus wheel and/or the zoom wheel, so as to control the motor engaged with the lens of the photographing device to drive the lens to follow focus or zoom according to the position change amount.
  • the focus wheel and/or the zoom wheel may be arranged on the hand-held part of the pan/tilt head, the control terminal of the movable platform, and the like.
  • the photographing control device can be set on any one of the pan/tilt, the motor or the photographing device.
  • the shooting control device is set in the PTZ for exemplary illustration.
  • FIG. 17 is a block diagram of a pan/tilt provided by an embodiment of the present application.
  • the pan/tilt 1700 carries a camera and an inertial measurement unit, and the inertial measurement unit is used to measure the attitude information of the camera. As shown in FIG. 17 , the pan/tilt 1700 includes: at least one processor 1710 and a memory 1720 . Memory 1720 stores computer-executable instructions.
  • At least one processor 1710 executes the computer-executable instructions stored in the memory 1720, so that the following steps are implemented when the computer-executable instructions are executed.
  • the photographing device is controlled to perform a follow focus or zoom operation according to the position change amount.
  • the gimbal may include a handheld gimbal, an airborne gimbal, and the like.
  • a pan/tilt head can be used to mount on a movable platform with a powered system.
  • the mobile platform is an unmanned aerial vehicle as an example to illustrate.
  • the movable platform may include a powered mechanism, a sensing system.
  • the movable platform may also include a communication system.
  • the power mechanism may include one or more rotating bodies, propellers, blades, engines, motors, wheels, bearings, magnets, and nozzles.
  • the rotating body of the powertrain may be a self-tightening rotating body, a rotating body assembly, or other rotating body power unit.
  • the movable platform may have one or more power mechanisms. All powertrains can be of the same type or of different types.
  • the power mechanism enables the movable platform to take off vertically from a surface, or to land vertically on a surface, without any horizontal movement of the movable platform (eg, without taxiing on a runway).
  • the movable platform may have a plurality of horizontal rotating bodies to control the lifting and/or pushing of the movable platform.
  • the sensing system may include one or more sensors to sense surrounding obstacles, spatial orientation, velocity and/or acceleration (eg, rotation and translation with respect to up to three degrees of freedom) of the movable platform.
  • sensors to sense surrounding obstacles, spatial orientation, velocity and/or acceleration (eg, rotation and translation with respect to up to three degrees of freedom) of the movable platform.
  • acceleration eg, rotation and translation with respect to up to three degrees of freedom
  • the communication system please refer to the relevant part of the communication system of the PTZ, which will not be repeated here.
  • the hand-held pan/tilt head further includes: a holding component for supporting the bracket component.
  • the holding assembly can also function such as accommodating batteries, processors, setting input/output components, etc., which are not limited herein.
  • the PTZ may be provided with an input part and/or an output part.
  • the input part may be used to input the user's operation instruction on the handheld pan/tilt head, and the input part may include a wheel and a control joystick for realizing human-computer interaction.
  • the control rocker can control the movement of the pivot arm. For example, by turning the control rocker, the pivot arm of the handheld gimbal can be rotated in a corresponding direction.
  • the component for realizing human-computer interaction may include a display screen for displaying an interactive interface, and a user can input control instructions in the interactive interface.
  • the handheld PTZ may also include a display screen for displaying a user interface.
  • the handle assembly is used to support the stand assembly.
  • the user interface is displayed on the display located on the photographing device; alternatively, the user interface is displayed on the display of the terminal device connected to the PTZ; or, the preset function keys (such as zoom wheel, follow focus wheel) are located on the holding component
  • the handle assembly is used to support the bracket assembly.
  • the PTZ may further include a status prompting component.
  • the pan/tilt head may include indicator lights.
  • the indicator light representing the calibration state is on.
  • the indicator light representing the dolly zoom shooting state is on.
  • the input part may also have other components or parts, for example, a switch of a handheld pan/tilt head, etc. may be provided.
  • a processor may be provided in the input unit for processing input control commands, or sending and receiving signals.
  • the processor can also be arranged in the handle assembly.
  • the processor may be a central processing unit (Central Processing Unit, referred to as CPU), and the processor may also be other general-purpose processors, digital signal processors (Digital Signal Processor, referred to as DSP), application-specific integrated circuits (application specific integrated circuit, referred to as ASIC), off-the-shelf programmable gate array (Field-Programmable Gate Array, referred to as FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
  • the processing unit may be connected to non-volatile computer readable storage medium 1720 .
  • the non-volatile computer-readable storage medium 1720 may store logic, code, and/or computer instructions 1721 executed by the processing unit for performing one or more steps.
  • the non-volatile computer readable storage medium 1720 may include one or more storage units (removable media or external memory such as SD card or RAM).
  • the measurement information of the IMU may be directly transferred and stored in a storage unit of the non-volatile computer-readable storage medium 1720 .
  • the storage units of the non-volatile computer-readable storage medium 1720 may store logic, code, and/or computer instructions 1721 executed by the processing unit to perform various embodiments of the various methods described herein.
  • the processing unit may be operable to execute instructions to cause one or more processors of the processing unit to perform the zoom and/or focus functions described above.
  • the storage unit of the non-volatile computer-readable storage medium 1720 may store processing results generated by the processing unit.
  • the processing unit may be connected to the control module for controlling the state of the motor.
  • the processing unit may also be connected to the communication module for transmitting and/or receiving data with one or more peripheral devices (eg, terminals, display devices, or other remote control devices).
  • peripheral devices eg, terminals, display devices, or other remote control devices.
  • Any suitable communication method may be utilized here, such as wired communication or wireless communication.
  • the communication module may utilize one or more local area networks, wide area networks, infrared, radio, Wi-Fi, peer-to-peer (P2P) networks, telecommunication networks, cloud networks, and the like.
  • P2P peer-to-peer
  • a relay station such as a signal tower, a satellite, or a mobile base station, can be used.
  • the input module on the PTZ may include one or more input mechanisms to obtain input generated by the user by operating the input module.
  • Input mechanisms include one or more joysticks, switches, knobs, slide switches, buttons, dials, touchscreens, keypads, keyboards, mice, voice controls, gesture controls, inertial modules, and the like.
  • the input module may be used to obtain user input for controlling aspects such as a pan/tilt head, motors, cameras, movable platform, or components thereof. Any aspect includes attitude, position, orientation, flight, tracking, etc.
  • the input mechanism may be that the user manually sets one or more positions, each position corresponding to a preset input.
  • the input module may be executed by more than one device.
  • the input module can be implemented by a standard remote controller with a joystick.
  • a standard remote controller with a joystick connects to a mobile device (eg, a smartphone) running a suitable application ("app") to generate control commands for the movable platform.
  • the app can be used to get input from the user.
  • the processing unit may be connected to the memory.
  • Memory includes volatile or non-volatile storage media for storing data, and/or logic, code, and/or program instructions executable by a processing unit for performing one or more rules or functions.
  • the memory may include one or more storage units (removable media or external memory such as SD card or RAM).
  • the data input to the module may be directly transferred and stored in a storage unit of the memory.
  • the storage units of the memory may store logic, code and/or computer instructions executed by the processing unit to perform various embodiments of the various methods described herein.
  • the processing unit may be configured to execute instructions to cause one or more processors of the processing unit to process and display sensory data (eg, images) obtained from cameras or motors, etc., and control commands, including motion commands, generated based on user input and target object information, and cause the communication module to transmit and/or receive data, etc.
  • the storage unit may store sensed data or other data received from an external device such as a removable platform.
  • the storage unit of the memory may store the processing result generated by the processing unit.
  • the communication module of the PTZ can be used to transmit and/or receive data from one or more remote devices (eg, mobile platforms, base stations, etc.).
  • the communication module can transmit control signals (such as motion signals, target object information, and tracking control commands) to peripheral systems or devices, such as the above-mentioned PTZ and/or load.
  • the communication module may include a transmitter and a receiver for receiving data from and transmitting data to the remote device, respectively.
  • the communication module may include a transceiver that combines the functions of a transmitter and a receiver.
  • the transmitter and receiver and the processing unit may communicate with each other. Communication may utilize any suitable means of communication, such as wired or wireless communication.
  • Images captured by the movable platform during motion can be transmitted from the movable platform or imaging device back to a control terminal or other suitable device for display, playback, storage, editing, or other purposes. Such transmission may occur in real-time or near real-time as the imaging device captures the imagery. Optionally, there may be a delay between the capture and transmission of the imagery.
  • the imagery may be stored in the removable platform's memory without being transferred anywhere else. The user can view these images in real time and, if necessary, adjust the target object information or adjust other aspects of the movable platform or its components. Adjusted target object information may be provided to the movable platform, and an iterative process may continue until a desired image is obtained.
  • the imagery may be transmitted from the camera and/or the control terminal to a remote server. For example, images can be shared on some social networking platforms, such as WeChat Moments or Weibo.
  • controlling the camera to follow focus or zoom according to the position change amount includes: controlling a motor engaged with the lens of the camera device according to the position change amount to drive the lens to follow focus or zoom.
  • controlling the motor engaged with the lens of the photographing device to drive the lens to follow focus or zoom according to the position change amount includes:
  • the motor engaged with the lens of the photographing device is controlled to drive the lens to follow focus or zoom according to the position change amount and a mapping relationship, wherein the mapping relationship represents the relationship between the position change amount and the rotor position of the motor.
  • the gimbal sends the position change amount to the motor, so that the motor can determine the rotor position of the motor according to the position change amount and the mapping relationship, so as to drive the lens to follow focus or zoom by adjusting the rotor position.
  • the at least one processor executes the computer-executed instruction
  • the following steps may also be implemented: when the re-calibration condition of the mapping relationship is satisfied, output calibration prompt information or forcibly terminate the use of the mapping relationship.
  • the recalibration conditions include at least one of the following: the inertial measurement unit has undergone a power-off operation; the gimbal has experienced a power-off operation; the displacement of the gimbal in the power-off state exceeds the recalibration displacement threshold; the acceleration of the inertial measurement unit is greater than the set value. Fixed acceleration threshold.
  • the specific direction is the direction of the line connecting the photographing device and the photographing object when the mapping relationship is calibrated.
  • mapping relationship is obtained by calibration and/or calculation.
  • mapping relationship includes at least one of the following: determining a first mapping relationship between the rotor position of the motor and the position change amount; or; determining the rotor position and focal length of the motor A second mapping relationship between changes.
  • the rotor position of the motor corresponding to each position change amount can be calculated based on the second mapping relationship, the image size of the subject, and the size of the subject.
  • determining the first mapping relationship between the rotor position of the motor and the position change amount includes: for the zoom motor, determining a first preset proportion, where the first preset proportion is the image of the object to be photographed in the photographing screen of the photographing device When the photographing device moves a first distance in a specific direction, a first zoom adjustment instruction is obtained, and the first zoom adjustment instruction is used to control the zoom motor to drive the lens to change the focal length, so that the image of the photographed object can be captured by the photographing device.
  • the first rotor position When the proportion in the picture is at the first preset proportion, the first rotor position is obtained; when the photographing device moves a second distance in a specific direction, a second zoom adjustment instruction from the user is obtained, and the second zoom adjustment instruction is used to control the drive of the zoom motor
  • the lens changes the focal length, so that the proportion of the image of the photographed object in the photographed image of the photographing device is at the first preset proportion, and the second rotor position is obtained; based on the first distance, the first rotor position, the second distance and the second rotor The location determines the first mapping relationship.
  • determining the first mapping relationship between the rotor position of the motor and the position change amount includes: for the follow-focus motor, when the photographing device moves a third distance in a specific direction, acquiring the user's first focus-focusing adjustment instruction, the first The in-focus adjustment command is used to control the follow-focus motor to drive the lens to follow-focus, so that the image of the photographed object is in the in-focus state on the shooting screen of the photographing device, and the third rotor position is obtained; when the photographing device moves a fourth distance in a specific direction , obtain the user's second in-focus adjustment instruction, and the second in-focus adjustment instruction is used to control the follow-focus motor to drive the lens to follow-focus, so that the image of the photographed object is in the in-focus state on the shooting screen of the shooting device, and the fourth rotor is obtained.
  • a position a first mapping relationship is determined based on the third distance, the third rotor position, the fourth distance, and the fourth rotor position.
  • the calculation parameters involved in the calculation include: the image size of the shooting object, the shooting object size, the starting position and the object distance and the flange distance, where the flange distance is related to the structural parameters of the cam barrel and the gear reduction ratio of the motor.
  • controlling the motor engaged with the lens of the photographing device to drive the lens to follow focus or zoom according to the position change amount includes at least one of the following: controlling the zoom motor engaged with the lens of the photographing device according to the position change amount to drive the lens to zoom , so that the proportion of the image of the subject in the shooting screen of the shooting device remains stable; the follow focus motor engaged with the lens of the shooting device is controlled according to the position change to drive the lens to follow focus, so that the subject is in the shooting screen of the shooting device. is in focus.
  • the proportion of the image of the photographing object in the photographing screen of the photographing device is determined based on the first user operation.
  • the first user operation includes an operation in which the user inputs a proportion in the user interaction interface, wherein the proportion input by the user in the user interaction interface is based on a preset point; or the first user operation includes the user in the user interaction interface.
  • the operation of inputting the percentage and the base point in the user interface; or the first user operation includes an operation of the user inputting at least two base points in the user interaction interface.
  • the rotating shaft of the zoom motor can be engaged with the zoom ring of the lens, and the rotating shaft of the follow focus motor can be engaged with the follow focus ring of the lens.
  • the photographing object of the photographing device is determined based on the user's second user operation on the user interaction interface; or the photographing object of the photographing device is determined through image recognition.
  • the photographing device is detachably carried on the bearing seat of the gimbal; and/or the inertial measurement unit is provided on the gimbal and/or the photographing device; and/or the motor is detachably carried on the bearing of the gimbal seat.
  • the photographing device is detachably carried on the bearing seat of the gimbal, the gimbal is communicatively connected to the photographing device, and a display screen is provided on the hand-held part of the gimbal, and the display screen can display the shooting image of the photographing device.
  • the at least one processor executes the computer-executed instructions, the following steps are implemented: if the included angle between the direction of the line connecting the photographing device and the photographed object and the specific direction satisfies the simplified condition, then based on the inertial measurement unit The position change amount determined by the measurement information of the accelerometer is used as the position change amount of the photographing device in a specific direction.
  • a focus wheel and/or a zoom wheel are arranged on the hand-held part of the gimbal.
  • the at least one processor executes the computer-executed instructions, the following steps are implemented: receiving a third user operation on the follow focus wheel and/or the zoom wheel, so as to control the camera device to follow focus or zoom based on the third user operation.
  • the capture control device is provided in the motor.
  • the motor can be a follow focus motor or a zoom motor.
  • the zoom motor may include: a control circuit and a driving device.
  • the control circuit may include a processor and a storage medium.
  • the storage medium may store computer instructions and mapping relationships (eg, a first mapping relationship, a second mapping relationship), and the like.
  • FIG. 18 is a block diagram of a pan/tilt assembly provided by an embodiment of the present application.
  • the pan/tilt assembly may include a pan/tilt, a motor detachable from the pan/tilt, and a shooting control device disposed on one of the pan/tilt and the motor.
  • the pan/tilt can be used to carry a photographing device.
  • the photographing device may be detachably arranged on the pan/tilt in a structurally fixed manner (eg, fixed by a photographing device fixing mechanism).
  • the motor is fixedly connected with the camera and the lens by the fixing mechanism of the shooting device, and the lens is driven by the reduction gear to realize zooming.
  • the positional relationship between the camera, the lens and the IMU is fixed, so the distance change measured by the IMU can be considered to be consistent with the displacement of the camera.
  • An IMU can be set on the gimbal.
  • the IMU includes an accelerometer, thereby integrating acceleration information collected based on the accelerometer to obtain velocity information, and integrating the velocity information to obtain displacement information.
  • the measurement information collected by the IMU may include the amount of position change of the photographing device corresponding to different sampling moments.
  • the distance difference between the IMU and the photographing device is a fixed value, and the amount of change in the distance between the IMU and the photographing device may be used as the amount of change in the distance between the photographing object and the photographing device.
  • the reference plane of the IMU is located below the camera.
  • the calculation processing of the position change amount may be performed by a controller in the IMU or by a controller in the motor, which is not limited in this embodiment.
  • the camera fixing mechanism of the pan/tilt head can fix the motor to the bottom of the camera body, and after the lens is mounted on the camera body through the bayonet, the motor can drive the lens to rotate.
  • a follow focus wheel and/or zoom wheel can be set on the gimbal, and the follow focus wheel and/or zoom wheel can push the current rotation position and rotation speed data of the follow focus wheel or zoom wheel to the motor, so that the motor rotates to the same level as the follow focus wheel. the specified position corresponding to the wheel or zoom wheel.
  • the focus wheel or the zoom wheel can be used to drive the motor to reach at least two specified focal lengths, so as to complete the change of the distance between the photographing device and the photographed object and the change of the rotor position of the motor. Calibration of the mapping relationship.
  • a display screen can be set on the gimbal, and during the follow focus or zoom process in the shooting control method provided by the embodiment of the present application, the user can also select a mode by inputting a control command on the display screen, and switch the automatic mode to the manual mode , to achieve follow focus or zoom by using the follow focus wheel or zoom wheel to control the position of the motor.
  • the motor is an actuator, including a control circuit (such as a position controller) and a driving device.
  • the position controller is used for the control instructions given by the focus wheel or zoom wheel connected to the motor or the control given by the controller connected to the IMU. Command, output torque, drive the lens meshed with the motor to follow focus or zoom through gear transmission.
  • the follow focus motor is engaged with the follow focus ring of the lens in the photographing device, and/or the zoom motor is engaged with the zoom ring of the lens in the photographing device.
  • the photographing device includes a lens and a camera body, and is used for photographing a photographed object to obtain an image after the motor drives the lens to zoom or follow focus.
  • the camera body can be a camera body of a handheld single-lens reflex or mirrorless camera.
  • a lens is one that includes a zoom ring and a follow focus ring, like a manual lens. The lens in this embodiment can also support manual focus and follow focus.
  • pan/tilt assembly is only for the purpose of identification, and should not be construed as a limitation on the embodiments of the present application.
  • the photographing control device includes: at least one processor and a memory.
  • the memory stores instructions for execution by the computer.
  • At least one processor executes computer-implemented instructions stored in the memory such that at least some of the steps described above are performed when the computer-implemented instructions are executed.
  • the above steps may also be completed by the pan/tilt and the motor, for example:
  • the gimbal determines the position change amount of the photographing device carried by the gimbal in a specific direction by using the measurement information of the accelerometer in the inertial measurement unit, the inertial measurement unit is arranged in the gimbal, and the inertial measurement unit is used to measure the shooting The attitude information of the device; the gimbal transmits the position change to the motor; the motor drives the camera to follow focus or zoom according to the position change.
  • the motor is engaged with the lens of the camera, and the motor drives the lens to focus or zoom according to the amount of position change.
  • the motor determines the rotor position according to the position change amount and a mapping relationship to drive the lens to follow focus or zoom, wherein the mapping relationship represents the relationship between the position change amount and the rotor position of the motor.
  • the PTZ when the re-calibration condition of the mapping relationship is satisfied, the PTZ outputs calibration prompt information or forcibly terminates the use of the mapping relationship.
  • the recalibration conditions include at least one of the following: the inertial measurement unit has undergone a power-off operation; the gimbal has experienced a power-off operation; the displacement of the gimbal in the power-off state exceeds the recalibration displacement threshold; the acceleration of the inertial measurement unit is greater than the set value. Fixed acceleration threshold.
  • the specific direction is the direction of the line connecting the photographing device and the photographing object when the mapping relationship is calibrated.
  • mapping relationship is obtained by calibration and/or calculation.
  • determining the mapping relationship includes at least one of the following: determining a first mapping relationship between the rotor position of the motor and the position change amount. Alternatively, first, determine the second mapping relationship between the rotor position of the motor and the focal length change amount; then, calculate the rotor position of the motor corresponding to each position change amount based on the second mapping relationship, the image size of the subject and the size of the subject.
  • the gimbal obtains a first preset proportion, which is the proportion of the image of the photographed object in the photographing screen of the photographing device; the gimbal moves a first distance along a specific direction in the photographing device
  • the first zoom adjustment instruction is used to control the zoom motor to drive the lens to change the focal length, so that the proportion of the image of the shooting object in the shooting screen of the shooting device is at the first preset proportion, and the first zoom adjustment instruction is obtained.
  • Rotor position when the camera moves a second distance in a specific direction, the pan/tilt obtains a second zoom adjustment instruction from the user, and the second zoom adjustment instruction is used to control the zoom motor to drive the lens to change the focal length, so that the image of the object can be captured in the camera.
  • the ratio of the captured images is at the first preset ratio, and the second rotor position is obtained; the motor determines the first mapping relationship based on the first distance, the first rotor position, the second distance and the second rotor position.
  • the gimbal obtains the user's first focus adjustment instruction, and the first focus adjustment instruction is used to control the follow focus motor to drive the lens to follow focus, so as to The image of the subject is in focus on the shooting screen of the shooting device, and the third rotor position is obtained; when the camera moves a fourth distance in a specific direction, the gimbal obtains the user's second focus adjustment instruction, and the second focus is achieved.
  • the adjustment command is used to control the follow focus motor to drive the lens to follow focus, so that the image of the subject is in focus on the shooting screen of the shooting device, and the fourth rotor position is obtained; the motor is based on the third distance, the third rotor position, and the fourth rotor position.
  • the distance and the fourth rotor position determine a first mapping relationship.
  • the calculation parameters involved in the calculation include: image size of the subject, size of the subject, object distance at the starting position, and flange distance , where the flange distance is related to the structural parameters of the cam barrel and the gear reduction ratio of the motor.
  • the motor driving the lens to follow focus or zoom according to the position change includes at least one of the following: the motor drives the lens of the photographing device to zoom according to the position change, so that the image of the photographed object occupies a proportion of the photographing frame of the photographing device Keep it stable; or, the motor drives the lens to follow focus according to the amount of position change, so that the subject is in focus in the shooting screen of the shooting device.
  • the proportion of the image of the photographing object in the photographing screen of the photographing device is determined based on the first user operation on the pan/tilt or the photographing device.
  • the display screen of the gimbal or the photographing device can display the user interaction interface.
  • the first user operation includes an operation of the user inputting a proportion in the user interaction interface, wherein the proportion input by the user in the user interaction interface is based on a preset point; or the first user operation includes the user interacting with the user.
  • the operation of inputting the ratio and the base point in the interface; or the first user operation includes the operation of the user inputting at least two base points in the user interaction interface.
  • the shaft of the zoom motor is engaged with the zoom ring of the lens
  • the shaft of the follow focus motor is engaged with the follow focus ring of the lens
  • the photographing object of the photographing device is determined based on the second user operation of the user on the user interaction interface; or the photographing object of the photographing device is determined through image recognition.
  • the photographing device is detachably carried on the bearing seat of the gimbal; and/or; the motor is detachably carried on the bearing seat of the gimbal.
  • the photographing device is detachably carried on the bearing seat of the pan/tilt, the pan/tilt is communicatively connected to the photographing device, and a display screen is provided on the hand-held part of the pan/tilt, and the display screen can display the photographing image of the photographing device.
  • the position change amount determined by the motor based on the measurement information of the accelerometer in the inertial measurement unit is used as the photographing device in the specific direction. position change.
  • the photographing device is set on a pan/tilt head, and a focus wheel and/or a zoom wheel are provided on the hand-held part of the pan/tilt head.
  • the pan/tilt head receives a third user operation on the focus wheel and/or the zoom wheel, so as to control the motor engaged with the lens of the photographing device to drive the lens to focus or zoom.
  • the embodiments of the present application can effectively improve the unevenness and discontinuity of the current camera controller follow focus control. It should be noted that, in this embodiment of the present application, a creative follow focus effect can also be achieved by using a preset focusing curve. In addition, combining existing modes such as fixed-point time-lapse and trajectory time-lapse to create time-lapse photography with focus changes, it provides users with more creative space.
  • FIG. 19 is a schematic diagram of a motor provided by an embodiment of the present application.
  • the zoom control is performed by driving the movement of the manual lens zoom ring through gear meshing.
  • the motor control system adopts a common vector control strategy, and uses a linear Hall sensor to feedback the position of the motor rotor. According to the position and current feedback The signal realizes the current closed loop, realizes the position closed loop control on the basis of the current loop and the speed loop, controls the rotation angle of the motor rotor and then controls the position of the zoom ring, and realizes the control of the focal length of the lens.
  • the target position in FIG. 19 is determined based on the position change amount of the photographing device in a specific direction and the mapping relationship.
  • the amount of change in the position of the camera in a particular direction may be determined based on measurement information (eg, acceleration information) from the IMU.
  • the position loop controller determines the target speed based on the difference between the amount of change in position and the position feedback from the drive circuit feedback circuit.
  • the speed loop controller determines the target current based on the difference between the target speed and the speed feedback from the drive circuit feedback circuit.
  • the current loop controller determines a control signal based on the difference between the target current and the current feedback from the drive circuit feedback circuit, the control signal is used to control the motor (such as a permanent magnet synchronous motor) to drive the zoom ring or focus ring of the lens .
  • the following takes the handheld pan/tilt as an example to illustrate the execution subject of each of the above operations.
  • the execution subject of each of the above operations can be implemented by a handheld pan/tilt or a motor.
  • the operation of determining the position change amount of the photographing device carried by the gimbal in a specific direction may be implemented by the gimbal.
  • the operation of driving the photographing device to follow focus or zoom according to the amount of position change may be implemented by a motor.
  • the rotor position is determined according to the position change amount and the mapping relationship, and the operation of driving the lens to follow focus or zoom can be realized by a motor. Operations related to displaying information can be performed by the display on the PTZ.
  • Determining the position change amount of the photographing device in a specific direction may be determined by a pan/tilt, a motor, a movable platform (eg, a processor) or a control terminal of the movable platform (eg, a control terminal provided on a land robot).
  • Controlling the motor engaged with the lens of the photographing device to drive the lens to follow focus or zoom according to the position change amount may be performed by a pan/tilt or a motor.
  • Controlling the motor engaged with the lens of the photographing device to drive the lens to follow focus or zoom according to the position change amount and the mapping relationship may be performed by a motor or a pan/tilt head.
  • Outputting the calibration prompt information or forcibly terminating the use of the mapping relationship may be performed by the display screen or other output components on the PTZ or the control terminal.
  • the first user operation, the second user operation, and the third user operation may be received by the control terminal.
  • the operation of image processing and target object recognition can be determined by the control terminal of the movable platform, the pan/tilt, the load or the movable platform.
  • the execution subjects of the above operations are only exemplary descriptions, and should not be construed as limitations on this application, and may be independently completed by one of the movable platform, the control terminal, the photographing device, and the PTZ, or several of them.
  • the cooperation is complete.
  • a human-computer interaction module such as a display for displaying a human-computer interaction interface, etc.
  • the independent completion includes actively or passively, directly or indirectly acquiring corresponding data from other devices to perform corresponding operations.
  • the embodiments of the present application also provide a computer program product, which includes a computer program, the computer program includes program codes for executing the methods provided by the embodiments of the present application, when the computer program product runs on an electronic device, the The program code is used to enable the electronic device to implement the image model training method or the image processing method provided by the embodiments of the present application.
  • the computer program may rely on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like.
  • the computer program may also be transmitted, distributed in the form of a signal over a network medium, and downloaded and installed through the communication portion, and/or installed from a removable medium.
  • the program code embodied by the computer program may be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
  • the program code for executing the computer program provided by the embodiments of the present application may be written in any combination of one or more programming languages.
  • Programming languages include, but are not limited to, languages such as Java, C++, python, "C" or similar programming languages.
  • the program code may execute entirely on the user computing device, partly on the user device, partly on a remote computing device, or entirely on the remote computing device or server.
  • the remote computing device may be connected to the user computing device through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (eg, using an Internet service provider business via an Internet connection).
  • LAN local area network
  • WAN wide area network
  • an external computing device eg, using an Internet service provider business via an Internet connection

Abstract

A photographing control method, a photographing control apparatus and a gimbal assembly. The photographing control method comprises: determining, by means of measurement information of an accelerometer in an inertial measurement unit (IMU), a position change amount of a photographing apparatus in a specific direction (S302), the IMU being provided in the photographing apparatus, or the IMU being provided in a gimbal, and the IMU being used for measuring posture information of the photographing apparatus; and controlling, according to the position change amount, the photographing apparatus to follow focus or zoom (S304).

Description

拍摄控制方法、拍摄控制装置及云台组件Shooting control method, shooting control device and pan/tilt assembly 技术领域technical field
本申请涉及控制技术领域,尤其涉及一种拍摄控制方法、拍摄控制装置及云台组件。The present application relates to the field of control technology, and in particular, to a photographing control method, a photographing control device, and a pan/tilt assembly.
背景技术Background technique
在诸多场合下,例如电影拍摄,会需要采用更加专业的手动镜头进行拍摄。例如,滑动变焦(Dolly Zoom)又称“希区柯克式变焦”,拍摄时相机相对目标对象前后匀速移动,同时均匀地缩小(放大)相机FOV,使得目标对象在画面地占比不变,而画面背景地物体会连续放大(缩小),可以达到凸显目标对象的主体地位的拍摄效果。又例如,采用手动镜头需要镜头操作者根据拍摄对象与相机的距离实时手动调节镜头以实现跟焦。以上所示的场景中对拍摄者的操作经验要求较高。In many situations, such as filming, a more professional manual lens will be required for shooting. For example, Dolly Zoom is also known as "Hitchcock-style zoom". When shooting, the camera moves forward and backward relative to the target object at a constant speed, and at the same time, the FOV of the camera is evenly reduced (zoomed in), so that the proportion of the target object in the frame remains unchanged. The objects on the background of the screen will be continuously enlarged (reduced), which can achieve the shooting effect of highlighting the main position of the target object. For another example, using a manual lens requires the lens operator to manually adjust the lens in real time according to the distance between the subject and the camera to achieve follow focus. The above-mentioned scenes require a high level of operating experience for the photographer.
发明内容SUMMARY OF THE INVENTION
有鉴于此,本申请实施例提供一种拍摄控制方法、拍摄控制装置及云台组件,以降低手动镜头在应对上述场景时对操作经验的依赖。In view of this, the embodiments of the present application provide a shooting control method, a shooting control device, and a pan/tilt assembly, so as to reduce the dependence of the manual lens on operating experience when dealing with the above-mentioned scenarios.
第一方面,本申请实施例提供了一种拍摄控制方法,该方法包括:通过惯性测量单元(Inertial Measurement Unit,简称IMU)中加速度计的测量信息,确定拍摄装置在特定方向上的位置改变量,惯性测量单元设置于拍摄装置,或者惯性测量单元设置于承载拍摄装置的云台,惯性测量单元用于测量拍摄装置的姿态信息;根据位置改变量控制拍摄装置跟焦或变焦。In a first aspect, an embodiment of the present application provides a photographing control method, the method comprising: determining a position change amount of a photographing device in a specific direction through measurement information of an accelerometer in an inertial measurement unit (Inertial Measurement Unit, IMU for short) , the inertial measurement unit is arranged on the photographing device, or the inertial measuring unit is arranged on the pan/tilt carrying the photographing device, and the inertial measuring unit is used to measure the attitude information of the photographing device; control the focusing or zooming of the photographing device according to the position change amount.
第二方面,本申请实施例提供了一种拍摄控制装置,该装置包括:至少一个处理器和存储器;存储器存储计算机执行指令;至少一个处理器执行存储器存储的计算机执行指令,使得执行计算机执行指令时实现如下步骤:通过惯性测量单元中加速度计的测量信息,确定拍摄装置在特定方向上的位置改变量,惯性测量单元设置于拍摄装置,或者惯性测量单元设置于承载拍摄装置的云台,惯性测量单元用于测量拍摄装置的姿态信息;根据位置改变量控制拍摄装置跟焦或变焦。In a second aspect, an embodiment of the present application provides a shooting control device, the device includes: at least one processor and a memory; the memory stores computer-executed instructions; at least one processor executes the computer-executed instructions stored in the memory, so that the computer-executed instructions are executed. The following steps are implemented when the measurement information of the accelerometer in the inertial measurement unit is used to determine the position change amount of the shooting device in a specific direction, the inertial measurement unit is set on the shooting device, or the inertial measurement unit is set on the pan/tilt carrying the shooting device, the inertial The measuring unit is used to measure the attitude information of the photographing device; control the photographing device to follow focus or zoom according to the position change amount.
第三方面,本申请实施例提供了一种云台组件,云台组件包括云台和可拆卸于云台的电机,云台组件还包括拍摄控制装置,拍摄控制装置设于云台和电机中的一个上,拍摄控制装置包括:至少一个处理器和存储器;存储器存储计算机执行指令;至少一个处理器执行存储器存储的计算机执行指令,使得执行计算机执行指令时实现如下步骤:通过惯性测量单元中加速度计的测量信息,确定拍摄装置在特定方向上的位置改变量,惯性测量单元设置于拍摄装置,或者惯性测量单元设置于承载拍摄装置的云台,惯性测量单元用于测量拍摄装置的姿态信息;根据位置改变量控制电机,以使得拍摄装置跟焦或变焦。In a third aspect, an embodiment of the present application provides a pan-tilt assembly, the pan-tilt assembly includes a pan-tilt and a motor detachable from the pan-tilt, the pan-tilt assembly further includes a shooting control device, and the shooting control device is arranged in the pan-tilt and the motor In one of the above, the shooting control device includes: at least one processor and a memory; the memory stores computer-executed instructions; 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: Acceleration in the inertial measurement unit The measurement information of the meter is used to determine the position change amount of the photographing device in a specific direction, the inertial measurement unit is arranged on the photographing device, or the inertial measurement unit is arranged on the pan-tilt carrying the photographing device, and the inertial measuring unit is used to measure the attitude information of the photographing device; The motor is controlled according to the amount of position change to make the camera follow focus or zoom.
第四方面,本申请实施例提供了一种可读存储介质,可读存储介质上存储有计算机程序;计算机程序在被执行时,实现如第一方面本申请实施例的拍摄控制方法。In a fourth aspect, an embodiment of the present application provides a readable storage medium on which a computer program is stored; when the computer program is executed, the shooting control method of the embodiment of the present application according to the first aspect is implemented.
第五方面,本申请实施例提供了一种计算机程序,包括可执行指令,该可执行指令在被执行时,实现如上的方法。In a fifth aspect, embodiments of the present application provide a computer program, including executable instructions, which, when executed, implement the above method.
在本申请实施例中,通过基于惯性测量单元中加速度计的测量信息来确定拍摄装置在 特定方向上的位置改变量,使得可以基于该位置改变量来驱动拍摄装置跟焦或变焦,降低用户在特殊场景下实现跟焦操作或变焦操作时对操作经验的高依赖。此外,由于惯性测量单元可以配置有测量拍摄装置的姿态信息,使得无需为额外配置成本高昂的传感器来检测拍摄装置和拍摄对象之间的距离改变量,实现了惯性测量单元的复用。In the embodiment of the present application, the position change amount of the photographing device in a specific direction is determined based on the measurement information of the accelerometer in the inertial measurement unit, so that the photographing device can be driven to follow focus or zoom based on the position change amount, reducing the user's High reliance on operating experience when implementing follow focus operation or zoom operation in special scenarios. In addition, since the inertial measurement unit can be configured to measure the attitude information of the photographing device, there is no need to configure an additional costly sensor to detect the distance change between the photographing device and the photographing object, thereby realizing the multiplexing of the inertial measurement unit.
本申请的附加方面的优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本申请的实践了解到。Advantages of additional aspects of the present application will be set forth in part in the following description, in part will be apparent from the following description, or learned by practice of the present application.
附图说明Description of drawings
通过参照附图的以下详细描述,本申请实施例的上述和其他目的、特征和优点将变得更容易理解。在附图中,将以示例以及非限制性的方式对本申请的多个实施例进行说明,其中:The above and other objects, features and advantages of embodiments of the present application will become more readily understood from the following detailed description with reference to the accompanying drawings. In the accompanying drawings, various embodiments of the present application will be illustrated by way of example and not limitation, wherein:
图1为本申请实施例提供的拍摄控制方法、拍摄控制装置及云台组件的应用场景;1 is an application scenario of a shooting control method, a shooting control device, and a pan-tilt assembly provided by an embodiment of the present application;
图2为本申请另一实施例提供的拍摄控制方法、拍摄控制装置及云台组件的应用场景;FIG. 2 is an application scenario of a shooting control method, a shooting control device, and a pan-tilt assembly provided by another embodiment of the present application;
图3为本申请实施例提供的拍摄控制方法的流程示意图;3 is a schematic flowchart of a shooting control method provided by an embodiment of the present application;
图4为本申请实施例提供的改变镜片间距离来调整焦距的示意图;4 is a schematic diagram of adjusting the focal length by changing the distance between lenses according to an embodiment of the present application;
图5为本申请实施例提供的镜头的示意图;5 is a schematic diagram of a lens provided by an embodiment of the present application;
图6为本申请实施例提供的法兰的示意图;6 is a schematic diagram of a flange provided in an embodiment of the present application;
图7为dolly zoom实现原理的示意图;Figure 7 is a schematic diagram of the implementation principle of dolly zoom;
图8为本申请实施例提供的云台的结构示意图;8 is a schematic structural diagram of a PTZ provided by an embodiment of the present application;
图9为本申请实施例提供的特定方向的示意图;9 is a schematic diagram of a specific direction provided by an embodiment of the present application;
图10为本申请实施例提供的变焦电机的示意图;10 is a schematic diagram of a zoom motor provided by an embodiment of the application;
图11为本申请实施例提供的针对变焦电机的标定过程流程图;11 is a flowchart of a calibration process for a zoom motor provided by an embodiment of the present application;
图12为本申请实施例提供的针对变焦电机的标定过程示意图;12 is a schematic diagram of a calibration process for a zoom motor provided by an embodiment of the present application;
图13为本申请实施例提供的跟焦电机的示意图;13 is a schematic diagram of a follow focus motor provided by an embodiment of the application;
图14为本申请实施例提供的针对跟焦电机的标定过程流程图;14 is a flowchart of a calibration process for a follow focus motor provided by an embodiment of the present application;
图15为本申请实施例提供的针对跟焦电机的标定过程示意图;15 is a schematic diagram of a calibration process for a follow focus motor provided by an embodiment of the application;
图16为本申请实施例提供的夹角满足简化条件的示意图;16 is a schematic diagram of an included angle satisfying a simplified condition provided by an embodiment of the present application;
图17为本申请实施例提供的云台的框图;FIG. 17 is a block diagram of a PTZ provided by an embodiment of the present application;
图18为本申请实施例提供的云台组件的框图;以及FIG. 18 is a block diagram of a pan/tilt assembly provided by an embodiment of the present application; and
图19为本申请实施例提供的电机的原理图。FIG. 19 is a schematic diagram of a motor provided by an embodiment of the present application.
具体实施方式Detailed ways
下面详细描述本申请的实施例,实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本申请,而不能理解为对本申请的限制。Embodiments of the present application are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary, and are intended to be used to explain the present application, but should not be construed as a limitation to the present application.
需要说明的是,当组件被称为“固定于”另一个组件,它可以直接在另一个组件上或者也可以存在居中的组件。当一个组件被认为是“承载有”另一个组件,该另一个组件可以是承载在该组件的表面上,或者设置在该组件的内部,或者设置在该组件承载的其它组件的内部或表面。当一个组件被认为是“连接”另一个组件,它可以是直接连接到另一个 组件或者可能同时存在居中组件。It should be noted that when a component is referred to as being "fixed to" another component, it can be directly on the other component or there may also be a centered component. When a component is said to "carry" another component, the other component may be carried on a surface of the component, or disposed within the component, or disposed within or on the surface of other components that the component carries. When a component is considered to be "connected" to another component, it may be directly connected to the other component or there may also be an intervening component.
除非另有定义,本文所使用的所有的技术和科学术语与属于本申请的技术领域的技术人员通常理解的含义相同。本文中在本申请的说明书中所使用的术语只是为了描述具体的实施例的目的,不是旨在于限制本申请。本文所使用的术语“和/或”包括一个或多个相关的所列项目的任意的和所有的组合。术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个特征。Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the technical field to which this application belongs. The terms used herein in the specification of the application are for the purpose of describing specific embodiments only, and are not intended to limit the application. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items. The terms "first" and "second" are only used for descriptive purposes, and should not be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, features defined as "first", "second" may expressly or implicitly include one or more features.
以第三方拍摄装置为例,单反、微单相机的镜头有跟焦、变焦、光圈三个参数。跟焦功能可由自动跟焦镜头,或手动跟焦镜头加跟焦器(跟焦轮和跟焦电机等)实现。变焦镜头大部分是手动调节的,还有很多定焦镜头。Taking third-party shooting devices as an example, the lenses of SLR and mirrorless cameras have three parameters: follow focus, zoom, and aperture. The follow focus function can be achieved by an automatic follow focus lens, or a manual follow focus lens plus a follow focus device (follow focus wheel and follow focus motor, etc.). Most of the zoom lenses are manually adjusted, and there are many prime lenses.
例如,在进行Dolly Zoom拍摄时,相机相对目标对象前后匀速移动,同时均匀地缩小(放大)相机视场角(Field Of View,简称FOV),使得目标对象在画面地占比不变,而画面背景地物体会连续放大(缩小),可以达到诸如凸显目标对象主体地位的拍摄效果。For example, when shooting Dolly Zoom, the camera moves at a constant speed forward and backward relative to the target object, and at the same time evenly reduces (enlarges) the camera's Field Of View (FOV), so that the target object occupies the same proportion of the screen, while the screen The objects in the background will be continuously enlarged (reduced), which can achieve shooting effects such as highlighting the main position of the target object.
为了实现这一拍摄效果,要做到合焦,并且连续平滑变焦,一般由专业人员使用滑轨进行推轨(dolly)和连续手动变焦(zoom)进行拍摄,之后使用图像后处理软件进行后期制作才能实现,对于新手用户、单人操作来说很难拍出类似效果。例如,在单反、微单领域还没有实现光学变焦的自动实现方案。In order to achieve this shooting effect, it is necessary to achieve focus and continuous and smooth zooming. Generally, professionals use slide rails to dolly and continuous manual zooming (zoom) to shoot, and then use image post-processing software for post-production. It is difficult to achieve similar effects for novice users and single-person operations. For example, in the field of single-lens reflex camera and micro-single lens, there is no automatic realization scheme of optical zoom.
本申请的的实施例提供的拍摄控制方法、拍摄控制装置及云台组件,可以有效降低在进行上述运镜拍摄时对用户的操作经验的高要求,提升用户体验。The shooting control method, the shooting control device, and the pan/tilt assembly provided by the embodiments of the present application can effectively reduce the high requirements on the user's operating experience when performing the above-mentioned lens movement shooting, and improve the user experience.
需要说明的是,以上拍摄场景可以是针对人物拍摄、静景拍摄、动物拍摄、视频拍摄、电影拍摄、电视剧拍摄等的拍摄场景。以上场景仅为示例性说明,不能理解为对本申请的限制。例如,可以适用于多种需要进行跟焦操作和变焦操作中至少一种的操作。It should be noted that the above shooting scenes may be shooting scenes for people shooting, still scene shooting, animal shooting, video shooting, movie shooting, TV drama shooting, and the like. The above scenarios are only exemplary descriptions and should not be construed as limitations on the present application. For example, it can be applied to various operations that require at least one of a follow focus operation and a zoom operation.
为了便于更好地理解本申请的实施例,首先对相关技术中云台和基于云台的跟拍技术进行示例性说明。In order to facilitate a better understanding of the embodiments of the present application, an exemplary description of the gimbal and the tracking technology based on the gimbal in the related art will be given first.
云台的出现,不仅为拍照、录像过程提供了稳定的拍摄环境,为摄影爱好者提供了丰富的运镜可能性。例如,手持云台可以使得设置在其上的相机调整位姿以追踪目标对象。The appearance of the gimbal not only provides a stable shooting environment for taking pictures and video recordings, but also provides a wealth of possibilities for photographers to move the mirror. For example, a hand-held gimbal can cause the camera set on it to adjust the pose to track the target object.
本申请实施例提供的云台可以使得设置在其上的相机改变焦距以实现特定的视觉效果,如跟焦和Dolly Zoom效果等。此外,云台可以使得设置在其上的相机围绕偏航轴、俯仰轴和横滚轴中至少一个轴进行转动,以达到特定运镜拍摄效果。The pan/tilt provided by the embodiments of the present application can make the camera set on it change the focal length to achieve specific visual effects, such as follow focus and Dolly Zoom effects. In addition, the gimbal can make the camera arranged on it rotate around at least one of the yaw axis, the pitch axis and the roll axis, so as to achieve a specific lens movement shooting effect.
然而,用户使用云台实现跟焦和Dolly Zoom效果对用户的操作经验要求较高,初级用户常常会得不到想要的画面,在把持云台移动的过程中,无法把拍摄对象稳定地保持在画面的指定区域中。However, using the gimbal to achieve follow focus and Dolly Zoom effects requires a high level of user experience. Beginner users often cannot get the desired picture, and cannot keep the subject stably during the movement of the gimbal. in the designated area of the screen.
本申请实施例提供的拍摄控制方法、拍摄控制装置及云台组件,对于搭载手动变焦镜头的拍摄装置,通过惯性测量单元(Inertial Measurement Unit,简称IMU)(如云台上原有的IMU或外挂的IMU)输出的测量信息估算镜头相对于目标对象之间的距离改变量,根据距离改变量得到连续的变焦信息,由电机驱动手动变焦镜头基于该变焦信息进行变焦或跟焦,实现诸如dolly zoom等对应的运镜手法。让新手用户也能拍出电影级的拍摄效果,丰富拍摄手法和创作表达效果。For the shooting control method, shooting control device, and pan/tilt assembly provided by the embodiments of the present application, for a shooting device equipped with a manual zoom lens, an inertial measurement unit (Inertial Measurement Unit, IMU for short) (such as the original IMU on the pan/tilt or the external The measurement information output by the IMU) estimates the distance change between the lens and the target object, and obtains continuous zoom information according to the distance change. The motor-driven manual zoom lens performs zoom or follow focus based on the zoom information, to achieve such as dolly zoom, etc. Corresponding mirror movement method. It allows novice users to shoot film-level shooting effects, enriching shooting techniques and creative expression effects.
为了便于理解本申请的技术方案,以下结合图1~图19进行详细说明。In order to facilitate the understanding of the technical solutions of the present application, detailed descriptions are given below with reference to FIGS. 1 to 19 .
图1为本申请实施例提供的拍摄控制方法、拍摄控制装置及云台组件的应用场景。FIG. 1 is an application scenario of a shooting control method, a shooting control device, and a pan/tilt assembly provided by an embodiment of the present application.
相关技术中为了实现在拍摄装置逐渐接近如图1所示的男主角的过程中,男主角的图像在拍摄图像中的占比保持不变(位置也可以保持不变),但是拍摄图像的背景发生变化,需要两个或更多个用户借助诸如推轨和通过摄影师的连续变焦操作来实现。In the related art, in order to realize that the proportion of the image of the hero in the photographed image remains unchanged (the position may also remain unchanged) during the process of the photographing device gradually approaching the hero as shown in FIG. 1, the background of the photographed image remains unchanged. A change occurs that requires two or more users to do so by means of continuous zooming operations such as track push and through the photographer.
如图1所示,本申请的实施例中,无需多个用户共同配合以实现诸如Dolly Zoom效果。用户可以借助云台和设置在云台上的电机来实现上述拍摄效果。例如,用户在控制云台接近男主角的同时,控制云台承载的电机驱动镜头同步变焦。其中,变焦的焦距改变量可以是基于云台的位置改变量来确定的,焦距改变量和云台的位置改变量之间的对应关系可以是通过计算和/或标定来确定的。As shown in FIG. 1 , in the embodiment of the present application, it is not necessary to cooperate with multiple users to achieve effects such as Dolly Zoom. The user can achieve the above shooting effect with the help of the gimbal and the motor set on the gimbal. For example, while controlling the gimbal to approach the male protagonist, the user controls the motor carried by the gimbal to drive the lens to zoom synchronously. Wherein, the focal length change amount of the zoom may be determined based on the position change amount of the gimbal, and the corresponding relationship between the focal length change amount and the position change amount of the gimbal may be determined by calculation and/or calibration.
需要说明的是,图1中云台可以是手持云台或可移动平台搭载的云台,云台上承载有拍摄装置,该拍摄装置可以具有焦距调节部件。It should be noted that the pan/tilt in FIG. 1 may be a handheld pan/tilt or a pan/tilt mounted on a movable platform, and the pan/tilt carries a photographing device, and the photographing device may have a focus adjustment component.
例如,手持云台可以包括支架和手柄等。其中,支架可以包括配套的电机和轴臂,电机用于驱动轴臂旋转,以驱动拍摄装置的运动。For example, a handheld pan/tilt head may include a stand, a handle, and the like. Wherein, the bracket may include a matching motor and a shaft arm, and the motor is used to drive the shaft arm to rotate, so as to drive the movement of the photographing device.
云台可以包括但不限于针对单轴或多轴的姿态可调结构,用于将拍摄装置固定在手持部上。例如,该云台允许拍摄装置相对于手持部发生位移,或者,沿着一个或多个轴转动,如云台允许拍摄装置沿着俯仰轴、航向轴和横滚轴中一个轴或多个轴的结合平移运动。又例如,云台可以允许拍摄装置围绕俯仰轴、航向轴和横滚轴中的一个或多个轴转动。其中云台和手持部之间可以具有联动换算关系,如手持部发生的第一运动(如移动或转动)可以换算成云台发生的第二运动。反之亦然。The pan/tilt head may include, but is not limited to, a single-axis or multi-axis attitude-adjustable structure for fixing the photographing device on the hand-held part. For example, the gimbal allows the camera to be displaced relative to the handpiece, or rotated along one or more axes, such as the gimbal allows the camera to move along one or more of the pitch, pan, and roll axes combined translational motion. As another example, the pan/tilt head may allow the camera to rotate about one or more of a pitch axis, a pan axis, and a roll axis. There may be a linkage conversion relationship between the gimbal and the hand-held part, for example, the first movement (such as movement or rotation) of the hand-held part can be converted into the second movement of the gimbal. vice versa.
此外,云台上还可以包括传感系统。传感系统可以包括一个或者多个传感器,以感测空间方位、速度及/或加速度(如相对于多达三个自由度的旋转及平移)。一个或者多个传感器包括但不限于GPS传感器、运动传感器、惯性测量单元或者影像传感器。传感系统提供的感测数据可以用于控制拍摄装置的位姿、速度及/或加速度等。可选地,传感系统可以用于检测云台的环境的数据,如气候条件、人造结构的位置等。In addition, a sensor system may also be included on the gimbal. The sensing system may include one or more sensors to sense spatial orientation, velocity, and/or acceleration (eg, rotation and translation with respect to up to three degrees of freedom). The one or more sensors include, but are not limited to, GPS sensors, motion sensors, inertial measurement units, or image sensors. The sensing data provided by the sensing system can be used to control the pose, speed and/or acceleration of the photographing device. Optionally, a sensing system may be used to detect data about the environment of the gimbal, such as climatic conditions, the location of man-made structures, and the like.
此外,云台上还可以包括通讯系统。通讯系统能够实现云台与具有通讯系统的控制终端通过有线或无线收发的信号进行通讯。通讯系统可以包括任何数量的用于无线通讯的发送器、接收器、及/或收发器。通讯可以是单向通讯,这样数据可以从一个方向发送。例如,单向通讯可以包括,只有云台传送数据给拍摄装置,或者反之亦然。通讯系统的一个或者多个发送器可以发送数据给通讯系统的一个或者多个接收器,反之亦然。可选地,通讯可以是双向通讯,这样,数据可以在云台与拍摄装置之间在两个方向传输。双向通讯包括通讯系统的一个或者多个发送器可以发送数据给通讯系统的一个或者多个接收器,及反之亦然。来自云台的控制数据可以控制其承载的拍摄装置或者其它影像捕获设备的操作(捕获静止或者运动的影像、变焦、开启或关闭、切换成像模式、改变影像分辨率、改变焦距、改变景深、改变曝光时间、改变可视角度或者视场)。In addition, the PTZ may also include a communication system. The communication system can realize the communication between the PTZ and the control terminal with the communication system through wired or wireless signals sent and received. A communication system may include any number of transmitters, receivers, and/or transceivers for wireless communication. Communication can be one-way communication, so that data can be sent from one direction. For example, one-way communication may include that only the pan/tilt transmits data to the camera, or vice versa. One or more transmitters of the communication system may transmit data to one or more receivers of the communication system, and vice versa. Optionally, the communication may be two-way communication, so that data can be transmitted in both directions between the pan/tilt and the camera. Two-way communication includes that one or more transmitters of the communication system can send data to one or more receivers of the communication system, and vice versa. Control data from the pan/tilt can control the operation of the camera or other image capture device it carries (capture still or moving images, zoom, turn on or off, switch imaging modes, change image resolution, change focus, change depth of field, change exposure time, changing the viewing angle or field of view).
可移动平台搭载云台的场景中,可移动平移还可以与控制终端相连,在某些实施例中,控制终端可以与云台或拍摄装置相连,控制终端可以向云台及拍摄装置中的一个或者多个提供控制指令,并且从云台及拍摄装置中的一个或者多个中接收信息(如承载体或者拍摄装置的位置及/或运动信息,拍摄装置感测的数据,如的影像数据)。在某些实施例中,控制终端的控制数据可以包括关于位置、运动、制动的指令,或者对云台及/或拍摄装置的 控制。例如,控制数据可以导致承载体位置及/或方向的改变。控制终端的控制数据可以控制拍摄装置或者其它影像捕获设备的操作(捕获静止或者运动的影像、变焦、开启或关闭、切换成像模式、改变影像分辨率、改变焦距、改变景深、改变曝光时间、改变可视角度或者视场)。在某些实施例中,对云台及/或拍摄装置的通讯可以包括一个或者多个传感器发出的信息。通讯可以包括从一个或者多个不同类型的传感器(如GPS传感器、运动传感器、惯性传感器、近程传感器或者影像传感器)传送的感应信息。感应信息是关于对云台及/或拍摄装置的位置(如方向、位置)、运动、或者加速度。从拍摄装置传送的感应信息包括拍摄装置捕获的数据或者拍摄装置的状态。控制终端传送提供的控制数据可以用于控制云台或者拍摄装置中一个或者多个的状态。可选地,云台及拍摄装置中一个或多个可以包括通讯模块,用于与控制终端通讯,以便控制终端可以单独地通讯或者控制云台及拍摄装置。其中,控制终端可以为云台的遥控器,也可以为诸如手机、iPad、可穿戴电子设备等能够用于控制云台的智能电子设备。In the scenario where the movable platform is equipped with a PTZ, the movable pan can also be connected to the control terminal. In some embodiments, the control terminal can be connected to the PTZ or the photographing device, and the control terminal can connect to one of the PTZ and the photographing device. or more provide control commands, and receive information from one or more of the pan/tilt and the camera (such as the position and/or motion information of the carrier or the camera, data sensed by the camera, such as the image data of the camera) . In some embodiments, the control data of the control terminal may include instructions on position, motion, braking, or control of the pan/tilt and/or camera. For example, the control data may cause a change in the position and/or orientation of the carrier. The control data of the control terminal can control the operation of the camera or other image capture devices (capturing still or moving images, zooming, turning on or off, switching imaging modes, changing image resolution, changing focal length, changing depth of field, changing exposure time, changing viewing angle or field of view). In some embodiments, communications to the pan/tilt and/or camera may include information from one or more sensors. Communication may include sensory information transmitted from one or more different types of sensors, such as GPS sensors, motion sensors, inertial sensors, proximity sensors, or image sensors. The sensing information is about the position (eg, orientation, position), motion, or acceleration of the gimbal and/or the camera. The sensing information transmitted from the camera includes data captured by the camera or the status of the camera. The control data transmitted and provided by the control terminal can be used to control the state of one or more of the pan/tilt or the photographing device. Optionally, one or more of the pan/tilt and the photographing device may include a communication module for communicating with the control terminal, so that the control terminal can communicate or control the pan/tilt and the photographing device individually. The control terminal may be a remote controller of the PTZ, or may be an intelligent electronic device such as a mobile phone, an iPad, a wearable electronic device, etc., which can be used to control the PTZ.
需要说明的是,控制终端可以远离云台,以实现对云台的远程控制,可以固定或可拆卸地设于云台上,具体可以根据需要进行设置。It should be noted that the control terminal can be far away from the gimbal to realize remote control of the gimbal, and can be fixed or detachable on the gimbal, and can be set as required.
在某些实施例中,云台可以与除了控制终端之外的其它远程设备,或者非控制终端的远程设备通讯。控制终端也可以与另外一个远程设备及云台进行通讯。例如,云台及/或控制终端可以与另一个可移动平台或者另一个可移动平台的承载体或拍摄装置通讯。当有需要的时候,另外的远程设备可以是第二终端或者其它计算设备(如计算机、桌上型电脑、平板电脑、智能手机、或者其它移动设备)。该远程设备可以向云台传送数据,从云台接收数据,传送数据给控制终端,及/或从控制终端接收数据。可选地,该远程设备可以连接到因特网或者其它电信网络,以使从云台及/或控制终端接收的数据上传到网站或者服务器上。In some embodiments, the pan-tilt can communicate with other remote devices other than the control terminal, or with remote devices other than the control terminal. The control terminal can also communicate with another remote device and PTZ. For example, the pan/tilt and/or the control terminal may communicate with another movable platform or a carrier or a camera of another movable platform. When desired, the additional remote device may be a second terminal or other computing device (eg, a computer, desktop, tablet, smartphone, or other mobile device). The remote device may transmit data to the pan/tilt, receive data from the pan/tilt, transmit data to the control terminal, and/or receive data from the control terminal. Optionally, the remote device may be connected to the Internet or other telecommunication network to allow data received from the pan-tilt and/or control terminal to be uploaded to a website or server.
图2为本申请另一实施例提供的拍摄控制方法、拍摄控制装置及云台组件的应用场景。如图2所示,以可以承载第三方拍摄装置的云台为例进行说明。需要说明的是,拍摄装置、电机也可以是与云台一体的,在此不做限定。FIG. 2 is an application scenario of a shooting control method, a shooting control device, and a pan/tilt assembly provided by another embodiment of the present application. As shown in FIG. 2 , a gimbal capable of carrying a third-party photographing device is taken as an example for description. It should be noted that the photographing device and the motor may also be integrated with the gimbal, which is not limited here.
图2中位于右侧的新手摄影用户,手持云台对图2中位于左侧的用户进行图像拍摄,由于新手摄影用户的拍摄技巧不够熟练,很容易在拍摄的过程中发生非自主的晃动,这容易导致拍摄图像中左侧的用户的图像不清晰,达不到用户期望效果。The novice photographer on the right in Figure 2 shoots the image of the user on the left in Figure 2 by holding the gimbal. Because the novice photographer is not skilled enough in shooting, it is easy to shake involuntarily during the shooting process. This easily results in an unclear image of the user on the left in the captured image, which fails to achieve the desired effect of the user.
如图2所示,本申请的实施例中,新手拍摄用户可以借助云台和设置在云台上的电机来驱动镜头跟焦,如基于云台检测到的位置改变量来确定焦距改变量,驱动电机针对该焦距改变量进行补偿,实现跟焦效果。例如,云台检测到的拍摄装置的位置改变量可以是通过IMU输出的测量信息来确定的。焦距改变量可以基于拍摄装置的位置改变量来确定的。焦距改变量和云台的位置改变量之间的对应关系可以是通过计算和/或标定来确定的。As shown in FIG. 2 , in the embodiment of the present application, a novice shooting user can drive the lens to follow focus with the help of a gimbal and a motor set on the gimbal, such as determining the focal length change based on the position change detected by the gimbal, The drive motor compensates for the change in the focal length to achieve a follow focus effect. For example, the position change amount of the photographing device detected by the gimbal may be determined through measurement information output by the IMU. The amount of change in focus may be determined based on the amount of change in the position of the photographing device. The corresponding relationship between the focal length change amount and the position change amount of the pan/tilt head may be determined by calculation and/or calibration.
图3为本申请实施例提供的拍摄控制方法的流程示意图。FIG. 3 is a schematic flowchart of a shooting control method provided by an embodiment of the present application.
如图3所示,该拍摄控制方法可以包括操作S302~操作S304。As shown in FIG. 3 , the photographing control method may include operations S302 to S304.
在操作S302,通过惯性测量单元中加速度计的测量信息,确定拍摄装置在特定方向上的位置改变量。In operation S302, the amount of position change of the photographing device in a specific direction is determined through the measurement information of the accelerometer in the inertial measurement unit.
其中,该拍摄控制方法可以用于云台,云台承载有拍摄装置和惯性测量单元,惯性测量单元(IMU)用于测量拍摄装置的姿态信息。该拍摄控制方法可以用于拍摄装置,如拍 摄装置中具有IMU。该拍摄控制方法可以用于电机,如电机中具有IMU或者电机设置在云台上(以接收来自云台上IMU的测量数据)。IMU是测量物体三轴姿态角(或角速率)以及加速度的装置。IMU内可以设置有三轴陀螺仪和三轴加速度计,通过测量物体在三维空间的角速度和加速度解算出物体的姿态。Wherein, the photographing control method can be used in a pan/tilt head, where the pan/tilt head carries a photographing device and an inertial measurement unit, and the inertial measurement unit (IMU) is used to measure the attitude information of the photographing device. The shooting control method can be used in a shooting device, such as an IMU in the shooting device. The shooting control method can be used for a motor, for example, the motor has an IMU or the motor is set on the gimbal (to receive measurement data from the IMU on the gimbal). IMU is a device that measures the three-axis attitude angle (or angular rate) and acceleration of an object. A three-axis gyroscope and a three-axis accelerometer can be set in the IMU, and the attitude of the object can be calculated by measuring the angular velocity and acceleration of the object in three-dimensional space.
例如,惯性测量单元可以包括陀螺仪和/或加速度计,陀螺仪可以用于确定云台的角加速度信息,加速度计可以用于确定云台的加速度信息。由于拍摄装置和云台之间可以是相互固定的,可以用云台的角加速度信息和加速度信息来表征拍摄装置的姿态信息和加速度信息。For example, the inertial measurement unit may include a gyroscope and/or an accelerometer, the gyroscope may be used to determine the angular acceleration information of the gimbal, and the accelerometer may be used to determine the acceleration information of the gimbal. Since the photographing device and the gimbal can be fixed to each other, the angular acceleration information and acceleration information of the gimbal can be used to represent the attitude information and acceleration information of the photographing device.
以手持云台为例,通过IMU来解算出其搭载的相机的姿态,进行增稳、跟随的控制。除了解算相机的姿态,通过对加速度做两次积分,云台原有的IMU也可用来做位移的计算。Taking the hand-held gimbal as an example, the IMU is used to calculate the posture of the camera mounted on it, and to perform stabilization and follow-up control. In addition to solving the attitude of the camera, by integrating the acceleration twice, the original IMU of the gimbal can also be used to calculate the displacement.
在一个实施例中,特定方向可以指拍摄装置和拍摄对象之间连线的方向,此时,拍摄装置在特定方向上的位置改变量就可以作为拍摄装置和拍摄对象之间的位置改变量。在一个实施例中,特定方向可以指在某个特定历史时刻下拍摄装置和拍摄对象之间连线的方向,例如,在该特定历史时刻之后,拍摄装置相对于拍摄对象发生了包括横向位移的移动,则拍摄装置发生的移动距离可以投影至:在该某个特定历史时刻下拍摄装置和拍摄对象之间连线的方向上,得到拍摄装置相对于拍摄对象在特定方向上的位置改变量。In one embodiment, the specific direction may refer to the direction of the line connecting the photographing device and the photographing object. In this case, the position change amount of the photographing device in the specific direction may be used as the position changing amount between the photographing device and the photographing object. In one embodiment, the specific direction may refer to the direction of the line connecting the photographing device and the photographing object at a specific historical moment, for example, after the specific historical moment, the photographing device has undergone a lateral displacement relative to the photographing object. If moving, the moving distance of the photographing device can be projected to the direction of the connection line between the photographing device and the photographing object at the certain historical moment, to obtain the position change amount of the photographing device relative to the photographing object in a specific direction.
在操作S304,根据位置改变量控制拍摄装置进行跟焦或变焦操作。In operation S304, the photographing apparatus is controlled to perform a follow focus or zoom operation according to the position change amount.
在本实施例中,位置改变量可以作为拍摄对象相对于某个镜头的物距改变量,基于该物距改变量可以确定针对该某个镜头的像距改变量,进而基于该相距改变量来控制拍摄装置进行跟焦操作,以实现跟焦效果;或者基于该相距改变量来控制拍摄装置进行变焦操作,以实现诸如Dolly Zoom效果。In this embodiment, the position change amount can be used as the object distance change amount of the shooting object relative to a certain lens, and the image distance change amount for the certain lens can be determined based on the object distance change amount, and then based on the distance change amount Control the photographing device to perform a follow focus operation to achieve a follow focus effect; or control the photographing device to perform a zoom operation based on the distance change amount to achieve an effect such as Dolly Zoom.
需要说明的是,拍摄对象可以是静止的,如当拍摄对象是静止的时候,可以仅依靠IMU来解算拍摄装置的位置改变量来确定拍摄对象相对于拍摄装置之间距离的改变量。此外,拍摄对象也可以是移动的,此时,可以基于IMU解算的拍摄装置的位置改变量,来优化其它方式确定的拍摄对象相对于拍摄装置之间距离的改变量。It should be noted that the photographing object may be stationary. For example, when the photographing object is stationary, the change amount of the distance between the photographing object relative to the photographing device may be determined only by relying on the IMU to calculate the position change of the photographing device. In addition, the photographing object may also be moving. In this case, the change amount of the photographing object relative to the distance between the photographing devices determined in other ways may be optimized based on the position change amount of the photographing device calculated by the IMU.
例如,相关技术中还可以通过如下方式确定拍摄对象相对于拍摄装置之间距离的改变量。以对焦场景为例,可以通过飞行时间法(Time of flight,简称TOF)进行目标测距、通过画面对比度进行对焦位置搜索(简称CDAF)、或者通过PDAF像素点对对角位置进行测量和预估,实现对焦控制。For example, in the related art, the amount of change of the distance between the photographing object relative to the photographing device can also be determined in the following manner. Taking the focus scene as an example, the target ranging can be measured by Time of Flight (TOF), the focus position can be searched by screen contrast (CDAF), or the diagonal position can be measured and estimated by PDAF pixels. , to achieve focus control.
以拍摄对象是移动的场景为例进行示例性说明。An exemplary description is made by taking a scene in which the subject is moving as an example.
TOF需要配备专用的距离检测装置,成本较高;部分云台上没有设置该装置,需要新增相应的距离检测装置;TOF的帧率较低,如可以是10fps,可能导致一些关键帧缺失相机到目标间的相对距离变化量,无法满足跟焦或变焦场景下的需求。TOF needs to be equipped with a dedicated distance detection device, which is costly; some PTZs are not equipped with this device, and a corresponding distance detection device needs to be added; the frame rate of TOF is low, such as 10fps, which may cause some key frames to be missing from the camera The relative distance change to the target cannot meet the needs of follow focus or zoom scenarios.
CDAF法与画面刷新频率相同,但需要消耗较多的计算资源;需要多帧收敛;并且有明显的呼吸效应,无法很好地满足一些场景下对跟焦或变焦的操作要求。The CDAF method has the same refresh rate as the screen, but consumes more computing resources; requires multi-frame convergence; and has obvious breathing effects, which cannot well meet the operational requirements for follow focus or zooming in some scenarios.
PDAF法与画面刷新频率相同,但对于光照强度有一定要求,无法满足光照不佳时跟焦或变焦场景下的需求。The PDAF method has the same refresh rate as the screen, but has certain requirements for light intensity, which cannot meet the needs of follow-focus or zoom scenarios when the light is poor.
本申请实施例可以基于IMU解算的拍摄装置的位置改变量,来优化诸如TOF、CDAF 或PDAF等在一些场景下的测距效果。The embodiments of the present application can optimize the ranging effect in some scenarios, such as TOF, CDAF, or PDAF, based on the position change amount of the photographing device calculated by the IMU.
例如,首先,对焦系统通过TOF或CDAF等取得准确的对焦。在对焦成功的基础上,假设目标不运动,或者拍摄者的运动占主要运动因素,此时,使用IMU或IMU和视觉惯性里程计(Visual Inertial Odometry,简称VIO)获得高帧率的相机位置变化量。For example, first, the focusing system achieves accurate focusing through TOF or CDAF or the like. On the basis of successful focusing, it is assumed that the target does not move, or the movement of the photographer is the main moving factor. At this time, use IMU or IMU and Visual Inertial Odometry (Visual Inertial Odometry, referred to as VIO) to obtain high frame rate camera position changes quantity.
将计算得出的相机位置变化量,用于估算相机到目标间的相对距离变化量,用于对对焦系统的结果进行微调(如对缺失相机到目标间的相对距离变化量的关键帧的上一帧或之前最新的相对距离变化量进行微调,以预测与该关键帧对应的相机到目标间的相对距离变化量。The calculated camera position change is used to estimate the relative distance change between the camera and the target, and used to fine-tune the results of the focusing system (such as the upper part of the key frame that lacks the relative distance change between the camera and the target). A frame or the latest relative distance change is fine-tuned to predict the relative distance change between the camera and the target corresponding to the key frame.
这样便可以在没有距离观测的关键帧间,对对角位置进行预估可控制。This makes it possible to predict and control the diagonal position between keyframes without distance observations.
在一个实施例中,根据位置改变量控制拍摄装置跟焦或变焦包括:根据位置改变量控制与拍摄装置的镜头啮合的电机来驱动镜头进跟焦或变焦。In one embodiment, controlling the camera to follow focus or zoom according to the position change amount includes: controlling a motor engaged with the lens of the camera device to drive the lens to follow focus or zoom according to the position change amount.
为了便于理解本申请的实施例,以下对镜头变焦原理进行示例性说明。In order to facilitate the understanding of the embodiments of the present application, the principle of lens zoom is exemplarily described below.
图4为本申请实施例提供的改变镜片间距离来调整焦距的示意图。FIG. 4 is a schematic diagram of adjusting the focal length by changing the distance between lenses according to an embodiment of the present application.
如图4,变焦镜头一般由3~4组透镜群(如L1、L2和L3)组成,本申请实施例可以通过电机输出力矩,转动变焦环或跟焦环,驱动透镜群运动,透镜群相对位置的改变将改变镜头整体的等效焦距。根据不同的镜头光学设计,移动的透镜群可能不同,透镜群移动的距离与焦距变化的关系可能不同,这时只需改变这个映射关系,本实施例同样适用。如图4中,通过移动中间的凹透镜L2来改变焦距f,焦距f和透镜L2的位置x可认为是线性关系,如式(1)所示。As shown in Figure 4, a zoom lens is generally composed of 3-4 groups of lens groups (such as L1, L2 and L3). In this embodiment of the present application, the zoom ring or the follow focus ring can be rotated through the motor output torque to drive the movement of the lens groups. A change in position will change the equivalent focal length of the lens as a whole. Depending on the optical design of the lens, the moving lens groups may be different, and the relationship between the moving distance of the lens group and the change of the focal length may be different. In this case, only the mapping relationship needs to be changed, and this embodiment is also applicable. As shown in FIG. 4 , by moving the middle concave lens L2 to change the focal length f, the focal length f and the position x of the lens L2 can be considered as a linear relationship, as shown in formula (1).
x=k 1*f+b 1    式(1) x=k 1 *f+b 1 Formula (1)
其中,k 1、b 1是与机械结构、透镜群参数相关的待定常数。电机通过齿轮啮合驱动变焦环转动或者驱动跟焦环转动。 Among them, k 1 and b 1 are undetermined constants related to the mechanical structure and lens group parameters. The motor drives the zoom ring to rotate or drives the follow focus ring to rotate through gear meshing.
上述映射关系可以是通过标定和/或计算得到的。The above-mentioned mapping relationship may be obtained by calibration and/or calculation.
在一个实施例中,根据位置改变量控制与拍摄装置的镜头啮合的电机来驱动镜头改变焦距包括:根据位置改变量和映射关系控制与拍摄装置的镜头啮合的电机来驱动镜头改变焦距,其中,映射关系表征位置改变量与电机的转子位置之间的关系。In one embodiment, controlling the motor engaged with the lens of the photographing device to drive the lens to change the focal length according to the position change amount includes: controlling the motor engaged with the lens of the photographing device to drive the lens to change the focal length according to the position change amount and the mapping relationship, wherein, The mapping relationship represents the relationship between the amount of position change and the rotor position of the motor.
图5为本申请实施例提供的镜头的示意图。FIG. 5 is a schematic diagram of a lens provided by an embodiment of the present application.
如图5所示,镜头内部有螺纹,并且设置有跟焦环、变焦环,以调节镜头的透镜组的前后距离。镜头的对焦或跟焦一般是保持拍摄对象的位置和拍摄装置的相机本体的焦平面位置均不变,通过电机转动拍摄装置的镜头的跟焦环或变焦环。在跟焦的过程中,镜头内壁的螺纹将转动的旋转角度转换成镜头的透镜组的前后平移距离,相当于在拍摄装置与拍摄对象之间的实时距离保持不变的情况下,用跟焦器电机驱动镜头转动,调整物距d和像距f使拍摄画面合焦。也即对焦过程中,拍摄装置与拍摄对象之间的实时距离与跟焦器电机的转子的目标转动位置之间具有一一对应的关系,跟焦器电机的转子的目标转动位置与镜头的透镜组的位置也具有一一对应的关系,根据拍摄装置与拍摄对象之间的距离改变量可以确定与该距离改变量相对应的器电机的转子的目标转动位置,进而可以通过将电机的转子转动至目标转动位置,使镜头移动到目标位置实现对焦,使拍摄对象在拍摄装置的拍摄画面中处于合焦状态。在变焦的过程中,通过电机调整变焦环的过程与上述对焦过程相类似,在此不再赘述。As shown in Figure 5, the lens has threads inside, and is provided with a focus ring and a zoom ring to adjust the front and rear distances of the lens group of the lens. The focus or follow focus of the lens is generally to keep the position of the photographed object and the position of the focal plane of the camera body of the photographing device unchanged, and the follow focus ring or the zoom ring of the lens of the photographing device is rotated by a motor. In the process of follow focus, the thread on the inner wall of the lens converts the rotation angle of rotation into the front and rear translation distance of the lens group of the lens, which is equivalent to using follow focus when the real-time distance between the shooting device and the subject remains unchanged. The camera motor drives the lens to rotate, and adjusts the object distance d and image distance f to make the shooting picture in focus. That is, during the focusing process, there is a one-to-one correspondence between the real-time distance between the shooting device and the subject and the target rotational position of the rotor of the follow focus motor, and the target rotational position of the rotor of the follow focus motor and the lens of the lens. The position of the group also has a one-to-one correspondence. According to the distance change between the shooting device and the object, the target rotation position of the rotor of the motor corresponding to the distance change can be determined, and then the rotor of the motor can be rotated. To the target rotation position, the lens is moved to the target position to achieve focusing, so that the subject is in a state of focus in the shooting screen of the shooting device. During the zooming process, the process of adjusting the zoom ring by the motor is similar to the above-mentioned focusing process, and will not be repeated here.
此外,镜头还可以包括用于调整光圈的光圈环。需要说明的是,用于驱动跟焦环的电机和用于驱动变焦环的电机可以分别设置在云台上的不同位置,如分别设置在拍摄装置的两侧,以达到载荷的平均分布。In addition, the lens may also include an aperture ring for adjusting the aperture. It should be noted that the motor for driving the follow focus ring and the motor for driving the zoom ring can be set at different positions on the gimbal, for example, on both sides of the photographing device, so as to achieve an even distribution of the load.
图6为本申请实施例提供的法兰的示意图。FIG. 6 is a schematic diagram of a flange provided in an embodiment of the present application.
如图6所示,以跟焦环为例,跟焦环驱动透镜运动的方式可以是如图6所示的凸轮筒结构。As shown in FIG. 6 , taking the follow focus ring as an example, the manner in which the follow focus ring drives the movement of the lens may be the cam barrel structure as shown in FIG. 6 .
跟焦电机转子位置motor_position和焦距f为线性关系,如式(2)所示。The focus motor rotor position motor_position and the focal length f have a linear relationship, as shown in formula (2).
motor_position=k 2*f+b 2    式(2) motor_position=k 2 *f+b 2 Formula (2)
其中,k 2、b 2是与凸轮筒结构参数、电机齿轮减速比相关的常数。通过控制电机转子位置motor_position即可控制镜头的焦距。 Among them, k 2 and b 2 are constants related to the structural parameters of the cam cylinder and the gear reduction ratio of the motor. The focal length of the lens can be controlled by controlling the motor rotor position motor_position.
理论上通过加速度数据积分可得速度,再次积分可得位移。如果使用性能好的IMU可以直接得到准确的位移量,用于变焦控制,而低成本的加速度计不可避免有漂移误差、偏移(bias)游走等问题,位移量计算会不准确。In theory, the velocity can be obtained by integrating the acceleration data, and the displacement can be obtained by integrating again. If an IMU with good performance is used, an accurate displacement can be directly obtained for zoom control, while low-cost accelerometers inevitably have problems such as drift error and bias wandering, and the displacement calculation will be inaccurate.
本实施例中预设焦距f、电机转子位置motor_position、相机到拍摄对象的距离d之间为线性关系,并在拍摄前通过标定确定线性关系的系数,加速度计的bias游走和漂移问题在标定过程中会被标定到线性映射的系数中。加速度两次积分得到的距离可以不必完全精确,只需要线性变化即可,对传感器信号的容忍度较高。In this embodiment, there is a linear relationship between the preset focal length f, the motor rotor position motor_position, and the distance d from the camera to the shooting object, and the coefficient of the linear relationship is determined by calibration before shooting. The process will be scaled to the coefficients of the linear map. The distance obtained by integrating the acceleration twice does not need to be completely accurate, but only needs to change linearly, and the tolerance to the sensor signal is high.
下面给出距离计算原理。通过矢量旋转,将传感器坐标系下测量到的加速度值旋转到地理坐标系,如式(3)所示。The principle of distance calculation is given below. Through vector rotation, the acceleration value measured in the sensor coordinate system is rotated to the geographic coordinate system, as shown in formula (3).
Figure PCTCN2021072468-appb-000001
Figure PCTCN2021072468-appb-000001
其中,
Figure PCTCN2021072468-appb-000002
是传感器系到地理系的旋转矩阵。
Figure PCTCN2021072468-appb-000003
是传感器系下的传感器测量向量。
Figure PCTCN2021072468-appb-000004
是地理系下的传感器测量向量,当运动只包含平移时,减去重力加速度g,即得到平移的加速度。
in,
Figure PCTCN2021072468-appb-000002
is the rotation matrix of the sensor system to the geographic system.
Figure PCTCN2021072468-appb-000003
is the sensor measurement vector under the sensor system.
Figure PCTCN2021072468-appb-000004
is the sensor measurement vector under the geographic system. When the motion only includes translation, subtract the gravitational acceleration g to obtain the translational acceleration.
当加速度计从静止开始积分时,初始速度vel(0)=0,移动速度如式(4)所示。When the accelerometer starts to integrate from rest, the initial velocity vel(0)=0, and the moving velocity is shown in equation (4).
Figure PCTCN2021072468-appb-000005
Figure PCTCN2021072468-appb-000005
其中acc为平移的加速度,vel为相机移动速度,相机到拍摄对象的距离可表示为如式(5)所示。Among them, acc is the acceleration of translation, vel is the moving speed of the camera, and the distance from the camera to the object can be expressed as shown in formula (5).
d=Δd+d 0   式(5) d=Δd+d 0 Formula (5)
其中,Δd为位置变化量,
Figure PCTCN2021072468-appb-000006
d 0为开始积分时相机到拍摄对象的距离,d为相机到拍摄对象的距离。通过加速度数据可以实时计算Δd,但初始距离和拍摄场景有关。
Among them, Δd is the position change,
Figure PCTCN2021072468-appb-000006
d 0 is the distance from the camera to the subject when the integration starts, and d is the distance from the camera to the subject. Δd can be calculated in real time through acceleration data, but the initial distance is related to the shooting scene.
图7为dolly zoom实现原理的示意图。Figure 7 is a schematic diagram of the implementation principle of dolly zoom.
如图7所示,dolly zoom在保证实时准确跟焦的基础上,根据相机到拍摄对象距离的变化,平滑地进行变焦,使得拍摄对象在画面中固定不变,背景却能连续缩放。在跟焦准确的基础上,本实施例中dolly zoom的实现原理如图7所示。As shown in Figure 7, on the basis of ensuring real-time and accurate focus, dolly zoom smoothly zooms according to the change in the distance between the camera and the subject, so that the subject is fixed in the picture, but the background can be continuously zoomed. On the basis of accurate follow focus, the implementation principle of dolly zoom in this embodiment is shown in FIG. 7 .
如图7,在物距d变化连续变化过程中,在保证画面跟焦准确的基础上,根据物距d进行实时变焦,使得拍摄对象像宽frame_width在相机传感器中的大小不变,而两边缘的背景会发生连续缩放。As shown in Figure 7, in the process of continuous change of the object distance d, on the basis of ensuring the accurate follow-focus of the picture, real-time zooming is performed according to the object distance d, so that the size of the object image width frame_width in the camera sensor remains unchanged, while the two edges The background is continuously scaled.
物距d可由IMU获得的加速度积分两次得到。The object distance d can be obtained by integrating the acceleration obtained by the IMU twice.
例如,根据相似三角形可得像距f的表达式可以如式(6)所示。For example, the expression of the image distance f that can be obtained from similar triangles can be as shown in Equation (6).
Figure PCTCN2021072468-appb-000007
Figure PCTCN2021072468-appb-000007
因此,电机转子位置motor_position可以表达为如式(7)所示。Therefore, the motor rotor position motor_position can be expressed as shown in equation (7).
Figure PCTCN2021072468-appb-000008
Figure PCTCN2021072468-appb-000008
由于,d=Δd+d 0,则可以将电机转子位置motor_position可以表达为如式(8)所示。 Since, d=Δd+d 0 , the motor rotor position motor_position can be expressed as shown in formula (8).
Figure PCTCN2021072468-appb-000009
Figure PCTCN2021072468-appb-000009
在一次具体的拍摄中,上式括号中的两项都为常数,记为k 3,b 3,如式(9)所示。 In a specific shooting, the two terms in the parentheses of the above formula are constants, denoted as k 3 , b 3 , as shown in formula (9).
Figure PCTCN2021072468-appb-000010
Figure PCTCN2021072468-appb-000010
基于上述计算过程,电机转子位置motor_position可以表达为如式(10)所示。Based on the above calculation process, the motor rotor position motor_position can be expressed as shown in equation (10).
motor_position=k 3*Δd+b 3   式(10) motor_position=k 3 *Δd+b 3 Formula (10)
其中Δd根据加速度数据,实时二重积分得到。Among them, Δd is obtained by real-time double integration according to the acceleration data.
基于上述dolly zoom实现原理,本申请实施例提供了如下所示的标定过程。Based on the above-mentioned implementation principle of dolly zoom, the embodiment of the present application provides a calibration process as shown below.
在一个实施例中,位置改变量和镜头的焦距之间呈线性关系。相应地,确定映射关系包括以下至少一种。In one embodiment, there is a linear relationship between the amount of position change and the focal length of the lens. Correspondingly, determining the mapping relationship includes at least one of the following.
第一种,确定电机的转子位置和位置改变量之间的第一映射关系。如在标定电机的转子位置和位置改变量之间的第一映射关系之后,存储该第一映射关系。First, the first mapping relationship between the rotor position of the motor and the position change amount is determined. For example, after calibrating the first mapping relationship between the rotor position of the motor and the position change amount, the first mapping relationship is stored.
第二种,确定电机的转子位置和焦距改变量之间的第二映射关系,然后,基于第二映射关系、拍摄对象图像尺寸和拍摄对象尺寸计算与各位置改变量对应的电机的转子位置。Second, determine the second mapping relationship between the rotor position of the motor and the focal length change amount, and then calculate the rotor position of the motor corresponding to each position change amount based on the second mapping relationship, the image size of the photographed object, and the size of the photographed object.
为了便于理解本申请的实施例,以下会针对电机的标定过程进行示例性说。由于电机可以设置在云台上,首先对云台结构进行示例性说明。In order to facilitate the understanding of the embodiments of the present application, an example will be given below for the calibration process of the motor. Since the motor can be arranged on the pan/tilt head, the structure of the pan/tilt head will be exemplified first.
图8为本申请实施例提供的云台的结构示意图。FIG. 8 is a schematic structural diagram of a pan/tilt according to an embodiment of the present application.
如图8所示,该云台可以包括:支架组件和至少一个电机。其中,支架组件可以包括至少两个能够相对活动的支架部件,支架组件用于支撑拍摄装置。至少一个电机分别用于驱动对应的支架部件运动,以调整拍摄装置的姿态。As shown in FIG. 8 , the pan/tilt head may include: a bracket assembly and at least one motor. Wherein, the bracket assembly may include at least two relatively movable bracket parts, and the bracket assembly is used for supporting the photographing device. The at least one motor is respectively used to drive the corresponding bracket parts to move, so as to adjust the posture of the photographing device.
例如,俯仰(pitch)轴电机和俯仰轴臂相配合以驱动拍摄装置绕俯仰轴转动。横滚(roll)轴电机和横滚轴臂相配合以驱动拍摄装置绕横滚轴转动。偏航(yaw)轴电机和偏航轴臂相配合以驱动拍摄装置绕偏航轴转动。For example, a pitch axis motor and a pitch axis arm cooperate to drive the camera to rotate about the pitch axis. The roll axis motor cooperates with the roll axis arm to drive the photographing device to rotate around the roll axis. The yaw axis motor cooperates with the yaw axis arm to drive the photographing device to rotate about the yaw axis.
其中,俯仰轴电机可以带动俯仰轴臂的运动,横滚轴电机可以带动横滚轴臂的运动,偏航轴电机可以带动偏航轴臂的运动。Among them, the pitch axis motor can drive the movement of the pitch axis arm, the roll axis motor can drive the movement of the roll axis arm, and the yaw axis motor can drive the movement of the yaw axis arm.
例如,偏航轴臂可以连接于横滚轴臂的一端,横滚轴臂的另一端连接于俯仰轴臂,但是本申请实施例并不限于此,偏航轴臂、横滚轴臂和俯仰轴臂也可以以其它顺序进行连接。For example, the yaw axis arm may be connected to one end of the roll axis arm, and the other end of the roll axis arm may be connected to the pitch axis arm, but the embodiment of the present application is not limited to this, the yaw axis arm, the roll axis arm and the pitch axis arm The axle arms can also be connected in other sequences.
应当理解的是,云台也可以使得拍摄装置仅能围绕一个、两个或四个轴等进行转动,在此不做限定。It should be understood that, the pan/tilt head can also enable the photographing device to rotate around only one, two or four axes, etc., which is not limited herein.
需要说明的是,当云台还能驱动拍摄装置发生平移运动时,本申请的实施例不排除将驱动平移的动力部件(如气缸、液缸或线性马达等)与上述任一跟踪模式对应的至少一个电机相结合的实施方案。It should be noted that, when the pan/tilt head can also drive the photographing device to move in translation, the embodiments of the present application do not exclude that the power components (such as air cylinders, liquid cylinders, linear motors, etc.) that drive translation correspond to any of the above tracking modes. At least one motor combined embodiment.
在一个实施例中,拍摄装置可拆卸地承载在云台的承载座上;并且/或者,惯性测量单元设置在云台和/或拍摄装置上;并且/或者,电机可拆卸地承载在云台的承载座上。In one embodiment, the photographing device is detachably carried on the bearing seat of the gimbal; and/or the inertial measurement unit is provided on the gimbal and/or the photographing device; and/or the motor is detachably carried on the gimbal on the bearing seat.
例如,为了便于用户采取横拍模式或竖拍模式进行拍摄,拍摄装置(如相机)可以通过拍摄装置固定机构横向或纵向固定在云台上。参考图8中拍摄装置是通过拍摄装置固定机构横向放置在云台上。For example, in order to facilitate the user to take pictures in a horizontal or vertical mode, a photographing device (such as a camera) may be fixed on the pan/tilt horizontally or vertically by a photographing device fixing mechanism. Referring to FIG. 8 , the photographing device is laterally placed on the pan/tilt by the photographing device fixing mechanism.
其中,拍摄装置固定机构可相对一个或多个轴臂转动。例如,拍摄装置固定机构包括一可相对俯仰轴转动的转动臂以及可与拍摄装置配合的固定部。例如,固定部可以相对转动臂发生线性移动,以便于对不同尺寸或不同构造的拍摄装置进行固定。需要说明的是拍摄装置固定机构可以是单独的一个部件,也可以是某个轴臂的一部分,如拍摄装置固定机构可以是俯仰轴臂或偏航轴臂的组成部分,在此不做限定。Wherein, the fixing mechanism of the photographing device can rotate relative to one or more shaft arms. For example, the fixing mechanism of the photographing device includes a rotating arm that can rotate relative to the tilt axis and a fixing portion that can cooperate with the photographing device. For example, the fixing part can move linearly with respect to the rotating arm, so as to fix photographing devices of different sizes or different configurations. It should be noted that the fixing mechanism of the photographing device may be a separate component or a part of a certain axis arm. For example, the fixing mechanism of the photographing device may be a component of the pitch axis arm or the yaw axis arm, which is not limited here.
例如,在需要将拍摄装置加载在云台上时,可以先将拍摄装置固定在转动臂上,调节固定部的位置,以使固定部能与拍摄装置的定位部相配合后,将拍摄装置固定在指定的位置,以使拍摄装置设置于拍摄装置固定机构上。For example, when the camera needs to be loaded on the platform, the camera can be fixed on the rotating arm first, and the position of the fixed part can be adjusted so that the fixed part can be matched with the positioning part of the camera, and then the camera can be fixed. In a designated position, the photographing device is set on the photographing device fixing mechanism.
其中,IMU可以设置在云台上任意一处,以用于确定设置惯性测量单元支持的部件的姿态信息。例如,为了便于确定拍摄装置的姿态信息,该惯性测量单元可以设置在拍摄装置固定机构上,用于测量固定机构的姿态信息。又例如,为了便于确定轴臂的姿态信息,可以将惯性测量单元设置在轴臂上。惯性测量单元可以是加速度计或陀螺仪中的至少一种,可以用于测量拍摄装置的姿态和加速度等。Wherein, the IMU can be set anywhere on the gimbal to determine the attitude information of the components supported by the set inertial measurement unit. For example, in order to facilitate the determination of the attitude information of the photographing device, the inertial measurement unit may be arranged on the fixing mechanism of the photographing device, and is used to measure the attitude information of the fixing mechanism. For another example, in order to facilitate the determination of the attitude information of the shaft arm, the inertial measurement unit may be arranged on the shaft arm. The inertial measurement unit may be at least one of an accelerometer or a gyroscope, and may be used to measure the attitude and acceleration of the photographing device.
在一个实施例中,拍摄装置固定机构还可以用于承载电机,如承载变焦电机和跟焦电机。例如,变焦电机和跟焦电机分别设置在拍摄装置固定机构上,并且位于拍摄装置的两侧。例如,变焦电机的转轴与镜头的变焦环啮合,跟焦电机的转轴与镜头的跟焦环啮合。In one embodiment, the fixing mechanism of the photographing device can also be used to carry a motor, such as a zoom motor and a follow focus motor. For example, the zoom motor and the follow focus motor are respectively arranged on the fixing mechanism of the photographing device, and are located on both sides of the photographing device. For example, the shaft of the zoom motor is engaged with the zoom ring of the lens, and the shaft of the follow focus motor is engaged with the follow focus ring of the lens.
在一个实施例中,拍摄装置可拆卸地承载在云台的承载座上,云台与拍摄装置通信连接,云台的手持部上设置显示屏,显示屏能够显示拍摄装置的拍摄画面。In one embodiment, the photographing device is detachably carried on the bearing seat of the pan/tilt, the pan/tilt is communicatively connected to the photographing device, and a display screen is provided on the hand-held part of the pan/tilt, and the display screen can display the photographing image of the photographing device.
例如,云台上可以设置有显示屏、拨杆、拨轮等部件以便于实现用户和云台之间的人机交互。其中,显示屏上可以显示人机交互界面。拨轮包括但不限于跟焦轮和/或变焦轮。For example, the PTZ may be provided with components such as a display screen, a lever, and a dial to facilitate human-computer interaction between the user and the PTZ. Among them, the human-computer interaction interface can be displayed on the display screen. Track wheels include but are not limited to focus wheels and/or zoom wheels.
图9为本申请实施例提供的特定方向的示意图。FIG. 9 is a schematic diagram of a specific direction provided by an embodiment of the present application.
如图9所示,特定方向是标定映射关系时,拍摄装置与拍摄对象之间连线的方向。As shown in FIG. 9 , the specific direction is the direction of the connecting line between the photographing device and the photographing object when the mapping relationship is calibrated.
以下以上述第一种标定方式,分别对变焦电机和跟焦电机的标定过程进行示例性说明。The following is an exemplary description of the calibration processes of the zoom motor and the follow focus motor, respectively, in the above-mentioned first calibration manner.
在一个实施例中,本申请实施例在实现dolly zoom前需要用户标定式(10)中的参数k 3、b 3,需要标定2个或2个以上的不同距离点,图像显示其中在画面中显示刻度标尺,在每个距离点调节镜头变焦环,使拍摄对象在每个距离点出和画面中刻度标尺的同一位置重合,这样即可保证拍摄对象的像宽在相机传感器中的大小不变。或者,在每个距离点调节镜头跟焦环,使拍摄对象的图像清晰。 In one embodiment, the embodiment of the present application requires the user to calibrate the parameters k 3 and b 3 in the formula (10) before implementing the dolly zoom, and needs to calibrate 2 or more different distance points, and the image is displayed in which in the screen Display the scale ruler, adjust the zoom ring of the lens at each distance point, so that the subject at each distance point coincides with the same position of the scale ruler in the screen, so as to ensure that the image width of the subject is unchanged in the camera sensor. . Alternatively, adjust the lens follow focus ring at each distance point to get a sharper image of the subject.
例如,记录每个距离点的电机的转子位置motor_position,和IMU积分得到的物距变化量Δd,使用参数拟合的方法得到k 3、b 3,标定完成后,即可根据IMU二重积分得到的物距变化量Δd,实时计算出变焦所需的电机转子位置motor_position,从而用变焦电机位置闭环驱动镜头完成变焦,结合实时的跟焦,即可实现dolly zoom的拍摄效果。 For example, record the rotor position motor_position of the motor at each distance point, and the object distance change Δd obtained by IMU integration, and use the method of parameter fitting to obtain k 3 and b 3 . After the calibration is completed, it can be obtained according to the IMU double integration. The object distance change Δd is calculated in real time, and the motor rotor position motor_position required for zooming is calculated in real time, so that the zoom motor position is used to drive the lens in a closed loop to complete the zoom. Combined with real-time follow focus, the shooting effect of dolly zoom can be achieved.
在一个实施例中,针对变焦电机,确定电机的转子位置和位置改变量之间的第一映射关系可以包括如下操作。In one embodiment, for a zoom motor, determining the first mapping relationship between the rotor position of the motor and the position change amount may include the following operations.
首先,确定第一预设占比,第一预设占比是拍摄对象的图像在拍摄装置的拍摄画面中的占比。具体地,拍摄对象的图像在拍摄装置的拍摄画面中占比是基于第一用户操作确定的。例如,用户可以通过显示屏上显示的交互界面由用户输入第一用户操作。例如,用户可以通过拨杆或拨轮等输入第一用户操作。First, a first preset proportion is determined, and the first preset proportion is the proportion of the image of the photographing object in the photographing screen of the photographing device. Specifically, the proportion of the image of the photographing object in the photographing screen of the photographing device is determined based on the first user operation. For example, the user may input the first user operation by the user through the interactive interface displayed on the display screen. For example, the user may input the first user operation through a lever or a wheel or the like.
然后,在拍摄装置沿特定方向移动第一距离时,获取第一变焦调节指令,第一变焦调节指令用于控制变焦电机驱动镜头改变焦距,以使拍摄对象的图像在拍摄装置的拍摄画面中占比处于第一预设占比,得到第一转子位置。Then, when the photographing device moves a first distance in a specific direction, a first zoom adjustment instruction is obtained, where the first zoom adjustment instruction is used to control the zoom motor to drive the lens to change the focal length, so that the image of the photographed object occupies an image of the photographing device. The ratio is at a first preset ratio, resulting in a first rotor position.
接着,在拍摄装置沿特定方向移动第二距离时,获取用户的第二变焦调节指令,第二变焦调节指令用于控制变焦电机驱动镜头改变焦距,以使拍摄对象的图像在拍摄装置的拍摄画面中占比处于第一预设占比,得到第二转子位置。Next, when the photographing device moves a second distance in a specific direction, a second zoom adjustment instruction from the user is obtained, and the second zoom adjustment instruction is used to control the zoom motor to drive the lens to change the focal length, so that the image of the photographed object is displayed on the photographing screen of the photographing device. The middle ratio is at the first preset ratio, and the second rotor position is obtained.
基于第一距离、第一转子位置、第二距离和第二转子位置确定第一映射关系。A first mapping relationship is determined based on the first distance, the first rotor position, the second distance, and the second rotor position.
图10为本申请实施例提供的变焦电机的示意图。FIG. 10 is a schematic diagram of a zoom motor provided by an embodiment of the present application.
如图10所示,变焦电机设置在拍摄装置的手动镜头的一侧,变焦电机与镜头的变焦环啮合。变焦电机可以固定在拍摄装置固定机构上。As shown in Fig. 10, the zoom motor is arranged on one side of the manual lens of the photographing device, and the zoom motor is engaged with the zoom ring of the lens. The zoom motor can be fixed on the photographing device fixing mechanism.
图11为本申请实施例提供的针对变焦电机的标定过程流程图。图12为本申请实施例提供的针对变焦电机的标定过程示意图。FIG. 11 is a flowchart of a calibration process for a zoom motor provided by an embodiment of the present application. FIG. 12 is a schematic diagram of a calibration process for a zoom motor provided by an embodiment of the present application.
如图11和图12所示,在相机移动前位置处,读取变焦相关参数。然后,相机移动至相机移动后位置,接收来自IMU的测量信息,可以基于该测量信息计算物距改变量。接着,如图12所示,相机的FOV发生改变,为了使得相机的FOV与相机移动前的FOV保持一致,可以通过电机调整相机的焦距,这样就可以得到电机的转子位置等信息。然后,重复以上操作,得到至少两组物距改变量和转子位置的对应关系。以便基于式(10)所示的方式计算出k 3,b 3As shown in FIG. 11 and FIG. 12 , at the position before the camera moves, the zoom-related parameters are read. Then, the camera moves to the position after the camera moves, receives measurement information from the IMU, and can calculate the object distance change amount based on the measurement information. Then, as shown in Figure 12, the FOV of the camera changes. In order to keep the FOV of the camera consistent with the FOV before the camera moves, the focal length of the camera can be adjusted by the motor, so that the information such as the rotor position of the motor can be obtained. Then, the above operations are repeated to obtain at least two sets of correspondences between the object distance change and the rotor position. In order to calculate k 3 , b 3 based on the method shown in Equation (10).
在一个实施例中,针对跟焦电机,确定电机的转子位置和位置改变量之间的第一映射关系包括如下操作。In one embodiment, for a follow focus motor, determining the first mapping relationship between the rotor position of the motor and the position change amount includes the following operations.
首先,在拍摄装置沿特定方向移动第三距离时,获取用户的第一合焦调节指令,第一合焦调节指令用于控制跟焦电机来驱动镜头跟焦,以使拍摄对象的图像在拍摄装置的拍摄画面处于合焦状态,得到第三转子位置。First, when the photographing device moves a third distance in a specific direction, the user's first focus adjustment instruction is obtained, and the first focus adjustment instruction is used to control the follow focus motor to drive the lens to follow focus, so that the image of the subject is captured during the shooting. The photographed picture of the device is in focus state, and the third rotor position is obtained.
然后,在拍摄装置沿特定方向移动第四距离时,获取用户的第二合焦调节指令,第二合焦调节指令用于控制跟焦电机来驱动镜头跟焦,以使拍摄对象的图像在拍摄装置的拍摄画面处于合焦状态,得到第四转子位置。Then, when the photographing device moves a fourth distance in a specific direction, a second focus adjustment instruction from the user is obtained, and the second focus adjustment instruction is used to control the follow focus motor to drive the lens to follow focus, so that the image of the photographed object is captured during the shooting. The photographed picture of the device is in the in-focus state, and the fourth rotor position is obtained.
接着,基于第三距离、第三转子位置、第四距离和第四转子位置确定第一映射关系。Next, a first mapping relationship is determined based on the third distance, the third rotor position, the fourth distance, and the fourth rotor position.
图13为本申请实施例提供的跟焦电机的示意图。FIG. 13 is a schematic diagram of a follow focus motor provided by an embodiment of the present application.
如图13所示,跟焦电机可以设置在拍摄装置的手动镜头的一侧,跟焦电机与镜头的跟焦环啮合。跟焦电机可以固定在拍摄装置固定机构上。As shown in FIG. 13 , the follow focus motor can be arranged on one side of the manual lens of the photographing device, and the follow focus motor is engaged with the follow focus ring of the lens. The follow focus motor can be fixed on the fixing mechanism of the photographing device.
图14为本申请实施例提供的针对跟焦电机的标定过程流程图。图15为本申请实施例提供的针对跟焦电机的标定过程示意图。FIG. 14 is a flowchart of a calibration process for a follow focus motor according to an embodiment of the present application. FIG. 15 is a schematic diagram of a calibration process for a follow focus motor according to an embodiment of the present application.
如图14和图15所示,在相机移动前位置处,读取对焦相关参数。然后,相机移动至相机移动后位置,接收来自IMU的测量信息,可以基于该测量信息计算物距改变量。接着,如图15所示,相机拍摄图像中目标对象的图像清晰度变差,为了使得目标对象的图 像清晰度满足用户需求,可以通过跟焦电机调整相机的焦距使得目标对象的图像变清晰,这样就可以得到跟焦电机的转子位置等信息。然后,重复以上操作,得到至少两组物距改变量和转子位置的对应关系。以便基于式(10)所示的方式计算出k 3,b 3As shown in FIG. 14 and FIG. 15 , at the position before the camera moves, the focus-related parameters are read. Then, the camera moves to the position after the camera moves, receives measurement information from the IMU, and can calculate the object distance change amount based on the measurement information. Next, as shown in Figure 15, the image clarity of the target object in the image captured by the camera deteriorates. In order to make the image clarity of the target object meet user requirements, the focus of the camera can be adjusted by the focus motor to make the image of the target object clearer. In this way, information such as the rotor position of the follow focus motor can be obtained. Then, the above operations are repeated to obtain at least two sets of correspondences between the object distance change and the rotor position. In order to calculate k 3 , b 3 based on the method shown in Equation (10).
需要说明的是,还可同时针对变焦电机和跟焦电机进行标定。It should be noted that the zoom motor and the follow focus motor can also be calibrated at the same time.
例如,在开始标定过程之后,通过运镜将拍摄对象置于相机的指定区域,如中心区域,确定拍摄装置的当前位置a。For example, after the calibration process is started, the subject is placed in a designated area of the camera, such as a central area, by moving the mirror to determine the current position a of the photographing device.
接着,通过转动变焦电机控制变焦环,实现拍摄对象的缩放,结合相机liveview上的刻度标尺,确定当前拍摄对象的大小比例,标记当前位置a的变焦电机参数,通过跟焦电机驱动跟焦环转动,使得当前位置a的焦面清晰,标记当前位置a的跟焦电机的参数。确定当前的IMU所测距离改变量c。Next, control the zoom ring by rotating the zoom motor to realize the zooming of the subject. Combined with the scale on the camera liveview, determine the size ratio of the current subject, mark the zoom motor parameters of the current position a, and drive the follow focus ring to rotate through the follow focus motor. , make the focal plane of the current position a clear, and mark the parameters of the follow focus motor at the current position a. Determine the current distance change c measured by the IMU.
然后,移动至位置b,通过运镜将拍摄对象置于相机的指定区域。Then, move to position b and place the subject in the designated area of the camera by moving the lens.
接着,通过转动变焦电机转子以驱动变焦环,实现拍摄对象的缩放,结合相机的实时视图(liveview)上的刻度标尺,确定当前拍摄对象的大小比例,标记当前位置b的变焦电机参数,通过转动跟焦电机的转子以驱动跟焦环,使得当前位置b的焦面清晰,标记当前位置b的跟焦电机的参数。确定当前的IMU所测距离改变量d。Then, by rotating the zoom motor rotor to drive the zoom ring, the zooming of the shooting object is realized. Combined with the scale ruler on the live view of the camera, the size ratio of the current shooting object is determined, and the zoom motor parameters of the current position b are marked. The rotor of the follow focus motor drives the follow focus ring, so that the focal plane of the current position b is clear, and the parameters of the follow focus motor at the current position b are marked. Determine the change amount d of the distance measured by the current IMU.
这样就可以实现根据上述确定的变焦电机参数、跟焦电机参数、距离改变量c和距离改变量d等,结合参数拟合方法得到如式(10)中所示的k 3,b 3。电机参数标定完成后,通过在位置a和位置b之间进行运镜,可以保证画面的主体大小不变,景深改变的dolly zoom拍摄效果。 In this way, k 3 , b 3 as shown in equation (10) can be obtained according to the above-determined zoom motor parameters, follow focus motor parameters, distance change c and distance change d, etc. combined with the parameter fitting method. After the motor parameter calibration is completed, by moving the mirror between position a and position b, it can ensure that the size of the main body of the picture remains unchanged, and the depth of field changes the dolly zoom shooting effect.
在一个实施例中,在完成上述标定过程之后,根据位置改变量控制与拍摄装置的镜头啮合的电机来驱动镜头跟焦或变焦,包括以下至少一种:根据位置改变量控制与拍摄装置的镜头啮合的变焦电机来驱动镜头变焦,以使拍摄对象的图像在拍摄装置的拍摄画面中占比保持稳定。或者,根据位置改变量控制与拍摄装置的镜头啮合的跟焦电机来驱动镜头跟焦,以使拍摄对象在拍摄装置的拍摄画面中处于合焦状态。In one embodiment, after the above-mentioned calibration process is completed, controlling a motor engaged with the lens of the photographing device to drive the lens to follow focus or zoom according to the position change amount includes at least one of the following: controlling the lens of the photographing device according to the position change amount The engaged zoom motor drives the zoom of the lens, so that the proportion of the image of the subject in the shooting frame of the shooting device remains stable. Alternatively, a follow focus motor engaged with the lens of the photographing device is controlled according to the position change amount to drive the lens to follow focus, so that the photographing object is in a state of focus in the photographing picture of the photographing device.
在一个实施例中,为了保证映射关系的准确度,保障用户体验,上述方法还包括:在满足映射关系的重新标定条件时,输出标定提示信息或者强制终止使用映射关系。由于IMU检测精度有限,或者受到IMU自身特性(如针对大加速度场景下检测精度低于针对小加速度场景下检测精度)的影响,一次标定的映射关系的适用场景有限。因此,可以及时提示用户重新进行标定以确定标定的映射关系的准确度。In one embodiment, in order to ensure the accuracy of the mapping relationship and ensure user experience, the above method further includes: when a re-calibration condition of the mapping relationship is satisfied, outputting calibration prompt information or forcibly terminating the use of the mapping relationship. Due to the limited detection accuracy of the IMU, or due to the influence of the IMU's own characteristics (for example, the detection accuracy for large acceleration scenarios is lower than the detection accuracy for small acceleration scenarios), the applicable scenarios of the mapping relationship for one calibration are limited. Therefore, the user can be prompted to re-calibrate in time to determine the accuracy of the calibrated mapping relationship.
例如,重新标定条件包括以下至少一种:惯性测量单元经历过下电操作、云台经历过下电操作、云台在下电状态下发生的位移超过重新标定位移阈值或者惯性测量单元的加速度大于设定加速度阈值。For example, the recalibration condition includes at least one of the following: the inertial measurement unit has undergone a power-off operation, the gimbal has experienced a power-off operation, the displacement of the gimbal in the power-off state exceeds the recalibration displacement threshold, or the acceleration of the inertial measurement unit is greater than a set value. Fixed acceleration threshold.
在一个实施例中,还可以通过计算的方式确定上述映射关系。例如,位置改变量和镜头的焦距之间呈线性关系,当通过计算的方式确定映射关系时,计算涉及的计算参数包括:拍摄对象图像尺寸、拍摄对象尺寸、起始位置物距和法兰距,其中,法兰距与凸轮筒结构参数和电机齿轮减速比相关。In an embodiment, the above-mentioned mapping relationship may also be determined by calculation. For example, there is a linear relationship between the amount of position change and the focal length of the lens. When the mapping relationship is determined by calculation, the calculation parameters involved in the calculation include: the image size of the shooting object, the size of the shooting object, the object distance at the starting position, and the flange distance , among which, the flange distance is related to the structural parameters of the cam barrel and the gear reduction ratio of the motor.
在一个实施例中,上述方法还可以包括如下操作。如果拍摄装置与拍摄对象之间的连线方向与特定方向之间的夹角满足简化条件,则将基于惯性测量单元中加速度计的测量信息确定的位置改变量作为拍摄装置在特定方向上的位置改变量。In one embodiment, the above method may further include the following operations. If the angle between the connection direction between the photographing device and the photographed object and the specific direction satisfies the simplified condition, the position change amount determined based on the measurement information of the accelerometer in the inertial measurement unit is used as the position of the photographing device in the specific direction The amount of change.
图16为本申请实施例提供的夹角满足简化条件的示意图。FIG. 16 is a schematic diagram of an included angle satisfying a simplified condition provided by an embodiment of the present application.
如图16所示,在标定完成后,用户手持云台朝接近拍摄对象的方向移动,以实现诸如dolly zoom的拍摄效果。用户可能无法完全按照标定时的特定方向进行移动(如缺乏参考对照物或用户希望改变拍摄的角度等)。在该场景下,如果用户的移动方向和标定时的特定方向之间夹角较小,为了降低对计算资源的消耗等,可以将基于测量信息确定的位置改变量作为拍摄装置在特定方向上的位置改变量。As shown in Figure 16, after the calibration is completed, the user moves the gimbal in the direction of approaching the subject to achieve a shooting effect such as dolly zoom. The user may not be able to move in a specific direction at the time of calibration (eg lack of reference control or the user wishes to change the angle of the shot, etc.). In this scenario, if the angle between the user's moving direction and the specific direction during calibration is small, in order to reduce the consumption of computing resources, etc., the position change determined based on the measurement information can be used as the shooting device in the specific direction. position change amount.
本申请实施例的拍摄控制方法,虽然不同镜头的变焦光学结构设计可能不同,但是,常见的镜头都可按照本申请的技术方案进行处理。此外,有些镜头的变距和跟焦环位置不一定是线性关系的,只需将非线性的模型带入,拟合相应参数即可,适用范围较广。In the shooting control method of the embodiment of the present application, although the zoom optical structure design of different lenses may be different, common lenses can be processed according to the technical solutions of the present application. In addition, the variable distance and the position of the focus ring of some lenses are not necessarily linearly related. It is only necessary to bring in the nonlinear model and fit the corresponding parameters, which has a wide range of applications.
以下对人机交互方式相关内容进行示例性说。The content related to the human-computer interaction mode is exemplified below.
在一个实施例中,可以通过如下方式输入目标对象的图像在拍摄图像中的占比。In one embodiment, the proportion of the image of the target object in the captured image may be input in the following manner.
例如,云台上设置有显示屏,显示屏上显示用户交互界面,相应地,第一用户操作包括用户在用户交互界面中输入占比的操作,其中,用户在用户交互界面中输入的占比是以预设点拍摄控制方法、拍摄控制装置及云台组件作为基点。例如,用户可以通过缩放操作使得拍摄对象的图像在拍摄图像中达到所需的占比等。例如,用户可以通过输入百分比值来输入占比。For example, a display screen is provided on the PTZ, and a user interaction interface is displayed on the display screen. Correspondingly, the first user operation includes an operation for the user to input a proportion in the user interaction interface, wherein the proportion of the user input in the user interaction interface is It is based on the preset shooting control method, shooting control device and pan/tilt assembly. For example, the user can make the image of the photographed object reach a desired proportion in the photographed image through a zoom operation. For example, the user can enter a percentage by entering a percentage value.
例如,第一用户操作包括用户在用户交互界面中输入占比以及基点的操作。这样可以便于用户在指定区域实现拍摄对象的图像在拍摄图像中达到所需的占比。For example, the first user operation includes an operation in which the user inputs the percentage and the base point in the user interaction interface. In this way, it is convenient for the user to achieve the required proportion of the image of the photographed object in the photographed image in the designated area.
例如,第一用户操作包括用户在用户交互界面中输入至少两个基点的操作。For example, the first user operation includes an operation of the user inputting at least two base points in the user interaction interface.
在一个实施例中,拍摄装置的拍摄对象是基于用户针对用户交互界面的第二用户操作来确定的。例如,用户通过改变云台的姿态使得拍摄对象位于拍摄图像的指定区域中。In one embodiment, the photographing object of the photographing device is determined based on a second user operation of the user with respect to the user interface. For example, the user changes the posture of the pan/tilt head so that the photographed object is located in the designated area of the photographed image.
在一个实施例中,拍摄装置的拍摄对象是通过图像识别来确定的。例如,用户输入拍摄对象后,由拍摄装置自动从拍摄图像中识别拍摄对象的图像。如用户通过点击操作等方式来输入拍摄对象。In one embodiment, the photographed object of the photographing device is determined through image recognition. For example, after a user inputs a photographic subject, the photographing device automatically recognizes the image of the photographing subject from the photographed image. For example, the user inputs the object to be photographed through a click operation or the like.
在一个实施例中,拍摄装置设置在云台上,云台的手持部上设置跟焦轮和/或变焦轮。相应地,上述方法还包括:接收针对跟焦轮和/或变焦轮的第三用户操作,以根据位置改变量控制与拍摄装置的镜头啮合的电机来驱动镜头跟焦或变焦。例如,跟焦轮和/或变焦轮可以设置在云台的手持部、可移动平台的控制终端上等。In one embodiment, the photographing device is set on a pan/tilt head, and a focus wheel and/or a zoom wheel are provided on the hand-held part of the pan/tilt head. Correspondingly, the above method further includes: receiving a third user operation on the focus wheel and/or the zoom wheel, so as to control the motor engaged with the lens of the photographing device to drive the lens to follow focus or zoom according to the position change amount. For example, the focus wheel and/or the zoom wheel may be arranged on the hand-held part of the pan/tilt head, the control terminal of the movable platform, and the like.
本申请的另一方面还提供了一种拍摄控制装置。该拍摄控制装置可以设置于云台、电机或拍摄装置任意一个。Another aspect of the present application also provides a photographing control device. The photographing control device can be set on any one of the pan/tilt, the motor or the photographing device.
以下以拍摄控制装置设置在云台中为了进行示例性说明。In the following, the shooting control device is set in the PTZ for exemplary illustration.
图17为本申请实施例提供的云台的框图。FIG. 17 is a block diagram of a pan/tilt provided by an embodiment of the present application.
云台1700承载有拍摄装置和惯性测量单元,惯性测量单元用于测量拍摄装置的姿态信息,如图17所示,云台1700包括:至少一个处理器1710和存储器1720。存储器1720存储计算机执行指令。The pan/tilt 1700 carries a camera and an inertial measurement unit, and the inertial measurement unit is used to measure the attitude information of the camera. As shown in FIG. 17 , the pan/tilt 1700 includes: at least one processor 1710 and a memory 1720 . Memory 1720 stores computer-executable instructions.
至少一个处理器1710执行存储器1720存储的计算机执行指令,使得执行计算机执行指令时实现如下步骤。At least one processor 1710 executes the computer-executable instructions stored in the memory 1720, so that the following steps are implemented when the computer-executable instructions are executed.
例如,首先,通过惯性测量单元中加速度计的测量信息,确定拍摄装置在特定方向上的位置改变量。然后,根据位置改变量控制拍摄装置进行跟焦或变焦操作。For example, first, through the measurement information of the accelerometer in the inertial measurement unit, the amount of position change of the photographing device in a specific direction is determined. Then, the photographing device is controlled to perform a follow focus or zoom operation according to the position change amount.
其中,该云台可以包括手持云台、机载云台等。Wherein, the gimbal may include a handheld gimbal, an airborne gimbal, and the like.
例如,云台可以用于固定在具有动力系统的可移动平台上。以可移动平台是无人机为例进行说明。该可移动平台可以包括动力机构,传感系统。此外,该可移动平台还可以包括通讯系统。For example, a pan/tilt head can be used to mount on a movable platform with a powered system. The mobile platform is an unmanned aerial vehicle as an example to illustrate. The movable platform may include a powered mechanism, a sensing system. In addition, the movable platform may also include a communication system.
其中,动力机构可以包括一个或者多个旋转体、螺旋桨、桨叶、引擎、电机、轮子、轴承、磁铁、喷嘴。例如,动力机构的旋转体可以是自紧固(self-tightening)旋转体、旋转体组件、或者其它的旋转体动力单元。可移动平台可以有一个或者多个动力机构。所有的动力机构可以是相同的类型或不同的类型。动力机构能够使可移动平台垂直地从表面起飞,或者垂直地降落在表面上,而不需要可移动平台任何水平运动(如不需要在跑道上滑行)。例如,可移动平台可以有多个水平方向的旋转体,以控制可移动平台的提升及/或推动。传感系统可以包括一个或者多个传感器,以感测可移动平台的周边障碍物、空间方位、速度及/或加速度(如相对于多达三个自由度的旋转及平移)。通讯系统可以参考云台的通讯系统相关部分内容,在此不再赘述。The power mechanism may include one or more rotating bodies, propellers, blades, engines, motors, wheels, bearings, magnets, and nozzles. For example, the rotating body of the powertrain may be a self-tightening rotating body, a rotating body assembly, or other rotating body power unit. The movable platform may have one or more power mechanisms. All powertrains can be of the same type or of different types. The power mechanism enables the movable platform to take off vertically from a surface, or to land vertically on a surface, without any horizontal movement of the movable platform (eg, without taxiing on a runway). For example, the movable platform may have a plurality of horizontal rotating bodies to control the lifting and/or pushing of the movable platform. The sensing system may include one or more sensors to sense surrounding obstacles, spatial orientation, velocity and/or acceleration (eg, rotation and translation with respect to up to three degrees of freedom) of the movable platform. For the communication system, please refer to the relevant part of the communication system of the PTZ, which will not be repeated here.
又例如,手持云台还包括:把持组件,把持组件用于支撑支架组件。把持组件除了可以起到支撑支架组件的作用之外,还可以起到诸如容置电池、处理器、设置输入/输出部件等,在此不做限定。For another example, the hand-held pan/tilt head further includes: a holding component for supporting the bracket component. In addition to the function of supporting the bracket assembly, the holding assembly can also function such as accommodating batteries, processors, setting input/output components, etc., which are not limited herein.
为了便于用户与云台之间进行交互,该云台上可以设置有输入部和/或输出部。In order to facilitate the interaction between the user and the PTZ, the PTZ may be provided with an input part and/or an output part.
例如,输入部可以用于输入用户对手持云台的操作指令,该输入部可以包括用于实现人机交互的转轮和控制摇杆等。其中,控制摇杆可以控制转轴臂的运动,例如,通过拨动控制摇杆,实现手持云台的转轴臂在对应方向的转动。For example, the input part may be used to input the user's operation instruction on the handheld pan/tilt head, and the input part may include a wheel and a control joystick for realizing human-computer interaction. The control rocker can control the movement of the pivot arm. For example, by turning the control rocker, the pivot arm of the handheld gimbal can be rotated in a corresponding direction.
具体地,该用于实现人机交互的部件可以包括显示屏,用于显示交互界面,用户可以在交互界面中输入控制指令。Specifically, the component for realizing human-computer interaction may include a display screen for displaying an interactive interface, and a user can input control instructions in the interactive interface.
例如,手持云台上还可以包括显示屏,用于显示用户交互界面。把持组件用于支撑支架组件。或者,用户交互界面显示在位于拍摄装置的显示器上;或者,用户交互界面显示在与云台相连的终端设备的显示器上;或者,预设功能键(如变焦轮、跟焦轮)位于把持组件上,把持组件用于支撑支架组件。For example, the handheld PTZ may also include a display screen for displaying a user interface. The handle assembly is used to support the stand assembly. Or, the user interface is displayed on the display located on the photographing device; alternatively, the user interface is displayed on the display of the terminal device connected to the PTZ; or, the preset function keys (such as zoom wheel, follow focus wheel) are located on the holding component Above, the handle assembly is used to support the bracket assembly.
此外,该云台还可以进一步包括状态提示部件。例如,该云台可以包括指示灯。In addition, the PTZ may further include a status prompting component. For example, the pan/tilt head may include indicator lights.
例如,在进行标定的过程中,表征标定状态的指示灯处于点亮状态。在进行dolly zoom拍摄过程中,表征dolly zoom拍摄状态的指示灯处于点亮状态等。For example, during the calibration process, the indicator light representing the calibration state is on. During the dolly zoom shooting process, the indicator light representing the dolly zoom shooting state is on.
应理解,输入部除了可以包括用于实现人机交互的拨轮以及控制摇杆之外,还可以具有其他部件或者部分,例如,可以具有手持云台的开关等。It should be understood that, in addition to a dial wheel and a control rocker for realizing human-computer interaction, the input part may also have other components or parts, for example, a switch of a handheld pan/tilt head, etc. may be provided.
输入部中可以设置处理器,用于对输入的控制指令进行处理,或者收发信号等。当然,处理器也可以设置于把持组件中。A processor may be provided in the input unit for processing input control commands, or sending and receiving signals. Of course, the processor can also be arranged in the handle assembly.
可选地,该处理器可以是中央处理单元(Central Processing Unit,简称CPU),该处理器还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,简称DSP)、专用集成电路(application specific integrated circuit,简称ASIC)、现成可编程门阵列(Field-Programmable Gate Array,简称FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。Optionally, the processor may be a central processing unit (Central Processing Unit, referred to as CPU), and the processor may also be other general-purpose processors, digital signal processors (Digital Signal Processor, referred to as DSP), application-specific integrated circuits (application specific integrated circuit, referred to as ASIC), off-the-shelf programmable gate array (Field-Programmable Gate Array, referred to as FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
处理单元可以与非易失性计算机可读存储介质1720连接。与非易失性计算机可读存储介质1720可以存储由处理单元所执行的逻辑、代码及/或者计算机指令1721,用于执行一个或者多个步骤。非易失性计算机可读存储介质1720可以包括一个或者多个存储单元(可去除的介质或者外部存储器,如SD卡或者RAM)。在某些实施例中,IMU的测量信息可以直接传送并存储到非易失性计算机可读存储介质1720的存储单元中。非易失性计算机可读存储介质1720的存储单元可以存储由处理单元所执行的逻辑、代码及/或者计算机指令1721,以执行本案描述的各种方法的各个实施例。例如,处理单元可以用于执行指令,以导致处理单元的一个或者多个处理器执行上述描述的变焦和/或跟焦功能。在某些实施例中,非易失性计算机可读存储介质1720的存储单元可以存储处理单元产生的处理结果。The processing unit may be connected to non-volatile computer readable storage medium 1720 . The non-volatile computer-readable storage medium 1720 may store logic, code, and/or computer instructions 1721 executed by the processing unit for performing one or more steps. The non-volatile computer readable storage medium 1720 may include one or more storage units (removable media or external memory such as SD card or RAM). In some embodiments, the measurement information of the IMU may be directly transferred and stored in a storage unit of the non-volatile computer-readable storage medium 1720 . The storage units of the non-volatile computer-readable storage medium 1720 may store logic, code, and/or computer instructions 1721 executed by the processing unit to perform various embodiments of the various methods described herein. For example, the processing unit may be operable to execute instructions to cause one or more processors of the processing unit to perform the zoom and/or focus functions described above. In some embodiments, the storage unit of the non-volatile computer-readable storage medium 1720 may store processing results generated by the processing unit.
在某些实施例中,处理单元可以与控制模块连接,用以控制电机的状态。In some embodiments, the processing unit may be connected to the control module for controlling the state of the motor.
处理单元还可以与通讯模块连接,用以与一个或者多个外围设备(如终端、显示设备、或者其它远程控制设备)传送及/或者接收数据。这里可以利用任何合适的通讯方法,如有线通讯或者无线通讯。例如,通讯模块可以利用到一个或者多个局域网、广域网、红外线、无线电、Wi-Fi、点对点(P2P)网络、电信网络、云网络等。可选地,可以用到中继站,如信号塔、卫星、或者移动基站等。The processing unit may also be connected to the communication module for transmitting and/or receiving data with one or more peripheral devices (eg, terminals, display devices, or other remote control devices). Any suitable communication method may be utilized here, such as wired communication or wireless communication. For example, the communication module may utilize one or more local area networks, wide area networks, infrared, radio, Wi-Fi, peer-to-peer (P2P) networks, telecommunication networks, cloud networks, and the like. Optionally, a relay station, such as a signal tower, a satellite, or a mobile base station, can be used.
云台上的输入模块可以包括一个或者多个输入机制,以获取用户通过操作该输入模块产生的输入。输入机制包括一个或者多个操纵杆、开关、旋钮、滑动开关、按钮、拨号盘、触摸屏、小键盘、键盘、鼠标、声音控制、手势控制、惯性模块等。输入模块可以用于获取用户的输入,该输入用于控制诸如云台、电机、拍摄装置、可移动平台或者其中部件的任何方面。任何方面包括姿态、位置、方向、飞行、追踪等。例如,输入机制可以是用户手动设置一个或者多个位置,每个位置对应一个预设输入。The input module on the PTZ may include one or more input mechanisms to obtain input generated by the user by operating the input module. Input mechanisms include one or more joysticks, switches, knobs, slide switches, buttons, dials, touchscreens, keypads, keyboards, mice, voice controls, gesture controls, inertial modules, and the like. The input module may be used to obtain user input for controlling aspects such as a pan/tilt head, motors, cameras, movable platform, or components thereof. Any aspect includes attitude, position, orientation, flight, tracking, etc. For example, the input mechanism may be that the user manually sets one or more positions, each position corresponding to a preset input.
在各种实施例中,输入模块可以由不止一个设备所执行。例如,输入模块可以由带有操纵杆的标准远程控制器所执行。带有操纵杆的标准远程控制器连接到运行适合应用程序(“app”)的移动设备(如智能手机)中,以产生可移动平台的控制指令。app可以用于获取用户的输入。In various embodiments, the input module may be executed by more than one device. For example, the input module can be implemented by a standard remote controller with a joystick. A standard remote controller with a joystick connects to a mobile device (eg, a smartphone) running a suitable application ("app") to generate control commands for the movable platform. The app can be used to get input from the user.
处理单元可以与存储器连接。存储器包括易失性或者非易失性存储介质,用于存储数据,及/或处理单元可执行的逻辑、代码、及/或程序指令,用于执行一个或者多个规则或者功能。存储器可以包括一个或者多个存储单元(可去除的介质或者外部存储器,如SD卡或者RAM)。在某些实施例中,输入模块的数据可以直接传送并存储在存储器的存储单元中。存储器的存储单元可以存储由处理单元所执行的逻辑、代码及/或者计算机指令,以执行本案描述的各种方法的各个实施例。例如,处理单元可以用于执行指令,以导致处理单元的一个或者多个处理器处理及显示从拍摄装置或电机等获取的感应数据(如影像),基于用户输入产生的控制指令,包括运动指令及目标对象信息,并导致通讯模块传送及/或者接收数据等。存储单元可以存储感测数据或者从外部设备(如可移动平台)接收的其它数据。在某些实施例中,存储器的存储单元可以存储处理单元生成的处理结果。The processing unit may be connected to the memory. Memory includes volatile or non-volatile storage media for storing data, and/or logic, code, and/or program instructions executable by a processing unit for performing one or more rules or functions. The memory may include one or more storage units (removable media or external memory such as SD card or RAM). In some embodiments, the data input to the module may be directly transferred and stored in a storage unit of the memory. The storage units of the memory may store logic, code and/or computer instructions executed by the processing unit to perform various embodiments of the various methods described herein. For example, the processing unit may be configured to execute instructions to cause one or more processors of the processing unit to process and display sensory data (eg, images) obtained from cameras or motors, etc., and control commands, including motion commands, generated based on user input and target object information, and cause the communication module to transmit and/or receive data, etc. The storage unit may store sensed data or other data received from an external device such as a removable platform. In some embodiments, the storage unit of the memory may store the processing result generated by the processing unit.
云台的通讯模块可以用于从一个或者多个远程设备(如可移动平台、基站等)传送及/或者接收数据。例如,通讯模块可以传送控制信号(如运动信号、目标对象信息、追踪控制指令)给外围系统或者设备,如上述中对云台及/或负载。通讯模块可以包括传送器 及接收器,分别用于从远程设备接收数据以及传送数据给远程设备。在某些实施例中,通讯模块可以包括收发器,其结合了传送器与接收器的功能。在某些实施例中,传送器与接收器之间以及与处理单元之间可以彼此通讯。通讯可以利用任何合适的通讯手段,如有线通讯或者无线通讯。The communication module of the PTZ can be used to transmit and/or receive data from one or more remote devices (eg, mobile platforms, base stations, etc.). For example, the communication module can transmit control signals (such as motion signals, target object information, and tracking control commands) to peripheral systems or devices, such as the above-mentioned PTZ and/or load. The communication module may include a transmitter and a receiver for receiving data from and transmitting data to the remote device, respectively. In some embodiments, the communication module may include a transceiver that combines the functions of a transmitter and a receiver. In some embodiments, the transmitter and receiver and the processing unit may communicate with each other. Communication may utilize any suitable means of communication, such as wired or wireless communication.
可移动平台在运动过程中捕获的影像可以从可移动平台或者影像设备传回给控制终端或者其它适合的设备,以显示、播放、存储、编辑或者其它目的。这样的传送可以是当影像设备捕获影像时,实时的或者将近实时的发生。可选地,影像的捕获及传送之间可以有延迟。在某些实施例中,影像可以存储在可移动平台的存储器中,而不用传送到任何其它地方。用户可以实时看到这些影像,如果需要,调整目标对象信息或者调整可移动平台或者其部件的其它方面。调整的目标对象信息可以提供给可移动平台,重复的过程可能继续直到获得可想要的影像。在某些实施例中,影像可以从拍摄装置及/或控制终端传送给远程服务器。例如,影像可以在一些社交网络平台,如微信朋友圈或者微博上以进行分享。Images captured by the movable platform during motion can be transmitted from the movable platform or imaging device back to a control terminal or other suitable device for display, playback, storage, editing, or other purposes. Such transmission may occur in real-time or near real-time as the imaging device captures the imagery. Optionally, there may be a delay between the capture and transmission of the imagery. In some embodiments, the imagery may be stored in the removable platform's memory without being transferred anywhere else. The user can view these images in real time and, if necessary, adjust the target object information or adjust other aspects of the movable platform or its components. Adjusted target object information may be provided to the movable platform, and an iterative process may continue until a desired image is obtained. In some embodiments, the imagery may be transmitted from the camera and/or the control terminal to a remote server. For example, images can be shared on some social networking platforms, such as WeChat Moments or Weibo.
在一个实施例中,根据位置改变量控制拍摄装置跟焦或变焦包括:根据位置改变量控制与拍摄装置的镜头啮合的电机来驱动镜头跟焦或变焦。In one embodiment, controlling the camera to follow focus or zoom according to the position change amount includes: controlling a motor engaged with the lens of the camera device according to the position change amount to drive the lens to follow focus or zoom.
在一个实施例中,根据位置改变量控制与拍摄装置的镜头啮合的电机来驱动镜头跟焦或变焦包括:In one embodiment, controlling the motor engaged with the lens of the photographing device to drive the lens to follow focus or zoom according to the position change amount includes:
根据位置改变量和映射关系控制与拍摄装置的镜头啮合的电机来驱动镜头跟焦或变焦,其中,映射关系表征位置改变量与电机的转子位置之间的关系。例如,云台将位置改变量发送给电机,使得电机可以根据位置改变量和映射关系确定电机的转子位置,以通过调整转子位置来驱动镜头跟焦或变焦。The motor engaged with the lens of the photographing device is controlled to drive the lens to follow focus or zoom according to the position change amount and a mapping relationship, wherein the mapping relationship represents the relationship between the position change amount and the rotor position of the motor. For example, the gimbal sends the position change amount to the motor, so that the motor can determine the rotor position of the motor according to the position change amount and the mapping relationship, so as to drive the lens to follow focus or zoom by adjusting the rotor position.
此外,至少一个处理器执行计算机执行指令时还可以实现如下步骤:在满足映射关系的重新标定条件时,输出标定提示信息或者强制终止使用映射关系。In addition, when the at least one processor executes the computer-executed instruction, the following steps may also be implemented: when the re-calibration condition of the mapping relationship is satisfied, output calibration prompt information or forcibly terminate the use of the mapping relationship.
例如,重新标定条件包括以下至少一种:惯性测量单元经历过下电操作;云台经历过下电操作;云台在下电状态下发生的位移超过重新标定位移阈值;惯性测量单元的加速度大于设定加速度阈值。For example, the recalibration conditions include at least one of the following: the inertial measurement unit has undergone a power-off operation; the gimbal has experienced a power-off operation; the displacement of the gimbal in the power-off state exceeds the recalibration displacement threshold; the acceleration of the inertial measurement unit is greater than the set value. Fixed acceleration threshold.
具体内容参考前面的实施例的相同部分,此处不再做赘述。For the specific content, refer to the same part of the previous embodiment, which will not be repeated here.
在一个实施例中,特定方向是标定映射关系时,拍摄装置与拍摄对象之间连线的方向。In one embodiment, the specific direction is the direction of the line connecting the photographing device and the photographing object when the mapping relationship is calibrated.
其中,映射关系是通过标定和/或计算得到的。The mapping relationship is obtained by calibration and/or calculation.
例如,位置改变量和镜头的焦距之间呈线性关系;确定映射关系包括以下至少一种:确定电机的转子位置和位置改变量之间的第一映射关系;或者;确定电机的转子位置和焦距改变量之间的第二映射关系。For example, there is a linear relationship between the position change amount and the focal length of the lens; determining the mapping relationship includes at least one of the following: determining a first mapping relationship between the rotor position of the motor and the position change amount; or; determining the rotor position and focal length of the motor A second mapping relationship between changes.
这样就可以基于第二映射关系、拍摄对象图像尺寸和拍摄对象尺寸计算与各位置改变量对应的电机的转子位置。In this way, the rotor position of the motor corresponding to each position change amount can be calculated based on the second mapping relationship, the image size of the subject, and the size of the subject.
又例如,确定电机的转子位置和位置改变量之间的第一映射关系包括:针对变焦电机,确定第一预设占比,第一预设占比是拍摄对象的图像在拍摄装置的拍摄画面中的占比;在拍摄装置沿特定方向移动第一距离时,获取第一变焦调节指令,第一变焦调节指令用于控制变焦电机驱动镜头改变焦距,以使拍摄对象的图像在拍摄装置的拍摄画面中占比处于第一预设占比,得到第一转子位置;在拍摄装置沿特定方向移动第二距离时,获取用户的第二变焦调节指令,第二变焦调节指令用于控制变焦电机驱动镜头改变焦距,以使拍摄对象 的图像在拍摄装置的拍摄画面中占比处于第一预设占比,得到第二转子位置;基于第一距离、第一转子位置、第二距离和第二转子位置确定第一映射关系。For another example, determining the first mapping relationship between the rotor position of the motor and the position change amount includes: for the zoom motor, determining a first preset proportion, where the first preset proportion is the image of the object to be photographed in the photographing screen of the photographing device When the photographing device moves a first distance in a specific direction, a first zoom adjustment instruction is obtained, and the first zoom adjustment instruction is used to control the zoom motor to drive the lens to change the focal length, so that the image of the photographed object can be captured by the photographing device. When the proportion in the picture is at the first preset proportion, the first rotor position is obtained; when the photographing device moves a second distance in a specific direction, a second zoom adjustment instruction from the user is obtained, and the second zoom adjustment instruction is used to control the drive of the zoom motor The lens changes the focal length, so that the proportion of the image of the photographed object in the photographed image of the photographing device is at the first preset proportion, and the second rotor position is obtained; based on the first distance, the first rotor position, the second distance and the second rotor The location determines the first mapping relationship.
又例如,确定电机的转子位置和位置改变量之间的第一映射关系包括:针对跟焦电机,在拍摄装置沿特定方向移动第三距离时,获取用户的第一合焦调节指令,第一合焦调节指令用于控制跟焦电机来驱动镜头跟焦,以使拍摄对象的图像在拍摄装置的拍摄画面处于合焦状态,得到第三转子位置;在拍摄装置沿特定方向移动第四距离时,获取用户的第二合焦调节指令,第二合焦调节指令用于控制跟焦电机来驱动镜头跟焦,以使拍摄对象的图像在拍摄装置的拍摄画面处于合焦状态,得到第四转子位置;基于第三距离、第三转子位置、第四距离和第四转子位置确定第一映射关系。For another example, determining the first mapping relationship between the rotor position of the motor and the position change amount includes: for the follow-focus motor, when the photographing device moves a third distance in a specific direction, acquiring the user's first focus-focusing adjustment instruction, the first The in-focus adjustment command is used to control the follow-focus motor to drive the lens to follow-focus, so that the image of the photographed object is in the in-focus state on the shooting screen of the photographing device, and the third rotor position is obtained; when the photographing device moves a fourth distance in a specific direction , obtain the user's second in-focus adjustment instruction, and the second in-focus adjustment instruction is used to control the follow-focus motor to drive the lens to follow-focus, so that the image of the photographed object is in the in-focus state on the shooting screen of the shooting device, and the fourth rotor is obtained. a position; a first mapping relationship is determined based on the third distance, the third rotor position, the fourth distance, and the fourth rotor position.
在一个实施例中,位置改变量和镜头的焦距之间呈线性关系,当通过计算的方式确定映射关系时,计算涉及的计算参数包括:拍摄对象图像尺寸、拍摄对象尺寸、起始位置物距和法兰距,其中,法兰距与凸轮筒结构参数和电机齿轮减速比相关。In one embodiment, there is a linear relationship between the position change amount and the focal length of the lens. When the mapping relationship is determined by calculation, the calculation parameters involved in the calculation include: the image size of the shooting object, the shooting object size, the starting position and the object distance and the flange distance, where the flange distance is related to the structural parameters of the cam barrel and the gear reduction ratio of the motor.
在一个实施例中,根据位置改变量控制与拍摄装置的镜头啮合的电机来驱动镜头跟焦或变焦包括以下至少一种:根据位置改变量控制与拍摄装置的镜头啮合的变焦电机来驱动镜头变焦,以使拍摄对象的图像在拍摄装置的拍摄画面中占比保持稳定;根据位置改变量控制与拍摄装置的镜头啮合的跟焦电机来驱动镜头跟焦,以使拍摄对象在拍摄装置的拍摄画面中处于合焦状态。In one embodiment, controlling the motor engaged with the lens of the photographing device to drive the lens to follow focus or zoom according to the position change amount includes at least one of the following: controlling the zoom motor engaged with the lens of the photographing device according to the position change amount to drive the lens to zoom , so that the proportion of the image of the subject in the shooting screen of the shooting device remains stable; the follow focus motor engaged with the lens of the shooting device is controlled according to the position change to drive the lens to follow focus, so that the subject is in the shooting screen of the shooting device. is in focus.
在一个实施例中,拍摄对象的图像在拍摄装置的拍摄画面中占比是基于第一用户操作确定的。In one embodiment, the proportion of the image of the photographing object in the photographing screen of the photographing device is determined based on the first user operation.
例如,第一用户操作包括用户在用户交互界面中输入占比的操作,其中,用户在用户交互界面中输入的占比是以预设点作为基点;或者第一用户操作包括用户在用户交互界面中输入占比以及基点的操作;或者第一用户操作包括用户在用户交互界面中输入至少两个基点的操作。For example, the first user operation includes an operation in which the user inputs a proportion in the user interaction interface, wherein the proportion input by the user in the user interaction interface is based on a preset point; or the first user operation includes the user in the user interaction interface. The operation of inputting the percentage and the base point in the user interface; or the first user operation includes an operation of the user inputting at least two base points in the user interaction interface.
其中,变焦电机的转轴可以与镜头的变焦环啮合,跟焦电机的转轴可以与镜头的跟焦环啮合。The rotating shaft of the zoom motor can be engaged with the zoom ring of the lens, and the rotating shaft of the follow focus motor can be engaged with the follow focus ring of the lens.
例如,拍摄装置的拍摄对象是基于用户针对用户交互界面的第二用户操作来确定的;或者拍摄装置的拍摄对象是通过图像识别来确定的。For example, the photographing object of the photographing device is determined based on the user's second user operation on the user interaction interface; or the photographing object of the photographing device is determined through image recognition.
在一个实施例中,拍摄装置可拆卸地承载在云台的承载座上;并且/或者惯性测量单元设置在云台和/或拍摄装置上;并且/或者电机可拆卸地承载在云台的承载座上。In one embodiment, the photographing device is detachably carried on the bearing seat of the gimbal; and/or the inertial measurement unit is provided on the gimbal and/or the photographing device; and/or the motor is detachably carried on the bearing of the gimbal seat.
例如,拍摄装置可拆卸地承载在云台的承载座上,云台与拍摄装置通信连接,云台的手持部上设置显示屏,显示屏能够显示拍摄装置的拍摄画面。For example, the photographing device is detachably carried on the bearing seat of the gimbal, the gimbal is communicatively connected to the photographing device, and a display screen is provided on the hand-held part of the gimbal, and the display screen can display the shooting image of the photographing device.
在一个实施例中,至少一个处理器执行计算机执行指令时实现如下步骤:如果拍摄装置与拍摄对象之间的连线方向与特定方向之间的夹角满足简化条件,则将基于惯性测量单元中加速度计的测量信息确定的位置改变量作为拍摄装置在特定方向上的位置改变量。In one embodiment, when the at least one processor executes the computer-executed instructions, the following steps are implemented: if the included angle between the direction of the line connecting the photographing device and the photographed object and the specific direction satisfies the simplified condition, then based on the inertial measurement unit The position change amount determined by the measurement information of the accelerometer is used as the position change amount of the photographing device in a specific direction.
当拍摄装置设置在云台上时,云台的手持部上设置跟焦轮和/或变焦轮。When the photographing device is set on the gimbal, a focus wheel and/or a zoom wheel are arranged on the hand-held part of the gimbal.
相应地,至少一个处理器执行计算机执行指令时实现如下步骤:接收针对跟焦轮和/或变焦轮的第三用户操作,以基于第三用户操作控制拍摄装置跟焦或变焦。Correspondingly, when the at least one processor executes the computer-executed instructions, the following steps are implemented: receiving a third user operation on the follow focus wheel and/or the zoom wheel, so as to control the camera device to follow focus or zoom based on the third user operation.
具体内容参考前面的实施例的相同部分,此处不再做赘述。For the specific content, refer to the same part of the previous embodiment, which will not be repeated here.
在一个实施例中,拍摄控制装置设置在电机中。例如,电机可以是跟焦电机或变焦电 机。以变焦电机为例,该变焦电机可以包括:控制电路和驱动装置。其中,控制电路可以包括处理器和存储介质。该存储介质中可以存储有计算机指令和映射关系(如第一映射关系、第二映射关系)等。In one embodiment, the capture control device is provided in the motor. For example, the motor can be a follow focus motor or a zoom motor. Taking a zoom motor as an example, the zoom motor may include: a control circuit and a driving device. Wherein, the control circuit may include a processor and a storage medium. The storage medium may store computer instructions and mapping relationships (eg, a first mapping relationship, a second mapping relationship), and the like.
本申请的另一方面还提供了一种云台组件。图18为本申请实施例提供的云台组件的框图。Another aspect of the present application also provides a pan/tilt assembly. FIG. 18 is a block diagram of a pan/tilt assembly provided by an embodiment of the present application.
如图18所示,该云台组件可以包括云台、可拆卸于云台的电机,以及设于云台和电机中的一个上的拍摄控制装置。该云台上可以用于承载拍摄装置。如拍摄装置可以以结构固定(如通过拍摄装置固定机构进行固定)的方式可拆卸地设置在云台上。As shown in FIG. 18 , the pan/tilt assembly may include a pan/tilt, a motor detachable from the pan/tilt, and a shooting control device disposed on one of the pan/tilt and the motor. The pan/tilt can be used to carry a photographing device. For example, the photographing device may be detachably arranged on the pan/tilt in a structurally fixed manner (eg, fixed by a photographing device fixing mechanism).
电机由拍摄装置固定机构与相机、镜头固定连接,通过减速齿轮驱动镜头实现变焦。相机、镜头与IMU的位置关系固定,因此IMU测到的距离变化量可认为与相机的位移一致。The motor is fixedly connected with the camera and the lens by the fixing mechanism of the shooting device, and the lens is driven by the reduction gear to realize zooming. The positional relationship between the camera, the lens and the IMU is fixed, so the distance change measured by the IMU can be considered to be consistent with the displacement of the camera.
云台上可以设置有IMU。例如,IMU包括加速度计,从而对基于加速度计采集的加速度信息进行积分,得到速度信息,以及对速度信息进行积分,得到位移信息。IMU采集的测量信息可以包括不同采样时刻对应的拍摄装置发生的位置改变量。IMU与拍摄装置之间的距离差为一固定值,则可以将IMU与拍摄装置之间的距离改变量作为拍摄对象与拍摄装置之间的距离改变量。例如,IMU的基准面位于拍摄装置的下方。该位置改变量的计算处理可以通过IMU内的控制器或者通过电机内的控制器进行处理,本实施例对此不做限定。An IMU can be set on the gimbal. For example, the IMU includes an accelerometer, thereby integrating acceleration information collected based on the accelerometer to obtain velocity information, and integrating the velocity information to obtain displacement information. The measurement information collected by the IMU may include the amount of position change of the photographing device corresponding to different sampling moments. The distance difference between the IMU and the photographing device is a fixed value, and the amount of change in the distance between the IMU and the photographing device may be used as the amount of change in the distance between the photographing object and the photographing device. For example, the reference plane of the IMU is located below the camera. The calculation processing of the position change amount may be performed by a controller in the IMU or by a controller in the motor, which is not limited in this embodiment.
可选地,该云台的拍摄装置固定机构可将电机和相机本体底部固定连接,镜头通过卡口安装到相机本体上后,电机即可驱动镜头转动。Optionally, the camera fixing mechanism of the pan/tilt head can fix the motor to the bottom of the camera body, and after the lens is mounted on the camera body through the bayonet, the motor can drive the lens to rotate.
该云台上可以设置跟焦轮和/或变焦轮,跟焦轮和/或变焦轮可以推送跟焦轮或变焦轮当前的转动位置和转动速度数据给电机,从而使电机转动到与跟焦轮或变焦轮相对应的指定位置。在本申请实施例中的参数标定环节中,可以使用跟焦轮或变焦轮驱动电机到达至少两个指定焦距,从而完成拍摄装置与拍摄对象之间的距离改变量与电机的转子位置改变量的映射关系的标定。A follow focus wheel and/or zoom wheel can be set on the gimbal, and the follow focus wheel and/or zoom wheel can push the current rotation position and rotation speed data of the follow focus wheel or zoom wheel to the motor, so that the motor rotates to the same level as the follow focus wheel. the specified position corresponding to the wheel or zoom wheel. In the parameter calibration link in the embodiment of the present application, the focus wheel or the zoom wheel can be used to drive the motor to reach at least two specified focal lengths, so as to complete the change of the distance between the photographing device and the photographed object and the change of the rotor position of the motor. Calibration of the mapping relationship.
该云台上可以设置显示屏,在使用本申请实施例提供的拍摄控制方法中的跟焦或变焦过程中,用户还可以通过在显示屏输入控制指令进行模式选择,将自动模式切换到手动模式,通过使用跟焦轮或变焦轮来控制电机的位置来实现跟焦或变焦。A display screen can be set on the gimbal, and during the follow focus or zoom process in the shooting control method provided by the embodiment of the present application, the user can also select a mode by inputting a control command on the display screen, and switch the automatic mode to the manual mode , to achieve follow focus or zoom by using the follow focus wheel or zoom wheel to control the position of the motor.
电机为执行机构,包括控制电路(如位置控制器)和驱动装置,该位置控制器用于根据与电机连接的跟焦轮或变焦轮给出的控制指令或者与IMU连接的控制器给出的控制指令,输出力矩,通过齿轮传动驱动与电机啮合的镜头跟焦或变焦。可选地,跟焦电机与拍摄装置中镜头的跟焦环啮合,和/或,变焦电机与拍摄装置中镜头的变焦环啮合。The motor is an actuator, including a control circuit (such as a position controller) and a driving device. The position controller is used for the control instructions given by the focus wheel or zoom wheel connected to the motor or the control given by the controller connected to the IMU. Command, output torque, drive the lens meshed with the motor to follow focus or zoom through gear transmission. Optionally, the follow focus motor is engaged with the follow focus ring of the lens in the photographing device, and/or the zoom motor is engaged with the zoom ring of the lens in the photographing device.
拍摄装置,包括镜头和相机本体,用于在电机驱动镜头变焦或跟焦后,对拍摄对象进行拍摄获得图像。相机本体可以为手持单反或微单相机的相机本体。镜头是包括变焦环和跟焦环的镜头,如手动镜头。本实施例中的镜头也可以支持手动对焦、跟焦。The photographing device includes a lens and a camera body, and is used for photographing a photographed object to obtain an image after the motor drives the lens to zoom or follow focus. The camera body can be a camera body of a handheld single-lens reflex or mirrorless camera. A lens is one that includes a zoom ring and a follow focus ring, like a manual lens. The lens in this embodiment can also support manual focus and follow focus.
拍摄应理解,上述对于云台组件各组成部分的命名仅是出于标识的目的,并不应理解为对本申请的实施例的限制。It should be understood that the above naming of the components of the pan/tilt assembly is only for the purpose of identification, and should not be construed as a limitation on the embodiments of the present application.
其中,拍摄控制装置包括:至少一个处理器和存储器。Wherein, the photographing control device includes: at least one processor and a memory.
存储器存储计算机执行指令。The memory stores instructions for execution by the computer.
至少一个处理器执行存储器存储的计算机执行指令,使得执行计算机执行指令时实现如上所示的至少部分步骤。At least one processor executes computer-implemented instructions stored in the memory such that at least some of the steps described above are performed when the computer-implemented instructions are executed.
可以理解,在一些实施例中,上述步骤也可以是分别由云台、电机配合完成,例如:It can be understood that, in some embodiments, the above steps may also be completed by the pan/tilt and the motor, for example:
在一个实施例中,云台通过惯性测量单元中加速度计的测量信息,确定云台承载的拍摄装置在特定方向上的位置改变量,惯性测量单元设置在云台中,惯性测量单元用于测量拍摄装置的姿态信息;云台将位置改变量传输给电机;电机根据位置改变量驱动拍摄装置跟焦或变焦。In one embodiment, the gimbal determines the position change amount of the photographing device carried by the gimbal in a specific direction by using the measurement information of the accelerometer in the inertial measurement unit, the inertial measurement unit is arranged in the gimbal, and the inertial measurement unit is used to measure the shooting The attitude information of the device; the gimbal transmits the position change to the motor; the motor drives the camera to follow focus or zoom according to the position change.
例如,电机与拍摄装置的镜头啮合,电机根据位置改变量驱动镜头跟焦或变焦。For example, the motor is engaged with the lens of the camera, and the motor drives the lens to focus or zoom according to the amount of position change.
具体地,电机根据位置改变量和映射关系确定转子位置,以驱动镜头跟焦或变焦,其中,映射关系表征位置改变量与电机的转子位置之间的关系。Specifically, the motor determines the rotor position according to the position change amount and a mapping relationship to drive the lens to follow focus or zoom, wherein the mapping relationship represents the relationship between the position change amount and the rotor position of the motor.
在一个实施例中,云台在满足映射关系的重新标定条件时,输出标定提示信息或者强制终止使用映射关系。In one embodiment, when the re-calibration condition of the mapping relationship is satisfied, the PTZ outputs calibration prompt information or forcibly terminates the use of the mapping relationship.
例如,重新标定条件包括以下至少一种:惯性测量单元经历过下电操作;云台经历过下电操作;云台在下电状态下发生的位移超过重新标定位移阈值;惯性测量单元的加速度大于设定加速度阈值。For example, the recalibration conditions include at least one of the following: the inertial measurement unit has undergone a power-off operation; the gimbal has experienced a power-off operation; the displacement of the gimbal in the power-off state exceeds the recalibration displacement threshold; the acceleration of the inertial measurement unit is greater than the set value. Fixed acceleration threshold.
具体内容参考前面的实施例的相同部分,此处不再做赘述。For the specific content, refer to the same part of the previous embodiment, which will not be repeated here.
在一个实施例中,特定方向是标定映射关系时,拍摄装置与拍摄对象之间连线的方向。In one embodiment, the specific direction is the direction of the line connecting the photographing device and the photographing object when the mapping relationship is calibrated.
相应地,映射关系是通过标定和/或计算得到的。Correspondingly, the mapping relationship is obtained by calibration and/or calculation.
具体地,位置改变量和镜头的焦距之间呈线性关系。相应地,确定映射关系包括以下至少一种:确定电机的转子位置和位置改变量之间的第一映射关系。或者,首先,确定电机的转子位置和焦距改变量之间的第二映射关系;然后,基于第二映射关系、拍摄对象图像尺寸和拍摄对象尺寸计算与各位置改变量对应的电机的转子位置。Specifically, there is a linear relationship between the amount of position change and the focal length of the lens. Correspondingly, determining the mapping relationship includes at least one of the following: determining a first mapping relationship between the rotor position of the motor and the position change amount. Alternatively, first, determine the second mapping relationship between the rotor position of the motor and the focal length change amount; then, calculate the rotor position of the motor corresponding to each position change amount based on the second mapping relationship, the image size of the subject and the size of the subject.
例如,针对变焦电机,云台获取第一预设占比,第一预设占比是拍摄对象的图像在拍摄装置的拍摄画面中的占比;云台在拍摄装置沿特定方向移动第一距离时,获取第一变焦调节指令,第一变焦调节指令用于控制变焦电机驱动镜头改变焦距,以使拍摄对象的图像在拍摄装置的拍摄画面中占比处于第一预设占比,得到第一转子位置;云台在拍摄装置沿特定方向移动第二距离时,获取用户的第二变焦调节指令,第二变焦调节指令用于控制变焦电机驱动镜头改变焦距,以使拍摄对象的图像在拍摄装置的拍摄画面中占比处于第一预设占比,得到第二转子位置;电机基于第一距离、第一转子位置、第二距离和第二转子位置确定第一映射关系。For example, for the zoom motor, the gimbal obtains a first preset proportion, which is the proportion of the image of the photographed object in the photographing screen of the photographing device; the gimbal moves a first distance along a specific direction in the photographing device When the first zoom adjustment instruction is obtained, the first zoom adjustment instruction is used to control the zoom motor to drive the lens to change the focal length, so that the proportion of the image of the shooting object in the shooting screen of the shooting device is at the first preset proportion, and the first zoom adjustment instruction is obtained. Rotor position; when the camera moves a second distance in a specific direction, the pan/tilt obtains a second zoom adjustment instruction from the user, and the second zoom adjustment instruction is used to control the zoom motor to drive the lens to change the focal length, so that the image of the object can be captured in the camera. The ratio of the captured images is at the first preset ratio, and the second rotor position is obtained; the motor determines the first mapping relationship based on the first distance, the first rotor position, the second distance and the second rotor position.
例如,针对跟焦电机,云台在拍摄装置沿特定方向移动第三距离时,获取用户的第一合焦调节指令,第一合焦调节指令用于控制跟焦电机来驱动镜头跟焦,以使拍摄对象的图像在拍摄装置的拍摄画面处于合焦状态,得到第三转子位置;云台在拍摄装置沿特定方向移动第四距离时,获取用户的第二合焦调节指令,第二合焦调节指令用于控制跟焦电机来驱动镜头跟焦,以使拍摄对象的图像在拍摄装置的拍摄画面处于合焦状态,得到第四转子位置;电机基于第三距离、第三转子位置、第四距离和第四转子位置确定第一映射关系。For example, for the follow focus motor, when the camera moves a third distance in a specific direction, the gimbal obtains the user's first focus adjustment instruction, and the first focus adjustment instruction is used to control the follow focus motor to drive the lens to follow focus, so as to The image of the subject is in focus on the shooting screen of the shooting device, and the third rotor position is obtained; when the camera moves a fourth distance in a specific direction, the gimbal obtains the user's second focus adjustment instruction, and the second focus is achieved. The adjustment command is used to control the follow focus motor to drive the lens to follow focus, so that the image of the subject is in focus on the shooting screen of the shooting device, and the fourth rotor position is obtained; the motor is based on the third distance, the third rotor position, and the fourth rotor position. The distance and the fourth rotor position determine a first mapping relationship.
例如,位置改变量和镜头的焦距之间呈线性关系,当通过计算的方式确定映射关系时,计算涉及的计算参数包括:拍摄对象图像尺寸、拍摄对象尺寸、起始位置物距和法兰距,其中,法兰距与凸轮筒结构参数和电机齿轮减速比相关。For example, there is a linear relationship between the amount of position change and the focal length of the lens. When the mapping relationship is determined by calculation, the calculation parameters involved in the calculation include: image size of the subject, size of the subject, object distance at the starting position, and flange distance , where the flange distance is related to the structural parameters of the cam barrel and the gear reduction ratio of the motor.
具体内容参考前面的实施例的相同部分,此处不再做赘述。For the specific content, refer to the same part of the previous embodiment, which will not be repeated here.
在一个实施例中,电机根据位置改变量驱动镜头跟焦或变焦包括以下至少一种:电机根据位置改变量驱动拍摄装置的镜头变焦,以使拍摄对象的图像在拍摄装置的拍摄画面中占比保持稳定;或者,电机根据位置改变量驱动镜头跟焦,以使拍摄对象在拍摄装置的拍摄画面中处于合焦状态。In one embodiment, the motor driving the lens to follow focus or zoom according to the position change includes at least one of the following: the motor drives the lens of the photographing device to zoom according to the position change, so that the image of the photographed object occupies a proportion of the photographing frame of the photographing device Keep it stable; or, the motor drives the lens to follow focus according to the amount of position change, so that the subject is in focus in the shooting screen of the shooting device.
例如,拍摄对象的图像在拍摄装置的拍摄画面中占比是基于针对云台或拍摄装置的第一用户操作确定的。For example, the proportion of the image of the photographing object in the photographing screen of the photographing device is determined based on the first user operation on the pan/tilt or the photographing device.
具体地,云台或拍摄装置的显示屏能显示用户交互界面。Specifically, the display screen of the gimbal or the photographing device can display the user interaction interface.
相应地,第一用户操作包括用户在用户交互界面中输入占比的操作,其中,用户在用户交互界面中输入的占比是以预设点作为基点;或者第一用户操作包括用户在用户交互界面中输入占比以及基点的操作;或者第一用户操作包括用户在用户交互界面中输入至少两个基点的操作。Correspondingly, the first user operation includes an operation of the user inputting a proportion in the user interaction interface, wherein the proportion input by the user in the user interaction interface is based on a preset point; or the first user operation includes the user interacting with the user. The operation of inputting the ratio and the base point in the interface; or the first user operation includes the operation of the user inputting at least two base points in the user interaction interface.
例如,变焦电机的转轴与镜头的变焦环啮合,跟焦电机的转轴与镜头的跟焦环啮合。For example, the shaft of the zoom motor is engaged with the zoom ring of the lens, and the shaft of the follow focus motor is engaged with the follow focus ring of the lens.
又例如,拍摄装置的拍摄对象是基于用户针对用户交互界面的第二用户操作来确定的;或者拍摄装置的拍摄对象是通过图像识别来确定的。For another example, the photographing object of the photographing device is determined based on the second user operation of the user on the user interaction interface; or the photographing object of the photographing device is determined through image recognition.
具体内容参考前面的实施例的相同部分,此处不再做赘述。For the specific content, refer to the same part of the previous embodiment, which will not be repeated here.
在一个实施例中,拍摄装置可拆卸地承载在云台的承载座上;并且/或者;电机可拆卸地承载在云台的承载座上。In one embodiment, the photographing device is detachably carried on the bearing seat of the gimbal; and/or; the motor is detachably carried on the bearing seat of the gimbal.
在一个实施例中,拍摄装置可拆卸地承载在云台的承载座上,云台与拍摄装置通信连接,云台的手持部上设置显示屏,显示屏能够显示拍摄装置的拍摄画面。In one embodiment, the photographing device is detachably carried on the bearing seat of the pan/tilt, the pan/tilt is communicatively connected to the photographing device, and a display screen is provided on the hand-held part of the pan/tilt, and the display screen can display the photographing image of the photographing device.
例如,如果拍摄装置与拍摄对象之间的连线方向与特定方向之间的夹角满足简化条件,则电机基于惯性测量单元中加速度计的测量信息确定的位置改变量作为拍摄装置在特定方向上的位置改变量。For example, if the angle between the connection direction between the photographing device and the photographed object and the specific direction satisfies the simplified condition, the position change amount determined by the motor based on the measurement information of the accelerometer in the inertial measurement unit is used as the photographing device in the specific direction. position change.
在一个实施例中,拍摄装置设置在云台上,云台的手持部上设置跟焦轮和/或变焦轮。相应地,云台接收针对跟焦轮和/或变焦轮的第三用户操作,以控制与拍摄装置的镜头啮合的电机来驱动镜头跟焦或变焦。In one embodiment, the photographing device is set on a pan/tilt head, and a focus wheel and/or a zoom wheel are provided on the hand-held part of the pan/tilt head. Correspondingly, the pan/tilt head receives a third user operation on the focus wheel and/or the zoom wheel, so as to control the motor engaged with the lens of the photographing device to drive the lens to focus or zoom.
本申请实施例可以有效改善当前相机控制器跟焦控制出现的不平滑不连续的问题。需要说明的是,本申请实施例还可以通过预设调焦曲线达到创意跟焦效果。此外,结合现有的模式如定点延时和轨迹延时拍摄出具有焦点变化的延时摄影创作,为使用者提供了更多的可创作空间。The embodiments of the present application can effectively improve the unevenness and discontinuity of the current camera controller follow focus control. It should be noted that, in this embodiment of the present application, a creative follow focus effect can also be achieved by using a preset focusing curve. In addition, combining existing modes such as fixed-point time-lapse and trajectory time-lapse to create time-lapse photography with focus changes, it provides users with more creative space.
图19为本申请实施例提供的电机的原理图。FIG. 19 is a schematic diagram of a motor provided by an embodiment of the present application.
如图19所示,以变焦环为例,通过齿轮啮合驱动手动镜头变焦环运动进行变焦控制,电机控制系统采用常见的矢量控制策略,采用线性霍尔传感器反馈电机转子位置,根据位置、电流反馈信号实现电流闭环,在电流环、速度环的基础上实现位置闭环控制,控制电机转子旋转的角度进而控制变焦环的位置,实现对镜头焦距的控制。As shown in Figure 19, taking the zoom ring as an example, the zoom control is performed by driving the movement of the manual lens zoom ring through gear meshing. The motor control system adopts a common vector control strategy, and uses a linear Hall sensor to feedback the position of the motor rotor. According to the position and current feedback The signal realizes the current closed loop, realizes the position closed loop control on the basis of the current loop and the speed loop, controls the rotation angle of the motor rotor and then controls the position of the zoom ring, and realizes the control of the focal length of the lens.
图19中目标位置是基于拍摄装置在特定方向上的位置改变量以及映射关系来确定的。拍摄装置在特定方向上的位置改变量可以基于来自IMU的测量信息(如加速度信息)来确定的。The target position in FIG. 19 is determined based on the position change amount of the photographing device in a specific direction and the mapping relationship. The amount of change in the position of the camera in a particular direction may be determined based on measurement information (eg, acceleration information) from the IMU.
位置环控制器基于位置改变量和来自驱动电路反馈电路的位置反馈之间的差值来确 定目标速度。速度环控制器基于该目标速度和来自驱动电路反馈电路的速度反馈之间的差值来确定目标电流。电流环控制器基于该目标电流和来自驱动电路反馈电路的电流反馈之间的差值来确定控制信号,该控制信号用于控制电机(如永磁同步电机)驱动镜头的变焦环或跟焦环。The position loop controller determines the target speed based on the difference between the amount of change in position and the position feedback from the drive circuit feedback circuit. The speed loop controller determines the target current based on the difference between the target speed and the speed feedback from the drive circuit feedback circuit. The current loop controller determines a control signal based on the difference between the target current and the current feedback from the drive circuit feedback circuit, the control signal is used to control the motor (such as a permanent magnet synchronous motor) to drive the zoom ring or focus ring of the lens .
以下以手持云台为例,对上述各操作的执行主体进行示例性说明。例如,上述各操作的执行主体都可以是手持云台或电机来实现,具体可以由手持云台的输入部、把持部件、设置在把持部件中的处理器、云台承载的电机等实现对应的功能。The following takes the handheld pan/tilt as an example to illustrate the execution subject of each of the above operations. For example, the execution subject of each of the above operations can be implemented by a handheld pan/tilt or a motor. Specifically, the input part of the handheld pan/tilt, a holding part, a processor arranged in the holding part, a motor carried by the pan/tilt, etc. Function.
例如,确定云台承载的拍摄装置在特定方向上的位置改变量的操作可以由云台实现。根据位置改变量驱动拍摄装置跟焦或变焦的操作可以由电机来实现。根据位置改变量和映射关系确定转子位置,以驱动镜头跟焦或变焦的操作可以由电机来实现。显示信息的相关操作可以由云台上的显示器来执行。For example, the operation of determining the position change amount of the photographing device carried by the gimbal in a specific direction may be implemented by the gimbal. The operation of driving the photographing device to follow focus or zoom according to the amount of position change may be implemented by a motor. The rotor position is determined according to the position change amount and the mapping relationship, and the operation of driving the lens to follow focus or zoom can be realized by a motor. Operations related to displaying information can be performed by the display on the PTZ.
以下以可移动平台机载的云台为例,对上述各操作的执行主体进行示例性说明。Hereinafter, the execution subject of each of the above operations will be exemplarily described by taking a pan/tilt mounted on the mobile platform as an example.
确定拍摄装置在特定方向上的位置改变量可以是由云台、电机、可移动平台(如处理器)或可移动平台的控制终端(如设置在陆地机器人上的控制终端)确定的。Determining the position change amount of the photographing device in a specific direction may be determined by a pan/tilt, a motor, a movable platform (eg, a processor) or a control terminal of the movable platform (eg, a control terminal provided on a land robot).
根据位置改变量控制与拍摄装置的镜头啮合的电机来驱动镜头跟焦或变焦,可以是由云台或电机执行的。Controlling the motor engaged with the lens of the photographing device to drive the lens to follow focus or zoom according to the position change amount may be performed by a pan/tilt or a motor.
根据位置改变量和映射关系控制与拍摄装置的镜头啮合的电机来驱动镜头跟焦或变焦可以是由电机或云台执行的。Controlling the motor engaged with the lens of the photographing device to drive the lens to follow focus or zoom according to the position change amount and the mapping relationship may be performed by a motor or a pan/tilt head.
输出标定提示信息或者强制终止使用映射关系可以是由云台或控制终端上的显示屏或其它输出部件执行的。Outputting the calibration prompt information or forcibly terminating the use of the mapping relationship may be performed by the display screen or other output components on the PTZ or the control terminal.
第一用户操作、第二用户操作、第三用户操作可以是由控制终端接收的。The first user operation, the second user operation, and the third user operation may be received by the control terminal.
图像处理和目标对象识别的操作,可以是由可移动平台的控制终端、云台、负载或可移动平台确定的。The operation of image processing and target object recognition can be determined by the control terminal of the movable platform, the pan/tilt, the load or the movable platform.
需要说明的是,上述各操作的执行主体仅为示例性说明,不能理解为对本申请的限定,可以由可移动平台、控制终端、拍摄装置、云台其中的一个独立完成,或其中的几个配合完成。例如,对于可移动平台是陆地机器人的情形下,可以在陆地机器人上设置人机交互模块(如包括用于显示人机交互界面的显示器等),用户可以直接在可移动平台展示的交互界面上获取用户操作,以生成用户指令,确定目标对象的图像等。其中,独立完成包括主动或被动地、直接或间接地从其它设备获取相应数据以执行相应操作。It should be noted that the execution subjects of the above operations are only exemplary descriptions, and should not be construed as limitations on this application, and may be independently completed by one of the movable platform, the control terminal, the photographing device, and the PTZ, or several of them. The cooperation is complete. For example, in the case where the movable platform is a land robot, a human-computer interaction module (such as a display for displaying a human-computer interaction interface, etc.) can be set on the land robot, and the user can directly display the interactive interface on the movable platform. Get user actions to generate user commands, determine images of target objects, etc. Wherein, the independent completion includes actively or passively, directly or indirectly acquiring corresponding data from other devices to perform corresponding operations.
本申请的实施例还提供了一种计算机程序产品,其包括计算机程序,该计算机程序包含用于执行本申请实施例所提供的方法的程序代码,当计算机程序产品在电子设备上运行时,该程序代码用于使电子设备实现本申请实施例所提供的图像模型训练方法或图像处理方法。The embodiments of the present application also provide a computer program product, which includes a computer program, the computer program includes program codes for executing the methods provided by the embodiments of the present application, when the computer program product runs on an electronic device, the The program code is used to enable the electronic device to implement the image model training method or the image processing method provided by the embodiments of the present application.
在该计算机程序被处理器执行时,执行本申请实施例的系统/装置中限定的上述功能。根据本申请的实施例,上文描述的系统、装置、模块、单元等可以通过计算机程序模块来实现。When the computer program is executed by the processor, the above-mentioned functions defined in the system/device of the embodiments of the present application are executed. According to the embodiments of the present application, the systems, apparatuses, modules, units, etc. described above may be implemented by computer program modules.
在一种实施例中,该计算机程序可以依托于光存储器件、磁存储器件等有形存储介质。在另一种实施例中,该计算机程序也可以在网络介质上以信号的形式进行传输、分发,并通过通信部分被下载和安装,和/或从可拆卸介质被安装。该计算机程序包含的程序代码 可以用任何适当的网络介质传输,包括但不限于:无线、有线等等,或者上述的任意合适的组合。In one embodiment, the computer program may rely on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like. In another embodiment, the computer program may also be transmitted, distributed in the form of a signal over a network medium, and downloaded and installed through the communication portion, and/or installed from a removable medium. The program code embodied by the computer program may be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
根据本申请的实施例,可以以一种或多种程序设计语言的任意组合来编写用于执行本申请实施例提供的计算机程序的程序代码,具体地,可以利用高级过程和/或面向对象的编程语言、和/或汇编/机器语言来实施这些计算程序。程序设计语言包括但不限于诸如Java,C++,python,“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算设备上执行、部分地在用户设备上执行、部分在远程计算设备上执行、或者完全在远程计算设备或服务器上执行。在涉及远程计算设备的情形中,远程计算设备可以通过任意种类的网络,包括局域网(LAN)或广域网(WAN),连接到用户计算设备,或者,可以连接到外部计算设备(例如利用因特网服务提供商来通过因特网连接)。According to the embodiments of the present application, the program code for executing the computer program provided by the embodiments of the present application may be written in any combination of one or more programming languages. programming language, and/or assembly/machine language to implement these computational programs. Programming languages include, but are not limited to, languages such as Java, C++, python, "C" or similar programming languages. The program code may execute entirely on the user computing device, partly on the user device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (eg, using an Internet service provider business via an Internet connection).
以上为本申请的最优实施例,需要说明的,该最优的实施例仅用于理解本申请,并不用于限制本申请的保护范围。并且,最优实施例中的特征,在无特别注明的情况下,均同时适用于方法实施例和装置实施例,在相同或不同实施例中出现的技术特征在不相互冲突的情况下可以组合使用。The above are the best embodiments of the present application, and it should be noted that the best embodiments are only used for understanding the present application, and are not used to limit the protection scope of the present application. In addition, the features in the preferred embodiment, unless otherwise specified, are applicable to both the method embodiment and the device embodiment, and the technical features appearing in the same or different embodiments can be used without conflicting with each other. used in combination.
最后应说明的是:以上实施方式仅用以说明本申请的技术方案,而非对其进行限制;尽管参照前述实施方式对本申请已经进行了详细的说明,但本领域的普通技术人员应当理解:其依然可以对前述实施方式所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请实施方式技术方案的范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the application, rather than limiting them; although the application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand: It is still possible to modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements to some or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application. .

Claims (62)

  1. 一种拍摄控制方法,其特征在于,所述方法包括:A shooting control method, characterized in that the method comprises:
    通过惯性测量单元中加速度计的测量信息,确定拍摄装置在特定方向上的位置改变量,所述惯性测量单元设置于拍摄装置,或者所述惯性测量单元设置于用于承载所述拍摄装置的云台,所述惯性测量单元用于测量所述拍摄装置的姿态信息;The amount of position change of the photographing device in a specific direction is determined through the measurement information of the accelerometer in the inertial measurement unit, the inertial measurement unit is arranged on the photographing device, or the inertial measurement unit is arranged on the cloud for carrying the photographing device a stage, the inertial measurement unit is used to measure the attitude information of the photographing device;
    根据所述位置改变量控制所述拍摄装置跟焦或变焦。The photographing device is controlled to follow focus or zoom according to the position change amount.
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述位置改变量控制所述拍摄装置跟焦或变焦包括:The method according to claim 1, wherein the controlling the camera to follow focus or zoom according to the position change amount comprises:
    根据所述位置改变量控制与所述拍摄装置的镜头啮合的电机来驱动所述镜头跟焦或变焦。A motor engaged with the lens of the photographing device is controlled to drive the lens to follow focus or zoom according to the position change amount.
  3. 根据权利要求2所述的方法,其特征在于,所述根据所述位置改变量控制与所述拍摄装置的镜头啮合的电机来驱动所述镜头跟焦或变焦包括:The method according to claim 2, wherein the controlling the motor engaged with the lens of the photographing device to drive the lens to follow focus or zoom according to the position change amount comprises:
    根据所述位置改变量和映射关系控制与所述拍摄装置的镜头啮合的电机来驱动所述镜头跟焦或变焦,其中,所述映射关系表征位置改变量与电机的转子位置之间的关系。The motor engaged with the lens of the photographing device is controlled to drive the lens to follow focus or zoom according to the position change amount and a mapping relationship, wherein the mapping relationship represents the relationship between the position change amount and the rotor position of the motor.
  4. 根据权利要求3所述的方法,其特征在于,还包括:The method of claim 3, further comprising:
    在满足所述映射关系的重新标定条件时,输出标定提示信息或者强制终止使用所述映射关系。When the re-calibration condition of the mapping relationship is satisfied, a calibration prompt message is output or the use of the mapping relationship is forcibly terminated.
  5. 根据权利要求4所述的方法,其特征在于,所述重新标定条件包括以下至少一种:The method according to claim 4, wherein the recalibration condition comprises at least one of the following:
    所述惯性测量单元经历过下电操作;the inertial measurement unit has undergone a power down operation;
    所述云台经历过下电操作;The gimbal has undergone a power-off operation;
    所述云台在下电状态下发生的位移超过重新标定位移阈值;The displacement of the gimbal in the power-off state exceeds the re-calibration displacement threshold;
    所述惯性测量单元的加速度大于设定加速度阈值。The acceleration of the inertial measurement unit is greater than the set acceleration threshold.
  6. 根据权利要求3所述的方法,其特征在于,所述特定方向是标定所述映射关系时,所述拍摄装置与拍摄对象之间连线的方向。The method according to claim 3, wherein the specific direction is a direction of a line connecting the photographing device and the photographing object when the mapping relationship is calibrated.
  7. 根据权利要求3所述的方法,其特征在于,所述映射关系是通过标定和/或计算得到的。The method according to claim 3, wherein the mapping relationship is obtained by calibration and/or calculation.
  8. 根据权利要求7所述的方法,其特征在于,所述位置改变量和所述镜头的焦距之间呈线性关系;The method according to claim 7, characterized in that there is a linear relationship between the position change amount and the focal length of the lens;
    确定所述映射关系包括以下至少一种:Determining the mapping relationship includes at least one of the following:
    确定电机的转子位置和位置改变量之间的第一映射关系;determining a first mapping relationship between the rotor position of the motor and the position change amount;
    或者or
    确定电机的转子位置和焦距改变量之间的第二映射关系;determining a second mapping relationship between the rotor position of the motor and the amount of change in focus;
    基于所述第二映射关系、拍摄对象图像尺寸和拍摄对象尺寸计算与各位置改变量对应的电机的转子位置。The rotor position of the motor corresponding to each position change amount is calculated based on the second mapping relationship, the image size of the subject, and the size of the subject.
  9. 根据权利要求7所述的方法,其特征在于,所述电机包括变焦电机,所述确定电机的转子位置和位置改变量之间的第一映射关系包括:The method according to claim 7, wherein the motor comprises a zoom motor, and the determining the first mapping relationship between the rotor position of the motor and the position change amount comprises:
    确定第一预设占比,所述第一预设占比是拍摄对象的图像在所述拍摄装置的拍摄画面中的占比;determining a first preset proportion, where the first preset proportion is the proportion of the image of the photographing object in the photographing screen of the photographing device;
    在所述拍摄装置沿所述特定方向移动第一距离时,获取第一变焦调节指令,所述第一变焦调节指令用于控制所述变焦电机驱动所述镜头改变焦距,以使所述拍摄对象的图像在所述拍摄装置的拍摄画面中占比处于所述第一预设占比,得到第一转子位置;When the photographing device moves a first distance in the specific direction, a first zoom adjustment instruction is obtained, where the first zoom adjustment instruction is used to control the zoom motor to drive the lens to change the focal length, so that the object is photographed The proportion of the image in the shooting picture of the shooting device is in the first preset proportion, and the first rotor position is obtained;
    在所述拍摄装置沿所述特定方向移动第二距离时,获取用户的第二变焦调节指令,所述第二变焦调节指令用于控制所述变焦电机驱动所述镜头改变焦距,以使所述拍摄对象的图像在所述拍摄装置的拍摄画面中占比处于所述第一预设占比,得到第二转子位置;When the photographing device moves a second distance along the specific direction, obtain a second zoom adjustment instruction from the user, where the second zoom adjustment instruction is used to control the zoom motor to drive the lens to change the focal length, so that the The proportion of the image of the photographing object in the photographing picture of the photographing device is at the first preset proportion, and the second rotor position is obtained;
    基于所述第一距离、所述第一转子位置、所述第二距离和所述第二转子位置确定所述第一映射关系。The first mapping relationship is determined based on the first distance, the first rotor position, the second distance, and the second rotor position.
  10. 根据权利要求7所述的方法,其特征在于,所述电机包括跟焦电机,所述确定电机的转子位置和位置改变量之间的第一映射关系包括:The method according to claim 7, wherein the motor comprises a follow-focus motor, and the determining the first mapping relationship between the rotor position of the motor and the position change amount comprises:
    在所述拍摄装置沿所述特定方向移动第三距离时,获取用户的第一合焦调节指令,所述第一合焦调节指令用于控制所述跟焦电机来驱动所述镜头跟焦,以使拍摄对象的图像在所述拍摄装置的拍摄画面处于合焦状态,得到第三转子位置;When the photographing device moves a third distance along the specific direction, a first focus adjustment instruction from the user is acquired, and the first focus adjustment instruction is used to control the follow focus motor to drive the lens to follow focus, The third rotor position is obtained so that the image of the photographed object is in the in-focus state on the photographing screen of the photographing device;
    在所述拍摄装置沿所述特定方向移动第四距离时,获取用户的第二合焦调节指令,所述第二合焦调节指令用于控制所述跟焦电机来驱动所述镜头跟焦,以使所述拍摄对象的图像在所述拍摄装置的拍摄画面处于合焦状态,得到第四转子位置;When the photographing device moves a fourth distance along the specific direction, a second focus adjustment instruction from the user is acquired, and the second focus adjustment instruction is used to control the follow focus motor to drive the lens to follow focus, obtaining the fourth rotor position so that the image of the photographed object is in focus on the photographing screen of the photographing device;
    基于所述第三距离、所述第三转子位置、所述第四距离和所述第四转子位置确定所述第一映射关系。The first mapping relationship is determined based on the third distance, the third rotor position, the fourth distance, and the fourth rotor position.
  11. 根据权利要求7所述的方法,其特征在于,所述位置改变量和所述镜头的焦距之间呈线性关系;The method according to claim 7, characterized in that there is a linear relationship between the position change amount and the focal length of the lens;
    当通过计算的方式确定所述映射关系时,所述计算涉及的计算参数包括:拍摄对象图像尺寸、拍摄对象尺寸、起始位置物距和法兰距,其中,所述法兰距与凸轮筒结构参数和电机齿轮减速比相关。When the mapping relationship is determined by calculation, the calculation parameters involved in the calculation include: the image size of the photographed object, the size of the photographed object, the object distance at the starting position, and the flange distance, wherein the flange distance is related to the cam barrel The structural parameters are related to the gear reduction ratio of the motor.
  12. 根据权利要求2所述的方法,其特征在于,所述根据所述位置改变量控制与所述拍摄装置的镜头啮合的电机来驱动所述镜头跟焦或变焦包括以下至少一种:The method according to claim 2, wherein the controlling the motor engaged with the lens of the photographing device to drive the lens to follow focus or zoom according to the position change amount comprises at least one of the following:
    根据所述位置改变量控制与所述拍摄装置的镜头啮合的变焦电机来驱动所述镜头变焦,以使拍摄对象的图像在所述拍摄装置的拍摄画面中占比保持稳定;Control the zoom motor engaged with the lens of the photographing device to drive the lens to zoom according to the position change amount, so that the proportion of the image of the photographing object in the photographing picture of the photographing device remains stable;
    根据所述位置改变量控制与所述拍摄装置的镜头啮合的跟焦电机来驱动所述镜头跟焦,以使所述拍摄对象在所述拍摄装置的拍摄画面中处于合焦状态。A follow focus motor engaged with the lens of the photographing device is controlled according to the position change amount to drive the lens to follow focus, so that the photographed object is in a focus state in the photographing picture of the photographing device.
  13. 根据权利要求12所述的方法,其特征在于,所述拍摄对象的图像在所述拍摄装置的拍摄画面中占比是基于第一用户操作确定的。The method according to claim 12, wherein the proportion of the image of the photographing object in the photographing screen of the photographing device is determined based on a first user operation.
  14. 根据权利要求13所述的方法,其特征在于,所述第一用户操作包括用户在用户交互界面中输入占比的操作,其中,所述用户在用户交互界面中输入的占比是以预设点作为基点;或者The method according to claim 13, wherein the first user operation comprises an operation of a user inputting a proportion in the user interaction interface, wherein the proportion input by the user in the user interaction interface is a preset point as the base point; or
    所述第一用户操作包括用户在用户交互界面中输入占比以及基点的操作;或者The first user operation includes an operation of the user inputting the percentage and the base point in the user interaction interface; or
    所述第一用户操作包括用户在用户交互界面中输入至少两个基点的操作。The first user operation includes an operation of the user inputting at least two base points in the user interaction interface.
  15. 根据权利要求12所述的方法,其特征在于,所述变焦电机的转轴与所述镜头的变焦环啮合,所述跟焦电机的转轴与所述镜头的跟焦环啮合。The method according to claim 12, wherein the rotating shaft of the zoom motor is engaged with the zoom ring of the lens, and the rotating shaft of the follow focus motor is engaged with the follow focus ring of the lens.
  16. 根据权利要求2-15任一项所述的方法,其特征在于,所述拍摄装置的拍摄对象 是基于用户针对用户交互界面的第二用户操作来确定的;或者The method according to any one of claims 2-15, wherein the photographing object of the photographing device is determined based on a second user operation of the user on the user interface; or
    所述拍摄装置的拍摄对象是通过图像识别来确定的。The photographing object of the photographing device is determined through image recognition.
  17. 根据权利要求2-15任一项所述的方法,其特征在于,所述拍摄装置可拆卸地承载在云台的承载座上;并且/或者The method according to any one of claims 2-15, wherein the photographing device is detachably carried on a bearing seat of the head; and/or
    所述电机可拆卸地承载在云台的承载座上。The motor is detachably carried on the bearing seat of the pan/tilt head.
  18. 根据权利要求1-15任一项所述的方法,其特征在于,所述拍摄装置可拆卸地承载在云台的承载座上,所述云台与所述拍摄装置通信连接,所述云台的手持部上设置显示屏,所述显示屏能够显示所述拍摄装置的拍摄画面。The method according to any one of claims 1-15, wherein the photographing device is detachably carried on a bearing seat of a pan/tilt, the pan/tilt is communicatively connected to the photographing device, and the pan/tilt is communicatively connected. A display screen is provided on the handheld part of the camera, and the display screen can display the shooting picture of the shooting device.
  19. 根据权利要求2-15任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 2-15, wherein the method further comprises:
    如果所述拍摄装置与拍摄对象之间的连线方向与所述特定方向之间的夹角满足简化条件,则将基于所述惯性测量单元中加速度计的测量信息确定的位置改变量作为所述拍摄装置在所述特定方向上的位置改变量。If the included angle between the connection direction between the photographing device and the photographing object and the specific direction satisfies the simplified condition, the position change amount determined based on the measurement information of the accelerometer in the inertial measurement unit is used as the The amount of change in the position of the camera in the specific direction.
  20. 根据权利要求1-15任一项所述的方法,其特征在于,所述拍摄装置设置在云台上,所述云台的手持部上设置跟焦轮和/或变焦轮;The method according to any one of claims 1-15, wherein the photographing device is arranged on a pan/tilt head, and a focus wheel and/or a zoom wheel are provided on the hand-held part of the pan/tilt head;
    所述方法还包括:接收针对所述跟焦轮和/或所述变焦轮的第三用户操作,以基于所述第三用户操作控制所述拍摄装置跟焦或变焦。The method further includes: receiving a third user operation on the follow focus wheel and/or the zoom wheel, so as to control the camera device to follow focus or zoom based on the third user operation.
  21. 一种拍摄控制装置,其特征在于,所述装置包括:A shooting control device, characterized in that the device comprises:
    至少一个处理器和存储器;at least one processor and memory;
    所述存储器存储计算机执行指令;the memory stores computer-executable instructions;
    至少一个所述处理器执行所述存储器存储的计算机执行指令,使得执行所述计算机执行指令时实现如下步骤:At least one of the processors executes the computer-executed instructions stored in the memory, so that the following steps are implemented when executing the computer-executed instructions:
    通过惯性测量单元中加速度计的测量信息,确定拍摄装置在特定方向上的位置改变量,所述惯性测量单元设置于拍摄装置,或者所述惯性测量单元设置于承载所述拍摄装置的云台,所述惯性测量单元用于测量所述拍摄装置的姿态信息;The amount of position change of the photographing device in a specific direction is determined by the measurement information of the accelerometer in the inertial measurement unit, the inertial measurement unit is arranged on the photographing device, or the inertial measurement unit is arranged on the pan/tilt that carries the photographing device, The inertial measurement unit is used to measure the attitude information of the photographing device;
    根据所述位置改变量控制所述拍摄装置跟焦或变焦。The photographing device is controlled to follow focus or zoom according to the position change amount.
  22. 根据权利要求21所述的装置,其特征在于,所述根据所述位置改变量控制所述拍摄装置跟焦或变焦包括:The device according to claim 21, wherein the controlling the photographing device to follow focus or zoom according to the position change amount comprises:
    根据所述位置改变量控制与所述拍摄装置的镜头啮合的电机来驱动所述镜头跟焦或变焦。A motor engaged with the lens of the photographing device is controlled to drive the lens to follow focus or zoom according to the position change amount.
  23. 根据权利要求22所述的装置,其特征在于,所述根据所述位置改变量控制与所述拍摄装置的镜头啮合的电机来驱动所述镜头跟焦或变焦包括:The device according to claim 22, wherein the controlling the motor engaged with the lens of the photographing device to drive the lens to follow focus or zoom according to the position change amount comprises:
    根据所述位置改变量和映射关系控制与所述拍摄装置的镜头啮合的电机来驱动所述镜头跟焦或变焦,其中,所述映射关系表征位置改变量与电机的转子位置之间的关系。The motor engaged with the lens of the photographing device is controlled to drive the lens to follow focus or zoom according to the position change amount and a mapping relationship, wherein the mapping relationship represents the relationship between the position change amount and the rotor position of the motor.
  24. 根据权利要求23所述的装置,其特征在于,至少一个所述处理器执行所述计算机执行指令时实现如下步骤:The apparatus according to claim 23, wherein at least one of the processors implements the following steps when executing the computer-executed instructions:
    在满足所述映射关系的重新标定条件时,输出标定提示信息或者强制终止使用所述映射关系。When the re-calibration condition of the mapping relationship is satisfied, a calibration prompt message is output or the use of the mapping relationship is forcibly terminated.
  25. 根据权利要求24所述的装置,其特征在于,所述重新标定条件包括以下至少一种:The device according to claim 24, wherein the recalibration condition comprises at least one of the following:
    所述惯性测量单元经历过下电操作;the inertial measurement unit has undergone a power down operation;
    所述云台经历过下电操作;The gimbal has undergone a power-off operation;
    所述云台在下电状态下发生的位移超过重新标定位移阈值;The displacement of the gimbal in the power-off state exceeds the re-calibration displacement threshold;
    所述惯性测量单元的加速度大于设定加速度阈值。The acceleration of the inertial measurement unit is greater than the set acceleration threshold.
  26. 根据权利要求23所述的装置,其特征在于,所述特定方向是标定所述映射关系时,所述拍摄装置与拍摄对象之间连线的方向。The device according to claim 23, wherein the specific direction is a direction of a line connecting the photographing device and the photographing object when the mapping relationship is calibrated.
  27. 根据权利要求23所述的装置,其特征在于,所述映射关系是通过标定和/或计算得到的。The apparatus according to claim 23, wherein the mapping relationship is obtained by calibration and/or calculation.
  28. 根据权利要求27所述的装置,其特征在于,所述位置改变量和所述镜头的焦距之间呈线性关系;The device according to claim 27, wherein there is a linear relationship between the position change amount and the focal length of the lens;
    确定所述映射关系包括以下至少一种:Determining the mapping relationship includes at least one of the following:
    确定电机的转子位置和位置改变量之间的第一映射关系;determining a first mapping relationship between the rotor position of the motor and the position change amount;
    或者or
    确定电机的转子位置和焦距改变量之间的第二映射关系;determining a second mapping relationship between the rotor position of the motor and the amount of change in focus;
    基于所述第二映射关系、拍摄对象图像尺寸和拍摄对象尺寸计算与各位置改变量对应的电机的转子位置。The rotor position of the motor corresponding to each position change amount is calculated based on the second mapping relationship, the image size of the subject, and the size of the subject.
  29. 根据权利要求27所述的装置,其特征在于,所述电机包括变焦电机,所述确定电机的转子位置和位置改变量之间的第一映射关系包括:The device according to claim 27, wherein the motor comprises a zoom motor, and the determining the first mapping relationship between the rotor position of the motor and the position change amount comprises:
    确定第一预设占比,所述第一预设占比是拍摄对象的图像在所述拍摄装置的拍摄画面中的占比;determining a first preset proportion, where the first preset proportion is the proportion of the image of the photographing object in the photographing screen of the photographing device;
    在所述拍摄装置沿所述特定方向移动第一距离时,获取第一变焦调节指令,所述第一变焦调节指令用于控制所述变焦电机驱动所述镜头改变焦距,以使所述拍摄对象的图像在所述拍摄装置的拍摄画面中占比处于所述第一预设占比,得到第一转子位置;When the photographing device moves a first distance in the specific direction, a first zoom adjustment instruction is obtained, where the first zoom adjustment instruction is used to control the zoom motor to drive the lens to change the focal length, so that the object is photographed The proportion of the image in the shooting picture of the shooting device is in the first preset proportion, and the first rotor position is obtained;
    在所述拍摄装置沿所述特定方向移动第二距离时,获取用户的第二变焦调节指令,所述第二变焦调节指令用于控制所述变焦电机驱动所述镜头改变焦距,以使所述拍摄对象的图像在所述拍摄装置的拍摄画面中占比处于所述第一预设占比,得到第二转子位置;When the photographing device moves a second distance along the specific direction, obtain a second zoom adjustment instruction from the user, where the second zoom adjustment instruction is used to control the zoom motor to drive the lens to change the focal length, so that the The proportion of the image of the photographing object in the photographing picture of the photographing device is at the first preset proportion, and the second rotor position is obtained;
    基于所述第一距离、所述第一转子位置、所述第二距离和所述第二转子位置确定所述第一映射关系。The first mapping relationship is determined based on the first distance, the first rotor position, the second distance, and the second rotor position.
  30. 根据权利要求27所述的装置,其特征在于,所述电机包括跟焦电机,所述确定电机的转子位置和位置改变量之间的第一映射关系包括:The device according to claim 27, wherein the motor comprises a follow focus motor, and the determining the first mapping relationship between the rotor position of the motor and the position change amount comprises:
    在所述拍摄装置沿所述特定方向移动第三距离时,获取用户的第一合焦调节指令,所述第一合焦调节指令用于控制所述跟焦电机来驱动所述镜头跟焦,以使拍摄对象的图像在所述拍摄装置的拍摄画面处于合焦状态,得到第三转子位置;When the photographing device moves a third distance along the specific direction, a first focus adjustment instruction from the user is acquired, and the first focus adjustment instruction is used to control the follow focus motor to drive the lens to follow focus, The third rotor position is obtained so that the image of the photographed object is in the in-focus state on the photographing screen of the photographing device;
    在所述拍摄装置沿所述特定方向移动第四距离时,获取用户的第二合焦调节指令,所述第二合焦调节指令用于控制所述跟焦电机来驱动所述镜头跟焦,以使所述拍摄对象的图像在所述拍摄装置的拍摄画面处于合焦状态,得到第四转子位置;When the photographing device moves a fourth distance along the specific direction, a second focus adjustment instruction from the user is acquired, and the second focus adjustment instruction is used to control the follow focus motor to drive the lens to follow focus, obtaining the fourth rotor position so that the image of the photographed object is in focus on the photographing screen of the photographing device;
    基于所述第三距离、所述第三转子位置、所述第四距离和所述第四转子位置确定所述第一映射关系。The first mapping relationship is determined based on the third distance, the third rotor position, the fourth distance, and the fourth rotor position.
  31. 根据权利要求27所述的装置,其特征在于,所述位置改变量和所述镜头的焦距 之间呈线性关系;The device according to claim 27, wherein there is a linear relationship between the amount of position change and the focal length of the lens;
    当通过计算的方式确定所述映射关系时,所述计算涉及的计算参数包括:拍摄对象图像尺寸、拍摄对象尺寸、起始位置物距和法兰距,其中,所述法兰距与凸轮筒结构参数和电机齿轮减速比相关。When the mapping relationship is determined by calculation, the calculation parameters involved in the calculation include: the image size of the photographed object, the size of the photographed object, the object distance at the starting position, and the flange distance, wherein the flange distance is related to the cam barrel The structural parameters are related to the gear reduction ratio of the motor.
  32. 根据权利要求22所述的装置,其特征在于,所述根据所述位置改变量控制与所述拍摄装置的镜头啮合的电机来驱动所述镜头跟焦或变焦包括以下至少一种:The device according to claim 22, wherein the controlling the motor engaged with the lens of the photographing device to drive the lens to follow focus or zoom according to the position change amount comprises at least one of the following:
    根据所述位置改变量控制与所述拍摄装置的镜头啮合的变焦电机来驱动所述镜头变焦,以使拍摄对象的图像在所述拍摄装置的拍摄画面中占比保持稳定;Control the zoom motor engaged with the lens of the photographing device to drive the lens to zoom according to the position change amount, so that the proportion of the image of the photographing object in the photographing picture of the photographing device remains stable;
    根据所述位置改变量控制与所述拍摄装置的镜头啮合的跟焦电机来驱动所述镜头跟焦,以使所述拍摄对象在所述拍摄装置的拍摄画面中处于合焦状态。A follow focus motor engaged with the lens of the photographing device is controlled according to the position change amount to drive the lens to follow focus, so that the photographed object is in a focus state in the photographing picture of the photographing device.
  33. 根据权利要求32所述的装置,其特征在于,所述拍摄对象的图像在所述拍摄装置的拍摄画面中占比是基于第一用户操作确定的。The device according to claim 32, wherein the proportion of the image of the photographing object in the photographing screen of the photographing device is determined based on a first user operation.
  34. 根据权利要求33所述的装置,其特征在于,所述第一用户操作包括用户在用户交互界面中输入占比的操作,其中,所述用户在用户交互界面中输入的占比是以预设点作为基点;或者The device according to claim 33, wherein the first user operation comprises an operation of the user inputting a proportion in the user interaction interface, wherein the proportion input by the user in the user interaction interface is a preset point as the base point; or
    所述第一用户操作包括用户在用户交互界面中输入占比以及基点的操作;或者The first user operation includes an operation of the user inputting the percentage and the base point in the user interaction interface; or
    所述第一用户操作包括用户在用户交互界面中输入至少两个基点的操作。The first user operation includes an operation of the user inputting at least two base points in the user interaction interface.
  35. 根据权利要求32所述的装置,其特征在于,所述变焦电机的转轴与所述镜头的变焦环啮合,所述跟焦电机的转轴与所述镜头的跟焦环啮合。The device according to claim 32, wherein the rotating shaft of the zoom motor is engaged with the zoom ring of the lens, and the rotating shaft of the follow focus motor is engaged with the follow focus ring of the lens.
  36. 根据权利要求22~35任一项所述的装置,其特征在于,所述拍摄装置的拍摄对象是基于用户针对用户交互界面的第二用户操作来确定的;或者The device according to any one of claims 22 to 35, wherein the photographing object of the photographing device is determined based on a second user operation of the user on the user interface; or
    所述拍摄装置的拍摄对象是通过图像识别来确定的。The photographing object of the photographing device is determined through image recognition.
  37. 根据权利要求22~35任一项所述的装置,其特征在于,所述拍摄装置可拆卸地承载在所述云台的承载座上;并且/或者The device according to any one of claims 22 to 35, wherein the photographing device is detachably carried on the bearing seat of the pan/tilt head; and/or
    所述电机可拆卸地承载在云台的承载座上。The motor is detachably carried on the bearing seat of the pan/tilt head.
  38. 根据权利要求21~35任一项所述的装置,其特征在于,所述拍摄装置可拆卸地承载在云台的承载座上,所述云台与所述拍摄装置通信连接,所述云台的手持部上设置显示屏,所述显示屏能够显示所述拍摄装置的拍摄画面。The device according to any one of claims 21 to 35, characterized in that, the photographing device is detachably carried on a bearing seat of a pan/tilt, the pan/tilt is communicatively connected to the photographing device, and the pan/tilt is communicatively connected. A display screen is provided on the handheld part of the camera, and the display screen can display the shooting picture of the shooting device.
  39. 根据权利要求22~35任一项所述的装置,其特征在于,至少一个所述处理器执行所述计算机执行指令时实现如下步骤:The apparatus according to any one of claims 22 to 35, wherein at least one of the processors implements the following steps when executing the computer-executed instructions:
    如果所述拍摄装置与拍摄对象之间的连线方向与所述特定方向之间的夹角满足简化条件,则将基于所述惯性测量单元中加速度计的测量信息确定的位置改变量作为所述拍摄装置在所述特定方向上的位置改变量。If the included angle between the connection direction between the photographing device and the photographing object and the specific direction satisfies the simplified condition, the position change amount determined based on the measurement information of the accelerometer in the inertial measurement unit is used as the The amount of change in the position of the photographing device in the specific direction.
  40. 根据权利要求21~35任一项所述的装置,其特征在于,所述拍摄装置设置在云台上,所述云台的手持部上设置跟焦轮和/或变焦轮;The device according to any one of claims 21 to 35, wherein the photographing device is arranged on a pan/tilt head, and a focus wheel and/or a zoom wheel are provided on the hand-held part of the pan/tilt head;
    至少一个所述处理器执行所述计算机执行指令时实现如下步骤:At least one of the processors implements the following steps when executing the computer-executed instructions:
    接收针对所述跟焦轮和/或所述变焦轮的第三用户操作,以基于所述第三用户操作控制所述拍摄装置跟焦或变焦。A third user operation on the focus wheel and/or the zoom wheel is received, so as to control the camera to follow focus or zoom based on the third user operation.
  41. 一种云台组件,所述云台组件包括云台和可拆卸于所述云台的电机,其特征在 于,所述云台组件还包括拍摄控制装置,所述拍摄控制装置设于所述云台和所述电机中的一个上,所述拍摄控制装置包括:A pan-tilt assembly comprising a pan-tilt and a motor detachable from the pan-tilt, characterized in that the pan-tilt assembly further comprises a shooting control device, and the shooting control device is arranged on the pan-tilt On one of the stage and the motor, the shooting control device includes:
    至少一个处理器和存储器;at least one processor and memory;
    所述存储器存储计算机执行指令;the memory stores computer-executable instructions;
    至少一个所述处理器执行所述存储器存储的计算机执行指令,使得执行所述计算机执行指令时实现如下步骤:At least one of the processors executes the computer-executed instructions stored in the memory, so that the following steps are implemented when executing the computer-executed instructions:
    通过惯性测量单元中加速度计的测量信息,确定拍摄装置在特定方向上的位置改变量,所述惯性测量单元设置于拍摄装置,或者所述惯性测量单元设置于承载所述拍摄装置的所述云台,所述惯性测量单元用于测量所述拍摄装置的姿态信息;The amount of change in the position of the photographing device in a specific direction is determined through the measurement information of the accelerometer in the inertial measurement unit, the inertial measurement unit is arranged on the photographing device, or the inertial measurement unit is arranged on the cloud carrying the photographing device a stage, the inertial measurement unit is used to measure the attitude information of the photographing device;
    根据所述位置改变量控制所述电机,以使得所述拍摄装置跟焦或变焦。The motor is controlled according to the position change amount, so that the photographing device follows focus or zooms.
  42. 根据权利要求41所述的云台组件,其特征在于,所述根据所述位置改变量控制所述电机,以使得所述拍摄装置跟焦或变焦具体包括:The pan-tilt assembly according to claim 41, wherein the controlling the motor according to the position change amount, so that the photographing device follows focus or zooms, specifically comprises:
    根据所述位置改变量控制与所述拍摄装置的镜头啮合的所述电机来驱动所述镜头跟焦或变焦。The motor engaged with the lens of the photographing device is controlled to drive the lens to follow focus or zoom according to the position change amount.
  43. 根据权利要求42所述的云台组件,其特征在于,所述根据所述位置改变量控制与所述拍摄装置的镜头啮合的所述电机来驱动所述镜头跟焦或变焦包括:The pan/tilt assembly according to claim 42, wherein the controlling the motor engaged with the lens of the photographing device to drive the lens to follow focus or zoom according to the position change amount comprises:
    根据所述位置改变量和映射关系控制与所述拍摄装置的镜头啮合的电机来驱动所述镜头跟焦或变焦,其中,所述映射关系表征位置改变量与电机的转子位置之间的关系。The motor engaged with the lens of the photographing device is controlled to drive the lens to follow focus or zoom according to the position change amount and a mapping relationship, wherein the mapping relationship represents the relationship between the position change amount and the rotor position of the motor.
  44. 根据权利要求43所述的云台组件,其特征在于,至少一个所述处理器执行所述计算机执行指令时实现如下步骤:The pan-tilt assembly according to claim 43, wherein at least one of the processors implements the following steps when executing the computer-executed instructions:
    在满足所述映射关系的重新标定条件时,输出标定提示信息或者强制终止使用所述映射关系。When the re-calibration condition of the mapping relationship is satisfied, a calibration prompt message is output or the use of the mapping relationship is forcibly terminated.
  45. 根据权利要求44所述的云台组件,其特征在于,所述重新标定条件包括以下至少一种:The pan/tilt assembly according to claim 44, wherein the recalibration conditions include at least one of the following:
    所述惯性测量单元经历过下电操作;the inertial measurement unit has undergone a power down operation;
    所述云台经历过下电操作;The gimbal has undergone a power-off operation;
    所述云台在下电状态下发生的位移超过重新标定位移阈值;The displacement of the gimbal in the power-off state exceeds the re-calibration displacement threshold;
    所述惯性测量单元的加速度大于设定加速度阈值。The acceleration of the inertial measurement unit is greater than the set acceleration threshold.
  46. 根据权利要求43所述的云台组件,其特征在于,所述特定方向是标定所述映射关系时,所述拍摄装置与拍摄对象之间连线的方向。The pan/tilt assembly according to claim 43, wherein the specific direction is the direction of the line connecting the photographing device and the photographing object when the mapping relationship is calibrated.
  47. 根据权利要求43所述的云台组件,其特征在于,所述映射关系是通过标定和/或计算得到的。The pan/tilt assembly according to claim 43, wherein the mapping relationship is obtained by calibration and/or calculation.
  48. 根据权利要求47所述的云台组件,其特征在于,所述位置改变量和所述镜头的焦距之间呈线性关系;The pan/tilt assembly according to claim 47, wherein there is a linear relationship between the position change amount and the focal length of the lens;
    确定所述映射关系包括以下至少一种:Determining the mapping relationship includes at least one of the following:
    确定电机的转子位置和位置改变量之间的第一映射关系;determining a first mapping relationship between the rotor position of the motor and the position change amount;
    或者or
    确定电机的转子位置和焦距改变量之间的第二映射关系;determining a second mapping relationship between the rotor position of the motor and the amount of change in focus;
    基于所述第二映射关系、拍摄对象图像尺寸和拍摄对象尺寸计算与各位置改变量对应 的电机的转子位置。The rotor position of the motor corresponding to each position change amount is calculated based on the second mapping relationship, the image size of the subject, and the size of the subject.
  49. 根据权利要求48所述的云台组件,其特征在于,所述电机包括变焦电机,所述确定电机的转子位置和位置改变量之间的第一映射关系包括:The pan-tilt assembly according to claim 48, wherein the motor comprises a zoom motor, and the determining the first mapping relationship between the rotor position of the motor and the position change amount comprises:
    获取第一预设占比,所述第一预设占比是拍摄对象的图像在所述拍摄装置的拍摄画面中的占比;obtaining a first preset proportion, where the first preset proportion is the proportion of the image of the photographing object in the photographing screen of the photographing device;
    在所述拍摄装置沿所述特定方向移动第一距离时,获取第一变焦调节指令,所述第一变焦调节指令用于控制所述变焦电机驱动所述镜头改变焦距,以使所述拍摄对象的图像在所述拍摄装置的拍摄画面中占比处于所述第一预设占比,得到第一转子位置;When the photographing device moves a first distance along the specific direction, a first zoom adjustment instruction is acquired, where the first zoom adjustment instruction is used to control the zoom motor to drive the lens to change the focal length, so that the object is photographed The proportion of the image in the shooting picture of the shooting device is in the first preset proportion, and the first rotor position is obtained;
    在所述拍摄装置沿所述特定方向移动第二距离时,获取用户的第二变焦调节指令,所述第二变焦调节指令用于控制所述变焦电机驱动所述镜头改变焦距,以使所述拍摄对象的图像在所述拍摄装置的拍摄画面中占比处于所述第一预设占比,得到第二转子位置;When the photographing device moves a second distance along the specific direction, obtain a second zoom adjustment instruction from the user, where the second zoom adjustment instruction is used to control the zoom motor to drive the lens to change the focal length, so that the The proportion of the image of the photographing object in the photographing picture of the photographing device is at the first preset proportion, and the second rotor position is obtained;
    所述电机基于所述第一距离、所述第一转子位置、所述第二距离和所述第二转子位置确定所述第一映射关系。The electric machine determines the first mapping relationship based on the first distance, the first rotor position, the second distance, and the second rotor position.
  50. 根据权利要求48所述的云台组件,其特征在于,所述电机包括跟焦电机,所述确定电机的转子位置和位置改变量之间的第一映射关系包括:The pan-tilt assembly according to claim 48, wherein the motor comprises a follow focus motor, and the determining the first mapping relationship between the rotor position of the motor and the position change comprises:
    在所述拍摄装置沿所述特定方向移动第三距离时,获取用户的第一合焦调节指令,所述第一合焦调节指令用于控制所述跟焦电机来驱动所述镜头跟焦,以使拍摄对象的图像在所述拍摄装置的拍摄画面处于合焦状态,得到第三转子位置;When the photographing device moves a third distance along the specific direction, a first focus adjustment instruction from the user is acquired, and the first focus adjustment instruction is used to control the follow focus motor to drive the lens to follow focus, The third rotor position is obtained so that the image of the photographed object is in the in-focus state on the photographing screen of the photographing device;
    在所述拍摄装置沿所述特定方向移动第四距离时,获取用户的第二合焦调节指令,所述第二合焦调节指令用于控制所述跟焦电机来驱动所述镜头跟焦,以使所述拍摄对象的图像在所述拍摄装置的拍摄画面处于合焦状态,得到第四转子位置;When the photographing device moves a fourth distance along the specific direction, a second focus adjustment instruction from the user is acquired, and the second focus adjustment instruction is used to control the follow focus motor to drive the lens to follow focus, obtaining the fourth rotor position so that the image of the photographed object is in focus on the photographing screen of the photographing device;
    基于所述第三距离、所述第三转子位置、所述第四距离和所述第四转子位置确定所述第一映射关系。The first mapping relationship is determined based on the third distance, the third rotor position, the fourth distance, and the fourth rotor position.
  51. 根据权利要求47所述的云台组件,其特征在于,所述位置改变量和所述镜头的焦距之间呈线性关系;The pan/tilt assembly according to claim 47, wherein there is a linear relationship between the position change amount and the focal length of the lens;
    当通过计算的方式确定所述映射关系时,所述计算涉及的计算参数包括:拍摄对象图像尺寸、拍摄对象尺寸、起始位置物距和法兰距,其中,所述法兰距与凸轮筒结构参数和电机齿轮减速比相关。When the mapping relationship is determined by calculation, the calculation parameters involved in the calculation include: the image size of the photographed object, the size of the photographed object, the object distance at the starting position, and the flange distance, wherein the flange distance is related to the cam barrel The structural parameters are related to the gear reduction ratio of the motor.
  52. 根据权利要求42所述的云台组件,其特征在于,所述根据所述位置改变量控制与所述拍摄装置的镜头啮合的电机来驱动所述镜头跟焦或变焦包括以下至少一种:The pan/tilt assembly according to claim 42, wherein the controlling the motor engaged with the lens of the photographing device to drive the lens to follow focus or zoom according to the position change amount comprises at least one of the following:
    根据所述位置改变量驱动所述镜头变焦,以使拍摄对象的图像在所述拍摄装置的拍摄画面中占比保持稳定;Drive the zoom of the lens according to the position change amount, so that the proportion of the image of the photographed object in the photographed picture of the photographing device remains stable;
    根据所述位置改变量驱动所述镜头跟焦,以使所述拍摄对象在所述拍摄装置的拍摄画面中处于合焦状态。The lens is driven to follow focus according to the position change amount, so that the photographing object is in a focused state in the photographing picture of the photographing device.
  53. 根据权利要求52所述的云台组件,其特征在于,所述拍摄对象的图像在所述拍摄装置的拍摄画面中占比是基于第一用户操作确定的。The pan/tilt assembly according to claim 52, wherein the proportion of the image of the photographed object in the photographed screen of the photographing device is determined based on a first user operation.
  54. 根据权利要求53所述的云台组件,其特征在于,所述第一用户操作包括用户在用户交互界面中输入占比的操作,其中,所述用户在用户交互界面中输入的占比是以预设点作为基点;或者The pan-tilt assembly according to claim 53, wherein the first user operation comprises an operation of the user inputting a proportion in the user interaction interface, wherein the proportion input by the user in the user interaction interface is a preset point as a base point; or
    所述第一用户操作包括用户在用户交互界面中输入占比以及基点的操作;或者The first user operation includes an operation of the user inputting the percentage and the base point in the user interaction interface; or
    所述第一用户操作包括用户在用户交互界面中输入至少两个基点的操作。The first user operation includes an operation of the user inputting at least two base points in the user interaction interface.
  55. 根据权利要求52所述的云台组件,其特征在于,所述电机包括跟焦电机和/或变焦电机,所述变焦电机的转轴与所述镜头的变焦环啮合,所述跟焦电机的转轴与所述镜头的跟焦环啮合。The pan/tilt assembly according to claim 52, wherein the motor comprises a follow focus motor and/or a zoom motor, the rotating shaft of the zoom motor is engaged with the zoom ring of the lens, and the rotating shaft of the follow focus motor Engage with the focus ring of the lens.
  56. 根据权利要求54所述的云台组件,其特征在于,所述拍摄装置的拍摄对象是基于用户针对用户交互界面的第二用户操作来确定的;或者The pan-tilt assembly according to claim 54, wherein the photographing object of the photographing device is determined based on a second user operation of the user on the user interface; or
    所述拍摄装置的拍摄对象是通过图像识别来确定的。The photographing object of the photographing device is determined through image recognition.
  57. 根据权利要求42~56任一项所述的云台组件,其特征在于,所述拍摄装置可拆卸地承载在云台的承载座上;并且/或者The pan/tilt assembly according to any one of claims 42 to 56, wherein the photographing device is detachably carried on a bearing seat of the pan/tilt; and/or
    所述电机可拆卸地承载在云台的承载座上。The motor is detachably carried on the bearing seat of the pan/tilt head.
  58. 根据权利要求41~56任一项所述的云台组件,其特征在于,所述拍摄装置可拆卸地承载在云台的承载座上,所述云台与所述拍摄装置通信连接,所述云台的手持部上设置显示屏,所述显示屏能够显示所述拍摄装置的拍摄画面。The pan/tilt assembly according to any one of claims 41 to 56, wherein the photographing device is detachably carried on a bearing seat of the pan/tilt, the pan/tilt is connected in communication with the photographing device, and the camera is A display screen is provided on the hand-held part of the PTZ, and the display screen can display the shooting picture of the shooting device.
  59. 根据权利要求42~56任一项所述的云台组件,其特征在于,至少一个所述处理器执行所述计算机执行指令时实现如下步骤:The pan-tilt assembly according to any one of claims 42 to 56, wherein, when at least one of the processors executes the computer-executed instructions, the following steps are implemented:
    如果所述拍摄装置与拍摄对象之间的连线方向与所述特定方向之间的夹角满足简化条件,则所述电机基于所述惯性测量单元中加速度计的测量信息确定的位置改变量作为所述拍摄装置在所述特定方向上的位置改变量。If the angle between the connection direction between the photographing device and the photographing object and the specific direction satisfies the simplified condition, the position change amount determined by the motor based on the measurement information of the accelerometer in the inertial measurement unit is used as The amount of change in the position of the photographing device in the specific direction.
  60. 根据权利要求41~56任一项所述的云台组件,其特征在于,所述拍摄装置设置在云台上,所述云台的手持部上设置跟焦轮和/或变焦轮;The pan/tilt assembly according to any one of claims 41 to 56, wherein the photographing device is arranged on the pan/tilt, and a focus wheel and/or a zoom wheel are provided on the hand-held part of the pan/tilt;
    至少一个所述处理器执行所述计算机执行指令时实现如下步骤:When at least one of the processors executes the computer-executed instructions, the following steps are implemented:
    接收针对所述跟焦轮和/或所述变焦轮的第三用户操作,以基于所述第三用户操作控制所述电机,并使得所述拍摄装置跟焦或变焦。A third user operation on the focus wheel and/or the zoom wheel is received, so as to control the motor based on the third user operation and cause the photographing device to follow focus or zoom.
  61. 一种可读存储介质,其特征在于,所述可读存储介质上存储有计算机程序;所述计算机程序在被执行时,实现如权利要求1-20任一项所述的拍摄控制方法。A readable storage medium, characterized in that a computer program is stored on the readable storage medium; when the computer program is executed, the shooting control method according to any one of claims 1-20 is implemented.
  62. 一种计算机程序产品,其特征在于,包括计算机程序,所述计算机程序在被执行时实现根据权利要求1~20任一项所述的拍摄控制方法。A computer program product, characterized by comprising a computer program, which implements the shooting control method according to any one of claims 1 to 20 when the computer program is executed.
PCT/CN2021/072468 2021-01-18 2021-01-18 Photographing control method, photographing control apparatus and gimbal assembly WO2022151473A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/072468 WO2022151473A1 (en) 2021-01-18 2021-01-18 Photographing control method, photographing control apparatus and gimbal assembly

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/072468 WO2022151473A1 (en) 2021-01-18 2021-01-18 Photographing control method, photographing control apparatus and gimbal assembly

Publications (1)

Publication Number Publication Date
WO2022151473A1 true WO2022151473A1 (en) 2022-07-21

Family

ID=82446821

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/072468 WO2022151473A1 (en) 2021-01-18 2021-01-18 Photographing control method, photographing control apparatus and gimbal assembly

Country Status (1)

Country Link
WO (1) WO2022151473A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116055871A (en) * 2022-08-31 2023-05-02 荣耀终端有限公司 Video processing method and related equipment thereof
CN117528246A (en) * 2024-01-04 2024-02-06 杭州星犀科技有限公司 Automatic focusing triggering method, system, terminal and medium

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080240698A1 (en) * 2007-03-28 2008-10-02 Sony Ericsson Mobile Communications Ab Zoom control
CN102420940A (en) * 2011-11-16 2012-04-18 中兴通讯股份有限公司 Terminal with camera shooting function and camera zooming method thereof
CN103716543A (en) * 2013-12-27 2014-04-09 上海斐讯数据通信技术有限公司 Mobile terminal and shooting device control method thereof
CN104469167A (en) * 2014-12-26 2015-03-25 小米科技有限责任公司 Automatic focusing method and device
CN105208287A (en) * 2015-10-15 2015-12-30 广东欧珀移动通信有限公司 Photographing method and device
CN105391943A (en) * 2015-12-03 2016-03-09 广东欧珀移动通信有限公司 Rapid focusing method and system of shooting device
CN205353534U (en) * 2016-02-26 2016-06-29 深圳市道通智能航空技术有限公司 Cloud platform camera is with closeburning structure, cloud platform and aircraft
CN105978441A (en) * 2016-06-15 2016-09-28 零度智控(北京)智能科技有限公司 Unmanned aerial vehicle/motor control device and method
CN106385543A (en) * 2016-10-25 2017-02-08 上海电机学院 Method of zooming smart camera equipment with one hand by use of action recognition
CN107872180A (en) * 2017-12-22 2018-04-03 深圳市道通智能航空技术有限公司 A kind of method, apparatus, electronic equipment and unmanned vehicle for detecting motor rotor position
US20180343377A1 (en) * 2017-05-24 2018-11-29 Tilta Inc. Wireless camera lens control system
CN110278371A (en) * 2019-06-26 2019-09-24 西安奥赛特视频科技有限责任公司 Three axial seven variables full freedom degrees of the video camera in space position and tracking
CN111212234A (en) * 2020-01-21 2020-05-29 上海哥特网络技术有限公司 Shooting method, device, equipment and storage medium
CN111712667A (en) * 2019-07-16 2020-09-25 深圳市大疆创新科技有限公司 Control method and device of shooting equipment, handheld cloud deck and storage medium
CN112154657A (en) * 2019-07-16 2020-12-29 深圳市大疆创新科技有限公司 Control method and device of shooting device, handheld cloud deck and storage medium

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080240698A1 (en) * 2007-03-28 2008-10-02 Sony Ericsson Mobile Communications Ab Zoom control
CN102420940A (en) * 2011-11-16 2012-04-18 中兴通讯股份有限公司 Terminal with camera shooting function and camera zooming method thereof
CN103716543A (en) * 2013-12-27 2014-04-09 上海斐讯数据通信技术有限公司 Mobile terminal and shooting device control method thereof
CN104469167A (en) * 2014-12-26 2015-03-25 小米科技有限责任公司 Automatic focusing method and device
CN105208287A (en) * 2015-10-15 2015-12-30 广东欧珀移动通信有限公司 Photographing method and device
CN105391943A (en) * 2015-12-03 2016-03-09 广东欧珀移动通信有限公司 Rapid focusing method and system of shooting device
CN205353534U (en) * 2016-02-26 2016-06-29 深圳市道通智能航空技术有限公司 Cloud platform camera is with closeburning structure, cloud platform and aircraft
CN105978441A (en) * 2016-06-15 2016-09-28 零度智控(北京)智能科技有限公司 Unmanned aerial vehicle/motor control device and method
CN106385543A (en) * 2016-10-25 2017-02-08 上海电机学院 Method of zooming smart camera equipment with one hand by use of action recognition
US20180343377A1 (en) * 2017-05-24 2018-11-29 Tilta Inc. Wireless camera lens control system
CN107872180A (en) * 2017-12-22 2018-04-03 深圳市道通智能航空技术有限公司 A kind of method, apparatus, electronic equipment and unmanned vehicle for detecting motor rotor position
CN110278371A (en) * 2019-06-26 2019-09-24 西安奥赛特视频科技有限责任公司 Three axial seven variables full freedom degrees of the video camera in space position and tracking
CN111712667A (en) * 2019-07-16 2020-09-25 深圳市大疆创新科技有限公司 Control method and device of shooting equipment, handheld cloud deck and storage medium
CN112154657A (en) * 2019-07-16 2020-12-29 深圳市大疆创新科技有限公司 Control method and device of shooting device, handheld cloud deck and storage medium
CN111212234A (en) * 2020-01-21 2020-05-29 上海哥特网络技术有限公司 Shooting method, device, equipment and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116055871A (en) * 2022-08-31 2023-05-02 荣耀终端有限公司 Video processing method and related equipment thereof
CN116055871B (en) * 2022-08-31 2023-10-20 荣耀终端有限公司 Video processing method and related equipment thereof
CN117528246A (en) * 2024-01-04 2024-02-06 杭州星犀科技有限公司 Automatic focusing triggering method, system, terminal and medium
CN117528246B (en) * 2024-01-04 2024-04-16 杭州星犀科技有限公司 Automatic focusing triggering method, system, terminal and medium

Similar Documents

Publication Publication Date Title
US9924104B2 (en) Background-differential extraction device and background-differential extraction method
WO2018072657A1 (en) Image processing method, image processing device, multi-camera photographing device, and aerial vehicle
CN110268704B (en) Video processing method, device, unmanned aerial vehicle and system
WO2019227441A1 (en) Video control method and device of movable platform
WO2022151473A1 (en) Photographing control method, photographing control apparatus and gimbal assembly
WO2020233682A1 (en) Autonomous circling photographing method and apparatus and unmanned aerial vehicle
WO2019227333A1 (en) Group photograph photographing method and apparatus
WO2021035744A1 (en) Image collection method for mobile platform, device and storage medium
WO2020172800A1 (en) Patrol control method for movable platform, and movable platform
CN114556879A (en) Time delay detection method, device, system, movable platform and storage medium
WO2018191969A1 (en) Camera mount control method and device
CN112040126A (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN110291777B (en) Image acquisition method, device and machine-readable storage medium
CN204287973U (en) flight camera
WO2019183789A1 (en) Method and apparatus for controlling unmanned aerial vehicle, and unmanned aerial vehicle
CN112204946A (en) Data processing method, device, movable platform and computer readable storage medium
WO2020019130A1 (en) Motion estimation method and mobile device
WO2021217371A1 (en) Control method and apparatus for movable platform
WO2021036947A1 (en) Auxiliary focusing method and apparatus, and unmanned aerial vehicle
WO2022109860A1 (en) Target object tracking method and gimbal
JP2021096865A (en) Information processing device, flight control instruction method, program, and recording medium
WO2023272485A1 (en) Control method, image capture apparatus, and image capture system
KR20160020828A (en) Flight recording system and operating method thereof
WO2020062024A1 (en) Distance measurement method and device based on unmanned aerial vehicle and unmanned aerial vehicle
WO2022056683A1 (en) Field of view determination method, field of view determination device, field of view determination system, and medium

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: 21918674

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21918674

Country of ref document: EP

Kind code of ref document: A1