WO2018024239A1 - Hybrid image stabilization system - Google Patents
Hybrid image stabilization system Download PDFInfo
- Publication number
- WO2018024239A1 WO2018024239A1 PCT/CN2017/095902 CN2017095902W WO2018024239A1 WO 2018024239 A1 WO2018024239 A1 WO 2018024239A1 CN 2017095902 W CN2017095902 W CN 2017095902W WO 2018024239 A1 WO2018024239 A1 WO 2018024239A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- axis
- pan
- camera module
- digital image
- tilt motor
- Prior art date
Links
- 230000006641 stabilisation Effects 0.000 title abstract 2
- 238000011105 stabilization Methods 0.000 title abstract 2
- 238000012545 processing Methods 0.000 claims abstract description 53
- 238000003384 imaging method Methods 0.000 claims abstract description 44
- 238000000034 method Methods 0.000 claims abstract description 23
- 238000010586 diagram Methods 0.000 description 11
- 238000012937 correction Methods 0.000 description 7
- 230000001133 acceleration Effects 0.000 description 6
- 238000013519 translation Methods 0.000 description 5
- 238000005096 rolling process Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/617—Upgrading or updating of programs or applications for camera control
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/695—Control of camera direction for changing a field of view, e.g. pan, tilt or based on tracking of objects
-
- F—MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
- F16—ENGINEERING ELEMENTS AND UNITS; GENERAL MEASURES FOR PRODUCING AND MAINTAINING EFFECTIVE FUNCTIONING OF MACHINES OR INSTALLATIONS; THERMAL INSULATION IN GENERAL
- F16M—FRAMES, CASINGS OR BEDS OF ENGINES, MACHINES OR APPARATUS, NOT SPECIFIC TO ENGINES, MACHINES OR APPARATUS PROVIDED FOR ELSEWHERE; STANDS; SUPPORTS
- F16M11/00—Stands or trestles as supports for apparatus or articles placed thereon ; Stands for scientific apparatus such as gravitational force meters
- F16M11/02—Heads
- F16M11/04—Means for attachment of apparatus; Means allowing adjustment of the apparatus relatively to the stand
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/68—Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
- H04N23/682—Vibration or motion blur correction
- H04N23/685—Vibration or motion blur correction performed by mechanical compensation
Definitions
- the present disclosure relates to the field of image processing technology.
- digital image devices such as smart phones, digital cameras, etc.
- digital image devices may take pictures while in motion.
- the digital image device may take a picture while in motion.
- the digital image device may take a picture while in motion during the movement of the aerial drone.
- the digital image device may take a picture while in motion during the travel of the bicycle.
- the present disclosure provides an image collection method, including:
- a pan-tilt motor disposed in the digital image device according to the motion state to compensate for movement of the camera module, wherein the pan-tilt motor is set to an axis and an X-axis, a Y-axis, and a Z One of the axes is coaxial, the X-axis passing through the center of the imaging plane of the digital image device and indicating the front-rear direction of the imaging plane, the Y-axis passing through the center of the imaging plane and indicating the imaging plane The left and right direction, the Z axis passing through the center of the imaging plane and indicating the up and down direction of the imaging plane;
- the present disclosure provides a digital image device comprising:
- a camera module for collecting images
- An attitude information collection module configured to determine a motion state of the camera module
- a pan/tilt motor that is disposed coaxially with one of an X-axis, a Y-axis, and a Z-axis for rotating the camera module, wherein the X-axis passes through an imaging plane of the digital image device Centering and indicating a front-rear direction of the imaging plane, the Y-axis passing through a center of the imaging plane and indicating a left-right direction of the imaging plane, the Z-axis passing through a center of the imaging plane and indicating the imaging Up and down direction of the plane;
- Controller which is configured to:
- the digital image device when the digital image device acquires an image in a motion state, the digital image device can be inversely compensated by using the pan/tilt motor, and the captured image is digitally imaged, thereby even Good quality images can also be obtained when the digital image device is bumped and shaken.
- the PTZ motor and digital image processing technology to correct the image at the same time, it is possible to correct the screen shake with a large amplitude, and the resulting picture quality is high.
- the image acquisition system provided by the present disclosure since there is only one pan/tilt motor, the image acquisition system provided by the present disclosure has the advantages of small size and high degree of integration.
- FIG. 1 is a flow chart of an image acquisition method in an example of the present disclosure
- FIG. 2 is a schematic diagram of a three-dimensional motion model of a digital image device in an example of the present disclosure
- FIG. 3 is a schematic diagram of a pan/tilt motor and a lens module in an example of the present disclosure
- FIG. 4 is a schematic diagram of a pan/tilt motor and a lens module in another example of the present disclosure
- FIG. 5 is a hardware configuration diagram of a digital image device in an example of the present disclosure.
- FIG. 6 is a functional block diagram of image acquisition logic in an example of the present disclosure.
- digital image devices may take pictures while in motion. For example, when the user follows the target motion, the digital image device may take a picture while in motion. After the digital image device is mounted on the aerial drone, the digital image device may take a picture while in motion during the movement of the aerial drone. After the digital image device is mounted on the bicycle, the digital image device may take a picture while in motion during the travel of the bicycle.
- the digital image device may take a picture while in motion during the travel of the bicycle.
- a digital image device can be equipped with a pan/tilt motor and controlled by the pan/tilt motor to rotate the digital image device.
- a small-sized pan/tilt motor can be configured, and the digital image device is driven to rotate by the pan/tilt motor.
- digital imaging equipment can be equipped with multi-axis (such as three-axis) PTZ motors to adjust the digital image equipment to a suitable angle.
- multi-axis pan/tilt motors are generally not suitable for small electronic devices because they are usually bulky and heavy.
- an example of image acquisition is proposed in the example of the present disclosure, which can be applied to digital image devices such as smart phones, digital cameras and the like.
- a flowchart of an image acquisition method proposed in the example of the present disclosure may include the following steps.
- Step 101 Acquire a motion state of a lens module of the digital image device, and rotate the pan/tilt motor according to the motion state to compensate for motion of the lens module.
- Step 102 The first image is acquired by using the motion compensated lens module, and the first image is subjected to digital image processing to obtain a second image.
- the three-dimensional motion model of the digital image device can be as shown in FIG. It can be noted that the rotation of the digital image device in three-dimensional space can have three rotation dimensions: 1. Rolling with the X-axis as the rotating shaft (the X-axis points to the front/rear of the imaging plane of the digital image device); 2. The Y-axis It is the pitch of the rotation axis (the Y axis points to the left/right of the imaging plane); 3. The rotation head with the Z axis as the rotation axis (the Z axis points above/below the imaging plane). The movement of these three rotational dimensions typically requires correction.
- the pan-tilt motor can be used to correct the motion of the digital image device in one dimension, and then the captured image can be further corrected using digital image processing techniques.
- the motion of the X-axis dimension can be corrected using a pan-tilt motor.
- the motion of the Y-axis dimension can be corrected using a pan-tilt motor.
- the digital image device is a third type of device that moves around the Z axis, the movement of the Z-axis dimension can be corrected using the pan/tilt motor.
- digital image processing techniques can be used for further correction.
- the first type of device is a digital imaging device that is centered on the X-axis, such as a digital imaging device used in quad-wing UAV flight photography.
- the digital image device sways along the X-axis roll dimension, which has the greatest influence on the picture quality. Therefore, the roll of the digital image device can be corrected first by a pan/tilt motor whose axis is concentric with the X axis, for example, reverse compensation.
- the captured image can also be corrected by digital image processing techniques. For example, each frame of image can be corrected by moving each frame of image up (or down) in parallel and left (or right) in parallel. Among them, the translation operation can be limited to the movement of integer pixels, which can avoid the calculation burden and maintain the sharpness of the original image.
- the second type of device is a digital image device that is centered on the Y-axis, such as a digital image device for mountain bike riding.
- the digital image equipment sway along the Y-axis pitch dimension, which has the greatest impact on the picture quality.
- the tilt of the digital image device can be corrected by a pan/tilt motor that is concentric with the Y-axis.
- each frame of image can also be corrected by digital image processing techniques, such as by moving the captured image of each frame up (or down) in parallel, and moving left (or right) in parallel.
- pan The operation can be limited to the movement of integer pixels, thus avoiding the computational burden and maintaining the sharpness of the original image.
- the third type of device is a digital image device that moves around the Z axis, such as a digital image device that is held by a user.
- the digital image device Based on the motion characteristics of the human body during the advancement process, when the user holds the digital image device for shooting, the digital image device has the greatest influence on the picture quality along the sway of the Z-axis. Therefore, the head of the digital image device can be corrected first by a pan/tilt motor whose axis is concentric with the Z axis. After compensating for the turret, each frame of image can be corrected by digital image processing techniques, such as by moving each frame of the image taken up (or down) and left (or right) in parallel. Among them, the translation operation can be limited to the movement of integer pixels, thus avoiding the computational burden and maintaining the sharpness of the original image.
- the digital image device is a first type of device that moves around the X axis, such as a digital image device used in the flight shooting of a quadrotor UAV.
- the digital image device oscillates in a rolling dimension centered on the X axis. It has the greatest impact on picture quality.
- the axis of the pan/tilt motor is coaxial with the X axis.
- the motion state of the lens module of the digital image device may include, but is not limited to, a first motion direction, a first motion angle, and a first motion angular velocity of the lens module in a direction centered on the X axis.
- Rotating the pan-tilt motor according to the motion state to achieve motion compensation including but not limited to: determining a first rotation direction of the pan-tilt machine in a direction centered on the X-axis by using the first motion direction; determining by using the first motion angle a first rotation angle of the pan-tilt motor in a direction centered on the X-axis; determining a first rotational angular velocity of the pan-tilt motor in a direction centered on the X-axis by the first angular velocity; using the first rotational direction, first The pan angle motor and the first rotational angular velocity rotate the pan motor in a direction centered on the X axis.
- the rotation of the quadrotor drone in the direction centered on the X-axis is represented by the first angle of motion and the first angular velocity of motion.
- first angle of motion the first angle of motion
- first angular velocity the rotational angle of the quadrotor drone relative to the ground reference may also be utilized to determine the roll angle.
- the first movement direction of the lens module in the direction centered on the X axis can be used to determine the first rotation of the pan/tilt head in the direction centered on the X axis.
- the direction is counterclockwise.
- the first movement direction can be used to determine the first rotation direction of the pan-tilt motor in the direction centered on the X-axis Clockwise direction.
- the first rotation angle of the PTZ motor in the direction centered on the X axis may be determined by using the first motion angle. M degree, or, interval [Ma degree, M+a degree].
- the first angular velocity of the lens module in the direction centered on the X axis is N degrees/second
- the first moving angular velocity can be used to determine the first first of the pan/tilt motor in the direction centered on the X axis.
- the angular velocity of rotation can be N degrees/second.
- the pan/tilt head can be rotated counterclockwise/clockwise on the X-axis with a rotation angle of M degrees and a rotational angular velocity of N degrees/second. In this way, the digital image device can be compensated in the opposite direction in the direction centered on the X-axis.
- performing digital image processing on the first image collected by the lens module after the motion compensation of the pan/tilt motor may include, but is not limited to, acquiring the first movement amount of the lens module on the Y axis and The second amount of movement in the Z axis.
- the first amount of movement may be utilized to determine the first amount, and the first image is translated by the first number of pixels in a direction that is inversely compensated for the first image along the Y-axis.
- the second amount of movement may be utilized to determine a second amount, and the first image is translated by the second number of pixels in a direction that is inversely compensated for the first image along the Z-axis. Based on this, an image that shifts the first number and the second number of pixels can be determined as the second image.
- the amount of movement of the lens module to the left on the Y axis is A, and A corresponds to 10 pixels
- it can be determined that the first number is 10
- the first image can be shifted to the right by 10 pixels.
- the amount of movement of the lens module to the right on the Y axis is A, and A corresponds to 10 pixels
- it can be determined that the first number is 10, and the first image can be shifted to the left by 10 pixels.
- the second number can be determined to be 8, and the first image can be shifted down by 8 pixels. Assuming that the downward movement of the lens module on the Z axis is B, and B corresponds to 8 pixels, it can be determined that the second number is 8, and the first image can be shifted up by 8 pixels.
- the image quality is affected.
- the loudest is loud, it is not possible to correct the roll on the X-axis simply by using digital image processing techniques.
- digital image processing technology can only correct small amplitude sloshing, but for large amplitude motion, if digital image processing technology is used for correction, the corrected picture quality may still be poor.
- bilinear interpolation calculation is required, which may cause the sharpness of the image to be greatly reduced, thereby affecting the image quality after correction. For example, when the roll width is large, the bilinear interpolation calculation is likely to cause blackness in the unknown part of the image frame processing, resulting in a significant drop in user experience.
- FIG. 3 it is a schematic diagram of a pan/tilt motor and a lens module.
- the axis of the pan/tilt motor 304 is coaxial with the axis of the lens module 301.
- the present disclosure example is not limited to this configuration, and in the case where the digital image device described below is moved around the Y-axis or the Z-axis, the axis of the pan-tilt motor may be coaxial with the Y-axis or the Z-axis.
- the axis of the lens module 301 is an X-axis
- the pan-tilt motor 304 can be mounted behind the lens module 301 along the X-axis, and the axis of the pan-tilt motor is coaxial with the X-axis.
- an IMU (Inertial Measurement Unit) 302 an IMU (Inertial Measurement Unit) 302
- an IC (microcontroller) 303 an IC (microcontroller) 303
- main board 305 a main board 305, and the like may also be included.
- the IMU 302 can be fixed to the lens module 301 or can be mounted on other components.
- the IMU 302 is a device that measures the triaxial attitude angle (or angular rate) and acceleration of an object.
- An IMU can contain three single-axis accelerometers and three single-axis gyroscopes, so it can also be called a six-axis sensor.
- the accelerometer can be used to detect an independent three-axis acceleration signal of the object in the carrier coordinate system, and the gyroscope can be used to detect the angular velocity signal of the carrier relative to the navigation coordinate system. Therefore, the IMU can measure the angular velocity and acceleration of an object in three-dimensional space in real time, and thereby obtain the attitude information of the object.
- the microcontroller 303 can be placed adjacent to the IMU or can be mounted on other components.
- the microcontroller 303 can determine the first motion direction, the first motion angle, and the first motion angular velocity of the lens module 301 in the direction centered on the X-axis through the data collected by the IMU 302. Then, a first rotation direction, a first rotation angle, and a first rotation angular velocity of the pan-tilt motor 304 in a direction centered on the X-axis may be determined, and the first rotation direction, the first rotation angle, and the first rotation angular velocity may be utilized The rotation of the pan/tilt motor 304 on the X-axis is controlled.
- the processing chip on the main board 305 can be responsible for the image acquisition of each frame, and responsible for the digital image processing part.
- the digital image processing operation may include: acquiring a first movement amount of the lens module 301 on the Y axis and a second movement amount on the Z axis; determining the first quantity by using the first movement amount, and Transmitting the first image to the first number of pixels in a direction in which the first image is inversely compensated; determining a second amount by using the second amount of movement, and inverting the first image along the Z axis
- the first image is translated by the second number of pixels in a direction of compensation.
- the shifted pixel points are taken as integers to achieve translation of the digital image, thereby obtaining a second image.
- the digital image device is a second type of device that moves around the Y axis, such as a digital image device used for mountain bike riding.
- the digital image device has a maximum impact on the picture quality by shaking the pitch dimension centered on the Y-axis.
- the axis passing through the axis of the lens module and perpendicular to the imaging plane of the lens module is the X axis
- the pan/tilt motor can be mounted to the left of the lens module along the Y axis perpendicular to the X axis, and The axis of the pan/tilt motor is coaxial with the Y axis.
- the motion state of the lens module of the digital image device may include, but is not limited to, a second motion direction, a second motion angle, and a second motion angular velocity of the lens module in a direction centered on the Y axis.
- Rotating the pan-tilt motor according to the motion state to implement motion compensation including but not limited to: determining a second rotation direction of the pan-tilt machine in a direction centered on the Y-axis by using the second motion direction; determining by using the second motion angle a second rotation angle of the pan-tilt motor in a direction centered on the Y-axis; determining a second rotational angular velocity of the pan-tilt motor in a direction centered on the Y-axis by the second angular velocity; using the second rotational direction, the second The rotation angle and the second rotational angular velocity rotate the pan/tilt motor in a direction centered on the Y-axis.
- the pitch of the mountain bike in the direction centered on the Y-axis is represented by the second movement angle and the second movement angular velocity.
- the second or second angular velocity may be employed alone, or the pitch angle of the mountain bike relative to the ground reference may also be utilized to determine the pitch angle.
- performing digital image processing on the first image collected by the lens module after the motion compensation of the pan/tilt motor may include, but is not limited to, acquiring the third movement amount of the lens module on the Y axis; The third amount is determined using the third amount of movement, and the first image is translated by a third number of pixels in a direction in which the first image is inversely compensated along the Y-axis. Based on this, an image that shifts the third number of pixel points is determined as the second image.
- the digital image device may include a lens module, a pan/tilt motor, an IMU, a microcontroller, a motherboard, etc., and the examples of the present disclosure are not limited to this structure.
- the IMU can be fixed with the lens module or can be mounted on other components.
- the IMU is a device that measures the three-axis attitude angle (or angular rate) and acceleration of an object.
- An IMU can include three single-axis accelerometers and three single-axis gyros, so it is also called a six-axis sensor.
- the accelerometer can be used to detect an independent three-axis acceleration signal of the object in the carrier coordinate system, and the gyro can be used to detect the angular velocity signal of the carrier relative to the navigation coordinate system. Therefore, the IMU can measure the angular velocity and acceleration of the object in three-dimensional space, and thereby derive the real-time attitude information of the object.
- the microcontroller can be placed adjacent to the IMU or can be mounted on other components.
- the microcontroller can determine, by the data acquired by the IMU, a second direction of motion, a second angle of motion, and a second angular velocity of motion of the digital image device in a direction centered on the Y-axis. Then, the second rotation direction, the second rotation angle and the second rotation angular velocity of the pan-tilt motor in the direction centered on the Y-axis can be determined, and the second rotation direction, the second rotation angle and the second rotation angular speed can be controlled The rotation of the gimbal motor on the Y axis.
- the processing chip on the main board can be responsible for the acquisition of each frame of image, and can be responsible for the digital image processing part.
- the digital image processing operation may include: acquiring a third movement amount of the lens module along the Y axis, determining a third quantity by using the third movement amount, and in a direction of reverse compensation of the first image along the Y axis, The first image is translated by a third number of pixels, and the translated pixel points are taken as integers to realize translation of the digital image to obtain a second image.
- the digital image device is a third type of device that moves around the Z axis, such as a user holding a digital image device (such as a mobile phone, a video camera, etc.).
- the digital image device has the greatest influence on the picture quality with the Z-axis as the center of the head sway.
- the axis passing through the axis of the lens module and perpendicular to the imaging plane is the X axis
- the pan/tilt motor can be mounted under the lens module along the Z axis perpendicular to the X axis, and the axis of the pan/tilt motor
- the heart is coaxial with the Z axis.
- the motion state of the lens module of the digital image device may include, but is not limited to, a third motion direction of the digital image device in a direction centered on the Z axis, Three movement angles, third movement angular speed.
- Rotating the pan-tilt motor according to the motion state to realize motion compensation including but not limited to: determining a third rotation direction of the pan-tilt motor in a direction centered on the Z-axis by using the third motion direction; determining by using the third motion angle a third rotation angle of the pan-tilt motor in a direction centered on the Z-axis; determining a third rotational angular velocity of the pan-tilt motor in a direction centered on the Z-axis by using the third angular velocity; using the third rotational direction, the third The rotation angle and the third rotational angular velocity rotate the pan/tilt motor in a direction centered on the Z axis.
- the turret generated by the handheld digital image device in the direction centered on the Z-axis is represented by the third motion angle and the third motion angular velocity.
- the third or third angular velocity of motion may be employed alone, or the position of the handpiece may be determined using a change in position of the handheld digital image device relative to the ground reference.
- performing digital image processing on the first image collected by the lens module after the motion compensation of the pan/tilt motor may include, but is not limited to, acquiring the fourth movement amount of the digital image device along the Z axis; The fourth amount is determined using the fourth amount of movement, and the first image is translated by a fourth number of pixels in a direction in which the first image is inversely compensated along the Z-axis. Based on this, an image in which the fourth number of pixels is shifted can be determined as the second image.
- the reason why the Z-axis cannot be corrected only by using digital image processing technology is that the digital image processing technology can only correct the smaller amplitude. Shake, for a large amplitude motion, if digital image processing technology is used for correction, the resulting picture quality is poor.
- FIG. 4 is a schematic diagram of the PTZ motor 404 and the lens module 401
- the axis of the PTZ motor 404 is coaxial with the Z axis.
- the schematic diagram of the pan/tilt motor and the lens module is only an example, and the present disclosure example is not limited to this structure.
- the digital image device may further include a PTZ motor 404, a geomagnetic sensor 402, a microcontroller 403, a SHUJ, and the like.
- the geomagnetic sensor 402 can be mounted on the main board 405.
- the geomagnetic sensor 402 is an electronic compass, which can also be called a digital compass, and can collect the position information of the digital image device in real time.
- the microcontroller 403 can determine the third motion direction, the third motion angle, and the third motion angular velocity of the lens module in the direction centered on the Z axis by the data collected by the geomagnetic sensor 402.
- the PTZ motor is in Z
- the third rotational direction, the third rotational angle and the third rotational angular velocity in the direction of the axis, and the rotation of the pan-tilt motor on the Z-axis is controlled by the third rotational direction, the third rotational angle and the third rotational angular velocity.
- the processing chip on the main board 405 can be responsible for the acquisition of each frame of image and can be responsible for the digital image processing portion.
- the digital image processing operation may include: acquiring a fourth movement amount of the lens module along the Z axis, determining a fourth quantity by using the fourth movement amount, and performing a reverse compensation direction along the Z axis along the first image,
- the first image is translated by a fourth number of pixels, and the translated pixel points are taken as integers to realize translation of the digital image to obtain a second image.
- the main body sway of the digital image device is compensated in the reverse direction by using the pan/tilt motor, and the image acquired after the compensation is performed.
- Digital image processing so that even when the digital image device is bumped and shaken, images and/or videos of better quality can be obtained.
- the use of pan/tilt motor and digital image processing technology to correct the image at the same time can correct the screen shake with a large amplitude, thereby effectively ensuring the quality of the obtained picture.
- the entire digital image device is small in size and highly integrated.
- an image capture device that is applied to a digital image device.
- the image acquisition device can be implemented by software, or can be implemented by hardware or a combination of hardware and software.
- a processor of a digital image device in which it is located reads a corresponding machine executable instruction in a non-transitory storage medium. From the hardware level, as shown in FIG. 5, a hardware structure diagram of the digital image device in which the image acquisition device proposed in the present disclosure is located.
- the digital image device may include a lens module 501, a posture information collection device 502, a pan/tilt motor 503, a processor 504, a non-transitory machine readable storage medium 505, and a system bus 506, a lens module 501, and a posture information collection device 502.
- the pan/tilt motor 503, the processor 504, and the non-transitory storage medium 505 can communicate with each other through the system bus 506.
- the posture information collection device 502 is a device for acquiring posture information of a digital image device, such as an IMU, a geomagnetic sensor, or the like.
- the processor 504 can implement the steps of the image acquisition method described above by reading machine executable instructions in the non-transitory machine readable storage medium 505.
- the processor 504 can be a separate microprocessor or can be integrated on the motherboard.
- the digital image device includes other hardware, such as a forwarding chip responsible for processing the message, a network interface, memory, etc.;
- the digital image device may also be a distributed device, which may include multiple interface cards to extend the message processing at the hardware level.
- the lens module 501 is configured to acquire a first image
- the posture information collecting device 502 is configured to acquire a motion state of the lens module of the digital image device before the lens module acquires the first image
- a motor 503 disposed coaxially with one of an X-axis, a Y-axis, and a Z-axis for rotating the camera module, wherein the X-axis passes through a center of an imaging plane of the digital image device And indicating a front-rear direction of the imaging plane, the Y-axis passing through a center of the imaging plane and indicating a left-right direction of the imaging plane, the Z-axis passing through a center of the imaging plane and indicating the imaging plane
- the up and down direction of the processor 504 is configured to control the pan/tilt motor 503 to perform rotation according to the motion state acquired by the attitude information collection device 502 to compensate for motion of the lens module.
- FIG. 6 is a logical functional structural diagram of an image capture device proposed by the present disclosure.
- the logical functions of the image capture device may correspond to machine executable instructions stored in the non-transitory machine readable storage medium 505, and may specifically include a first processing module 601 and a second processing module 602.
- the second processing module 602 is configured to perform digital image processing on the first image to obtain a second image.
- the axis of the pan/tilt motor is coaxial with the X axis.
- the first processing module 601 determines a rotation direction of the pan-tilt motor in the X-axis direction by using a movement direction of the lens module 501 on the X-axis; using the camera module in the Determining the angle of rotation of the pan/tilt motor in the X-axis direction; determining the pan-tilt motor in the X-axis direction by using the angular velocity of the camera module in the X-axis direction The rotational angular velocity in the X-axis direction is controlled; and the rotation of the pan-tilt motor 503 on the X-axis is controlled based on the determined rotational direction, rotational angle, and rotational angular velocity.
- the axis of the pan/tilt motor is coaxial with the Y axis.
- the first processing module 601 determines a rotation direction of the pan-tilt motor on the Y-axis by using a movement direction of the lens module 501 on the Y-axis; and using the camera module in the Y-axis direction Determining a rotation angle of the pan/tilt motor in the Y-axis direction; determining a rotation angle of the camera module in the Y-axis direction to determine the pan-tilt motor on the Y-axis Rotational angular velocity in the direction; controlling the pan/tilt motor based on the determined rotational direction, rotational angle, and rotational angular velocity 503 rotation on the Y axis.
- the first processing module 601 determines, by using the lens module 501, the rotation direction of the PTZ motor in the Z-axis direction in the moving direction of the Z-axis; using the lens module 501 in the Determining a rotation angle of the pan/tilt motor in the Z-axis direction; determining a rotation angle of the lens module 501 in the Z-axis direction to determine the pan-tilt motor The rotational angular velocity in the Z-axis direction; controlling the rotation of the pan-tilt motor 503 on the Z-axis based on the determined rotational direction, rotational angle, and rotational angular velocity.
- the second processing module 602 may be based on The amount of movement of the lens module on the Y-axis, the first image is inversely translated by N pixels along the Y-axis, and the N represents a compensation value corresponding to the amount of movement on the Y-axis Translating the first image by M pixels along the Z axis based on the amount of movement of the lens module on the Z axis, the M indicating a corresponding amount of movement on the Z axis Compensation value.
- the second processing module 602 may be based on the amount of movement of the camera module on the Y axis.
- the image is inversely translated by T pixels along the Y axis, the T representing a compensation value corresponding to the amount of movement on the Y axis.
- the second processing module 602 may be the first based on the amount of movement of the camera module on the Z axis.
- the image is inversely translated by W pixels along the Z axis, the W representing a compensation value corresponding to the amount of movement on the Y axis.
- the modules of the disclosed device may be integrated or deployed separately.
- the above modules can be combined into one module, or can be further split into multiple sub-modules.
- the present disclosure can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases the former is a better implementation.
- the part of the technical solution of the present disclosure that contributes in essence or to the prior art may be in the form of a software product.
- the computer software product is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in the examples of the present disclosure.
- a computer device which may be a personal computer, server, or network device, etc.
- modules in the devices in the examples may be distributed in the device of the example according to the example description, or the corresponding changes may be located in one or more devices different from the example.
- the modules of the above examples can be combined into one module, or can be further split into multiple sub-modules.
- the above-described examples of the present disclosure are merely for the purpose of description and do not represent the advantages and disadvantages of the examples.
- first, second, third, etc. may be used in the present disclosure to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other.
- first information may also be referred to as second information without departing from the scope of the present disclosure.
- second information may also be referred to as first information.
- word “if” may be interpreted to mean “at time” or "when” or "in response to determination.”
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Mechanical Engineering (AREA)
- Studio Devices (AREA)
- Image Analysis (AREA)
- Image Processing (AREA)
Abstract
The disclosure provides a hybrid image stabilization system and a digital image apparatus. According to one embodiment, the method comprises: prior to capturing a first image, acquiring a movement state of a camera module of a digital image apparatus, and rotating, according to the movement state, a tripod mount motor on the digital image apparatus, so as to compensate for a movement of the camera module, wherein an axle of the tripod mount motor is configured to align with one of X-axis, Y-axis, and Z-axis, the X-axis passes through the center of an imaging plane of the digital image apparatus and indicates a front-back direction of the imaging plane, the Y-axis passes through the center of an imaging plane of the digital image apparatus and indicates a left-right direction of the imaging plane, and the Z-axis passes through the center of an imaging plane of the digital image apparatus and indicates an up-down direction of the imaging plane. The embodiment is employed to capture, after the movement compensation, using the camera module, a first image, and perform, according to the movement state, digital image processing on the first image to obtain a second image.
Description
本公开涉及图像处理技术领域。The present disclosure relates to the field of image processing technology.
数字图像设备(如智能手机、数字照相机等)的拍照功能已在用户生活中广为应用。很多情况下,数字图像设备可能在运动状态下进行拍照。例如,当用户跟随目标运动时,数字图像设备可能在运动状态下进行拍照。在将数字图像设备安装到航拍无人机上后,在航拍无人机的运动过程中,数字图像设备可能在运动状态下进行拍照。在将数字图像设备安装到自行车上后,在自行车的行进过程中,数字图像设备可能在运动状态下进行拍照。The camera function of digital image devices (such as smart phones, digital cameras, etc.) has been widely used in user life. In many cases, digital image devices may take pictures while in motion. For example, when the user follows the target motion, the digital image device may take a picture while in motion. After the digital image device is mounted on the aerial drone, the digital image device may take a picture while in motion during the movement of the aerial drone. After the digital image device is mounted on the bicycle, the digital image device may take a picture while in motion during the travel of the bicycle.
目前,运动状态下进行拍照的场景层出不穷。但是,由于运动过程中会发生颠簸和晃动等情况,在运动状态下进行拍照所得到的图像或者视频质量可能较差。At present, scenes for taking pictures in a state of motion are endless. However, due to bumps and swaying during exercise, the image or video quality obtained by taking pictures in motion may be poor.
发明内容Summary of the invention
本公开提供一种图像采集方法,包括:The present disclosure provides an image collection method, including:
获取数字图像设备的摄像头模组的运动状态;Obtaining a motion state of a camera module of the digital image device;
根据所述运动状态转动设置于所述数字图像设备的云台电机,以对所述摄像头模组的运动进行补偿,其中,所述云台电机被设置为轴心与X轴、Y轴以及Z轴之一同轴,所述X轴穿过所述数字图像设备的成像平面的中心并且指示所述成像平面的前后方向,所述Y轴穿过所述成像平面的中心并且指示所述成像平面的左右方向,所述Z轴穿过所述成像平面的中心并且指示所述成像平面的上下方向;Rotating a pan-tilt motor disposed in the digital image device according to the motion state to compensate for movement of the camera module, wherein the pan-tilt motor is set to an axis and an X-axis, a Y-axis, and a Z One of the axes is coaxial, the X-axis passing through the center of the imaging plane of the digital image device and indicating the front-rear direction of the imaging plane, the Y-axis passing through the center of the imaging plane and indicating the imaging plane The left and right direction, the Z axis passing through the center of the imaging plane and indicating the up and down direction of the imaging plane;
利用进行所述运动补偿后的所述摄像头模组采集第一图像;Acquiring the first image by using the camera module after performing the motion compensation;
根据所述运动状态对所述第一图像进行数字图像处理,得到第二图
像。Performing digital image processing on the first image according to the motion state to obtain a second image
image.
本公开提供一种数字图像设备,包括:The present disclosure provides a digital image device comprising:
摄像头模组,用于采集图像;a camera module for collecting images;
姿态信息采集模组,用于确定所述摄像头模组的运动状态;An attitude information collection module, configured to determine a motion state of the camera module;
云台电机,其被设置为轴心与X轴、Y轴以及Z轴之一同轴,用于转动所述摄像头模组,其中,所述X轴穿过所述数字图像设备的成像平面的中心并且指示所述成像平面的前后方向,所述Y轴穿过所述成像平面的中心并且指示所述成像平面的左右方向,所述Z轴穿过所述成像平面的中心并且指示所述成像平面的上下方向;以及a pan/tilt motor that is disposed coaxially with one of an X-axis, a Y-axis, and a Z-axis for rotating the camera module, wherein the X-axis passes through an imaging plane of the digital image device Centering and indicating a front-rear direction of the imaging plane, the Y-axis passing through a center of the imaging plane and indicating a left-right direction of the imaging plane, the Z-axis passing through a center of the imaging plane and indicating the imaging Up and down direction of the plane;
控制器,其被配置为:Controller, which is configured to:
根据所述姿态信息采集模组所确定的运动状态,控制所述云台电机转动,以对所述摄像头模组的运动进行补偿;Controlling the rotation of the pan-tilt motor according to the motion state determined by the attitude information acquisition module to compensate for the motion of the camera module;
使进行所述运动补偿后的所述摄像头模组采集第一图像;And causing the camera module that performs the motion compensation to acquire a first image;
根据所述姿态信息采集模组所确定的运动状态,对所述第一图像进行数字图像处理,以得到第二图像。And performing digital image processing on the first image according to the motion state determined by the attitude information collection module to obtain a second image.
基于上述技术方案,本公开示例中,当数字图像设备在运动状态下采集图像时,可通过使用云台电机对数字图像设备进行反方向补偿,并对采集到的图像进行数字图像处理,从而即使在数字图像设备发生颠簸和晃动等情况时,也可得到质量较好的图像。而且,同时使用云台电机和数字图像处理技术对图像进行矫正,能够矫正幅度较大的画面晃动,从而产生的画面质量较高。而且,由于只有一个云台电机,本公开所提供的图像采集系统具有体积小、一体化程度高的优点。Based on the above technical solution, in the example of the present disclosure, when the digital image device acquires an image in a motion state, the digital image device can be inversely compensated by using the pan/tilt motor, and the captured image is digitally imaged, thereby even Good quality images can also be obtained when the digital image device is bumped and shaken. Moreover, using the PTZ motor and digital image processing technology to correct the image at the same time, it is possible to correct the screen shake with a large amplitude, and the resulting picture quality is high. Moreover, since there is only one pan/tilt motor, the image acquisition system provided by the present disclosure has the advantages of small size and high degree of integration.
为了更加清楚地说明本公开示例或者现有技术中的技术方案,下面将对本公开示例或者现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本公开中记载的一些示例,对于本领域普通技术人员来讲,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the examples of the present disclosure or the technical solutions in the prior art, the drawings to be used in the examples of the present disclosure or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are merely Some examples described in this disclosure, for those of ordinary skill in the art, may also obtain other figures from these figures.
图1是本公开一示例中的图像采集方法的流程图;1 is a flow chart of an image acquisition method in an example of the present disclosure;
图2是本公开一示例中的数字图像设备的三维运动模型示意
图;2 is a schematic diagram of a three-dimensional motion model of a digital image device in an example of the present disclosure
Figure
图3是本公开一示例中的云台电机和镜头模组的示意图;3 is a schematic diagram of a pan/tilt motor and a lens module in an example of the present disclosure;
图4是本公开另一示例中的云台电机和镜头模组的示意图;4 is a schematic diagram of a pan/tilt motor and a lens module in another example of the present disclosure;
图5是本公开一示例中的数字图像设备的硬件结构图;5 is a hardware configuration diagram of a digital image device in an example of the present disclosure;
图6是本公开一示例中的图像采集逻辑的功能模块框图。6 is a functional block diagram of image acquisition logic in an example of the present disclosure.
在很多情况下,数字图像设备可能在运动状态下进行拍照。例如,当用户跟随目标运动时,数字图像设备可能在运动状态下进行拍照。在将数字图像设备安装到航拍无人机上后,在航拍无人机的运动过程中,数字图像设备可能在运动状态下进行拍照。在将数字图像设备安装到自行车上后,在自行车的行进过程中,数字图像设备可能在运动状态下进行拍照。在上述应用场景下,由于运动过程中会发生颠簸和晃动等情况,通过对数字图像设备采集的图像进行修正,可以得到质量较好的图像。In many cases, digital image devices may take pictures while in motion. For example, when the user follows the target motion, the digital image device may take a picture while in motion. After the digital image device is mounted on the aerial drone, the digital image device may take a picture while in motion during the movement of the aerial drone. After the digital image device is mounted on the bicycle, the digital image device may take a picture while in motion during the travel of the bicycle. In the above application scenario, due to the occurrence of bumps and sway during the movement, by correcting the image acquired by the digital image device, a better quality image can be obtained.
例如,数字图像设备可以装配一个云台电机,并通过该云台电机控制数字图像设备进行转动。在控制数字图像设备转动的过程中,由于负载只包括数字图像设备和一个云台电机,因此,可以配置一个体积较小的云台电机,并通过该云台电机驱动数字图像设备转动。而在某些场合中,为了获得专业拍摄效果,数字图像设备可以装配多轴(如三轴)云台电机来将数字图像设备调整到一个合适的角度。但是由于多轴云台电机通常体积较大、重量也很大,不宜应用在小型电子设备上。For example, a digital image device can be equipped with a pan/tilt motor and controlled by the pan/tilt motor to rotate the digital image device. In controlling the rotation of the digital image device, since the load includes only the digital image device and a pan/tilt motor, a small-sized pan/tilt motor can be configured, and the digital image device is driven to rotate by the pan/tilt motor. In some cases, in order to achieve professional shooting results, digital imaging equipment can be equipped with multi-axis (such as three-axis) PTZ motors to adjust the digital image equipment to a suitable angle. However, multi-axis pan/tilt motors are generally not suitable for small electronic devices because they are usually bulky and heavy.
为此,本公开示例中提出一种图像采集方法,该方法可以应用于数字图像设备上,如智能手机、数字照相机等。To this end, an example of image acquisition is proposed in the example of the present disclosure, which can be applied to digital image devices such as smart phones, digital cameras and the like.
参见图1所示,为本公开示例中提出的图像采集方法的流程图,该图像采集方法可以包括以下步骤。Referring to FIG. 1 , a flowchart of an image acquisition method proposed in the example of the present disclosure may include the following steps.
步骤101,可获取该数字图像设备的镜头模组的运动状态,并根据该运动状态转动云台电机,以对该镜头模组的运动进行补偿。Step 101: Acquire a motion state of a lens module of the digital image device, and rotate the pan/tilt motor according to the motion state to compensate for motion of the lens module.
步骤102,可利用进行运动补偿后的镜头模组采集第一图像,并对第一图像进行数字图像处理,得到第二图像。Step 102: The first image is acquired by using the motion compensated lens module, and the first image is subjected to digital image processing to obtain a second image.
在一个例子中,数字图像设备的三维运动模型可以如图2所
示,该数字图像设备在三维空间内的转动可有三个转动维度:1、以X轴为转轴的滚转(X轴指向该数字图像设备的成像平面的前方/后方);2、以Y轴为转轴的俯仰(Y轴指向成像平面的左方/右方);3、以Z轴为转轴的转头(Z轴指向成像平面的上方/下方)。这三个转动维度的运动,通常需要进行纠正,本公开示例中,可以使用云台电机对数字图像设备一个维度的运动进行纠正,然后可以使用数字图像处理技术对所拍摄图像进行进一步的纠正。In one example, the three-dimensional motion model of the digital image device can be as shown in FIG.
It can be noted that the rotation of the digital image device in three-dimensional space can have three rotation dimensions: 1. Rolling with the X-axis as the rotating shaft (the X-axis points to the front/rear of the imaging plane of the digital image device); 2. The Y-axis It is the pitch of the rotation axis (the Y axis points to the left/right of the imaging plane); 3. The rotation head with the Z axis as the rotation axis (the Z axis points above/below the imaging plane). The movement of these three rotational dimensions typically requires correction. In the example of the present disclosure, the pan-tilt motor can be used to correct the motion of the digital image device in one dimension, and then the captured image can be further corrected using digital image processing techniques.
针对不同类型的数字图像设备,其处理方式不同。例如,当数字图像设备是以X轴为中心进行运动的第一类设备时,可以使用云台电机对X轴维度的运动进行纠正。或者,当数字图像设备是以Y轴为中心进行运动的第二类设备时,可以使用云台电机对Y轴维度的运动进行纠正。或者,当数字图像设备是以Z轴为中心进行运动的第三类设备时,可以使用云台电机对Z轴维度的运动进行纠正。此外,还可使用数字图像处理技术进行进一步的纠正。Different types of digital image devices are handled differently. For example, when the digital image device is a first type of device that moves around the X axis, the motion of the X-axis dimension can be corrected using a pan-tilt motor. Alternatively, when the digital image device is a second type of device that moves around the Y axis, the motion of the Y-axis dimension can be corrected using a pan-tilt motor. Alternatively, when the digital image device is a third type of device that moves around the Z axis, the movement of the Z-axis dimension can be corrected using the pan/tilt motor. In addition, digital image processing techniques can be used for further correction.
在一个例子中,第一类设备是以X轴为中心进行运动的数字图像设备,如四旋翼无人机飞行拍摄时使用的数字图像设备。在数字图像设备拍摄时,数字图像设备沿着X轴滚转维度的晃动,对画面质量的影响最大。因此,可首先通过一个轴心与X轴同心的云台电机对数字图像设备的滚转进行纠正,例如进行反向补偿。在补偿滚转之后,还可以通过数字图像处理技术对所拍摄图像进行纠正。例如,可通过将每帧图像向上(或向下)平行移动、以及向左(或向右)平行移动,来对每帧图像进行修正。其中,平移的操作可以限制在整数像素的移动,这样可避免计算负担,也可保持原有图像的锐度。In one example, the first type of device is a digital imaging device that is centered on the X-axis, such as a digital imaging device used in quad-wing UAV flight photography. When the digital image device is photographed, the digital image device sways along the X-axis roll dimension, which has the greatest influence on the picture quality. Therefore, the roll of the digital image device can be corrected first by a pan/tilt motor whose axis is concentric with the X axis, for example, reverse compensation. After the compensation roll, the captured image can also be corrected by digital image processing techniques. For example, each frame of image can be corrected by moving each frame of image up (or down) in parallel and left (or right) in parallel. Among them, the translation operation can be limited to the movement of integer pixels, which can avoid the calculation burden and maintain the sharpness of the original image.
在一个例子中,第二类设备是以Y轴为中心进行运动的数字图像设备,如山地自行车骑行拍摄时的数字图像设备。在山地自行车的运动过程中,由于存在很多起伏山坡,因此数字图像设备沿着Y轴俯仰维度的晃动,对画面质量的影响最大。首先可通过一个轴心与Y轴同心的云台电机,来对数字图像设备的俯仰进行纠正。在补偿俯仰之后,还可以通过数字图像处理技术,例如通过将所拍摄的每帧图像向上(或向下)平行移动、以及向左(或向右)平行移动,来对每帧图像进行修正。其中,平移
的操作可以限制在整数像素的移动,这样就避免了计算负担,也保持了原有图像的锐度。In one example, the second type of device is a digital image device that is centered on the Y-axis, such as a digital image device for mountain bike riding. During the movement of mountain bikes, due to the existence of many rolling hills, the digital image equipment sway along the Y-axis pitch dimension, which has the greatest impact on the picture quality. First, the tilt of the digital image device can be corrected by a pan/tilt motor that is concentric with the Y-axis. After compensating for the pitch, each frame of image can also be corrected by digital image processing techniques, such as by moving the captured image of each frame up (or down) in parallel, and moving left (or right) in parallel. Where, pan
The operation can be limited to the movement of integer pixels, thus avoiding the computational burden and maintaining the sharpness of the original image.
在一个例子中,第三类设备是以Z轴为中心进行运动的数字图像设备,如用户手持的数字图像设备。基于人体前进过程中的运动特性,用户手持数字图像设备进行拍摄时,数字图像设备沿着Z轴转头维度的晃动,对画面质量的影响最大。因此,首先可通过一个轴心与Z轴同心的云台电机,来对数字图像设备的转头进行纠正。在补偿转头之后,可以通过数字图像处理技术,例如通过将所拍摄的每帧图像向上(或向下)、以及向左(或向右)平行移动,来对每帧图像进行修正。其中,平移的操作可以限制在整数像素的移动,这样就避免了计算负担,也保持了原有图像的锐度。In one example, the third type of device is a digital image device that moves around the Z axis, such as a digital image device that is held by a user. Based on the motion characteristics of the human body during the advancement process, when the user holds the digital image device for shooting, the digital image device has the greatest influence on the picture quality along the sway of the Z-axis. Therefore, the head of the digital image device can be corrected first by a pan/tilt motor whose axis is concentric with the Z axis. After compensating for the turret, each frame of image can be corrected by digital image processing techniques, such as by moving each frame of the image taken up (or down) and left (or right) in parallel. Among them, the translation operation can be limited to the movement of integer pixels, thus avoiding the computational burden and maintaining the sharpness of the original image.
以下结合具体的应用场景,对上述三种情况的处理方式进行详细说明。The following describes the processing methods of the above three cases in combination with specific application scenarios.
情况一、数字图像设备是以X轴为中心进行运动的第一类设备,如四旋翼无人机飞行拍摄时使用的数字图像设备,该数字图像设备以X轴为中心滚转维度的晃动,对画面质量的影响最大。在此情况下,云台电机的轴心与X轴同轴。Case 1: The digital image device is a first type of device that moves around the X axis, such as a digital image device used in the flight shooting of a quadrotor UAV. The digital image device oscillates in a rolling dimension centered on the X axis. It has the greatest impact on picture quality. In this case, the axis of the pan/tilt motor is coaxial with the X axis.
针对步骤101,数字图像设备的镜头模组的运动状态可以包括但不限于:所述镜头模组在以X轴为中心的方向上的第一运动方向、第一运动角度、第一运动角速度。根据该运动状态转动云台电机以实现运动补偿,包括但不限于如下方式:利用第一运动方向确定云台电机在以X轴为中心的方向上的第一转动方向;利用第一运动角度确定云台电机在以X轴为中心的方向上的第一转动角度;利用第一运动角速度确定云台电机在以X轴为中心的方向上的第一转动角速度;利用第一转动方向、第一转动角度和第一转动角速度,在以X轴为中心的方向上转动云台电机。请注意,在本示例中,以第一运动角度和第一运动角速度来表示四旋翼无人机在以X轴为中心的方向上产生的滚转。当然,也可以采用其他方式来表示四旋翼无人机在该方向上发生了滚转。例如,可以单独采用第一运动角度或第一运动角速度,或者还可以利用四旋翼无人机相对地面参照物的位置变化来确定滚转角度。
For the step 101, the motion state of the lens module of the digital image device may include, but is not limited to, a first motion direction, a first motion angle, and a first motion angular velocity of the lens module in a direction centered on the X axis. Rotating the pan-tilt motor according to the motion state to achieve motion compensation, including but not limited to: determining a first rotation direction of the pan-tilt machine in a direction centered on the X-axis by using the first motion direction; determining by using the first motion angle a first rotation angle of the pan-tilt motor in a direction centered on the X-axis; determining a first rotational angular velocity of the pan-tilt motor in a direction centered on the X-axis by the first angular velocity; using the first rotational direction, first The pan angle motor and the first rotational angular velocity rotate the pan motor in a direction centered on the X axis. Note that in this example, the rotation of the quadrotor drone in the direction centered on the X-axis is represented by the first angle of motion and the first angular velocity of motion. Of course, other ways can be used to indicate that the quadrotor drone has rolled in that direction. For example, the first or first angular angular velocity may be employed alone, or the rotational angle of the quadrotor drone relative to the ground reference may also be utilized to determine the roll angle.
例如,假设镜头模组在以X轴为中心的方向上的第一运动方向为顺时针方向,则可利用该第一运动方向确定云台电机在以X轴为中心的方向上的第一转动方向为逆时针方向。假设镜头模组在以X轴为中心的方向上的第一运动方向为逆时针方向,则可利用该第一运动方向确定云台电机在以X轴为中心的方向上的第一转动方向为顺时针方向。假设镜头模组在以X轴为中心的方向上的第一运动角度为M度,则可利用该第一运动角度确定云台电机在以X轴为中心的方向上的第一转动角度可以为M度,或者,区间[M-a度,M+a度]。假设镜头模组在以X轴为中心的方向上的第一运动角速度为N度/秒,则可利用该第一运动角速度确定云台电机在以X轴为中心的方向上的第一第一转动角速度可以为N度/秒。综上所述,可在X轴上逆时针/顺时针转动云台电机,且转动角度为M度,且转动角速度为N度/秒。通过这种方式,可以在以X轴为中心的方向上对数字图像设备进行反方向补偿。For example, assuming that the first movement direction of the lens module in the direction centered on the X axis is clockwise, the first movement direction can be used to determine the first rotation of the pan/tilt head in the direction centered on the X axis. The direction is counterclockwise. Assuming that the first movement direction of the lens module in the direction centered on the X-axis is counterclockwise, the first movement direction can be used to determine the first rotation direction of the pan-tilt motor in the direction centered on the X-axis Clockwise direction. Assuming that the first movement angle of the lens module in the direction centered on the X axis is M degrees, the first rotation angle of the PTZ motor in the direction centered on the X axis may be determined by using the first motion angle. M degree, or, interval [Ma degree, M+a degree]. Assuming that the first angular velocity of the lens module in the direction centered on the X axis is N degrees/second, the first moving angular velocity can be used to determine the first first of the pan/tilt motor in the direction centered on the X axis. The angular velocity of rotation can be N degrees/second. In summary, the pan/tilt head can be rotated counterclockwise/clockwise on the X-axis with a rotation angle of M degrees and a rotational angular velocity of N degrees/second. In this way, the digital image device can be compensated in the opposite direction in the direction centered on the X-axis.
针对步骤102,对利用云台电机进行运动补偿后的镜头模组所采集到的第一图像进行数字图像处理,可以包括但不限于如下方式:获取镜头模组在Y轴的第一移动量和在Z轴的第二移动量。可利用该第一移动量确定第一数量,并在沿Y轴向着对该第一图像进行反向补偿的方向上,将该第一图像平移该第一数量个像素点。可利用该第二移动量确定第二数量,并在沿Z轴向着对该第一图像进行反向补偿的方向上,将该第一图像平移该第二数量个像素点。基于此,可以将平移第一数量和第二数量个像素点的图像确定为第二图像。For the step 102, performing digital image processing on the first image collected by the lens module after the motion compensation of the pan/tilt motor may include, but is not limited to, acquiring the first movement amount of the lens module on the Y axis and The second amount of movement in the Z axis. The first amount of movement may be utilized to determine the first amount, and the first image is translated by the first number of pixels in a direction that is inversely compensated for the first image along the Y-axis. The second amount of movement may be utilized to determine a second amount, and the first image is translated by the second number of pixels in a direction that is inversely compensated for the first image along the Z-axis. Based on this, an image that shifts the first number and the second number of pixels can be determined as the second image.
例如,假设镜头模组在Y轴上向左的移动量为A,且A对应10个像素点,则可确定第一数量为10,并可将第一图像向右平移10个像素点。假设镜头模组在Y轴上向右的移动量为A,且A对应10个像素点,则可确定第一数量为10,并可将第一图像向左平移10个像素点。For example, assuming that the amount of movement of the lens module to the left on the Y axis is A, and A corresponds to 10 pixels, it can be determined that the first number is 10, and the first image can be shifted to the right by 10 pixels. Assuming that the amount of movement of the lens module to the right on the Y axis is A, and A corresponds to 10 pixels, it can be determined that the first number is 10, and the first image can be shifted to the left by 10 pixels.
又例如,假设镜头模组在Z轴上向上的移动量为B,且B对应8个像素点,则可确定第二数量为8,并可将第一图像向下平移8个像素点。假设镜头模组在Z轴上向下的移动量为B,且B对应8个像素点,则可确定第二数量为8,并可将第一图像向上平移8个像素点。For another example, if the amount of movement of the lens module on the Z axis is B and B corresponds to 8 pixels, the second number can be determined to be 8, and the first image can be shifted down by 8 pixels. Assuming that the downward movement of the lens module on the Z axis is B, and B corresponds to 8 pixels, it can be determined that the second number is 8, and the first image can be shifted up by 8 pixels.
当数字图像设备沿着X轴滚转维度的晃动,对画面质量的影
响最大时,无法仅通过使用数字图像处理技术对X轴上的滚转进行纠正。原因是:数字图像处理技术只能矫正幅度较小的晃动,但是对于幅度较大的运动,若使用数字图像处理技术进行矫正,矫正后的画面质量可能依然很差。进一步的,针对X轴滚转维度的晃动,使用数字图像处理技术进行纠正时,需要进行双线性插值计算,有可能造成图像的锐度大幅度降低,从而影响矫正后的图像质量。例如,在滚转幅度较大时,双线性插值计算极有可能会造成图像边框处理的未知部分出现黑色,使得用户体验明显下降。When the digital image device is swayed along the X-axis roll dimension, the image quality is affected.
When the loudest is loud, it is not possible to correct the roll on the X-axis simply by using digital image processing techniques. The reason is that digital image processing technology can only correct small amplitude sloshing, but for large amplitude motion, if digital image processing technology is used for correction, the corrected picture quality may still be poor. Further, for the sway of the X-axis roll dimension, when digital image processing technology is used for correction, bilinear interpolation calculation is required, which may cause the sharpness of the image to be greatly reduced, thereby affecting the image quality after correction. For example, when the roll width is large, the bilinear interpolation calculation is likely to cause blackness in the unknown part of the image frame processing, resulting in a significant drop in user experience.
在一个例子中,如图3所示,为云台电机和镜头模组的示意图。其中,云台电机304的轴心与镜头模组301的轴心同轴。本公开示例中并不局限于此结构,在下文描述的数字图像设备以Y轴或Z轴为中心运动的情况中,云台电机的轴心可以与Y轴或Z轴同轴。In one example, as shown in FIG. 3, it is a schematic diagram of a pan/tilt motor and a lens module. The axis of the pan/tilt motor 304 is coaxial with the axis of the lens module 301. The present disclosure example is not limited to this configuration, and in the case where the digital image device described below is moved around the Y-axis or the Z-axis, the axis of the pan-tilt motor may be coaxial with the Y-axis or the Z-axis.
如图3所示,以镜头模组301的轴心为X轴,云台电机304可沿X轴安装在镜头模组301后方,且该云台电机的轴心与X轴同轴。在图3中,还可以包括IMU(Inertial Measurement Unit,惯性测量单元)302、IC(微控制器)303、主板305等结构。As shown in FIG. 3, the axis of the lens module 301 is an X-axis, and the pan-tilt motor 304 can be mounted behind the lens module 301 along the X-axis, and the axis of the pan-tilt motor is coaxial with the X-axis. In FIG. 3, an IMU (Inertial Measurement Unit) 302, an IC (microcontroller) 303, a main board 305, and the like may also be included.
其中,IMU 302可以与镜头模组301固定在一起,也可以安装在其它部件上。IMU 302是测量物体三轴姿态角(或角速率)和加速度的装置。一个IMU可包含三个单轴的加速度计和三个单轴的陀螺仪,因此也可称为六轴传感器。其中,加速度计可用于检测物体在载体坐标系统中独立的三轴的加速度信号,陀螺仪可用于检测载体相对于导航坐标系的角速度信号。因此,IMU可以实时测量物体在三维空间中的角速度和加速度,并以此得出物体的姿态信息。The IMU 302 can be fixed to the lens module 301 or can be mounted on other components. The IMU 302 is a device that measures the triaxial attitude angle (or angular rate) and acceleration of an object. An IMU can contain three single-axis accelerometers and three single-axis gyroscopes, so it can also be called a six-axis sensor. The accelerometer can be used to detect an independent three-axis acceleration signal of the object in the carrier coordinate system, and the gyroscope can be used to detect the angular velocity signal of the carrier relative to the navigation coordinate system. Therefore, the IMU can measure the angular velocity and acceleration of an object in three-dimensional space in real time, and thereby obtain the attitude information of the object.
其中,微控制器303可以与IMU相邻摆放,也可以安装在其它部件上。微控制器303可通过IMU 302采集到的数据,确定镜头模组301在以X轴为中心的方向上的第一运动方向、第一运动角度和第一运动角速度。继而可确定出云台电机304在以X轴为中心的方向上的第一转动方向、第一转动角度和第一转动角速度,并可利用第一转动方向、第一转动角度和第一转动角速度控制云台电机304在X轴的转动。The microcontroller 303 can be placed adjacent to the IMU or can be mounted on other components. The microcontroller 303 can determine the first motion direction, the first motion angle, and the first motion angular velocity of the lens module 301 in the direction centered on the X-axis through the data collected by the IMU 302. Then, a first rotation direction, a first rotation angle, and a first rotation angular velocity of the pan-tilt motor 304 in a direction centered on the X-axis may be determined, and the first rotation direction, the first rotation angle, and the first rotation angular velocity may be utilized The rotation of the pan/tilt motor 304 on the X-axis is controlled.
其中,主板305上的处理芯片可负责每帧图像的采集,并可
负责数字图像处理部分。数字图像处理操作可以包括:获取镜头模组301在Y轴的第一移动量和在Z轴的第二移动量;利用该第一移动量确定第一数量,并在沿Y轴向着对该第一图像进行反向补偿的方向上,将该第一图像平移该第一数量个像素点;利用该第二移动量确定第二数量,并在沿Z轴向着对该第一图像进行反向补偿的方向上,将该第一图像平移该第二数量个像素点。最后,将平移后的像素点取整数,实现数字图像的平移,从而得到第二图像。The processing chip on the main board 305 can be responsible for the image acquisition of each frame, and
Responsible for the digital image processing part. The digital image processing operation may include: acquiring a first movement amount of the lens module 301 on the Y axis and a second movement amount on the Z axis; determining the first quantity by using the first movement amount, and Transmitting the first image to the first number of pixels in a direction in which the first image is inversely compensated; determining a second amount by using the second amount of movement, and inverting the first image along the Z axis The first image is translated by the second number of pixels in a direction of compensation. Finally, the shifted pixel points are taken as integers to achieve translation of the digital image, thereby obtaining a second image.
情况二、数字图像设备是以Y轴为中心进行运动的第二类设备,如山地自行车骑行拍摄时使用的数字图像设备。该数字图像设备以Y轴为中心俯仰维度的晃动,对画面质量的影响最大。在此情况下,以穿过镜头模组的轴心且垂直于镜头模组的成像平面的轴为X轴,云台电机可沿垂直于X轴的Y轴安装在镜头模组左方,且云台电机的轴心与Y轴同轴。Case 2: The digital image device is a second type of device that moves around the Y axis, such as a digital image device used for mountain bike riding. The digital image device has a maximum impact on the picture quality by shaking the pitch dimension centered on the Y-axis. In this case, the axis passing through the axis of the lens module and perpendicular to the imaging plane of the lens module is the X axis, and the pan/tilt motor can be mounted to the left of the lens module along the Y axis perpendicular to the X axis, and The axis of the pan/tilt motor is coaxial with the Y axis.
针对步骤101,数字图像设备的镜头模组的运动状态可以包括但不限于:镜头模组在以Y轴为中心的方向上的第二运动方向、第二运动角度、第二运动角速度。根据该运动状态转动云台电机以实现运动补偿,包括但不限于如下方式:利用第二运动方向确定云台电机在以Y轴为中心的方向上的第二转动方向;利用第二运动角度确定云台电机在以Y轴为中心的方向上的第二转动角度;利用第二运动角速度确定云台电机在以Y轴为中心的方向上的第二转动角速度;利用第二转动方向、第二转动角度和第二转动角速度,在以Y轴为中心的方向上转动云台电机。请注意,在本示例中,以第二运动角度和第二运动角速度来表示山地自行车在以Y轴为中心的方向上产生的俯仰。当然,也可以采用其他方式来表示山地自行车在该方向上发生了俯仰。例如,可以单独采用第二运动角度或第二运动角速度,或者还可以利用山地自行车相对地面参照物的位置变化来确定俯仰角度。For step 101, the motion state of the lens module of the digital image device may include, but is not limited to, a second motion direction, a second motion angle, and a second motion angular velocity of the lens module in a direction centered on the Y axis. Rotating the pan-tilt motor according to the motion state to implement motion compensation, including but not limited to: determining a second rotation direction of the pan-tilt machine in a direction centered on the Y-axis by using the second motion direction; determining by using the second motion angle a second rotation angle of the pan-tilt motor in a direction centered on the Y-axis; determining a second rotational angular velocity of the pan-tilt motor in a direction centered on the Y-axis by the second angular velocity; using the second rotational direction, the second The rotation angle and the second rotational angular velocity rotate the pan/tilt motor in a direction centered on the Y-axis. Note that in the present example, the pitch of the mountain bike in the direction centered on the Y-axis is represented by the second movement angle and the second movement angular velocity. Of course, other ways can be used to indicate that the mountain bike has pitched in that direction. For example, the second or second angular velocity may be employed alone, or the pitch angle of the mountain bike relative to the ground reference may also be utilized to determine the pitch angle.
针对步骤102,对利用云台电机进行运动补偿后的镜头模组所采集到的第一图像进行数字图像处理,可以包括但不限于如下方式:获取镜头模组在Y轴的第三移动量;利用第三移动量确定第三数量,并在沿Y轴向着对该第一图像进行反向补偿的方向上,将第一图像平移第三数量个像素点。基于此,将平移第三数量个像素点的图像确定为第二图像。
For the step 102, performing digital image processing on the first image collected by the lens module after the motion compensation of the pan/tilt motor may include, but is not limited to, acquiring the third movement amount of the lens module on the Y axis; The third amount is determined using the third amount of movement, and the first image is translated by a third number of pixels in a direction in which the first image is inversely compensated along the Y-axis. Based on this, an image that shifts the third number of pixel points is determined as the second image.
当数字图像设备沿着Y轴俯仰维度的晃动,对画面质量的影响最大时,无法仅通过使用数字图像处理技术对Y轴上的俯仰进行纠正。原因是:数字图像处理技术只能矫正幅度较小的晃动,对于幅度较大的运动,若使用数字图像处理技术进行矫正,矫正后的画面质量可能依然很差。When the digital image device is shaken along the Y-axis pitch dimension with the greatest impact on picture quality, it is not possible to correct the pitch on the Y-axis only by using digital image processing techniques. The reason is: digital image processing technology can only correct the small amplitude of the shaking, for the larger amplitude of the motion, if the digital image processing technology is used for correction, the corrected picture quality may still be poor.
在一个例子中,数字图像设备可包括镜头模组、云台电机、IMU、微控制器、主板等结构,本公开示例并不局限于此结构。In one example, the digital image device may include a lens module, a pan/tilt motor, an IMU, a microcontroller, a motherboard, etc., and the examples of the present disclosure are not limited to this structure.
其中,IMU可以与镜头模组固定在一起,也可以安装在其它部件上。IMU是测量物体三轴姿态角(或角速率)和加速度的装置,一个IMU可包含三个单轴的加速度计和三个单轴的陀螺,因此也称为六轴传感器。加速度计可用于检测物体在载体坐标系统中独立的三轴的加速度信号,陀螺可用于检测载体相对于导航坐标系的角速度信号。因此,IMU可测量物体在三维空间中的角速度和加速度,并以此得出物体的实时姿态信息。Among them, the IMU can be fixed with the lens module or can be mounted on other components. The IMU is a device that measures the three-axis attitude angle (or angular rate) and acceleration of an object. An IMU can include three single-axis accelerometers and three single-axis gyros, so it is also called a six-axis sensor. The accelerometer can be used to detect an independent three-axis acceleration signal of the object in the carrier coordinate system, and the gyro can be used to detect the angular velocity signal of the carrier relative to the navigation coordinate system. Therefore, the IMU can measure the angular velocity and acceleration of the object in three-dimensional space, and thereby derive the real-time attitude information of the object.
其中,微控制器可以与IMU相邻摆放,也可以安装在其它部件上。微控制器可通过IMU采集到的数据,确定数字图像设备在以Y轴为中心的方向上的第二运动方向、第二运动角度和第二运动角速度。继而可确定出云台电机在以Y轴为中心的方向上的第二转动方向、第二转动角度和第二转动角速度,并可利用第二转动方向、第二转动角度和第二转动角速度控制云台电机在Y轴的转动。Among them, the microcontroller can be placed adjacent to the IMU or can be mounted on other components. The microcontroller can determine, by the data acquired by the IMU, a second direction of motion, a second angle of motion, and a second angular velocity of motion of the digital image device in a direction centered on the Y-axis. Then, the second rotation direction, the second rotation angle and the second rotation angular velocity of the pan-tilt motor in the direction centered on the Y-axis can be determined, and the second rotation direction, the second rotation angle and the second rotation angular speed can be controlled The rotation of the gimbal motor on the Y axis.
其中,主板上的处理芯片可负责每帧图像的采集,并可负责数字图像处理部分。数字图像处理操作可以包括:获取镜头模组沿Y轴的第三移动量,利用第三移动量确定第三数量,并在沿Y轴向着该第一图像进行反向补偿的方向上,将第一图像平移第三数量个像素点,将平移后的像素点取整数,实现数字图像的平移,得到第二图像。Among them, the processing chip on the main board can be responsible for the acquisition of each frame of image, and can be responsible for the digital image processing part. The digital image processing operation may include: acquiring a third movement amount of the lens module along the Y axis, determining a third quantity by using the third movement amount, and in a direction of reverse compensation of the first image along the Y axis, The first image is translated by a third number of pixels, and the translated pixel points are taken as integers to realize translation of the digital image to obtain a second image.
情况三、数字图像设备是以Z轴为中心进行运动的第三类设备,如用户手持数字图像设备(如手机、摄像机等)。该数字图像设备以Z轴为中心转头维度的晃动,对画面质量的影响最大。在此情况下,以穿过镜头模组的轴心且垂直于成像平面的轴为X轴,云台电机可沿垂直于X轴的Z轴安装在镜头模组下方,且云台电机的轴心与Z轴同轴。Case 3: The digital image device is a third type of device that moves around the Z axis, such as a user holding a digital image device (such as a mobile phone, a video camera, etc.). The digital image device has the greatest influence on the picture quality with the Z-axis as the center of the head sway. In this case, the axis passing through the axis of the lens module and perpendicular to the imaging plane is the X axis, and the pan/tilt motor can be mounted under the lens module along the Z axis perpendicular to the X axis, and the axis of the pan/tilt motor The heart is coaxial with the Z axis.
针对步骤101,数字图像设备的镜头模组的运动状态可以包括但不限于:数字图像设备在以Z轴为中心的方向上的第三运动方向、第
三运动角度、第三运动角速度。根据该运动状态转动云台电机以实现运动补偿,包括但不限于如下方式:利用第三运动方向确定云台电机在以Z轴为中心的方向上的第三转动方向;利用第三运动角度确定云台电机在以Z轴为中心的方向上的第三转动角度;利用第三运动角速度确定云台电机在以Z轴为中心的方向上的第三转动角速度;利用第三转动方向、第三转动角度和第三转动角速度,在以Z轴为中心的方向上转动云台电机。请注意,在本示例中,以第三运动角度和第三运动角速度来表示手持数字图像设备在以Z轴为中心的方向上产生的转头。当然,也可以采用其他方式来表示手持数字图像设备在该方向上发生了转头。例如,可以单独采用第三运动角度或第三运动角速度,或者还可以利用手持数字图像设备相对地面参照物的位置变化来确定转头的角度。For step 101, the motion state of the lens module of the digital image device may include, but is not limited to, a third motion direction of the digital image device in a direction centered on the Z axis,
Three movement angles, third movement angular speed. Rotating the pan-tilt motor according to the motion state to realize motion compensation, including but not limited to: determining a third rotation direction of the pan-tilt motor in a direction centered on the Z-axis by using the third motion direction; determining by using the third motion angle a third rotation angle of the pan-tilt motor in a direction centered on the Z-axis; determining a third rotational angular velocity of the pan-tilt motor in a direction centered on the Z-axis by using the third angular velocity; using the third rotational direction, the third The rotation angle and the third rotational angular velocity rotate the pan/tilt motor in a direction centered on the Z axis. Note that in the present example, the turret generated by the handheld digital image device in the direction centered on the Z-axis is represented by the third motion angle and the third motion angular velocity. Of course, other ways can also be used to indicate that the handheld digital image device has turned in this direction. For example, the third or third angular velocity of motion may be employed alone, or the position of the handpiece may be determined using a change in position of the handheld digital image device relative to the ground reference.
针对步骤102,对利用云台电机进行运动补偿后的镜头模组所采集到的第一图像进行数字图像处理,可以包括但不限于如下方式:获取数字图像设备沿Z轴的第四移动量;利用第四移动量确定第四数量,并在沿Z轴向着对该第一图像进行反向补偿的方向上,将第一图像平移第四数量个像素点。基于此,可以将平移第四数量个像素点的图像确定为第二图像。For the step 102, performing digital image processing on the first image collected by the lens module after the motion compensation of the pan/tilt motor may include, but is not limited to, acquiring the fourth movement amount of the digital image device along the Z axis; The fourth amount is determined using the fourth amount of movement, and the first image is translated by a fourth number of pixels in a direction in which the first image is inversely compensated along the Z-axis. Based on this, an image in which the fourth number of pixels is shifted can be determined as the second image.
当数字图像设备沿着Z轴转头维度的晃动,对画面质量的影响最大时,无法仅通过使用数字图像处理技术对Z轴进行纠正的原因是:数字图像处理技术只能矫正幅度较小的晃动,对于幅度较大的运动,若使用数字图像处理技术进行矫正,产生的画面质量很差。When the digital image device sway along the Z-axis traverse dimension and has the greatest impact on the picture quality, the reason why the Z-axis cannot be corrected only by using digital image processing technology is that the digital image processing technology can only correct the smaller amplitude. Shake, for a large amplitude motion, if digital image processing technology is used for correction, the resulting picture quality is poor.
在一个例子中,如图4所示,为云台电机404和镜头模组401的示意图,云台电机404的轴心与Z轴同轴。该云台电机和镜头模组的示意图只是一个示例,本公开示例中并不局限于此结构。In one example, as shown in FIG. 4, which is a schematic diagram of the PTZ motor 404 and the lens module 401, the axis of the PTZ motor 404 is coaxial with the Z axis. The schematic diagram of the pan/tilt motor and the lens module is only an example, and the present disclosure example is not limited to this structure.
如图4所示,数字图像设备还可以包括云台电机404、地磁传感器402、微控制器403、SHUJ等结构。其中,地磁传感器402可以安装在主板405上,地磁传感器402就是一个电子罗盘,也可以称为数字指南针,可以实时采集数字图像设备的位置信息。微控制器403可通过地磁传感器402采集到的数据,确定镜头模组在以Z轴为中心的方向上的第三运动方向、第三运动角度和第三运动角速度。继而可确定云台电机在以Z
轴为中心的方向上的第三转动方向、第三转动角度和第三转动角速度,并利用第三转动方向、第三转动角度和第三转动角速度控制云台电机在Z轴的转动。As shown in FIG. 4, the digital image device may further include a PTZ motor 404, a geomagnetic sensor 402, a microcontroller 403, a SHUJ, and the like. The geomagnetic sensor 402 can be mounted on the main board 405. The geomagnetic sensor 402 is an electronic compass, which can also be called a digital compass, and can collect the position information of the digital image device in real time. The microcontroller 403 can determine the third motion direction, the third motion angle, and the third motion angular velocity of the lens module in the direction centered on the Z axis by the data collected by the geomagnetic sensor 402. Then it can be determined that the PTZ motor is in Z
The third rotational direction, the third rotational angle and the third rotational angular velocity in the direction of the axis, and the rotation of the pan-tilt motor on the Z-axis is controlled by the third rotational direction, the third rotational angle and the third rotational angular velocity.
其中,主板405上的处理芯片可负责每帧图像的采集,并可负责数字图像处理部分。数字图像处理操作可以包括:获取镜头模组沿Z轴的第四移动量,利用第四移动量确定第四数量,并在沿Z轴向着该第一图像进行反向补偿的方向上,将第一图像平移第四数量个像素点,将平移后的像素点取整数,实现数字图像的平移,得到第二图像。The processing chip on the main board 405 can be responsible for the acquisition of each frame of image and can be responsible for the digital image processing portion. The digital image processing operation may include: acquiring a fourth movement amount of the lens module along the Z axis, determining a fourth quantity by using the fourth movement amount, and performing a reverse compensation direction along the Z axis along the first image, The first image is translated by a fourth number of pixels, and the translated pixel points are taken as integers to realize translation of the digital image to obtain a second image.
基于上述技术方案,本公开示例中,当数字图像设备在运动状态下采集图像时,通过使用云台电机对数字图像设备的主体晃动进行反方向补偿,并对进行补偿后所采集到的图像进行数字图像处理,从而即使在数字图像设备发生颠簸和晃动等情况时,也可得到质量较好的图像和/或视频。而且,同时使用云台电机和数字图像处理技术对图像进行矫正,能够矫正幅度较大的画面晃动,从而可有效确保所获得画面的质量。而且,由于只有一个云台电机,整个数字图像设备的体积小、一体化程度高。Based on the above technical solution, in the example of the present disclosure, when the digital image device collects an image in a motion state, the main body sway of the digital image device is compensated in the reverse direction by using the pan/tilt motor, and the image acquired after the compensation is performed. Digital image processing, so that even when the digital image device is bumped and shaken, images and/or videos of better quality can be obtained. Moreover, the use of pan/tilt motor and digital image processing technology to correct the image at the same time can correct the screen shake with a large amplitude, thereby effectively ensuring the quality of the obtained picture. Moreover, since there is only one pan/tilt motor, the entire digital image device is small in size and highly integrated.
本公开示例中还提供了一种图像采集装置,该图像采集装置应用在数字图像设备上。该图像采集装置可以通过软件实现,也可以通过硬件或者软硬件结合的方式实现。以软件实现为例,作为一个逻辑意义上的装置,是通过其所在的数字图像设备的处理器,读取非暂时性存储介质中对应的机器可执行指令形成的。从硬件层面而言,如图5所示,为本公开提出的图像采集装置所在的数字图像设备的一种硬件结构图。该数字图像设备可包括镜头模组501、姿态信息采集设备502、云台电机503、处理器504、非暂时性机器可读存储介质505以及系统总线506,镜头模组501、姿态信息采集设备502、云台电机503、处理器504、非暂时性存储介质505可通过系统总线506相互通信。其中,姿态信息采集设备502为诸如IMU、地磁传感器等用于采集数字图像设备的姿态信息的设备。处理器504通过读取非暂时性机器可读存储介质505中的机器可执行指令,可实现以上描述的图像采集方法的各步骤。该处理器504可以是单独的微处理器或者可以被集成在主板上。除了图5所示的各个部件外,数字图像设备还包括其他硬件,如负责处理报文的转发芯片、网络接口、内存等;从硬件结
构上来讲,数字图像设备还可能是分布式设备,可能包括多个接口卡,以便在硬件层面进行报文处理的扩展。Also provided in the disclosed example is an image capture device that is applied to a digital image device. The image acquisition device can be implemented by software, or can be implemented by hardware or a combination of hardware and software. Taking a software implementation as an example, as a logical means, a processor of a digital image device in which it is located reads a corresponding machine executable instruction in a non-transitory storage medium. From the hardware level, as shown in FIG. 5, a hardware structure diagram of the digital image device in which the image acquisition device proposed in the present disclosure is located. The digital image device may include a lens module 501, a posture information collection device 502, a pan/tilt motor 503, a processor 504, a non-transitory machine readable storage medium 505, and a system bus 506, a lens module 501, and a posture information collection device 502. The pan/tilt motor 503, the processor 504, and the non-transitory storage medium 505 can communicate with each other through the system bus 506. The posture information collection device 502 is a device for acquiring posture information of a digital image device, such as an IMU, a geomagnetic sensor, or the like. The processor 504 can implement the steps of the image acquisition method described above by reading machine executable instructions in the non-transitory machine readable storage medium 505. The processor 504 can be a separate microprocessor or can be integrated on the motherboard. In addition to the various components shown in Figure 5, the digital image device includes other hardware, such as a forwarding chip responsible for processing the message, a network interface, memory, etc.;
In structure, the digital image device may also be a distributed device, which may include multiple interface cards to extend the message processing at the hardware level.
其中,镜头模组501用于采集第一图像;姿态信息采集装置502用于在所述镜头模组采集所述第一图像之前,获取所述数字图像设备的镜头模组的运动状态;云台电机503,其被设置为轴心与X轴、Y轴以及Z轴之一同轴,用于转动所述摄像头模组,其中,所述X轴穿过所述数字图像设备的成像平面的中心并且指示所述成像平面的前后方向,所述Y轴穿过所述成像平面的中心并且指示所述成像平面的左右方向,所述Z轴穿过所述成像平面的中心并且指示所述成像平面的上下方向;处理器504用于根据所述姿态信息采集设备502获取的所述运动状态,控制云台电机503进行转动,以对所述镜头模组的运动进行补偿。如图6所示,为本公开提出的图像采集装置的逻辑功能结构图。所述图像采集装置的逻辑功能可与非暂时性机器可读存储介质505中存储的机器可执行指令相对应,具体可包括第一处理模块601和第二处理模块602。第二处理模块602,用于对所述第一图像进行数字图像处理,得到第二图像。The lens module 501 is configured to acquire a first image, and the posture information collecting device 502 is configured to acquire a motion state of the lens module of the digital image device before the lens module acquires the first image; a motor 503 disposed coaxially with one of an X-axis, a Y-axis, and a Z-axis for rotating the camera module, wherein the X-axis passes through a center of an imaging plane of the digital image device And indicating a front-rear direction of the imaging plane, the Y-axis passing through a center of the imaging plane and indicating a left-right direction of the imaging plane, the Z-axis passing through a center of the imaging plane and indicating the imaging plane The up and down direction of the processor 504 is configured to control the pan/tilt motor 503 to perform rotation according to the motion state acquired by the attitude information collection device 502 to compensate for motion of the lens module. FIG. 6 is a logical functional structural diagram of an image capture device proposed by the present disclosure. The logical functions of the image capture device may correspond to machine executable instructions stored in the non-transitory machine readable storage medium 505, and may specifically include a first processing module 601 and a second processing module 602. The second processing module 602 is configured to perform digital image processing on the first image to obtain a second image.
当所述数字图像设备是以X轴为中心进行运动的第一类设备,所述云台电机的轴心与所述X轴同轴。所述第一处理模块601利用所述镜头模组501在X轴上的运动方向,确定所述云台电机在所述X轴方向上的转动方向;利用所述所述摄像头模组在所述X轴方向上的运动角度,确定所述云台电机在所述X轴方向上的转动角度;利用所述摄像头模组在所述X轴方向上的运动角速度,确定所述云台电机在所述X轴方向上的转动角速度;基于所确定转动方向、转动角度和转动角速度,控制所述云台电机503在所述X轴上的转动。When the digital image device is a first type of device that moves around the X axis, the axis of the pan/tilt motor is coaxial with the X axis. The first processing module 601 determines a rotation direction of the pan-tilt motor in the X-axis direction by using a movement direction of the lens module 501 on the X-axis; using the camera module in the Determining the angle of rotation of the pan/tilt motor in the X-axis direction; determining the pan-tilt motor in the X-axis direction by using the angular velocity of the camera module in the X-axis direction The rotational angular velocity in the X-axis direction is controlled; and the rotation of the pan-tilt motor 503 on the X-axis is controlled based on the determined rotational direction, rotational angle, and rotational angular velocity.
当所述数字图像设备是以Y轴为中心进行运动的第二类设备时,所述云台电机的轴心与所述Y轴同轴。所述第一处理模块601利用所述镜头模组501在Y轴上的运动方向,确定所述云台电机在所述Y轴上的转动方向;利用所述摄像头模组在所述Y轴方向上的运动角度,确定所述云台电机在所述Y轴方向上的转动角度;利用所述摄像头模组在所述Y轴方向上的运动角速度,确定所述云台电机在所述Y轴方向上的转动角速度;基于所确定的转动方向、转动角度和转动角速度,控制所述云台电机
503在所述Y轴上的转动。When the digital image device is a second type of device that moves around the Y axis, the axis of the pan/tilt motor is coaxial with the Y axis. The first processing module 601 determines a rotation direction of the pan-tilt motor on the Y-axis by using a movement direction of the lens module 501 on the Y-axis; and using the camera module in the Y-axis direction Determining a rotation angle of the pan/tilt motor in the Y-axis direction; determining a rotation angle of the camera module in the Y-axis direction to determine the pan-tilt motor on the Y-axis Rotational angular velocity in the direction; controlling the pan/tilt motor based on the determined rotational direction, rotational angle, and rotational angular velocity
503 rotation on the Y axis.
当所述数字图像设备是以Z轴为中心进行运动的第三类设备时,所述云台电机的轴心与所述Z轴同轴。所述第一处理模块601利用所述镜头模组501在所述Z轴的运动方向,确定所述云台电机在所述Z轴方向上的转动方向;利用所述镜头模组501在所述Z轴方向上的运动角度,确定所述云台电机在所述Z轴方向上的转动角度;利用所述镜头模组501在所述Z轴方向上的运动角速度,确定所述云台电机在所述Z轴方向上的转动角速度;基于所确定的转动方向、转动角度和转动角速度,控制所述云台电机503在所述Z轴上的转动。When the digital image device is a third type of device that moves around the Z axis, the axis of the pan/tilt motor is coaxial with the Z axis. The first processing module 601 determines, by using the lens module 501, the rotation direction of the PTZ motor in the Z-axis direction in the moving direction of the Z-axis; using the lens module 501 in the Determining a rotation angle of the pan/tilt motor in the Z-axis direction; determining a rotation angle of the lens module 501 in the Z-axis direction to determine the pan-tilt motor The rotational angular velocity in the Z-axis direction; controlling the rotation of the pan-tilt motor 503 on the Z-axis based on the determined rotational direction, rotational angle, and rotational angular velocity.
在所述数字图像设备是以X轴为中心进行运动的第一类设备的情况下,在对所述第一图像进行数字图像处理得到第二图像时,所述第二处理模块602可基于所述镜头模组在所述Y轴上的移动量,将所述第一图像沿所述Y轴反向平移N个像素点,所述N表示与所述Y轴上的移动量对应的补偿值;基于所述镜头模组在所述Z轴上的移动量,将所述第一图像沿所述Z轴反向平移M个像素点,所述M表示与所述Z轴上的移动量对应的补偿值。In the case where the digital image device is a first type of device that moves around the X axis, when the first image is digitally imaged to obtain a second image, the second processing module 602 may be based on The amount of movement of the lens module on the Y-axis, the first image is inversely translated by N pixels along the Y-axis, and the N represents a compensation value corresponding to the amount of movement on the Y-axis Translating the first image by M pixels along the Z axis based on the amount of movement of the lens module on the Z axis, the M indicating a corresponding amount of movement on the Z axis Compensation value.
当所述数字图像设备是以Y轴为中心进行运动的第二类设备时,所述第二处理模块602可基于所述摄像头模组在所述Y轴上的移动量,将所述第一图像沿所述Y轴反向平移T个像素点,所述T表示与所述Y轴上的移动量对应的补偿值。When the digital image device is a second type of device that moves around the Y axis, the second processing module 602 may be based on the amount of movement of the camera module on the Y axis. The image is inversely translated by T pixels along the Y axis, the T representing a compensation value corresponding to the amount of movement on the Y axis.
当所述数字图像设备是以Z轴为中心进行运动的第三类设备时,所述第二处理模块602可基于所述摄像头模组在所述Z轴上的移动量,将所述第一图像沿所述Z轴反向平移W个像素点,所述W表示与所述Y轴上的移动量对应的补偿值。When the digital image device is a third type of device that moves around the Z axis, the second processing module 602 may be the first based on the amount of movement of the camera module on the Z axis. The image is inversely translated by W pixels along the Z axis, the W representing a compensation value corresponding to the amount of movement on the Y axis.
其中,本公开装置的各个模块可以集成于一体,也可以分离部署。上述模块可以合并为一个模块,也可以进一步拆分成多个子模块。The modules of the disclosed device may be integrated or deployed separately. The above modules can be combined into one module, or can be further split into multiple sub-modules.
通过以上示例的描述,本领域的技术人员可以清楚地了解到本公开可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本公开的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形
式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本公开各示例所述的方法。本领域技术人员可以理解附图只是示意图,附图中的模块或流程并不一定是实施本公开所必须的。Through the description of the above examples, those skilled in the art can clearly understand that the present disclosure can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases the former is a better implementation. Based on such understanding, the part of the technical solution of the present disclosure that contributes in essence or to the prior art may be in the form of a software product.
It is embodied that the computer software product is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in the examples of the present disclosure. Those skilled in the art can understand that the drawings are only schematic diagrams, and the modules or processes in the drawings are not necessarily required to implement the present disclosure.
本领域技术人员可以理解示例中的装置中的模块可以按照示例描述进行分布于示例的装置中,也可以进行相应变化位于不同于本示例的一个或多个装置中。上述示例的模块可以合并为一个模块,也可进一步拆分成多个子模块。上述本公开示例序号仅仅为了描述,不代表示例的优劣。It will be understood by those skilled in the art that the modules in the devices in the examples may be distributed in the device of the example according to the example description, or the corresponding changes may be located in one or more devices different from the example. The modules of the above examples can be combined into one module, or can be further split into multiple sub-modules. The above-described examples of the present disclosure are merely for the purpose of description and do not represent the advantages and disadvantages of the examples.
在本公开使用的术语仅仅是出于描述特定示例的目的,而非限制本公开。本公开和权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其它含义。还应当理解,本文中使用的术语“和/或”是指包含一个或多个相关联的列出项目的任何或所有可能组合。The terminology used in the disclosure is for the purpose The singular forms "a", "the" and "the" It should also be understood that the term "and/or" as used herein refers to any and all possible combinations of one or more of the associated listed items.
应当理解,尽管在本公开可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本公开范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,此外,所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。It should be understood that although the terms first, second, third, etc. may be used in the present disclosure to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, the first information may also be referred to as second information without departing from the scope of the present disclosure. Similarly, the second information may also be referred to as first information. Depending on the context, in addition, the word "if" may be interpreted to mean "at time" or "when" or "in response to determination."
以上公开的仅为本公开的几个具体示例,但是,本公开并非局限于此,任何本领域的技术人员能思之的变化都应落入本公开的保护范围。
The above disclosure is only a few specific examples of the disclosure, but the disclosure is not limited thereto, and any changes that can be made by those skilled in the art should fall within the protection scope of the disclosure.
Claims (14)
- 一种数字图像设备,包括:A digital image device comprising:摄像头模组,用于采集图像;a camera module for collecting images;姿态信息采集模组,用于确定所述摄像头模组的运动状态;An attitude information collection module, configured to determine a motion state of the camera module;云台电机,其被设置为轴心与X轴、Y轴以及Z轴之一同轴,用于转动所述摄像头模组,其中,所述X轴穿过所述数字图像设备的成像平面的中心并且指示所述成像平面的前后方向,所述Y轴穿过所述成像平面的中心并且指示所述成像平面的左右方向,所述Z轴穿过所述成像平面的中心并且指示所述成像平面的上下方向;以及a pan/tilt motor that is disposed coaxially with one of an X-axis, a Y-axis, and a Z-axis for rotating the camera module, wherein the X-axis passes through an imaging plane of the digital image device Centering and indicating a front-rear direction of the imaging plane, the Y-axis passing through a center of the imaging plane and indicating a left-right direction of the imaging plane, the Z-axis passing through a center of the imaging plane and indicating the imaging Up and down direction of the plane;控制器,其被配置为:Controller, which is configured to:根据所述姿态信息采集模组所确定的运动状态,控制所述云台电机转动,以对所述摄像头模组的运动进行补偿;Controlling the rotation of the pan-tilt motor according to the motion state determined by the attitude information acquisition module to compensate for the motion of the camera module;使进行所述运动补偿后的所述摄像头模组采集第一图像;And causing the camera module that performs the motion compensation to acquire a first image;根据所述姿态信息采集模组所确定的运动状态,对所述第一图像进行数字图像处理,以得到第二图像。And performing digital image processing on the first image according to the motion state determined by the attitude information collection module to obtain a second image.
- 根据权利要求1所述的数字图像设备,其中,在所述云台电机的轴心与所述X轴同轴时,所述云台电机以轴心与所述摄像头模组的轴心同轴的方式设置在所述摄像头模组的后方。The digital image apparatus according to claim 1, wherein when the axis of the pan/tilt motor is coaxial with the X-axis, the pan-tilt motor is coaxial with the axis of the camera module The way is set behind the camera module.
- 根据权利要求2所述的数字图像设备,其中,The digital image device according to claim 2, wherein所述姿态信息采集模组用于采集所述摄像头模组分别在所述X轴、所述Y轴以及所述Z轴上的姿态信息;以及The attitude information collection module is configured to collect posture information of the camera module on the X axis, the Y axis, and the Z axis, respectively;所述控制器包括:The controller includes:第一处理器,用于基于所述姿态信息采集模组采集到的数据,控制所述云台电机在所述X轴上的转动;以及a first processor, configured to control rotation of the pan-tilt motor on the X-axis based on data collected by the attitude information acquisition module;第二处理器,用于基于所述姿态信息采集模组采集到的数据,将所述第一图像分别沿所述Y轴以及所述Z轴反向平移相应的补偿值,其中,在所述Y轴上的补偿值为与所述摄像头模组在所述Y轴 上的移动量对应的像素点个数,在所述Z轴上的补偿值为与所述摄像头模组在所述Z轴上的移动量对应的像素点个数。a second processor, configured to inversely translate the first image along the Y axis and the Z axis by a corresponding compensation value based on the data collected by the posture information collection module, where The compensation value on the Y axis is opposite to the camera module on the Y axis The number of pixels corresponding to the amount of movement on the upper side, the compensation value on the Z axis is the number of pixels corresponding to the amount of movement of the camera module on the Z axis.
- 根据权利要求1所述的数字图像设备,其中,在所述云台电机的轴心与所述Y轴同轴时,所述云台电机以轴心与所述Y轴同轴的方式设置在所述摄像头模组的左侧或右侧。The digital image apparatus according to claim 1, wherein when the axis of the pan/tilt motor is coaxial with the Y-axis, the pan-tilt motor is disposed coaxially with the Y-axis The left or right side of the camera module.
- 根据权利要求4所述的数字图像设备,其中,The digital image device according to claim 4, wherein所述姿态信息采集模组包括用于采集所述摄像头模组分别在所述X轴、所述Y轴以及所述Z轴上的姿态信息;以及The attitude information collection module includes posture information for acquiring the camera module on the X axis, the Y axis, and the Z axis, respectively;所述控制器包括:The controller includes:第一处理器,用于基于所述姿态信息采集模组采集到的数据,控制所述云台电机在所述Y轴上转动;以及a first processor, configured to control, according to the data collected by the attitude information collection module, the pan/tilt motor to rotate on the Y axis;第二处理器,用于基于所述姿态信息采集模组采集到的数据,将所述第一图像沿所述Y轴反向平移相应的补偿值,其中,在所述Y轴上的补偿值为与所述摄像头模组在所述Y轴上的移动量对应的像素点个数。a second processor, configured to inversely translate the first image along the Y axis according to the data collected by the attitude information collection module, where the compensation value is on the Y axis The number of pixels corresponding to the amount of movement of the camera module on the Y axis.
- 根据权利要求1所述的数字图像设备,其中,在所述云台电机的轴心与所述Z轴同轴时,所述云台电机以轴心与所述Z轴同轴的方式设置在所述摄像头模组的上方或下方。The digital image apparatus according to claim 1, wherein when the axis of the pan/tilt motor is coaxial with the Z axis, the pan motor is disposed coaxially with the Z axis Above or below the camera module.
- 根据权利要求6所述的数字图像设备,其中,The digital image device according to claim 6, wherein所述姿态信息采集模组用于采集所述摄像头模组分别在所述X轴、所述Y轴以及所述Z轴上的姿态信息;以及The attitude information collection module is configured to collect posture information of the camera module on the X axis, the Y axis, and the Z axis, respectively;所述控制器包括:The controller includes:第一处理器,用于基于所述姿态信息采集模组采集到的数据,控制所述云台电机在所述Z轴上转动;以及a first processor, configured to control, according to the data collected by the attitude information collection module, the pan/tilt motor to rotate on the Z axis;第二处理器,用于基于所述姿态信息采集模组采集到的数据,将所述第一图像沿所述Z轴反向平移相应的补偿值,在所述Z轴上的 补偿值为与所述摄像头模组在所述Z轴上的移动量对应的像素点个数。a second processor, configured to inversely translate the first image along the Z axis by a corresponding compensation value based on data collected by the attitude information acquisition module, on the Z axis The compensation value is the number of pixels corresponding to the amount of movement of the camera module on the Z axis.
- 一种图像采集方法,包括:An image acquisition method includes:获取数字图像设备的摄像头模组的运动状态;Obtaining a motion state of a camera module of the digital image device;根据所述运动状态转动设置于所述数字图像设备的云台电机,以对所述摄像头模组的运动进行补偿,其中,所述云台电机被设置为轴心与X轴、Y轴以及Z轴之一同轴,所述X轴穿过所述数字图像设备的成像平面的中心并且指示所述成像平面的前后方向,所述Y轴穿过所述成像平面的中心并且指示所述成像平面的左右方向,所述Z轴穿过所述成像平面的中心并且指示所述成像平面的上下方向;Rotating a pan-tilt motor disposed in the digital image device according to the motion state to compensate for movement of the camera module, wherein the pan-tilt motor is set to an axis and an X-axis, a Y-axis, and a Z One of the axes is coaxial, the X-axis passing through the center of the imaging plane of the digital image device and indicating the front-rear direction of the imaging plane, the Y-axis passing through the center of the imaging plane and indicating the imaging plane The left and right direction, the Z axis passing through the center of the imaging plane and indicating the up and down direction of the imaging plane;利用进行所述运动补偿后的所述摄像头模组采集第一图像;Acquiring the first image by using the camera module after performing the motion compensation;根据所述运动状态对所述第一图像进行数字图像处理,得到第二图像。Performing digital image processing on the first image according to the motion state to obtain a second image.
- 根据权利要求8所述的方法,其中,当所述云台电机的轴心与所述X轴同轴时;根据所述运动状态转动所述云台电机包括:The method according to claim 8, wherein when the axis of the pan motor is coaxial with the X axis; rotating the pan motor according to the motion state comprises:利用所述摄像头模组在所述X轴上的运动方向,确定所述云台电机在所述X轴上的转动方向;Determining a rotation direction of the pan-tilt motor on the X-axis by using a moving direction of the camera module on the X-axis;利用所述摄像头模组在所述X轴方向上的运动角度,确定所述云台电机在所述X轴方向上的转动角度;Determining, by the angle of movement of the camera module in the X-axis direction, a rotation angle of the pan-tilt motor in the X-axis direction;利用所述摄像头模组在所述X轴方向上的运动角速度,确定所述云台电机在所述X轴方向上的转动角速度;Determining a rotational angular velocity of the pan-tilt motor in the X-axis direction by using a moving angular velocity of the camera module in the X-axis direction;基于所确定的转动方向、转动角度和转动角速度,控制所述云台电机在所述X轴上的转动。The rotation of the pan-tilt motor on the X-axis is controlled based on the determined direction of rotation, angle of rotation, and angular velocity of rotation.
- 根据权利要求9所述的方法,其特征在于,根据所述运动状态对所述第一图像进行数字图像处理包括:The method according to claim 9, wherein performing digital image processing on the first image according to the motion state comprises:基于所述摄像头模组在所述Y轴上的移动量,将所述第一图像沿所述Y轴反向平移N个像素点,所述N表示与所述Y轴上的移动 量对应的补偿值;Translating the first image by N pixels along the Y axis based on the amount of movement of the camera module on the Y axis, the N indicating movement with the Y axis The amount of compensation corresponding to the quantity;基于所述摄像头模组在所述Z轴上的移动量,将所述第一图像沿所述Z轴反向平移M个像素点,所述M表示与所述Z轴上的移动量对应的补偿值。Converting the first image to M pixels along the Z axis based on a movement amount of the camera module on the Z axis, wherein the M represents a movement amount corresponding to the Z axis Compensation value.
- 根据权利要求8所述的方法,其中,当所述云台电机的轴心与所述Y轴同轴时;The method of claim 8 wherein when the axis of the pan/tilt motor is coaxial with the Y-axis;根据所述运动状态转动所述云台电机,包括:Rotating the pan/tilt motor according to the motion state, including:利用所述摄像头模组在所述Y轴上的运动方向,确定所述云台电机在所述Y轴上的转动方向;Determining a rotation direction of the pan-tilt motor on the Y-axis by using a moving direction of the camera module on the Y-axis;利用所述摄像头模组在所述Y轴方向上的运动角度,确定所述云台电机在所述Y轴方向上的转动角度;Determining a rotation angle of the pan motor in the Y-axis direction by using a movement angle of the camera module in the Y-axis direction;利用所述摄像头模组在所述Y轴方向上的运动角速度,确定所述云台电机在所述Y轴方向上的转动角速度;Determining a rotational angular velocity of the pan-tilt motor in the Y-axis direction by using a moving angular velocity of the camera module in the Y-axis direction;基于所确定的转动方向、转动角度和转动角速度,控制所述云台电机在所述Y轴上的转动。The rotation of the pan/tilt motor on the Y-axis is controlled based on the determined direction of rotation, angle of rotation, and angular velocity of rotation.
- 根据权利要求11所述的方法,其中,根据所述运动状态对所述第一图像进行数字图像处理包括:The method of claim 11 wherein performing digital image processing on the first image in accordance with the motion state comprises:基于所述摄像头模组在所述Y轴上的移动量,将所述第一图像沿所述Y轴反向平移T个像素点,所述T表示与所述Y轴上的移动量对应的补偿值。Translating the first image inversely by T pixels along the Y axis based on a movement amount of the camera module on the Y axis, wherein T represents a movement amount corresponding to the Y axis Compensation value.
- 根据权利要求8所述的方法,其中,当所述云台电机的轴心与所述Z轴同轴时;The method of claim 8 wherein when the axis of the pan/tilt motor is coaxial with the Z axis;根据所述运动状态转动所述云台电机,包括:Rotating the pan/tilt motor according to the motion state, including:利用所述摄像头模组在所述Z轴上的运动方向,确定所述云台电机在所述Z轴上的转动方向;Determining a rotation direction of the pan-tilt motor on the Z-axis by using a moving direction of the camera module on the Z-axis;利用所述摄像头模组在所述Z轴方向上的运动角度,确定所述云台电机在所述Z轴方向上的转动角度; Determining a rotation angle of the pan motor in the Z-axis direction by using a movement angle of the camera module in the Z-axis direction;利用所述摄像头模组在所述Z轴方向上的运动角速度,确定所述云台电机在所述Z轴方向上的转动角速度;Determining a rotational angular velocity of the pan-tilt motor in the Z-axis direction by using a moving angular velocity of the camera module in the Z-axis direction;基于所确定的转动方向、转动角度和转动角速度,控制所述云台电机在所述Z轴上的转动。The rotation of the pan/tilt motor on the Z-axis is controlled based on the determined direction of rotation, angle of rotation, and angular velocity of rotation.
- 根据权利要求13所述的方法,其中,根据所述运动状态对所述第一图像进行数字图像处理包括:The method of claim 13 wherein performing digital image processing on the first image in accordance with the motion state comprises:基于所述摄像头模组在所述Z轴上的移动量,将所述第一图像沿所述Z轴反向平移W个像素点,所述W表示与所述Y轴上的移动量对应的补偿值。 And translating the first image by W pixels along the Z axis based on a movement amount of the camera module on the Z axis, wherein W represents a movement amount corresponding to the Y axis Compensation value.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610634306.1A CN106231192B (en) | 2016-08-04 | 2016-08-04 | A kind of image-pickup method and device |
CN201610634306.1 | 2016-08-04 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2018024239A1 true WO2018024239A1 (en) | 2018-02-08 |
Family
ID=57546948
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2017/095902 WO2018024239A1 (en) | 2016-08-04 | 2017-08-03 | Hybrid image stabilization system |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106231192B (en) |
WO (1) | WO2018024239A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110325822A (en) * | 2018-04-25 | 2019-10-11 | 深圳市大疆创新科技有限公司 | Holder pose modification method and device |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106231192B (en) * | 2016-08-04 | 2019-05-07 | 北京二郎神科技有限公司 | A kind of image-pickup method and device |
CN110352331A (en) * | 2018-04-25 | 2019-10-18 | 深圳市大疆创新科技有限公司 | The method and clouds terrace system of the attitude algorithm of hand-held holder |
CN109598764B (en) * | 2018-11-30 | 2021-07-09 | Oppo广东移动通信有限公司 | Camera calibration method and device, electronic equipment and computer-readable storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201750495U (en) * | 2010-07-05 | 2011-02-16 | 杭州晨安机电技术有限公司 | Posture self-correcting vehicle-mounted camera |
CN102854700A (en) * | 2011-07-01 | 2013-01-02 | 佳能株式会社 | Shake compensation control apparatus, optical device, image capturing apparatus, and control method of shake compensation |
CN202758245U (en) * | 2012-06-29 | 2013-02-27 | 深圳一电科技有限公司 | Pan-tilt camera controlling device and pan-tilt camera system |
CN104469251A (en) * | 2013-09-23 | 2015-03-25 | 联想(北京)有限公司 | Image acquisition method and electronic equipment |
CN105744162A (en) * | 2016-02-23 | 2016-07-06 | 桂林飞宇电子科技有限公司 | Photographing system with stability enhancement function |
CN106231192A (en) * | 2016-08-04 | 2016-12-14 | 北京二郎神科技有限公司 | A kind of image-pickup method and device |
-
2016
- 2016-08-04 CN CN201610634306.1A patent/CN106231192B/en active Active
-
2017
- 2017-08-03 WO PCT/CN2017/095902 patent/WO2018024239A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201750495U (en) * | 2010-07-05 | 2011-02-16 | 杭州晨安机电技术有限公司 | Posture self-correcting vehicle-mounted camera |
CN102854700A (en) * | 2011-07-01 | 2013-01-02 | 佳能株式会社 | Shake compensation control apparatus, optical device, image capturing apparatus, and control method of shake compensation |
CN202758245U (en) * | 2012-06-29 | 2013-02-27 | 深圳一电科技有限公司 | Pan-tilt camera controlling device and pan-tilt camera system |
CN104469251A (en) * | 2013-09-23 | 2015-03-25 | 联想(北京)有限公司 | Image acquisition method and electronic equipment |
CN105744162A (en) * | 2016-02-23 | 2016-07-06 | 桂林飞宇电子科技有限公司 | Photographing system with stability enhancement function |
CN106231192A (en) * | 2016-08-04 | 2016-12-14 | 北京二郎神科技有限公司 | A kind of image-pickup method and device |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110325822A (en) * | 2018-04-25 | 2019-10-11 | 深圳市大疆创新科技有限公司 | Holder pose modification method and device |
Also Published As
Publication number | Publication date |
---|---|
CN106231192B (en) | 2019-05-07 |
CN106231192A (en) | 2016-12-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2019223270A1 (en) | Method and apparatus for estimating angle and angular velocity of electric motor of gimbal, and gimbal and aerial vehicle | |
JP5659305B2 (en) | Image generating apparatus and image generating method | |
WO2018024239A1 (en) | Hybrid image stabilization system | |
JP5659304B2 (en) | Image generating apparatus and image generating method | |
US10404915B1 (en) | Method and system for panoramic video image stabilization | |
JP5204785B2 (en) | Image processing apparatus, photographing apparatus, reproduction apparatus, integrated circuit, and image processing method | |
JP5769813B2 (en) | Image generating apparatus and image generating method | |
JP5865388B2 (en) | Image generating apparatus and image generating method | |
CN106210544B (en) | Mobile terminal and anti-shake processing method and system for video shot by mobile terminal | |
CN110022444B (en) | Panoramic photographing method for unmanned aerial vehicle and unmanned aerial vehicle using panoramic photographing method | |
WO2017020150A1 (en) | Image processing method, device and camera | |
US11076082B2 (en) | Systems and methods for digital video stabilization | |
WO2007097431A1 (en) | Image correction device, method, program, integrated circuit, and system | |
JP6645245B2 (en) | Spherical shooting system | |
CN113875222B (en) | Shooting control method and device, unmanned aerial vehicle and computer readable storage medium | |
WO2020227998A1 (en) | Image stability augmentation control method, photography device and movable platform | |
WO2021217371A1 (en) | Control method and apparatus for movable platform | |
CN112204946A (en) | Data processing method, device, movable platform and computer readable storage medium | |
WO2022027876A1 (en) | Stabilization processing module, unmanned aerial vehicle camera system and image stabilization processing method | |
JP7031280B2 (en) | Image processing equipment, image processing systems and programs | |
WO2018066705A1 (en) | Smartphone | |
WO2019205152A1 (en) | Cradle head control method and cradle head | |
JP2000213953A (en) | Navigation device for flying object | |
WO2021031184A1 (en) | Image processing method, apparatus, and movable platform | |
WO2020168519A1 (en) | Camera parameter adjusting method, camera device, and movable platform |
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: 17836420 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: 17836420 Country of ref document: EP Kind code of ref document: A1 |