WO2021138768A1 - Method and device for image processing, movable platform, imaging apparatus and storage medium - Google Patents

Method and device for image processing, movable platform, imaging apparatus and storage medium Download PDF

Info

Publication number
WO2021138768A1
WO2021138768A1 PCT/CN2020/070487 CN2020070487W WO2021138768A1 WO 2021138768 A1 WO2021138768 A1 WO 2021138768A1 CN 2020070487 W CN2020070487 W CN 2020070487W WO 2021138768 A1 WO2021138768 A1 WO 2021138768A1
Authority
WO
WIPO (PCT)
Prior art keywords
posture data
image frame
target image
target
data
Prior art date
Application number
PCT/CN2020/070487
Other languages
French (fr)
Chinese (zh)
Inventor
李兵
马骏
林光远
Original Assignee
深圳市大疆创新科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市大疆创新科技有限公司 filed Critical 深圳市大疆创新科技有限公司
Priority to PCT/CN2020/070487 priority Critical patent/WO2021138768A1/en
Publication of WO2021138768A1 publication Critical patent/WO2021138768A1/en

Links

Images

Classifications

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

Definitions

  • the embodiments of the present invention relate to the field of image processing technology, and in particular to an image processing method, equipment, movable platform, imaging device, and storage medium.
  • EIS electronic image stabilization
  • the embodiment of the present invention discloses an image processing method, equipment, a movable platform, an imaging device and a storage medium. Through this implementation manner, the phenomenon of video jitter can be avoided, which is helpful to improve the stability of the video and achieve smoothness. Video to improve user viewing experience.
  • an embodiment of the present invention provides an image processing method, including:
  • the at least one target image frame is adjusted according to the posture data to obtain a second video.
  • an embodiment of the present invention provides an image processing device, including: a memory and a processor,
  • the memory is used to store programs
  • the processor is configured to execute a program stored in the memory, and when the program is executed, the processor is configured to:
  • the at least one target image frame is adjusted according to the posture data to obtain a second video.
  • an embodiment of the present invention provides a movable platform, including:
  • the power system configured on the fuselage is used to provide mobile power for the movable platform
  • Image processing equipment for:
  • the at least one target image frame is adjusted according to the posture data to obtain a second video.
  • an imaging device including:
  • the first acquiring unit is configured to acquire a first video, where the first video includes a plurality of first image frames;
  • a selecting unit configured to select at least one target image frame from the plurality of first image frames
  • the second acquiring unit is configured to acquire the posture data of the first image frame during exposure
  • the adjusting unit is configured to adjust the at least one target image frame according to the posture data to obtain a second video.
  • an embodiment of the present invention provides a computer-readable storage medium in which a computer program is stored, and when the computer program is executed by a processor, the method described in the first aspect is implemented. step.
  • the embodiment of the present invention can obtain a first video, select at least one target image frame from a plurality of first image frames included in the first video, and obtain the posture data of the first image frame at the time of exposure, so as to adjust at least One target image frame obtains the second video.
  • the phenomenon of jitter in the second video can be avoided, which helps to improve the stability of the video, realizes a smooth video, and improves the user's viewing experience.
  • Fig. 1 is a schematic structural diagram of an image processing system provided by an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of an image processing method provided by an embodiment of the present invention.
  • FIG. 3 is a schematic flowchart of another image processing method provided by an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of an image processing device provided by an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of an imaging device provided by an embodiment of the present invention.
  • most shooting devices such as (sports) cameras, cameras, handheld pan-tilts, etc.
  • the EIS algorithm can perform posture correction on the videos (or images) acquired by the shooting devices.
  • the EIS algorithm can perform low-pass filtering on the posture data of the camera collected by the gyroscope for a period of time before the exposure to generate a smooth curve (ie, posture curve).
  • the EIS algorithm can calculate the posture compensation amount according to the posture curve, and correct the video (or image) based on the posture compensation amount, so that the user can watch a relatively smooth video (or image) picture.
  • the camera equipped with the EIS algorithm can make full use of the inertial measurement unit (IMU) of the image before and after the exposure by delaying the processing of the image.
  • IMU inertial measurement unit
  • Data and integrate the accelerometer and gyroscope data, and perform a frequency-domain low-pass filter on the posture data of the camera to obtain a smooth curve that can reflect the posture change of the camera.
  • the video obtained by the EIS algorithm has stabilization
  • the video jitter will be very serious.
  • a low-pass filter with a cut-off frequency of about 1 Hz is sufficient for video stabilization.
  • the video is accelerated to 40 times, it will become jitter with a cut-off frequency of about 40 Hz, which looks very jittery.
  • the video acceleration to 40 times requires about 900 images of 40s to be cached, and several gigabytes of memory are required, which will cause the video screen to jitter or twitch, and The temporary memory usage rate is high, which reduces the viewing experience.
  • the embodiment of the present invention provides an image processing method that saves memory by extracting frames first and then buffering the image. At the same time, the ultra-long IMU data is cached, the image frames are adjusted according to the IMU data, and invalid image frames are discarded. In this case, realize super smooth moving time-lapse video to avoid video jitter.
  • the image processing method provided in the embodiment of the present invention may be executed by an image processing device in an image processing system, where the image processing system may include a photographing device and an image processing device.
  • the image processing device may be provided on the photographing device; in some embodiments, the image processing device may be spatially independent of the photographing device.
  • the photographing device and the image processing device establish a communication connection in a wired or wireless manner.
  • the camera may be mounted on a movable platform; in some embodiments, the movable platform includes, but is not limited to, unmanned aerial vehicles, unmanned vehicles, movable robots, etc. equipment.
  • the photographing device includes, but is not limited to, a camera, a camera, a handheld pan-tilt, an image acquisition sensor, and the like.
  • the image processing device may include one or more of a smart phone, a tablet computer, a laptop computer, and a wearable device.
  • FIG. 1 The image processing system provided by the embodiment of the present invention will be schematically illustrated below by taking FIG. 1 as an example.
  • FIG. 1 is a schematic structural diagram of an image processing system according to an embodiment of the present invention.
  • the image processing system includes a photographing device 11 and an image processing device 12.
  • the image processing device 12 is spatially independent of the photographing device 11, and in some embodiments, a communication connection can be established between the photographing device 11 and the image processing device 12.
  • the image processing device 12 may include one or more of a smart phone, a tablet computer, a laptop computer, and a wearable device.
  • the photographing device 11 may be mounted on a movable platform 13.
  • the movable platform 13 includes a power system 131, and the power system 131 is configured to be movable. The platform 13 provides power for movement.
  • the image processing device 12 may obtain the first video shot by the shooting device 11, select at least one target image frame from a plurality of first image frames included in the first video, and obtain the first video frame.
  • the posture data of the image frame during exposure so as to adjust the at least one target image frame according to the posture data to obtain the second video.
  • FIG. 2 is a schematic flowchart of an image processing method according to an embodiment of the present invention.
  • the method may be executed by an image processing device, and the specific explanation of the image processing device is as described above.
  • the method of the embodiment of the present invention includes the following steps.
  • S201 Acquire a first video, where the first video includes multiple first image frames.
  • the image processing device may obtain a first video shot by a shooting device, and the first video includes a plurality of first image frames.
  • the explanation of the shooting device is as described above, and will not be repeated here. .
  • the first video may be a video stabilized by the EIS algorithm in the shooting device.
  • the image processing device may also acquire the exposure time of the first video when acquiring the first video. The exposure time helps to subsequently acquire the first posture data of the camera before the exposure and the camera after the exposure. The second posture data.
  • the image processing device may first acquire a preset number of first image frames collected by the shooting device, so as to ensure sufficient delay and facilitate filtering by the frequency domain low-pass filter .
  • the preset number can be preset. For example, the first video composed of the first image frames within 1 second is acquired, and if the capture frequency of the shooting device is 40 fps, the preset number is 40 frames; If the capture frequency of the camera is 60 fps, the preset number is 60 frames.
  • the preset number can also be associated with a frequency-domain low-pass filter preset in the camera.
  • the frequency-domain low-pass filter takes a short time to filter the posture data of the camera, it can be Properly increase the preset number; if the frequency domain low-pass filter takes a long time to filter the posture data of the camera, the preset number can be appropriately decreased. Therefore, the preset number in the embodiment of the present invention can be adjusted according to specific scenarios, and is not specifically limited here.
  • the frequency domain low-pass filter includes but is not limited to at least one of the following: FIR filter and IIR filter. It should be noted that technical personnel can select a suitable frequency domain low-pass filter according to a specific scenario, and if the frequency domain low-pass filter can be realized, the corresponding filter falls within the protection scope of the present application.
  • S202 Select at least one target image frame from the multiple first image frames.
  • the image processing device may select at least one target image frame from the plurality of first image frames.
  • the image processing device when the image processing device selects at least one target image frame from the plurality of first image frames, it may select the at least one target image frame from the plurality of first image frames according to the playback frequency
  • the playing frequency may be a playing speed ratio of the second video to the first video.
  • the playing frequency is a variable frequency.
  • one target image frame can be selected at intervals of N first image frames in the first video.
  • one target image frame can be selected at intervals of two first image frames in the first video, that is, when the first image frame is 40 frames, the target image frame is 20 frame.
  • one or more first-in-first-out memories may be provided in the image processing device, and the image processing device may store the selected target image frame in a first-in-first-out memory of a specified depth for subsequent processing.
  • the image processing device may store the selected target image frame in the first first-in first-out memory with a designated depth of 20 frames.
  • the specified depth of the first first-in first-out memory may match the number of target image frames, or may be greater than the number of target image frames.
  • the image processing device may obtain the posture data of the first image frame during exposure.
  • the posture data of the first image frame By acquiring the posture data of the first image frame at the time of exposure, it can be ensured that a better smooth curve is established to stabilize the target image frame, and the viewing effect of the output video is ensured.
  • the image processing device may obtain the posture data of the multiple first image frames collected by the camera through the posture sensor during exposure.
  • the posture data is posture data of the camera when the camera takes an image.
  • the attitude sensor may include, but is not limited to, a three-axis gyroscope, a three-axis accelerometer, a three-axis electronic floppy disk, GPS, etc., which are not limited herein.
  • the attitude data includes angular acceleration and/or angular velocity.
  • the image processing device may acquire the posture data of the plurality of first image frames periodically collected by the camera through the posture sensor during exposure.
  • the period may be associated with the period of the photographing device collecting multiple first image frames, for example, 400 posture data are collected within 1 second, and 40 first image frames are collected.
  • the period during which the posture sensor collects the posture data may also have nothing to do with the period during which the photographing device collects the first image frame, which is not limited here.
  • the target image frame includes a first preset number of image frames
  • the posture data includes a second preset number of posture data
  • the number of image frames corresponding to the second preset number is the The first preset number corresponds to more than twice the number of image frames.
  • the posture data of the imaging device at the time of exposure of the first image frame including the target image frame can be acquired for more than 40 frames.
  • the previous data in the target image frame is discarded.
  • the first preset number is 20 frames
  • the data of the first target image frame is discarded to keep the target image frame as the first preset number, that is, 20 frames.
  • the posture data exceeds the second preset number
  • the previous data in the posture data is discarded.
  • the second preset number is 200
  • the first posture data is discarded to keep the posture data at the second preset number, which is 200
  • the second preset number of posture data corresponds to 20 image frames, which are captured by the camera
  • the posture data of the 21st frame image frame the posture data of the first target image frame collected by the photographing device is discarded, so as to keep the posture data at the second preset quantity.
  • the image processing device may acquire the first posture data of the photographing device and the first posture data of the photographing device before the first image frame is exposed.
  • the second posture data of the photographing device after the image frame is exposed.
  • the image processing device may acquire the first posture data of the photographing device before the first image frame is exposed and the first image frame after the exposure time of the first image frame.
  • the second posture data of the photographing device may be increased, and it is ensured that the low-frequency movement of the camera after exposure does not affect the posture data of the camera.
  • the posture data further includes third posture data corresponding to the exposure time of the first image frame.
  • the processor may merge the third posture data into the first posture data and the second posture data.
  • the third posture data is used as the last posture data.
  • the second posture data the third posture data is the last posture data.
  • the three posture data are used as the first posture data.
  • the third posture data may not be used. Technicians can make adjustments according to specific scenarios, which is not limited here.
  • the first posture data may be one or more
  • the second posture data may be one or more
  • the first posture data and the second posture data are stored in a second first-in first Out of memory.
  • the capacity of the second first-in first-out memory is more than twice that of the first first-in first-out memory.
  • each target image frame corresponds to a set of posture data (that is, the first posture data and the second posture data). Therefore, each target image frame can be cached through the first first-in first-out memory while the posture The storage address of the data in the second first-in first-out memory is used as the characteristic data corresponding to each target image frame.
  • the image processing device can read the posture data from the corresponding storage address in the second first-in first-out memory when reading the target image frame of each frame from the first first-in first-out memory, thereby improving the reading efficiency.
  • the second posture data of the previous target image frame and the first posture data of the next target image frame may not overlap, thereby reducing the amount of data calculation.
  • the second posture data of the target image frame of the previous frame and the first posture data of the target image frame of the next frame overlap, so as to ensure that the second video obtained subsequently is smoother and more stable.
  • the image processing device acquires the first posture data of the photographing device before the first image frame is exposed and the second posture data of the photographing device after the first image frame is exposed. It is possible to obtain the IMU data when the photographing device photographs the first image frame, and to determine the first posture data of the photographing device and the first image before the first image frame is exposed according to the IMU data After the frame is exposed, the second posture data of the camera is completed.
  • the image processing device may adjust the at least one target image frame according to the posture data to obtain the second video.
  • the image processing device may filter the posture data of the at least one target image frame according to a cutoff frequency to obtain target posture data.
  • the cut-off frequency is less than 1 Hz, in one example, the cut-off frequency is 0.5 Hz; in one example, the cut-off frequency is 0.025 Hz.
  • the image processing device may use the first posture data and the second posture data as input data of a preset frequency domain low-pass filter, and the frequency domain low-pass filter filters the first posture data and the second posture data. Two high-frequency signals in the attitude data that are greater than the cut-off frequency to obtain low-frequency signals that do not exceed the cut-off frequency in the first attitude data and the second attitude data.
  • the frequency-domain low-pass filter has the function of frequency-domain transformation
  • the first attitude data and the second attitude data can be directly input to the frequency-domain low-pass filter; if the frequency-domain low-pass filter does not have The function of frequency domain transformation requires frequency domain transformation of the first attitude data and the second attitude data, and then the first attitude data and the second attitude data after the frequency domain transformation are input to the frequency domain low-pass filter.
  • the frequency domain transform method can refer to related technologies, which is not limited here.
  • the image processing device may generate target posture data of the photographing device during exposure based on the low-frequency signal that does not exceed the cut-off frequency in the first posture data and the second posture data.
  • the image processing device may perform integration processing on the posture data of the at least one target image frame to obtain estimated posture data.
  • the integration processing method is an existing integration processing technology, which will not be repeated here. Obtaining the estimated posture data through calculation helps to determine whether the adjustment of the target image frame is effective according to the estimated posture data and the target posture data.
  • the image processing device when the image processing device adjusts the at least one target image frame according to the posture data, it may determine whether the at least one target image frame is adjusted according to the estimated posture data and the target posture data. effective.
  • the image processing device when the image processing device determines whether the adjustment of the at least one target image frame is effective according to the estimated posture data and the target posture data, it may be based on the estimated posture data and the target posture data. Determine whether the adjustment of the at least one target image frame is effective, and if the difference exceeds the range, discard the estimated posture data whose difference exceeds the range and the target image frame corresponding to the target posture data .
  • the image processing device when the image processing device determines whether the adjustment of the at least one target image frame is effective according to the difference between the estimated posture data and the target posture data, it may acquire the estimated posture data and the target posture data. The posture difference of the target posture data. If the posture difference is less than or equal to the preset angle threshold, it can be determined that the adjustment of the at least one target image frame is effective. If the posture difference is greater than the preset angle threshold, then It is determined that the adjustment of the at least one target image frame is invalid. By determining the invalid target image frame through this implementation manner, the invalid target image frame can be discarded, which helps to improve the effectiveness of the target image frame, so that the second video obtained after adjustment is smoother and more stable.
  • the target can be determined The adjustment of the image frame is effective.
  • the preset angle threshold is k
  • the target posture data is n2
  • the posture difference between m2 and n2 is m2-n2>k
  • the embodiment of the present invention can obtain a first video, select at least one target image frame from a plurality of first image frames included in the first video, and obtain the posture data of the first image frame at the time of exposure, so as to adjust according to the posture data At least one target image frame obtains the second video.
  • unstable phenomena such as jitter in the second video can be avoided, which helps to improve the stability of the video, realize a smooth video, and improve the user's viewing experience.
  • FIG. 3 is a schematic flowchart of another image processing method according to an embodiment of the present invention.
  • the image processing device can input the first video, select the target image frame according to the first video, and obtain the IMU data when the shooting device shoots the target image frame, and obtain the posture data of the shooting device according to the IMU data, thereby Determine the estimated posture data and the target posture data according to the posture data.
  • the posture difference between the estimated posture data and the target posture data is less than or equal to the preset angle threshold
  • it is determined that the adjustment of the target image frame is effective, and further the target image frame Filter to output the second video.
  • stabilization of the input first video is realized, and the stability of the output second video is improved, so that a more stable video can be displayed.
  • the embodiment of the present invention can obtain a first video, select at least one target image frame from a plurality of first image frames included in the first video, and obtain the posture data of the first image frame at the time of exposure, so as to adjust at least One target image frame obtains the second video.
  • unstable phenomena such as jitter in the second video can be avoided, which helps to improve the stability of the video, realize a smooth video, and improve the user's viewing experience.
  • FIG. 4 is a schematic structural diagram of an image processing device according to an embodiment of the present invention.
  • the image processing device includes: a memory 401 and a processor 402.
  • the image processing device further includes a data interface 403, and the data interface 403 is used to transfer data information between the image processing device and other devices.
  • the memory 401 may include a volatile memory (volatile memory); the memory 401 may also include a non-volatile memory (non-volatile memory); the memory 401 may also include a combination of the foregoing types of memories.
  • the processor 402 may be a central processing unit (CPU).
  • the processor 402 may further include a hardware chip.
  • the above-mentioned hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof.
  • the above-mentioned PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), or any combination thereof.
  • the memory 401 is used to store programs, and the processor 402 can call the programs stored in the memory 401 to perform the following steps:
  • the at least one target image frame is adjusted according to the posture data to obtain a second video.
  • processor 402 selects at least one target image frame from the plurality of first image frames, it is specifically configured to:
  • the at least one target image frame is selected from the plurality of first image frames according to a playing frequency, and the playing frequency is a ratio of the playing speed of the second video to the first video.
  • the playing frequency is a variable frequency.
  • the processor 402 obtains the posture data of the first image frame during exposure, it is specifically configured to:
  • the processor 402 obtains the first posture data of the photographing device before the exposure of the first image frame and the second posture data of the photographing device after the first image frame is exposed, it specifically uses in:
  • processor 402 adjusts the at least one target image frame according to the posture data, it is specifically configured to:
  • the cut-off frequency is less than 1 Hz.
  • processor 402 adjusts the at least one target image frame according to the posture data, it is specifically configured to:
  • processor 402 adjusts the at least one target image frame according to the posture data, it is specifically configured to:
  • the estimated posture data and the target posture data it is determined whether the adjustment of the at least one target image frame is effective.
  • processor 402 determines whether the adjustment of the at least one target image frame is effective according to the estimated pose data and the target pose data, it is specifically configured to:
  • processor 402 determines whether the adjustment of the at least one target image frame is effective according to the difference between the estimated pose data and the target pose data, it is specifically configured to:
  • the posture data includes angular acceleration and/or angular velocity.
  • the target image frame includes a first preset number of image frames
  • the posture data includes a second preset number of posture data
  • the second preset number is twice the first preset number the above.
  • the previous data in the posture data is discarded.
  • the first video is stored in a first first-in first-out memory of a specified depth.
  • first posture data is one or more
  • second posture data is one or more
  • first posture data and the second posture data are stored in a second first-in first-out memory.
  • the capacity of the second first-in first-out memory is more than twice that of the first first-in first-out memory.
  • the embodiment of the present invention can obtain a first video, select at least one target image frame from a plurality of first image frames included in the first video, and obtain the posture data of the first image frame at the time of exposure, so as to adjust at least One target image frame obtains the second video.
  • unstable phenomena such as jitter in the second video can be avoided, which helps to improve the stability of the video, realize a smooth video, and improve the user's viewing experience.
  • FIG. 5 is a schematic structural diagram of an imaging device according to an embodiment of the present invention.
  • the image processing device includes: a first acquisition unit 501, a selection unit 502, a second acquisition unit 503, and an adjustment unit 504;
  • the first acquiring unit 501 is configured to acquire a first video, where the first video includes a plurality of first image frames;
  • the selecting unit 502 is configured to select at least one target image frame from the plurality of first image frames
  • the second acquiring unit 503 is configured to acquire the posture data of the first image frame during exposure
  • the adjusting unit 504 is configured to adjust the at least one target image frame according to the posture data to obtain a second video.
  • selecting unit 502 selects at least one target image frame from the plurality of first image frames, it is specifically configured to:
  • the at least one target image frame is selected from the plurality of first image frames according to a playing frequency, where the playing frequency is a ratio of the playing speed of the second video to the first video.
  • the playing frequency is a variable frequency.
  • the second acquiring unit 503 acquires the posture data of the first image frame during exposure, it is specifically used for:
  • the second acquiring unit 503 acquires the first posture data of the photographing device before the first image frame is exposed and the second posture data of the photographing device after the first image frame is exposed, Specifically used for:
  • the adjusting unit 504 adjusts the at least one target image frame according to the posture data, it is specifically configured to:
  • the cut-off frequency is less than 1 Hz.
  • the adjusting unit 504 adjusts the at least one target image frame according to the posture data, it is specifically configured to:
  • the adjusting unit 504 adjusts the at least one target image frame according to the posture data, it is specifically configured to:
  • the estimated posture data and the target posture data it is determined whether the adjustment of the at least one target image frame is effective.
  • the adjustment unit 504 determines whether the adjustment of the at least one target image frame is effective according to the estimated pose data and the target pose data, it is specifically configured to:
  • the adjustment unit 504 determines whether the adjustment of the at least one target image frame is effective according to the difference between the estimated pose data and the target pose data, it is specifically configured to:
  • the posture data includes angular acceleration and/or angular velocity.
  • the target image frame includes a first preset number of image frames
  • the posture data includes a second preset number of posture data
  • the second preset number is twice the first preset number the above.
  • the previous data in the posture data is discarded.
  • the first video is stored in a first first-in first-out memory of a specified depth.
  • first posture data is one or more
  • second posture data is one or more
  • first posture data and the second posture data are stored in a second first-in first-out memory.
  • the capacity of the second first-in first-out memory is more than twice that of the first first-in first-out memory.
  • the embodiment of the present invention can obtain a first video, select at least one target image frame from a plurality of first image frames included in the first video, and obtain the posture data of the first image frame at the time of exposure, so as to adjust at least One target image frame obtains the second video.
  • unstable phenomena such as jitter in the second video can be avoided, which helps to improve the stability of the video, realize a smooth video, and improve the user's viewing experience.
  • the embodiment of the present invention also provides a movable platform, including: a fuselage; a power system configured on the fuselage to provide mobile power for the movable platform; an image processing device for acquiring the first video, so
  • the first video includes a plurality of first image frames; at least one target image frame is selected from the plurality of first image frames; the posture data of the first image frame at the time of exposure is acquired; the posture data is adjusted according to the posture data At least one target image frame to obtain a second video.
  • the image processing device selects at least one target image frame from the plurality of first image frames, it is specifically configured to:
  • the at least one target image frame is selected from the plurality of first image frames according to a playing frequency, where the playing frequency is a ratio of the playing speed of the second video to the first video.
  • the playing frequency is a variable frequency.
  • the image processing device acquires the posture data of the first image frame at the time of exposure, it is specifically used for:
  • the image processing device acquires the first posture data of the photographing device before the exposure of the first image frame and the second posture data of the photographing device after the first image frame is exposed, specifically using in:
  • the image processing device adjusts the at least one target image frame according to the posture data, it is specifically configured to:
  • the cut-off frequency is less than 1 Hz.
  • the image processing device adjusts the at least one target image frame according to the posture data, it is specifically configured to:
  • the image processing device adjusts the at least one target image frame according to the posture data, it is specifically configured to:
  • the estimated posture data and the target posture data it is determined whether the adjustment of the at least one target image frame is effective.
  • the image processing device determines whether the adjustment of the at least one target image frame is effective according to the estimated pose data and the target pose data, it is specifically used to:
  • the image processing device determines whether the adjustment of the at least one target image frame is effective according to the difference between the estimated pose data and the target pose data, it is specifically used to:
  • the posture data includes angular acceleration and/or angular velocity.
  • the target image frame includes a first preset number of image frames
  • the posture data includes a second preset number of posture data
  • the second preset number is twice the first preset number the above.
  • the previous data in the posture data is discarded.
  • the first video is stored in a first first-in first-out memory of a specified depth.
  • first posture data is one or more
  • second posture data is one or more
  • first posture data and the second posture data are stored in a second first-in first-out memory.
  • the embodiment of the present invention can obtain a first video, select at least one target image frame from a plurality of first image frames included in the first video, and obtain the posture data of the first image frame at the time of exposure, so as to adjust at least One target image frame obtains the second video.
  • unstable phenomena such as jitter in the second video can be avoided, which helps to improve the stability of the video, realize a smooth video, and improve the user's viewing experience.
  • the embodiment of the present invention also provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in the embodiment corresponding to FIG. 2 of the present invention is implemented. , The device corresponding to the embodiment of the present invention described in FIG. 4 can also be implemented, which will not be repeated here.
  • the computer-readable storage medium may be an internal storage unit of the device described in any of the foregoing embodiments, such as a hard disk or memory of the device.
  • the computer-readable storage medium may also be an external storage device of the device, such as a plug-in hard disk equipped on the device, a Smart Media Card (SMC), or a Secure Digital (SD) card. , Flash Card, etc.
  • the computer-readable storage medium may also include both an internal storage unit of the device and an external storage device.
  • the computer-readable storage medium is used to store the computer program and other programs and data required by the terminal.
  • the computer-readable storage medium can also be used to temporarily store data that has been output or will be output.

Landscapes

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

Abstract

A method and device for image processing, a movable platform and a storage medium. The method comprises: acquiring a first video, wherein the first video comprises a plurality of first image frames; selecting at least one target image frame from the plurality of first image frames; acquiring posture data of the first image frame during exposure; and according to the posture data, adjusting the at least one target image frame to obtain a second video. By means of the embodiment, the phenomenon that the second video jitters can be avoided, thus contributing to improving the stability of the video, realizing a smooth video, and improving the viewing experience of a user.

Description

图像处理方法、设备、可移动平台、成像装置及存储介质Image processing method, equipment, movable platform, imaging device and storage medium 技术领域Technical field
本发明实施例涉及图像处理技术领域,尤其涉及一种图像处理方法、设备、可移动平台、成像装置及存储介质。The embodiments of the present invention relate to the field of image processing technology, and in particular to an image processing method, equipment, movable platform, imaging device, and storage medium.
背景技术Background technique
目前,大部分拍摄装置(例如运动相机)设置有电子增稳算法(Electric Image Stabilization,EIS),利用电子增稳算法可以实现对图像采集设备获取的视频(或者图像)进行增稳。Currently, most shooting devices (such as sports cameras) are equipped with an electronic image stabilization (EIS), and the electronic image stabilization algorithm can be used to stabilize the video (or image) acquired by the image acquisition device.
然而,对于通过EIS算法增稳后的视频(或图像),如果增加增稳后的视频的播放速度,则可能会导致视频画面出现抖动或者抽动,往往难以得到视野平滑移动的视频,降低了用户拍摄观看体验。However, for a video (or image) stabilized by the EIS algorithm, if the playback speed of the stabilized video is increased, it may cause the video screen to jitter or twitch, and it is often difficult to obtain a smoothly moving video, which reduces users. Filming and viewing experience.
发明内容Summary of the invention
本发明实施例公开了一种图像处理方法、设备、可移动平台、成像装置及存储介质,通过这种实施方式,可以避免视频出现抖动的现象,有助于提高视频的稳定性,实现平滑的视频,提高用户观看体验。The embodiment of the present invention discloses an image processing method, equipment, a movable platform, an imaging device and a storage medium. Through this implementation manner, the phenomenon of video jitter can be avoided, which is helpful to improve the stability of the video and achieve smoothness. Video to improve user viewing experience.
第一方面,本发明实施例提供了一种图像处理方法,包括:In the first aspect, an embodiment of the present invention provides an image processing method, including:
获取第一视频,所述第一视频包括多个第一图像帧;Acquiring a first video, where the first video includes a plurality of first image frames;
从所述多个第一图像帧中选取至少一个目标图像帧;Selecting at least one target image frame from the plurality of first image frames;
获取所述第一图像帧在曝光时的姿态数据;Acquiring posture data of the first image frame during exposure;
根据所述姿态数据调整所述至少一个目标图像帧,获得第二视频。The at least one target image frame is adjusted according to the posture data to obtain a second video.
第二方面,本发明实施例提供了一种图像处理设备,包括:存储器和处理器,In the second aspect, an embodiment of the present invention provides an image processing device, including: a memory and a processor,
所述存储器,用于存储程序;The memory is used to store programs;
所述处理器,用于执行所述存储器存储的程序,当所述程序被执行时,所述处理器用于:The processor is configured to execute a program stored in the memory, and when the program is executed, the processor is configured to:
获取第一视频,所述第一视频包括多个第一图像帧;Acquiring a first video, where the first video includes a plurality of first image frames;
从所述多个第一图像帧中选取至少一个目标图像帧;Selecting at least one target image frame from the plurality of first image frames;
获取所述第一图像帧在曝光时的姿态数据;Acquiring posture data of the first image frame during exposure;
根据所述姿态数据调整所述至少一个目标图像帧,获得第二视频。The at least one target image frame is adjusted according to the posture data to obtain a second video.
第三方面,本发明实施例提供了一种可移动平台,包括:In the third aspect, an embodiment of the present invention provides a movable platform, including:
机身;body;
配置在机身上的动力系统,用于为可移动平台提供移动的动力;The power system configured on the fuselage is used to provide mobile power for the movable platform;
图像处理设备,用于:Image processing equipment for:
获取第一视频,所述第一视频包括多个第一图像帧;Acquiring a first video, where the first video includes a plurality of first image frames;
从所述多个第一图像帧中选取至少一个目标图像帧;Selecting at least one target image frame from the plurality of first image frames;
获取所述第一图像帧在曝光时的姿态数据;Acquiring posture data of the first image frame during exposure;
根据所述姿态数据调整所述至少一个目标图像帧,获得第二视频。The at least one target image frame is adjusted according to the posture data to obtain a second video.
第四方面,本发明实施例提供了一种成像装置,包括:In a fourth aspect, an embodiment of the present invention provides an imaging device, including:
第一获取单元,用于获取第一视频,所述第一视频包括多个第一图像帧;The first acquiring unit is configured to acquire a first video, where the first video includes a plurality of first image frames;
选取单元,用于从所述多个第一图像帧中选取至少一个目标图像帧;A selecting unit, configured to select at least one target image frame from the plurality of first image frames;
第二获取单元,用于获取所述第一图像帧在曝光时的姿态数据;The second acquiring unit is configured to acquire the posture data of the first image frame during exposure;
调整单元,用于根据所述姿态数据调整所述至少一个目标图像帧,获得第二视频。The adjusting unit is configured to adjust the at least one target image frame according to the posture data to obtain a second video.
第五方面,本发明实施例提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,所述计算机程序被处理器执行时实现如上述第一方面所述方法的步骤。In a fifth aspect, an embodiment of the present invention provides a computer-readable storage medium in which a computer program is stored, and when the computer program is executed by a processor, the method described in the first aspect is implemented. step.
本发明实施例可以获取第一视频,并从第一视频包括的多个第一图像帧中选取至少一个目标图像帧,以及获取第一图像帧在曝光时的姿态数据,从而根据姿态数据调整至少一个目标图像帧获得第二视频。通过这种实施方式,可以避免第二视频出现抖动的现象,有助于提高视频的稳定性,实现平滑的视频,提高用户观看体验。The embodiment of the present invention can obtain a first video, select at least one target image frame from a plurality of first image frames included in the first video, and obtain the posture data of the first image frame at the time of exposure, so as to adjust at least One target image frame obtains the second video. Through this implementation manner, the phenomenon of jitter in the second video can be avoided, which helps to improve the stability of the video, realizes a smooth video, and improves the user's viewing experience.
附图说明Description of the drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一 些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings needed in the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative labor, other drawings can be obtained from these drawings.
图1是本发明实施例提供的一种图像处理系统的结构示意图;Fig. 1 is a schematic structural diagram of an image processing system provided by an embodiment of the present invention;
图2是本发明实施例提供的一种图像处理方法的流程示意图;2 is a schematic flowchart of an image processing method provided by an embodiment of the present invention;
图3是本发明实施例提供的另一种图像处理方法的流程示意图;3 is a schematic flowchart of another image processing method provided by an embodiment of the present invention;
图4是本发明实施例提供的一种图像处理设备的结构示意图;4 is a schematic structural diagram of an image processing device provided by an embodiment of the present invention;
图5是本发明实施例提供的一种成像装置的结构示意图。FIG. 5 is a schematic structural diagram of an imaging device provided by an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following clearly describes the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.
下面结合附图,对本发明的一些实施方式作详细说明。在不冲突的情况下,下述的实施例及实施例中的特征可以相互组合。Hereinafter, some embodiments of the present invention will be described in detail with reference to the drawings. In the case of no conflict, the following embodiments and features in the embodiments can be combined with each other.
目前,大部分拍摄装置(例如(运动)相机、摄像头、手持云台等)均设置有EIS算法,EIS算法可以对拍摄装置获取的视频(或者图像)进行姿态矫正。例如,在一帧图像曝光后,EIS算法可以对曝光之前一段时间内陀螺仪采集的拍摄装置的姿态数据进行低通滤波,生成一条平滑曲线(即姿态曲线)。然后,EIS算法可以根据姿态曲线计算出姿态补偿量,并基于姿态补偿量来对视频(或者图像)进行矫正,从而使用户观看到比较流畅的视频(或者图像)画面。At present, most shooting devices (such as (sports) cameras, cameras, handheld pan-tilts, etc.) are equipped with EIS algorithms, and the EIS algorithm can perform posture correction on the videos (or images) acquired by the shooting devices. For example, after a frame of image is exposed, the EIS algorithm can perform low-pass filtering on the posture data of the camera collected by the gyroscope for a period of time before the exposure to generate a smooth curve (ie, posture curve). Then, the EIS algorithm can calculate the posture compensation amount according to the posture curve, and correct the video (or image) based on the posture compensation amount, so that the user can watch a relatively smooth video (or image) picture.
在一个实施例中,在以上EIS算法的基础上,设置有EIS算法的拍摄装置可以通过对图像的延迟处理,充分利用图像曝光前和曝光后各一段时间的惯性测量单元(Inertial Measurement Unit,IMU)数据,并融合加速度计和陀螺仪的数据,对拍摄装置的姿态数据进行一个频域的低通滤波得到能够反映拍摄装置姿态变化的平滑曲线。In one embodiment, on the basis of the above EIS algorithm, the camera equipped with the EIS algorithm can make full use of the inertial measurement unit (IMU) of the image before and after the exposure by delaying the processing of the image. ) Data, and integrate the accelerometer and gyroscope data, and perform a frequency-domain low-pass filter on the posture data of the camera to obtain a smooth curve that can reflect the posture change of the camera.
在一个实施例中,虽然通过EIS算法得到的视频已经带有增稳,但是如果将视频加速N倍来实现移动延时摄影,那么视频抖动将会非常严重。通常视频的增稳实现1Hz左右截止频率的低通滤波器已经足够,如果视频加速度到40倍 就变成了截止频率40Hz左右的抖动,看起来会非常抖。如果继续加大先入先出(First Input First Output,FIFO)存储器深度,视频加速度到40倍大概需要缓存40s的图像大概900张,需要几个G的内存,从而导致视频画面出现抖动或者抽动,且内存暂用率较高,降低了观看体验。In one embodiment, although the video obtained by the EIS algorithm has stabilization, if the video is accelerated by N times to implement mobile time-lapse photography, the video jitter will be very serious. Generally, a low-pass filter with a cut-off frequency of about 1 Hz is sufficient for video stabilization. If the video is accelerated to 40 times, it will become jitter with a cut-off frequency of about 40 Hz, which looks very jittery. If you continue to increase the memory depth of the First Input First Output (FIFO), the video acceleration to 40 times requires about 900 images of 40s to be cached, and several gigabytes of memory are required, which will cause the video screen to jitter or twitch, and The temporary memory usage rate is high, which reduces the viewing experience.
本发明实施例提供了一种图像处理方法,通过对图像进行先抽帧后缓存,节省内存,同时缓存超长的IMU数据,根据IMU数据调整图像帧,并丢弃无效图像帧,从而在有限内存情况下,实现超级平滑的移动延时视频,避免视频出现抖动。The embodiment of the present invention provides an image processing method that saves memory by extracting frames first and then buffering the image. At the same time, the ultra-long IMU data is cached, the image frames are adjusted according to the IMU data, and invalid image frames are discarded. In this case, realize super smooth moving time-lapse video to avoid video jitter.
本发明实施例中提供的图像处理方法可以由一种图像处理系统中的图像处理设备执行,其中,所述图像处理系统可以包括拍摄装置和图像处理设备。在某些实施例中,所述图像处理设备可以设置在拍摄装置上;在某些实施例中,图像处理设备可以在空间上独立于拍摄装置。在某些实施例中,所述拍摄装置与所述图像处理设备通过有线或无线的方式建立通信连接。在某些实施例中,所述拍摄装置可以挂载在可移动平台上;在某些实施例中,所述可移动平台包括但不限于无人机、无人车、可移动机器人等可移动设备。在某些实施例中,所述拍摄装置包括但不限于相机、摄像头、手持云台、图像采集传感器等。在某些实施例中,所述图像处理设备可以包括智能手机、平板电脑、膝上型电脑和穿戴式设备中的一种或者多种。The image processing method provided in the embodiment of the present invention may be executed by an image processing device in an image processing system, where the image processing system may include a photographing device and an image processing device. In some embodiments, the image processing device may be provided on the photographing device; in some embodiments, the image processing device may be spatially independent of the photographing device. In some embodiments, the photographing device and the image processing device establish a communication connection in a wired or wireless manner. In some embodiments, the camera may be mounted on a movable platform; in some embodiments, the movable platform includes, but is not limited to, unmanned aerial vehicles, unmanned vehicles, movable robots, etc. equipment. In some embodiments, the photographing device includes, but is not limited to, a camera, a camera, a handheld pan-tilt, an image acquisition sensor, and the like. In some embodiments, the image processing device may include one or more of a smart phone, a tablet computer, a laptop computer, and a wearable device.
下面以附图1为例对本发明实施例提供的图像处理系统进行示意性说明。The image processing system provided by the embodiment of the present invention will be schematically illustrated below by taking FIG. 1 as an example.
请参见图1,图1是本发明实施例提供的一种图像处理系统的结构示意图,其中,该图像处理系统包括拍摄装置11和图像处理设备12。在某些实施例中,图像处理设备12在空间上独立于拍摄装置11,在某些实施例中,拍摄装置11和图像处理设备12之间可以建立通信连接。在某些实施例中,所述图像处理设备12可以包括智能手机、平板电脑、膝上型电脑和穿戴式设备中的一种或者多种。在某些实施例中,所述拍摄装置11可以挂载在可移动平台13上,在某些实施例中,所述可移动平台13包括动力系统131,所述动力系统131用于为可移动平台13提供移动的动力。Please refer to FIG. 1. FIG. 1 is a schematic structural diagram of an image processing system according to an embodiment of the present invention. The image processing system includes a photographing device 11 and an image processing device 12. In some embodiments, the image processing device 12 is spatially independent of the photographing device 11, and in some embodiments, a communication connection can be established between the photographing device 11 and the image processing device 12. In some embodiments, the image processing device 12 may include one or more of a smart phone, a tablet computer, a laptop computer, and a wearable device. In some embodiments, the photographing device 11 may be mounted on a movable platform 13. In some embodiments, the movable platform 13 includes a power system 131, and the power system 131 is configured to be movable. The platform 13 provides power for movement.
本发明实施例中,图像处理设备12可以获取拍摄装置11拍摄得到的第一视频,并从第一视频中包括的多个第一图像帧中选取至少一个目标图像帧,以 及获取所述第一图像帧在曝光时的姿态数据,从而根据所述姿态数据调整所述至少一个目标图像帧,获得第二视频。通过这种实施方式,可以避免视频出现抖动的现象,有助于进一步提高视频的稳定性,实现平滑的视频,提高用户观看体验。In the embodiment of the present invention, the image processing device 12 may obtain the first video shot by the shooting device 11, select at least one target image frame from a plurality of first image frames included in the first video, and obtain the first video frame. The posture data of the image frame during exposure, so as to adjust the at least one target image frame according to the posture data to obtain the second video. Through this implementation manner, the phenomenon of video jitter can be avoided, which helps to further improve the stability of the video, realize a smooth video, and improve the user's viewing experience.
下面结合附图对本发明实施例提供的图像处理方法进行示意性说明。The image processing method provided by the embodiment of the present invention will be schematically described below in conjunction with the accompanying drawings.
具体请参见图2,图2是本发明实施例提供的一种图像处理方法的流程示意图,所述方法可以由图像处理设备执行,其中,图像处理设备的具体解释如前所述。具体地,本发明实施例的所述方法包括如下步骤。Please refer to FIG. 2 for details. FIG. 2 is a schematic flowchart of an image processing method according to an embodiment of the present invention. The method may be executed by an image processing device, and the specific explanation of the image processing device is as described above. Specifically, the method of the embodiment of the present invention includes the following steps.
S201:获取第一视频,所述第一视频包括多个第一图像帧。S201: Acquire a first video, where the first video includes multiple first image frames.
本发明实施例中,图像处理设备可以获取拍摄装置拍摄的第一视频,所述第一视频包括多个第一图像帧,其中,所述拍摄装置的解释如前所述,此处不再赘述。通过获取包括多个第一图像帧的第一视频,有助于保证有足够的延时,方便后续频域低通滤波器进行滤波。In the embodiment of the present invention, the image processing device may obtain a first video shot by a shooting device, and the first video includes a plurality of first image frames. The explanation of the shooting device is as described above, and will not be repeated here. . By acquiring the first video including multiple first image frames, it helps to ensure that there is sufficient delay, which facilitates the subsequent filtering by the frequency domain low-pass filter.
在某些实施例中,所述第一视频可以为通过拍摄装置中的EIS算法增稳后的视频。在某些实施例中,图像处理设备在获取第一视频时还可以获取所述第一视频的曝光时刻,通过曝光时刻有助于后续获取曝光之前拍摄装置的第一姿态数据以及曝光之后拍摄装置的第二姿态数据。In some embodiments, the first video may be a video stabilized by the EIS algorithm in the shooting device. In some embodiments, the image processing device may also acquire the exposure time of the first video when acquiring the first video. The exposure time helps to subsequently acquire the first posture data of the camera before the exposure and the camera after the exposure. The second posture data.
在一个实施例中,图像处理设备在获取第一视频之前,可以先获取拍摄装置所采集的预设数量的第一图像帧,从而保证有足够的延时,方便频域低通滤波器进行滤波。在某些实施例中,预设数量可以预先设置,例如,获取1秒钟时间内的第一图像帧组成的第一视频,若拍摄装置的采集频率为40fps,则预设数量为40帧;若拍摄装置的采集频率为60fps,则预设数量为60帧。In one embodiment, before acquiring the first video, the image processing device may first acquire a preset number of first image frames collected by the shooting device, so as to ensure sufficient delay and facilitate filtering by the frequency domain low-pass filter . In some embodiments, the preset number can be preset. For example, the first video composed of the first image frames within 1 second is acquired, and if the capture frequency of the shooting device is 40 fps, the preset number is 40 frames; If the capture frequency of the camera is 60 fps, the preset number is 60 frames.
在其他实施例中,预设数量还可以根据拍摄装置中预先设置的频域低通滤波器相关联,例如,若频域低通滤波器对拍摄装置的姿态数据滤波所用时间较短,则可以适当调大预设数量;若频域低通滤波器对拍摄装置的姿态数据滤波所用时间较长,则可以适当调小预设数量。因此,本发明实施例中的预设数量可以根据具体场景进行调整,在此不做具体限定。In other embodiments, the preset number can also be associated with a frequency-domain low-pass filter preset in the camera. For example, if the frequency-domain low-pass filter takes a short time to filter the posture data of the camera, it can be Properly increase the preset number; if the frequency domain low-pass filter takes a long time to filter the posture data of the camera, the preset number can be appropriately decreased. Therefore, the preset number in the embodiment of the present invention can be adjusted according to specific scenarios, and is not specifically limited here.
在某些实施例中,频域低通滤波器包括但不限于以下至少一种:FIR滤波器、IIR滤波器。需要说明的是,技术人员可以根据具体场景选择合适的频域 低通滤波器,在能够实现频域低通滤波的情况下,相应的滤波器落入本申请的保护范围。In some embodiments, the frequency domain low-pass filter includes but is not limited to at least one of the following: FIR filter and IIR filter. It should be noted that technical personnel can select a suitable frequency domain low-pass filter according to a specific scenario, and if the frequency domain low-pass filter can be realized, the corresponding filter falls within the protection scope of the present application.
S202:从所述多个第一图像帧中选取至少一个目标图像帧。S202: Select at least one target image frame from the multiple first image frames.
本发明实施例中,图像处理设备可以从所述多个第一图像帧中选取至少一个目标图像帧。In the embodiment of the present invention, the image processing device may select at least one target image frame from the plurality of first image frames.
在一个实施例中,图像处理设备在从所述多个第一图像帧中选取至少一个目标图像帧时,可以根据播放频率从所述多个第一图像帧中选取所述至少一个目标图像帧,示例性的,所述播放频率可以为所述第二视频与所述第一视频的播放速度比。在某些实施例中,所述播放频率为可变频率。In one embodiment, when the image processing device selects at least one target image frame from the plurality of first image frames, it may select the at least one target image frame from the plurality of first image frames according to the playback frequency Exemplarily, the playing frequency may be a playing speed ratio of the second video to the first video. In some embodiments, the playing frequency is a variable frequency.
例如,假设播放频率为N倍,则可以在第一视频中间隔N个第一图像帧来选取1个目标图像帧。示例性的,播放频率为2倍时,可以在第一视频中间隔2个第一图像帧来选取1个目标图像帧,即当第一图像帧为40帧时,所述目标图像帧为20帧。For example, assuming that the playback frequency is N times, then one target image frame can be selected at intervals of N first image frames in the first video. Exemplarily, when the playback frequency is 2 times, one target image frame can be selected at intervals of two first image frames in the first video, that is, when the first image frame is 40 frames, the target image frame is 20 frame.
在一个实施例中,图像处理设备中可以设置一个或多个先入先出存储器,图像处理设备可以将所选取的目标图像帧存储到指定深度的第一先入先出存储器,以供后续处理。在一个示例中,图像处理设备可以将选取的目标图像帧存储到指定深度为20帧的第一先入先出存储器中。在某些实施例中,所述第一先入先出存储器的指定深度可以与目标图像帧的数量匹配,也可以大于目标图像帧的数量。In an embodiment, one or more first-in-first-out memories may be provided in the image processing device, and the image processing device may store the selected target image frame in a first-in-first-out memory of a specified depth for subsequent processing. In an example, the image processing device may store the selected target image frame in the first first-in first-out memory with a designated depth of 20 frames. In some embodiments, the specified depth of the first first-in first-out memory may match the number of target image frames, or may be greater than the number of target image frames.
可见,通过根据播放频率从多个第一图像帧中选取至少一个目标图像帧的方式,有助于与先入先出存储器的深度进行匹配,以及节省内存;此外,也能对拍摄第一视频时的抖动进行过滤,使得输出视频更平滑,有效改善了观看体验。It can be seen that by selecting at least one target image frame from a plurality of first image frames according to the playback frequency, it is helpful to match the depth of the first-in-first-out memory and save memory; in addition, it can also be used when shooting the first video. The jitter is filtered to make the output video smoother and effectively improve the viewing experience.
S203:获取所述第一图像帧在曝光时的姿态数据。S203: Obtain posture data of the first image frame during exposure.
本发明实施例中,图像处理设备可以获取所述第一图像帧在曝光时的姿态数据。通过获取第一图像帧在曝光时的姿态数据,可以保证建立更好的平滑曲线以对目标图像帧进行增稳,保证输出视频的观看效果。In the embodiment of the present invention, the image processing device may obtain the posture data of the first image frame during exposure. By acquiring the posture data of the first image frame at the time of exposure, it can be ensured that a better smooth curve is established to stabilize the target image frame, and the viewing effect of the output video is ensured.
在一个实施例中,图像处理设备可以获取拍摄装置通过姿态传感器采集到的多个第一图像帧在曝光时的姿态数据。在某些实施例中,所述姿态数据是拍摄装置拍摄图像时所述拍摄装置的姿态数据。在某些实施例中,所述姿 态传感器可以包括但不限于三轴陀螺仪、三轴加速度计、三轴电子软盘、GPS等,在此不作限定。在某些实施例中,所述姿态数据包括角加速度和/或角速度。In one embodiment, the image processing device may obtain the posture data of the multiple first image frames collected by the camera through the posture sensor during exposure. In some embodiments, the posture data is posture data of the camera when the camera takes an image. In some embodiments, the attitude sensor may include, but is not limited to, a three-axis gyroscope, a three-axis accelerometer, a three-axis electronic floppy disk, GPS, etc., which are not limited herein. In some embodiments, the attitude data includes angular acceleration and/or angular velocity.
在一种实施方式中,图像处理设备可以获取拍摄装置通过姿态传感器周期性采集到的多个第一图像帧在曝光时的姿态数据。在某些实施例中,所述周期可以和拍摄装置采集多个第一图像帧的周期相关联,例如,1秒钟内采集400个姿态数据,采集40帧第一图像帧。在其他实施例中,姿态传感器采集姿态数据的周期也可以与拍摄装置采集第一图像帧的周期无关,在此不作限定。In an embodiment, the image processing device may acquire the posture data of the plurality of first image frames periodically collected by the camera through the posture sensor during exposure. In some embodiments, the period may be associated with the period of the photographing device collecting multiple first image frames, for example, 400 posture data are collected within 1 second, and 40 first image frames are collected. In other embodiments, the period during which the posture sensor collects the posture data may also have nothing to do with the period during which the photographing device collects the first image frame, which is not limited here.
在一些实施例中,所述目标图像帧包括第一预设数量的图像帧,所述姿态数据包括第二预设数量的姿态数据,所述第二预设数量对应的图像帧数为所述第一预设数量对应的图像帧数的两倍以上。在一个示例中,假设图像处理设备抽取到20帧目标图像帧,则可以获取到40帧以上包括目标图像帧的第一图像帧在曝光时拍摄装置的姿态数据。In some embodiments, the target image frame includes a first preset number of image frames, the posture data includes a second preset number of posture data, and the number of image frames corresponding to the second preset number is the The first preset number corresponds to more than twice the number of image frames. In an example, assuming that the image processing device extracts 20 target image frames, the posture data of the imaging device at the time of exposure of the first image frame including the target image frame can be acquired for more than 40 frames.
在一些实施例中,当所述目标图像帧超过第一预设数量时,丢弃所述目标图像帧中的在先数据,例如,假设第一预设数量为20帧,当获取的目标图像帧超过20帧为21帧时,则丢弃第一帧目标图像帧的数据,以保持目标图像帧为第一预设数量即20帧。在一些实施例中,当所述姿态数据超过第二预设数量时,丢弃所述姿态数据中的在先数据,例如,假设第二预设数量为200个,当获取的姿态数据超过200个为201个时,则丢弃第一个姿态数据,以保持姿态数据为第二预设数量即200个;又例如,假设第二预设数量的姿态数据对应20帧图像帧,获取到拍摄装置采集第21帧图像帧的姿态数据时,则丢弃拍摄装置采集的第一帧目标图像帧的姿态数据,以保持姿态数据为第二预设数量。通过这种实施方式,可以避免将最新获取到的姿态数据删除,确保了拍摄装置的姿态数据的有效性。In some embodiments, when the target image frame exceeds a first preset number, the previous data in the target image frame is discarded. For example, assuming that the first preset number is 20 frames, when the target image frame is acquired When more than 20 frames are 21 frames, the data of the first target image frame is discarded to keep the target image frame as the first preset number, that is, 20 frames. In some embodiments, when the posture data exceeds the second preset number, the previous data in the posture data is discarded. For example, assuming that the second preset number is 200, when the acquired posture data exceeds 200 When the number is 201, the first posture data is discarded to keep the posture data at the second preset number, which is 200; for another example, assume that the second preset number of posture data corresponds to 20 image frames, which are captured by the camera When the posture data of the 21st frame image frame, the posture data of the first target image frame collected by the photographing device is discarded, so as to keep the posture data at the second preset quantity. Through this implementation manner, it is possible to avoid deleting the newly acquired posture data, and to ensure the validity of the posture data of the photographing device.
在一个实施例中,图像处理设备在获取所述第一图像帧在曝光时的姿态数据时,可以获取所述第一图像帧在曝光之前所述拍摄装置的第一姿态数据以及所述第一图像帧在曝光之后所述拍摄装置的第二姿态数据。在一个实施例中,图像处理设备可以基于所述第一图像帧的曝光时刻,获取所述第一图像帧在曝光之前所述拍摄装置的第一姿态数据以及所述第一图像帧在曝光 之后所述拍摄装置的第二姿态数据。通过这种实施方式,可以增加姿态数据的时间跨度,保证拍摄装置在曝光之后的低频运动不会影响拍摄装置的姿态数据。In one embodiment, when acquiring the posture data of the first image frame during exposure, the image processing device may acquire the first posture data of the photographing device and the first posture data of the photographing device before the first image frame is exposed. The second posture data of the photographing device after the image frame is exposed. In an embodiment, the image processing device may acquire the first posture data of the photographing device before the first image frame is exposed and the first image frame after the exposure time of the first image frame. The second posture data of the photographing device. Through this embodiment, the time span of the posture data can be increased, and it is ensured that the low-frequency movement of the camera after exposure does not affect the posture data of the camera.
在一实施例下,所述姿态数据还包括第一图像帧曝光时刻对应的第三姿态数据。此情况下,处理器可以将第三姿态数据合并到第一姿态数据和第二姿态数据中,在第一姿态数据中,第三姿态数据作为最后一个姿态数据,在第二姿态数据中,第三姿态数据作为第一个姿态数据。当然,在第一姿态数据和第二姿态数据的数量较多时,也可以不采用第三姿态数据。技术人员可以根据具体场景进行调整,在此不作限定。In an embodiment, the posture data further includes third posture data corresponding to the exposure time of the first image frame. In this case, the processor may merge the third posture data into the first posture data and the second posture data. In the first posture data, the third posture data is used as the last posture data. In the second posture data, the third posture data is the last posture data. The three posture data are used as the first posture data. Of course, when the number of the first posture data and the second posture data is large, the third posture data may not be used. Technicians can make adjustments according to specific scenarios, which is not limited here.
在某些实施例中,所述第一姿态数据可以为一个或者多个,第二姿态数据可以为一个或者多个,所述第一姿态数据和所述第二姿态数据存储于第二先入先出存储器。在某些实施例中,所述第二先入先出存储器的容量为第一先入先出存储器的两倍以上。In some embodiments, the first posture data may be one or more, the second posture data may be one or more, and the first posture data and the second posture data are stored in a second first-in first Out of memory. In some embodiments, the capacity of the second first-in first-out memory is more than twice that of the first first-in first-out memory.
在一些实施例中,每帧目标图像帧对应一组姿态数据(即第一姿态数据和第二姿态数据),因此,在通过第一先入先出存储器缓存每帧目标图像帧的同时可以将姿态数据在第二先入先出存储器中的存储地址作为对应每帧目标图像帧的特征数据。通过这种实施方式,图像处理设备在从第一先入先出存储器读取各帧目标图像帧时可以从第二先入先出存储器中相应的存储地址读取姿态数据,从而提高读取效率。In some embodiments, each target image frame corresponds to a set of posture data (that is, the first posture data and the second posture data). Therefore, each target image frame can be cached through the first first-in first-out memory while the posture The storage address of the data in the second first-in first-out memory is used as the characteristic data corresponding to each target image frame. Through this embodiment, the image processing device can read the posture data from the corresponding storage address in the second first-in first-out memory when reading the target image frame of each frame from the first first-in first-out memory, thereby improving the reading efficiency.
在一个实施例中,对于相邻两帧目标图像帧,前一帧目标图像帧的第二姿态数据和后一帧目标图像帧的第一姿态数据可以不重叠,从而减少数据计算量。或者,前一帧目标图像帧的第二姿态数据和后一帧目标图像帧的第一姿态数据存在重叠部分,从而保证后续所得到的第二视频更加平滑稳定。In one embodiment, for two adjacent target image frames, the second posture data of the previous target image frame and the first posture data of the next target image frame may not overlap, thereby reducing the amount of data calculation. Alternatively, the second posture data of the target image frame of the previous frame and the first posture data of the target image frame of the next frame overlap, so as to ensure that the second video obtained subsequently is smoother and more stable.
在一个实施例中,图像处理设备在获取所述第一图像帧在曝光之前所述拍摄装置的第一姿态数据以及所述第一图像帧在曝光之后所述拍摄装置的第二姿态数据时,可以通过获取所述拍摄装置拍摄所述第一图像帧时的IMU数据,并根据所述IMU数据确定所述第一图像帧在曝光之前所述拍摄装置的第一姿态数据以及所述第一图像帧在曝光之后所述拍摄装置的第二姿态数据来完成。In one embodiment, when the image processing device acquires the first posture data of the photographing device before the first image frame is exposed and the second posture data of the photographing device after the first image frame is exposed, It is possible to obtain the IMU data when the photographing device photographs the first image frame, and to determine the first posture data of the photographing device and the first image before the first image frame is exposed according to the IMU data After the frame is exposed, the second posture data of the camera is completed.
S204:根据所述姿态数据调整所述至少一个目标图像帧,获得第二视频。S204: Adjust the at least one target image frame according to the posture data to obtain a second video.
本发明实施例中,图像处理设备可以根据所述姿态数据调整所述至少一个目标图像帧,获得第二视频。In the embodiment of the present invention, the image processing device may adjust the at least one target image frame according to the posture data to obtain the second video.
在一个实施例中,图像处理设备在根据所述姿态数据调整所述至少一个目标图像帧时,可以根据截止频率对所述至少一个目标图像帧的所述姿态数据进行过滤,得到目标姿态数据。在某些实施例中,所述截止频率小于1Hz,在一个示例中,所述截止频率为0.5Hz;在一个示例中,所述截止频率为0.025Hz。通过采用低截止频率有助于后续通过频域低通滤波器对目标图像帧的姿态数据进行过滤,提高对于图像抖动的过滤效果。可以理解的是,频域低通滤波器的截止频率越低,其滤除姿态数据中高频信号的能力越强,所得到的目标姿态也就越平滑,即图像采集设备的运动状态越缓慢,对后续显示视频图像的影响越低。In one embodiment, when adjusting the at least one target image frame according to the posture data, the image processing device may filter the posture data of the at least one target image frame according to a cutoff frequency to obtain target posture data. In some embodiments, the cut-off frequency is less than 1 Hz, in one example, the cut-off frequency is 0.5 Hz; in one example, the cut-off frequency is 0.025 Hz. By adopting a low cut-off frequency, it is helpful to subsequently filter the posture data of the target image frame through a frequency-domain low-pass filter, and improve the filtering effect of image jitter. It is understandable that the lower the cut-off frequency of the frequency domain low-pass filter, the stronger its ability to filter out high-frequency signals in the attitude data, and the smoother the target attitude obtained, that is, the slower the motion state of the image acquisition device. The lower the impact on the subsequent display of the video image.
在一种实施方式中,图像处理设备可以将第一姿态数据和第二姿态数据作为预设的频域低通滤波器的输入数据,由频域低通滤波器滤除第一姿态数据和第二姿态数据中大于截止频率的高频信号,以获得第一姿态数据和第二姿态数据中不超过截止频率的低频信号。可以理解的是,若频域低通滤波器具有频域变换的功能,则可以将第一姿态数据和第二姿态数据直接输入到频域低通滤波器;若频域低通滤波器不具有频域变换的功能,则需要对第一姿态数据和第二姿态数据进行频域变换,再将频域变换后的第一姿态数据和第二姿态数据输入到频域低通滤波器。其中,频域变换的方法可以参考相关技术,在此不作限定。In an embodiment, the image processing device may use the first posture data and the second posture data as input data of a preset frequency domain low-pass filter, and the frequency domain low-pass filter filters the first posture data and the second posture data. Two high-frequency signals in the attitude data that are greater than the cut-off frequency to obtain low-frequency signals that do not exceed the cut-off frequency in the first attitude data and the second attitude data. It is understandable that if the frequency-domain low-pass filter has the function of frequency-domain transformation, the first attitude data and the second attitude data can be directly input to the frequency-domain low-pass filter; if the frequency-domain low-pass filter does not have The function of frequency domain transformation requires frequency domain transformation of the first attitude data and the second attitude data, and then the first attitude data and the second attitude data after the frequency domain transformation are input to the frequency domain low-pass filter. Among them, the frequency domain transform method can refer to related technologies, which is not limited here.
在一个实施例中,图像处理设备可以基于第一姿态数据和第二姿态数据中不超过截止频率的低频信号生成拍摄装置在曝光时的目标姿态数据。In one embodiment, the image processing device may generate target posture data of the photographing device during exposure based on the low-frequency signal that does not exceed the cut-off frequency in the first posture data and the second posture data.
在一个实施例中,图像处理设备在根据所述姿态数据调整所述至少一个目标图像帧时,可以对所述至少一个目标图像帧的所述姿态数据进行积分处理,得到估计姿态数据。其中,所述积分处理方式为现有积分处理技术,此处不再赘述。通过计算得到估计姿态数据,有助于后续根据估计姿态数据和目标姿态数据来确定对目标图像帧的调整是否有效。In one embodiment, when adjusting the at least one target image frame according to the posture data, the image processing device may perform integration processing on the posture data of the at least one target image frame to obtain estimated posture data. Wherein, the integration processing method is an existing integration processing technology, which will not be repeated here. Obtaining the estimated posture data through calculation helps to determine whether the adjustment of the target image frame is effective according to the estimated posture data and the target posture data.
在一个实施例中,图像处理设备在根据所述姿态数据调整所述至少一个目标图像帧时,可以根据所述估计姿态数据和所述目标姿态数据,确定所述至 少一个目标图像帧的调整是否有效。In one embodiment, when the image processing device adjusts the at least one target image frame according to the posture data, it may determine whether the at least one target image frame is adjusted according to the estimated posture data and the target posture data. effective.
在一个实施例中,图像处理设备在根据所述估计姿态数据和所述目标姿态数据,确定所述至少一个目标图像帧的调整是否有效时,可以根据所述估计姿态数据和所述目标姿态数据的差值,确定所述至少一个目标图像帧的调整是否有效,若所述差值超出范围,则丢弃所述差值超出范围的所述估计姿态数据和所述目标姿态数据对应的目标图像帧。In one embodiment, when the image processing device determines whether the adjustment of the at least one target image frame is effective according to the estimated posture data and the target posture data, it may be based on the estimated posture data and the target posture data. Determine whether the adjustment of the at least one target image frame is effective, and if the difference exceeds the range, discard the estimated posture data whose difference exceeds the range and the target image frame corresponding to the target posture data .
在一个实施例中,图像处理设备在根据所述估计姿态数据和所述目标姿态数据的差值,确定所述至少一个目标图像帧的调整是否有效时,可以获取所述估计姿态数据与所述目标姿态数据的姿态差值,若所述姿态差值小于或等于预设角度阈值,则可以确定所述至少一个目标图像帧的调整有效,若所述姿态差值大于预设角度阈值,则可以确定所述至少一个目标图像帧的调整无效。通过这种实施方式确定出无效的目标图像帧,可以丢弃无效的目标图像帧,有助于提高目标图像帧的有效性,从而使调整后得到的第二视频更加平滑和稳定。In one embodiment, when the image processing device determines whether the adjustment of the at least one target image frame is effective according to the difference between the estimated posture data and the target posture data, it may acquire the estimated posture data and the target posture data. The posture difference of the target posture data. If the posture difference is less than or equal to the preset angle threshold, it can be determined that the adjustment of the at least one target image frame is effective. If the posture difference is greater than the preset angle threshold, then It is determined that the adjustment of the at least one target image frame is invalid. By determining the invalid target image frame through this implementation manner, the invalid target image frame can be discarded, which helps to improve the effectiveness of the target image frame, so that the second video obtained after adjustment is smoother and more stable.
例如,假设预设角度阈值为k,如果获取到一个目标图像帧的估计姿态数据为m1,目标姿态数据n1,且m1与n1的姿态差值m1-n1<k,则可以确定所述一个目标图像帧的调整有效。For example, assuming that the preset angle threshold is k, if the estimated posture data of a target image frame is obtained as m1, the target posture data is n1, and the posture difference between m1 and n1 is m1-n1<k, then the target can be determined The adjustment of the image frame is effective.
又例如,假设预设角度阈值为k,如果获取到一个目标图像帧的估计姿态数据为m2,目标姿态数据n2,且m2与n2的姿态差值m2-n2>k,则可以确定所述一个目标图像帧的调整无效,并丢弃所述一个目标图像帧。For another example, assuming that the preset angle threshold is k, if the estimated posture data of a target image frame is obtained as m2, the target posture data is n2, and the posture difference between m2 and n2 is m2-n2>k, then the one can be determined The adjustment of the target image frame is invalid, and the one target image frame is discarded.
本发明实施例可以获取第一视频,并从第一视频包括的多个第一图像帧中选取至少一个目标图像帧,以及获取第一图像帧在曝光时的姿态数据,从而根据该姿态数据调整至少一个目标图像帧获得第二视频。通过这种实施方式,可以避免第二视频出现抖动等不稳定的现象,有助于提高视频的稳定性,实现平滑的视频,提高用户观看体验。The embodiment of the present invention can obtain a first video, select at least one target image frame from a plurality of first image frames included in the first video, and obtain the posture data of the first image frame at the time of exposure, so as to adjust according to the posture data At least one target image frame obtains the second video. Through this implementation manner, unstable phenomena such as jitter in the second video can be avoided, which helps to improve the stability of the video, realize a smooth video, and improve the user's viewing experience.
具体请参见图3,图3是本发明实施例提供的另一种图像处理方法的流程示意图。如图3所示,图像处理设备可以输入第一视频,并根据第一视频选取目标图像帧,同时获取拍摄装置拍摄目标图像帧时的IMU数据,并根据IMU数据获取拍摄装置的姿态数据,从而根据姿态数据确定出估计姿态数据和目标姿态数据,当判断出估计姿态数据与目标姿态数据的姿态差值小于或等于预设 角度阈值时,确定对目标图像帧的调整有效,进一步对目标图像帧进行过滤,从而输出第二视频。通过这种实施方式,实现了对输入的第一视频的增稳,提高了输出的第二视频的稳定性,从而可以显示更稳定的视频。Please refer to FIG. 3 for details. FIG. 3 is a schematic flowchart of another image processing method according to an embodiment of the present invention. As shown in FIG. 3, the image processing device can input the first video, select the target image frame according to the first video, and obtain the IMU data when the shooting device shoots the target image frame, and obtain the posture data of the shooting device according to the IMU data, thereby Determine the estimated posture data and the target posture data according to the posture data. When it is determined that the posture difference between the estimated posture data and the target posture data is less than or equal to the preset angle threshold, it is determined that the adjustment of the target image frame is effective, and further the target image frame Filter to output the second video. Through this implementation manner, stabilization of the input first video is realized, and the stability of the output second video is improved, so that a more stable video can be displayed.
本发明实施例可以获取第一视频,并从第一视频包括的多个第一图像帧中选取至少一个目标图像帧,以及获取第一图像帧在曝光时的姿态数据,从而根据姿态数据调整至少一个目标图像帧获得第二视频。通过这种实施方式,可以避免第二视频出现抖动等不稳定的现象,有助于提高视频的稳定性,实现平滑的视频,提高用户观看体验。The embodiment of the present invention can obtain a first video, select at least one target image frame from a plurality of first image frames included in the first video, and obtain the posture data of the first image frame at the time of exposure, so as to adjust at least One target image frame obtains the second video. Through this implementation manner, unstable phenomena such as jitter in the second video can be avoided, which helps to improve the stability of the video, realize a smooth video, and improve the user's viewing experience.
请参见图4,图4是本发明实施例提供的一种图像处理设备的结构示意图。具体的,所述图像处理设备包括:存储器401、处理器402。Please refer to FIG. 4, which is a schematic structural diagram of an image processing device according to an embodiment of the present invention. Specifically, the image processing device includes: a memory 401 and a processor 402.
在一种实施例中,所述图像处理设备还包括数据接口403,所述数据接口403,用于传递图像处理设备和其他设备之间的数据信息。In an embodiment, the image processing device further includes a data interface 403, and the data interface 403 is used to transfer data information between the image processing device and other devices.
所述存储器401可以包括易失性存储器(volatile memory);存储器401也可以包括非易失性存储器(non-volatile memory);存储器401还可以包括上述种类的存储器的组合。所述处理器402可以是中央处理器(central processing unit,CPU)。所述处理器402还可以进一步包括硬件芯片。上述硬件芯片可以是专用集成电路(application-specific integrated circuit,ASIC),可编程逻辑器件(programmable logic device,PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(complex programmable logic device,CPLD),现场可编程逻辑门阵列(field-programmable gate array,FPGA)或其任意组合。The memory 401 may include a volatile memory (volatile memory); the memory 401 may also include a non-volatile memory (non-volatile memory); the memory 401 may also include a combination of the foregoing types of memories. The processor 402 may be a central processing unit (CPU). The processor 402 may further include a hardware chip. The above-mentioned hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The above-mentioned PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), or any combination thereof.
所述存储器401用于存储程序,所述处理器402可以调用存储401中存储的程序,用于执行如下步骤:The memory 401 is used to store programs, and the processor 402 can call the programs stored in the memory 401 to perform the following steps:
获取第一视频,所述第一视频包括多个第一图像帧;Acquiring a first video, where the first video includes a plurality of first image frames;
从所述多个第一图像帧中选取至少一个目标图像帧;Selecting at least one target image frame from the plurality of first image frames;
获取所述第一图像帧在曝光时的姿态数据;Acquiring posture data of the first image frame during exposure;
根据所述姿态数据调整所述至少一个目标图像帧,获得第二视频。The at least one target image frame is adjusted according to the posture data to obtain a second video.
进一步地,所述处理器402从所述多个第一图像帧中选取至少一个目标图像帧时,具体用于:Further, when the processor 402 selects at least one target image frame from the plurality of first image frames, it is specifically configured to:
根据播放频率从所述多个第一图像帧中选取所述至少一个目标图像帧,所 述播放频率为所述第二视频与所述第一视频的播放速度比。The at least one target image frame is selected from the plurality of first image frames according to a playing frequency, and the playing frequency is a ratio of the playing speed of the second video to the first video.
进一步地,所述播放频率为可变频率。Further, the playing frequency is a variable frequency.
进一步地,所述处理器402获取所述第一图像帧在曝光时的姿态数据时,具体用于:Further, when the processor 402 obtains the posture data of the first image frame during exposure, it is specifically configured to:
获取所述第一图像帧在曝光之前所述拍摄装置的第一姿态数据以及所述第一图像帧在曝光之后所述拍摄装置的第二姿态数据。Acquire first posture data of the photographing device before the first image frame is exposed and second posture data of the photographing device after the first image frame is exposed.
进一步地,所述处理器402获取所述第一图像帧在曝光之前所述拍摄装置的第一姿态数据以及所述第一图像帧在曝光之后所述拍摄装置的第二姿态数据时,具体用于:Further, when the processor 402 obtains the first posture data of the photographing device before the exposure of the first image frame and the second posture data of the photographing device after the first image frame is exposed, it specifically uses in:
获取所述拍摄装置拍摄所述第一图像帧时的IMU数据;Acquiring IMU data when the photographing device photographed the first image frame;
根据所述IMU数据确定所述第一图像帧在曝光之前所述拍摄装置的第一姿态数据以及所述第一图像帧在曝光之后所述拍摄装置的第二姿态数据。Determine the first posture data of the photographing device before the first image frame is exposed and the second posture data of the photographing device after the first image frame is exposed according to the IMU data.
进一步地,所述处理器402根据所述姿态数据调整所述至少一个目标图像帧时,具体用于:Further, when the processor 402 adjusts the at least one target image frame according to the posture data, it is specifically configured to:
根据截止频率对所述至少一个目标图像帧的所述姿态数据进行过滤,得到目标姿态数据。Filter the posture data of the at least one target image frame according to the cutoff frequency to obtain target posture data.
进一步地,所述截止频率小于1Hz。Further, the cut-off frequency is less than 1 Hz.
进一步地,所述处理器402根据所述姿态数据调整所述至少一个目标图像帧时,具体用于:Further, when the processor 402 adjusts the at least one target image frame according to the posture data, it is specifically configured to:
对所述至少一个目标图像帧的所述姿态数据进行积分处理,得到估计姿态数据。Performing integration processing on the posture data of the at least one target image frame to obtain estimated posture data.
进一步地,所述处理器402根据所述姿态数据调整所述至少一个目标图像帧时,具体用于:Further, when the processor 402 adjusts the at least one target image frame according to the posture data, it is specifically configured to:
根据所述估计姿态数据和所述目标姿态数据,确定所述至少一个目标图像帧的调整是否有效。According to the estimated posture data and the target posture data, it is determined whether the adjustment of the at least one target image frame is effective.
进一步地,所述处理器402根据所述估计姿态数据和所述目标姿态数据,确定所述至少一个目标图像帧的调整是否有效时,具体用于:Further, when the processor 402 determines whether the adjustment of the at least one target image frame is effective according to the estimated pose data and the target pose data, it is specifically configured to:
根据所述估计姿态数据和所述目标姿态数据的差值,确定所述至少一个目标图像帧的调整是否有效;Determining whether the adjustment of the at least one target image frame is effective according to the difference between the estimated posture data and the target posture data;
若所述差值超出范围,则丢弃所述差值超出范围的所述估计姿态数据和所 述目标姿态数据对应的目标图像帧。If the difference value is out of the range, discard the estimated posture data and the target image frame corresponding to the target posture data whose difference value is out of the range.
进一步地,所述处理器402根据所述估计姿态数据和所述目标姿态数据的差值,确定所述至少一个目标图像帧的调整是否有效时,具体用于:Further, when the processor 402 determines whether the adjustment of the at least one target image frame is effective according to the difference between the estimated pose data and the target pose data, it is specifically configured to:
获取所述估计姿态数据与所述目标姿态数据的姿态差值;Acquiring the posture difference between the estimated posture data and the target posture data;
若所述姿态差值小于或等于预设角度阈值,则确定所述至少一个目标图像帧的调整有效;If the attitude difference is less than or equal to the preset angle threshold, determining that the adjustment of the at least one target image frame is valid;
若所述姿态差值大于预设角度阈值,则确定所述至少一个目标图像帧的调整无效。If the attitude difference is greater than the preset angle threshold, it is determined that the adjustment of the at least one target image frame is invalid.
进一步地,所述姿态数据包括角加速度和/或角速度。Further, the posture data includes angular acceleration and/or angular velocity.
进一步地,所述目标图像帧包括第一预设数量的图像帧,所述姿态数据包括第二预设数量的姿态数据,所述第二预设数量为所述第一预设数量的两倍以上。Further, the target image frame includes a first preset number of image frames, the posture data includes a second preset number of posture data, and the second preset number is twice the first preset number the above.
进一步地,当所述目标图像帧超过第一预设数量时,丢弃所述目标图像帧中的在先数据;Further, when the target image frame exceeds a first preset number, discard the previous data in the target image frame;
当所述姿态数据超过第二预设数量时,丢弃所述姿态数据中的在先数据。When the posture data exceeds the second preset number, the previous data in the posture data is discarded.
进一步地,所述第一视频存储于指定深度的第一先入先出存储器。Further, the first video is stored in a first first-in first-out memory of a specified depth.
进一步地,所述第一姿态数据为一个或多个,所述第二姿态数据为一个或多个,所述第一姿态数据和所述第二姿态数据存储于第二先入先出存储器。Further, the first posture data is one or more, the second posture data is one or more, and the first posture data and the second posture data are stored in a second first-in first-out memory.
进一步地,所述第二先入先出存储器的容量为第一先入先出存储器的两倍以上。Further, the capacity of the second first-in first-out memory is more than twice that of the first first-in first-out memory.
本发明实施例可以获取第一视频,并从第一视频包括的多个第一图像帧中选取至少一个目标图像帧,以及获取第一图像帧在曝光时的姿态数据,从而根据姿态数据调整至少一个目标图像帧获得第二视频。通过这种实施方式,可以避免第二视频出现抖动等不稳定的现象,有助于提高视频的稳定性,实现平滑的视频,提高用户观看体验。The embodiment of the present invention can obtain a first video, select at least one target image frame from a plurality of first image frames included in the first video, and obtain the posture data of the first image frame at the time of exposure, so as to adjust at least One target image frame obtains the second video. Through this implementation manner, unstable phenomena such as jitter in the second video can be avoided, which helps to improve the stability of the video, realize a smooth video, and improve the user's viewing experience.
请参见图5,图5是本发明实施例提供的一种成像装置的结构示意图。具体的,所述图像处理设备包括:第一获取单元501、选取单元502、第二获取单元503、调整单元504;Please refer to FIG. 5, which is a schematic structural diagram of an imaging device according to an embodiment of the present invention. Specifically, the image processing device includes: a first acquisition unit 501, a selection unit 502, a second acquisition unit 503, and an adjustment unit 504;
第一获取单元501,用于获取第一视频,所述第一视频包括多个第一图像帧;The first acquiring unit 501 is configured to acquire a first video, where the first video includes a plurality of first image frames;
选取单元502,用于从所述多个第一图像帧中选取至少一个目标图像帧;The selecting unit 502 is configured to select at least one target image frame from the plurality of first image frames;
第二获取单元503,用于获取所述第一图像帧在曝光时的姿态数据;The second acquiring unit 503 is configured to acquire the posture data of the first image frame during exposure;
调整单元504,用于根据所述姿态数据调整所述至少一个目标图像帧,获得第二视频。The adjusting unit 504 is configured to adjust the at least one target image frame according to the posture data to obtain a second video.
进一步地,所述选取单元502从所述多个第一图像帧中选取至少一个目标图像帧时,具体用于:Further, when the selecting unit 502 selects at least one target image frame from the plurality of first image frames, it is specifically configured to:
根据播放频率从所述多个第一图像帧中选取所述至少一个目标图像帧,所述播放频率为所述第二视频与所述第一视频的播放速度比。The at least one target image frame is selected from the plurality of first image frames according to a playing frequency, where the playing frequency is a ratio of the playing speed of the second video to the first video.
进一步地,所述播放频率为可变频率。Further, the playing frequency is a variable frequency.
进一步地,所述第二获取单元503获取所述第一图像帧在曝光时的姿态数据时,具体用于:Further, when the second acquiring unit 503 acquires the posture data of the first image frame during exposure, it is specifically used for:
获取所述第一图像帧在曝光之前所述拍摄装置的第一姿态数据以及所述第一图像帧在曝光之后所述拍摄装置的第二姿态数据。Acquire first posture data of the photographing device before the first image frame is exposed and second posture data of the photographing device after the first image frame is exposed.
进一步地,所述第二获取单元503获取所述第一图像帧在曝光之前所述拍摄装置的第一姿态数据以及所述第一图像帧在曝光之后所述拍摄装置的第二姿态数据时,具体用于:Further, when the second acquiring unit 503 acquires the first posture data of the photographing device before the first image frame is exposed and the second posture data of the photographing device after the first image frame is exposed, Specifically used for:
获取所述拍摄装置拍摄所述第一图像帧时的IMU数据;Acquiring IMU data when the photographing device photographed the first image frame;
根据所述IMU数据确定所述第一图像帧在曝光之前所述拍摄装置的第一姿态数据以及所述第一图像帧在曝光之后所述拍摄装置的第二姿态数据。Determine the first posture data of the photographing device before the first image frame is exposed and the second posture data of the photographing device after the first image frame is exposed according to the IMU data.
进一步地,所述调整单元504根据所述姿态数据调整所述至少一个目标图像帧时,具体用于:Further, when the adjusting unit 504 adjusts the at least one target image frame according to the posture data, it is specifically configured to:
根据截止频率对所述至少一个目标图像帧的所述姿态数据进行过滤,得到目标姿态数据。Filter the posture data of the at least one target image frame according to the cutoff frequency to obtain target posture data.
进一步地,所述截止频率小于1Hz。Further, the cut-off frequency is less than 1 Hz.
进一步地,所述调整单元504根据所述姿态数据调整所述至少一个目标图像帧时,具体用于:Further, when the adjusting unit 504 adjusts the at least one target image frame according to the posture data, it is specifically configured to:
对所述至少一个目标图像帧的所述姿态数据进行积分处理,得到估计姿态数据。Performing integration processing on the posture data of the at least one target image frame to obtain estimated posture data.
进一步地,所述调整单元504根据所述姿态数据调整所述至少一个目标图像帧时,具体用于:Further, when the adjusting unit 504 adjusts the at least one target image frame according to the posture data, it is specifically configured to:
根据所述估计姿态数据和所述目标姿态数据,确定所述至少一个目标图像帧的调整是否有效。According to the estimated posture data and the target posture data, it is determined whether the adjustment of the at least one target image frame is effective.
进一步地,所述调整单元504根据所述估计姿态数据和所述目标姿态数据,确定所述至少一个目标图像帧的调整是否有效时,具体用于:Further, when the adjustment unit 504 determines whether the adjustment of the at least one target image frame is effective according to the estimated pose data and the target pose data, it is specifically configured to:
根据所述估计姿态数据和所述目标姿态数据的差值,确定所述至少一个目标图像帧的调整是否有效;Determining whether the adjustment of the at least one target image frame is effective according to the difference between the estimated posture data and the target posture data;
若所述差值超出范围,则丢弃所述差值超出范围的所述估计姿态数据和所述目标姿态数据对应的目标图像帧。If the difference value is out of the range, discarding the estimated posture data and the target image frame corresponding to the target posture data whose difference value is out of the range.
进一步地,所述调整单元504根据所述估计姿态数据和所述目标姿态数据的差值,确定所述至少一个目标图像帧的调整是否有效时,具体用于:Further, when the adjustment unit 504 determines whether the adjustment of the at least one target image frame is effective according to the difference between the estimated pose data and the target pose data, it is specifically configured to:
获取所述估计姿态数据与所述目标姿态数据的姿态差值;Acquiring the posture difference between the estimated posture data and the target posture data;
若所述姿态差值小于或等于预设角度阈值,则确定所述至少一个目标图像帧的调整有效;If the attitude difference is less than or equal to the preset angle threshold, determining that the adjustment of the at least one target image frame is valid;
若所述姿态差值大于预设角度阈值,则确定所述至少一个目标图像帧的调整无效。If the attitude difference is greater than the preset angle threshold, it is determined that the adjustment of the at least one target image frame is invalid.
进一步地,所述姿态数据包括角加速度和/或角速度。Further, the posture data includes angular acceleration and/or angular velocity.
进一步地,所述目标图像帧包括第一预设数量的图像帧,所述姿态数据包括第二预设数量的姿态数据,所述第二预设数量为所述第一预设数量的两倍以上。Further, the target image frame includes a first preset number of image frames, the posture data includes a second preset number of posture data, and the second preset number is twice the first preset number the above.
进一步地,当所述目标图像帧超过第一预设数量时,丢弃所述目标图像帧中的在先数据;Further, when the target image frame exceeds a first preset number, discard the previous data in the target image frame;
当所述姿态数据超过第二预设数量时,丢弃所述姿态数据中的在先数据。When the posture data exceeds the second preset number, the previous data in the posture data is discarded.
进一步地,所述第一视频存储于指定深度的第一先入先出存储器。Further, the first video is stored in a first first-in first-out memory of a specified depth.
进一步地,所述第一姿态数据为一个或多个,所述第二姿态数据为一个或多个,所述第一姿态数据和所述第二姿态数据存储于第二先入先出存储器。Further, the first posture data is one or more, the second posture data is one or more, and the first posture data and the second posture data are stored in a second first-in first-out memory.
进一步地,所述第二先入先出存储器的容量为第一先入先出存储器的两倍以上。Further, the capacity of the second first-in first-out memory is more than twice that of the first first-in first-out memory.
本发明实施例可以获取第一视频,并从第一视频包括的多个第一图像帧中选取至少一个目标图像帧,以及获取第一图像帧在曝光时的姿态数据,从而根据姿态数据调整至少一个目标图像帧获得第二视频。通过这种实施方式,可以避免第二视频出现抖动等不稳定的现象,有助于提高视频的稳定性,实现平滑的视频,提高用户观看体验。The embodiment of the present invention can obtain a first video, select at least one target image frame from a plurality of first image frames included in the first video, and obtain the posture data of the first image frame at the time of exposure, so as to adjust at least One target image frame obtains the second video. Through this implementation manner, unstable phenomena such as jitter in the second video can be avoided, which helps to improve the stability of the video, realize a smooth video, and improve the user's viewing experience.
本发明实施例还提供了一种可移动平台,包括:机身;配置在机身上的动力系统,用于为可移动平台提供移动的动力;图像处理设备,用于获取第一视频,所述第一视频包括多个第一图像帧;从所述多个第一图像帧中选取至少一个目标图像帧;获取所述第一图像帧在曝光时的姿态数据;根据所述姿态数据调整所述至少一个目标图像帧,获得第二视频。The embodiment of the present invention also provides a movable platform, including: a fuselage; a power system configured on the fuselage to provide mobile power for the movable platform; an image processing device for acquiring the first video, so The first video includes a plurality of first image frames; at least one target image frame is selected from the plurality of first image frames; the posture data of the first image frame at the time of exposure is acquired; the posture data is adjusted according to the posture data At least one target image frame to obtain a second video.
进一步地,所述图像处理设备从所述多个第一图像帧中选取至少一个目标图像帧时,具体用于:Further, when the image processing device selects at least one target image frame from the plurality of first image frames, it is specifically configured to:
根据播放频率从所述多个第一图像帧中选取所述至少一个目标图像帧,所述播放频率为所述第二视频与所述第一视频的播放速度比。The at least one target image frame is selected from the plurality of first image frames according to a playing frequency, where the playing frequency is a ratio of the playing speed of the second video to the first video.
进一步地,所述播放频率为可变频率。Further, the playing frequency is a variable frequency.
进一步地,所述图像处理设备获取所述第一图像帧在曝光时的姿态数据时,具体用于:Further, when the image processing device acquires the posture data of the first image frame at the time of exposure, it is specifically used for:
获取所述第一图像帧在曝光之前所述拍摄装置的第一姿态数据以及所述第一图像帧在曝光之后所述拍摄装置的第二姿态数据。Acquire first posture data of the photographing device before the first image frame is exposed and second posture data of the photographing device after the first image frame is exposed.
进一步地,所述图像处理设备获取所述第一图像帧在曝光之前所述拍摄装置的第一姿态数据以及所述第一图像帧在曝光之后所述拍摄装置的第二姿态数据时,具体用于:Further, when the image processing device acquires the first posture data of the photographing device before the exposure of the first image frame and the second posture data of the photographing device after the first image frame is exposed, specifically using in:
获取所述拍摄装置拍摄所述第一图像帧时的IMU数据;Acquiring IMU data when the photographing device photographed the first image frame;
根据所述IMU数据确定所述第一图像帧在曝光之前所述拍摄装置的第一姿态数据以及所述第一图像帧在曝光之后所述拍摄装置的第二姿态数据。Determine the first posture data of the photographing device before the first image frame is exposed and the second posture data of the photographing device after the first image frame is exposed according to the IMU data.
进一步地,所述图像处理设备根据所述姿态数据调整所述至少一个目标图像帧时,具体用于:Further, when the image processing device adjusts the at least one target image frame according to the posture data, it is specifically configured to:
根据截止频率对所述至少一个目标图像帧的所述姿态数据进行过滤,得到目标姿态数据。Filter the posture data of the at least one target image frame according to the cutoff frequency to obtain target posture data.
进一步地,所述截止频率小于1Hz。Further, the cut-off frequency is less than 1 Hz.
进一步地,所述图像处理设备根据所述姿态数据调整所述至少一个目标图像帧时,具体用于:Further, when the image processing device adjusts the at least one target image frame according to the posture data, it is specifically configured to:
对所述至少一个目标图像帧的所述姿态数据进行积分处理,得到估计姿态数据。Performing integration processing on the posture data of the at least one target image frame to obtain estimated posture data.
进一步地,所述图像处理设备根据所述姿态数据调整所述至少一个目标图像帧时,具体用于:Further, when the image processing device adjusts the at least one target image frame according to the posture data, it is specifically configured to:
根据所述估计姿态数据和所述目标姿态数据,确定所述至少一个目标图像帧的调整是否有效。According to the estimated posture data and the target posture data, it is determined whether the adjustment of the at least one target image frame is effective.
进一步地,所述图像处理设备根据所述估计姿态数据和所述目标姿态数据,确定所述至少一个目标图像帧的调整是否有效时,具体用于:Further, when the image processing device determines whether the adjustment of the at least one target image frame is effective according to the estimated pose data and the target pose data, it is specifically used to:
根据所述估计姿态数据和所述目标姿态数据的差值,确定所述至少一个目标图像帧的调整是否有效;Determining whether the adjustment of the at least one target image frame is effective according to the difference between the estimated posture data and the target posture data;
若所述差值超出范围,则丢弃所述差值超出范围的所述估计姿态数据和所述目标姿态数据对应的目标图像帧。If the difference value is out of the range, discarding the estimated posture data and the target image frame corresponding to the target posture data whose difference value is out of the range.
进一步地,所述图像处理设备根据所述估计姿态数据和所述目标姿态数据的差值,确定所述至少一个目标图像帧的调整是否有效时,具体用于:Further, when the image processing device determines whether the adjustment of the at least one target image frame is effective according to the difference between the estimated pose data and the target pose data, it is specifically used to:
获取所述估计姿态数据与所述目标姿态数据的姿态差值;Acquiring the posture difference between the estimated posture data and the target posture data;
若所述姿态差值小于或等于预设角度阈值,则确定所述至少一个目标图像帧的调整有效;If the attitude difference is less than or equal to the preset angle threshold, determining that the adjustment of the at least one target image frame is valid;
若所述姿态差值大于预设角度阈值,则确定所述至少一个目标图像帧的调整无效。If the attitude difference is greater than the preset angle threshold, it is determined that the adjustment of the at least one target image frame is invalid.
进一步地,所述姿态数据包括角加速度和/或角速度。Further, the posture data includes angular acceleration and/or angular velocity.
进一步地,所述目标图像帧包括第一预设数量的图像帧,所述姿态数据包括第二预设数量的姿态数据,所述第二预设数量为所述第一预设数量的两倍以上。Further, the target image frame includes a first preset number of image frames, the posture data includes a second preset number of posture data, and the second preset number is twice the first preset number the above.
进一步地,当所述目标图像帧超过第一预设数量时,丢弃所述目标图像帧中的在先数据;Further, when the target image frame exceeds a first preset number, discard the previous data in the target image frame;
当所述姿态数据超过第二预设数量时,丢弃所述姿态数据中的在先数据。When the posture data exceeds the second preset number, the previous data in the posture data is discarded.
进一步地,所述第一视频存储于指定深度的第一先入先出存储器。Further, the first video is stored in a first first-in first-out memory of a specified depth.
进一步地,所述第一姿态数据为一个或多个,所述第二姿态数据为一个 或多个,所述第一姿态数据和所述第二姿态数据存储于第二先入先出存储器。Further, the first posture data is one or more, the second posture data is one or more, and the first posture data and the second posture data are stored in a second first-in first-out memory.
本发明实施例可以获取第一视频,并从第一视频包括的多个第一图像帧中选取至少一个目标图像帧,以及获取第一图像帧在曝光时的姿态数据,从而根据姿态数据调整至少一个目标图像帧获得第二视频。通过这种实施方式,可以避免第二视频出现抖动等不稳定的现象,有助于提高视频的稳定性,实现平滑的视频,提高用户观看体验。The embodiment of the present invention can obtain a first video, select at least one target image frame from a plurality of first image frames included in the first video, and obtain the posture data of the first image frame at the time of exposure, so as to adjust at least One target image frame obtains the second video. Through this implementation manner, unstable phenomena such as jitter in the second video can be avoided, which helps to improve the stability of the video, realize a smooth video, and improve the user's viewing experience.
本发明的实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现本发明图2所对应实施例中描述的方法,也可实现图4所述本发明所对应实施例的设备,在此不再赘述。The embodiment of the present invention also provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in the embodiment corresponding to FIG. 2 of the present invention is implemented. , The device corresponding to the embodiment of the present invention described in FIG. 4 can also be implemented, which will not be repeated here.
所述计算机可读存储介质可以是前述任一实施例所述的设备的内部存储单元,例如设备的硬盘或内存。所述计算机可读存储介质也可以是所述设备的外部存储设备,例如所述设备上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述计算机可读存储介质还可以既包括所述设备的内部存储单元也包括外部存储设备。所述计算机可读存储介质用于存储所述计算机程序以及所述终端所需的其他程序和数据。所述计算机可读存储介质还可以用于暂时地存储已经输出或者将要输出的数据。The computer-readable storage medium may be an internal storage unit of the device described in any of the foregoing embodiments, such as a hard disk or memory of the device. The computer-readable storage medium may also be an external storage device of the device, such as a plug-in hard disk equipped on the device, a Smart Media Card (SMC), or a Secure Digital (SD) card. , Flash Card, etc. Further, the computer-readable storage medium may also include both an internal storage unit of the device and an external storage device. The computer-readable storage medium is used to store the computer program and other programs and data required by the terminal. The computer-readable storage medium can also be used to temporarily store data that has been output or will be output.
以上所揭露的仅为本发明部分实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。The above-disclosed are only some embodiments of the present invention, which of course cannot be used to limit the scope of rights of the present invention. Therefore, equivalent changes made according to the claims of the present invention still fall within the scope of the present invention.

Claims (65)

  1. 一种图像处理方法,其特征在于,包括:An image processing method, characterized in that it comprises:
    获取第一视频,所述第一视频包括多个第一图像帧;Acquiring a first video, where the first video includes a plurality of first image frames;
    从所述多个第一图像帧中选取至少一个目标图像帧;Selecting at least one target image frame from the plurality of first image frames;
    获取所述第一图像帧在曝光时的姿态数据;Acquiring posture data of the first image frame during exposure;
    根据所述姿态数据调整所述至少一个目标图像帧,获得第二视频。The at least one target image frame is adjusted according to the posture data to obtain a second video.
  2. 根据权利要求1所述的方法,其特征在于,所述从所述多个第一图像帧中选取至少一个目标图像帧,包括:The method according to claim 1, wherein the selecting at least one target image frame from the plurality of first image frames comprises:
    根据播放频率从所述多个第一图像帧中选取所述至少一个目标图像帧,所述播放频率为所述第二视频与所述第一视频的播放速度比。The at least one target image frame is selected from the plurality of first image frames according to a playing frequency, where the playing frequency is a ratio of the playing speed of the second video to the first video.
  3. 根据权利要求2所述的方法,其特征在于,所述播放频率为可变频率。The method according to claim 2, wherein the playing frequency is a variable frequency.
  4. 根据权利要求1所述的方法,其特征在于,所述获取所述第一图像帧在曝光时的姿态数据,包括:The method according to claim 1, wherein the acquiring the posture data of the first image frame during exposure comprises:
    获取所述第一图像帧在曝光之前所述拍摄装置的第一姿态数据以及所述第一图像帧在曝光之后所述拍摄装置的第二姿态数据。Acquire first posture data of the photographing device before the first image frame is exposed and second posture data of the photographing device after the first image frame is exposed.
  5. 根据权利要求4所述的方法,其特征在于,所述获取所述第一图像帧在曝光之前所述拍摄装置的第一姿态数据以及所述第一图像帧在曝光之后所述拍摄装置的第二姿态数据,包括:The method according to claim 4, wherein the acquiring the first posture data of the photographing device before the exposure of the first image frame and the first posture data of the photographing device after the first image frame is exposed 2. Posture data, including:
    获取所述拍摄装置拍摄所述第一图像帧时的IMU数据;Acquiring IMU data when the photographing device photographed the first image frame;
    根据所述IMU数据确定所述第一图像帧在曝光之前所述拍摄装置的第一姿态数据以及所述第一图像帧在曝光之后所述拍摄装置的第二姿态数据。Determine the first posture data of the photographing device before the first image frame is exposed and the second posture data of the photographing device after the first image frame is exposed according to the IMU data.
  6. 根据权利要求1所述的方法,其特征在于,所述根据所述姿态数据调整所述至少一个目标图像帧,包括:The method according to claim 1, wherein the adjusting the at least one target image frame according to the posture data comprises:
    根据截止频率对所述至少一个目标图像帧的所述姿态数据进行过滤,得 到目标姿态数据。Filter the posture data of the at least one target image frame according to the cutoff frequency to obtain target posture data.
  7. 根据权利要求6所述的方法,其特征在于,所述截止频率小于1Hz。The method according to claim 6, wherein the cut-off frequency is less than 1 Hz.
  8. 根据权利要求6所述的方法,其特征在于,所述根据所述姿态数据调整所述至少一个目标图像帧,包括:The method according to claim 6, wherein the adjusting the at least one target image frame according to the posture data comprises:
    对所述至少一个目标图像帧的所述姿态数据进行积分处理,得到估计姿态数据。Performing integration processing on the posture data of the at least one target image frame to obtain estimated posture data.
  9. 根据权利要求8所述的方法,其特征在于,所述根据所述姿态数据调整所述至少一个目标图像帧,包括:The method according to claim 8, wherein the adjusting the at least one target image frame according to the posture data comprises:
    根据所述估计姿态数据和所述目标姿态数据,确定所述至少一个目标图像帧的调整是否有效。According to the estimated posture data and the target posture data, it is determined whether the adjustment of the at least one target image frame is effective.
  10. 根据权利要求9所述的方法,其特征在于,所述根据所述估计姿态数据和所述目标姿态数据,确定所述至少一个目标图像帧的调整是否有效,包括:The method according to claim 9, wherein the determining whether the adjustment of the at least one target image frame is effective according to the estimated pose data and the target pose data comprises:
    根据所述估计姿态数据和所述目标姿态数据的差值,确定所述至少一个目标图像帧的调整是否有效;Determining whether the adjustment of the at least one target image frame is effective according to the difference between the estimated posture data and the target posture data;
    若所述差值超出范围,则丢弃所述差值超出范围的所述估计姿态数据和所述目标姿态数据对应的目标图像帧。If the difference value is out of the range, discarding the estimated posture data and the target image frame corresponding to the target posture data whose difference value is out of the range.
  11. 根据权利要求10所述的方法,其特征在于,所述根据所述估计姿态数据和所述目标姿态数据的差值,确定所述至少一个目标图像帧的调整是否有效,包括:The method according to claim 10, wherein the determining whether the adjustment of the at least one target image frame is effective according to the difference between the estimated pose data and the target pose data comprises:
    获取所述估计姿态数据与所述目标姿态数据的姿态差值;Acquiring the posture difference between the estimated posture data and the target posture data;
    若所述姿态差值小于或等于预设角度阈值,则确定所述至少一个目标图像帧的调整有效;If the attitude difference is less than or equal to the preset angle threshold, determining that the adjustment of the at least one target image frame is valid;
    若所述姿态差值大于预设角度阈值,则确定所述至少一个目标图像帧的调整无效。If the attitude difference is greater than the preset angle threshold, it is determined that the adjustment of the at least one target image frame is invalid.
  12. 根据权利要求8所述的方法,其特征在于,所述姿态数据包括角加速度和/或角速度。The method according to claim 8, wherein the attitude data includes angular acceleration and/or angular velocity.
  13. 根据权利要求1所述的方法,其特征在于,所述目标图像帧包括第一预设数量的图像帧,所述姿态数据包括第二预设数量的姿态数据,所述第二预设数量为所述第一预设数量的两倍以上。The method according to claim 1, wherein the target image frame includes a first preset number of image frames, the posture data includes a second preset number of posture data, and the second preset number is More than twice the first preset number.
  14. 根据权利要求13所述的方法,其特征在于,The method of claim 13, wherein:
    当所述目标图像帧超过第一预设数量时,丢弃所述目标图像帧中的在先数据;When the target image frame exceeds the first preset number, discard the previous data in the target image frame;
    当所述姿态数据超过第二预设数量时,丢弃所述姿态数据中的在先数据。When the posture data exceeds the second preset number, the previous data in the posture data is discarded.
  15. 一种图像处理设备,其特征在于,包括:处理器和存储器,An image processing device, characterized by comprising: a processor and a memory,
    所述存储器,用于存储程序;The memory is used to store programs;
    所述处理器,用于执行所述存储器存储的程序,当所述程序被执行时,所述处理器用于:The processor is configured to execute a program stored in the memory, and when the program is executed, the processor is configured to:
    获取第一视频,所述第一视频包括多个第一图像帧;Acquiring a first video, where the first video includes a plurality of first image frames;
    从所述多个第一图像帧中选取至少一个目标图像帧;Selecting at least one target image frame from the plurality of first image frames;
    获取所述第一图像帧在曝光时的姿态数据;Acquiring posture data of the first image frame during exposure;
    根据所述姿态数据调整所述至少一个目标图像帧,获得第二视频。The at least one target image frame is adjusted according to the posture data to obtain a second video.
  16. 根据权利要求15所述的设备,其特征在于,所述处理器从所述多个第一图像帧中选取至少一个目标图像帧时,具体用于:The device according to claim 15, wherein when the processor selects at least one target image frame from the plurality of first image frames, it is specifically configured to:
    根据播放频率从所述多个第一图像帧中选取所述至少一个目标图像帧,所述播放频率为所述第二视频与所述第一视频的播放速度比。The at least one target image frame is selected from the plurality of first image frames according to a playing frequency, where the playing frequency is a ratio of the playing speed of the second video to the first video.
  17. 根据权利要求16所述的设备,其特征在于,所述播放频率为可变频率。The device according to claim 16, wherein the playing frequency is a variable frequency.
  18. 根据权利要求15所述的设备,其特征在于,所述处理器获取所述第 一图像帧在曝光时的姿态数据时,具体用于:The device according to claim 15, wherein when the processor obtains the posture data of the first image frame during exposure, it is specifically configured to:
    获取所述第一图像帧在曝光之前所述拍摄装置的第一姿态数据以及所述第一图像帧在曝光之后所述拍摄装置的第二姿态数据。Acquire first posture data of the photographing device before the first image frame is exposed and second posture data of the photographing device after the first image frame is exposed.
  19. 根据权利要求18所述的设备,其特征在于,所述处理器获取所述第一图像帧在曝光之前所述拍摄装置的第一姿态数据以及所述第一图像帧在曝光之后所述拍摄装置的第二姿态数据时,具体用于:The apparatus according to claim 18, wherein the processor acquires the first posture data of the photographing device before the first image frame is exposed and the photographing device after the first image frame is exposed When the second posture data of is specifically used for:
    获取所述拍摄装置拍摄所述第一图像帧时的IMU数据;Acquiring IMU data when the photographing device photographed the first image frame;
    根据所述IMU数据确定所述第一图像帧在曝光之前所述拍摄装置的第一姿态数据以及所述第一图像帧在曝光之后所述拍摄装置的第二姿态数据。Determine the first posture data of the photographing device before the first image frame is exposed and the second posture data of the photographing device after the first image frame is exposed according to the IMU data.
  20. 根据权利要求15所述的设备,其特征在于,所述处理器根据所述姿态数据调整所述至少一个目标图像帧时,具体用于:The device according to claim 15, wherein when the processor adjusts the at least one target image frame according to the posture data, it is specifically configured to:
    根据截止频率对所述至少一个目标图像帧的所述姿态数据进行过滤,得到目标姿态数据。Filter the posture data of the at least one target image frame according to the cutoff frequency to obtain target posture data.
  21. 根据权利要求20所述的设备,其特征在于,所述截止频率小于1Hz。The device according to claim 20, wherein the cut-off frequency is less than 1 Hz.
  22. 根据权利要求20所述的设备,其特征在于,所述处理器根据所述姿态数据调整所述至少一个目标图像帧时,具体用于:The device according to claim 20, wherein when the processor adjusts the at least one target image frame according to the posture data, it is specifically configured to:
    对所述至少一个目标图像帧的所述姿态数据进行积分处理,得到估计姿态数据。Performing integration processing on the posture data of the at least one target image frame to obtain estimated posture data.
  23. 根据权利要求22所述的设备,其特征在于,所述处理器根据所述姿态数据调整所述至少一个目标图像帧时,具体用于:The device according to claim 22, wherein when the processor adjusts the at least one target image frame according to the posture data, it is specifically configured to:
    根据所述估计姿态数据和所述目标姿态数据,确定所述至少一个目标图像帧的调整是否有效。According to the estimated posture data and the target posture data, it is determined whether the adjustment of the at least one target image frame is effective.
  24. 根据权利要求23所述的设备,其特征在于,所述处理器根据所述估计姿态数据和所述目标姿态数据,确定所述至少一个目标图像帧的调整是否有 效时,具体用于:The device according to claim 23, wherein the processor determines whether the adjustment of the at least one target image frame is effective according to the estimated posture data and the target posture data, which is specifically configured to:
    根据所述估计姿态数据和所述目标姿态数据的差值,确定所述至少一个目标图像帧的调整是否有效;Determining whether the adjustment of the at least one target image frame is effective according to the difference between the estimated posture data and the target posture data;
    若所述差值超出范围,则丢弃所述差值超出范围的所述估计姿态数据和所述目标姿态数据对应的目标图像帧。If the difference value is out of the range, discarding the estimated posture data and the target image frame corresponding to the target posture data whose difference value is out of the range.
  25. 根据权利要求24所述的设备,其特征在于,所述处理器根据所述估计姿态数据和所述目标姿态数据的差值,确定所述至少一个目标图像帧的调整是否有效时,具体用于:The device according to claim 24, wherein the processor is specifically configured to determine whether the adjustment of the at least one target image frame is effective according to the difference between the estimated posture data and the target posture data. :
    获取所述估计姿态数据与所述目标姿态数据的姿态差值;Acquiring the posture difference between the estimated posture data and the target posture data;
    若所述姿态差值小于或等于预设角度阈值,则确定所述至少一个目标图像帧的调整有效;If the attitude difference is less than or equal to the preset angle threshold, determining that the adjustment of the at least one target image frame is valid;
    若所述姿态差值大于预设角度阈值,则确定所述至少一个目标图像帧的调整无效。If the attitude difference is greater than the preset angle threshold, it is determined that the adjustment of the at least one target image frame is invalid.
  26. 根据权利要求22所述的设备,其特征在于,所述姿态数据包括角加速度和/或角速度。The device according to claim 22, wherein the posture data includes angular acceleration and/or angular velocity.
  27. 根据权利要求15所述的设备,其特征在于,所述目标图像帧包括第一预设数量的图像帧,所述姿态数据包括第二预设数量的姿态数据,所述第二预设数量为所述第一预设数量的两倍以上。The device according to claim 15, wherein the target image frame includes a first preset number of image frames, the posture data includes a second preset number of posture data, and the second preset number is More than twice the first preset number.
  28. 根据权利要求27所述的设备,其特征在于,The device of claim 27, wherein:
    当所述目标图像帧超过第一预设数量时,丢弃所述目标图像帧中的在先数据;When the target image frame exceeds the first preset number, discard the previous data in the target image frame;
    当所述姿态数据超过第二预设数量时,丢弃所述姿态数据中的在先数据。When the posture data exceeds the second preset number, the previous data in the posture data is discarded.
  29. 根据权利要求15或16所述的设备,其特征在于,所述第一视频存储于指定深度的第一先入先出存储器。The device according to claim 15 or 16, wherein the first video is stored in a first first-in first-out memory of a specified depth.
  30. 根据权利要求18或19所述的设备,其特征在于,所述第一姿态数据为一个或多个,所述第二姿态数据为一个或多个,所述第一姿态数据和所述第二姿态数据存储于第二先入先出存储器。The device according to claim 18 or 19, wherein the first posture data is one or more, the second posture data is one or more, and the first posture data and the second posture data are The posture data is stored in the second first-in first-out memory.
  31. 根据权利要求30所述的设备,其特征在于,所述第二先入先出存储器的容量为第一先入先出存储器的两倍以上。The device according to claim 30, wherein the capacity of the second first-in first-out memory is more than twice that of the first first-in first-out memory.
  32. 一种可移动平台,其特征在于,包括:A movable platform, characterized in that it comprises:
    机身;body;
    配置在机身上的动力系统,用于为可移动平台提供移动的动力;The power system configured on the fuselage is used to provide mobile power for the movable platform;
    图像处理设备,用于:Image processing equipment for:
    获取第一视频,所述第一视频包括多个第一图像帧;Acquiring a first video, where the first video includes a plurality of first image frames;
    从所述多个第一图像帧中选取至少一个目标图像帧;Selecting at least one target image frame from the plurality of first image frames;
    获取所述第一图像帧在曝光时的姿态数据;Acquiring posture data of the first image frame during exposure;
    根据所述姿态数据调整所述至少一个目标图像帧,获得第二视频。The at least one target image frame is adjusted according to the posture data to obtain a second video.
  33. 根据权利要求32所述的可移动平台,其特征在于,所述图像处理设备从所述多个第一图像帧中选取至少一个目标图像帧时,具体用于:The movable platform according to claim 32, wherein when the image processing device selects at least one target image frame from the plurality of first image frames, it is specifically configured to:
    根据播放频率从所述多个第一图像帧中选取所述至少一个目标图像帧,所述播放频率为所述第二视频与所述第一视频的播放速度比。The at least one target image frame is selected from the plurality of first image frames according to a playing frequency, where the playing frequency is a ratio of the playing speed of the second video to the first video.
  34. 根据权利要求33所述的可移动平台,其特征在于,所述播放频率为可变频率。The movable platform according to claim 33, wherein the playing frequency is a variable frequency.
  35. 根据权利要求32所述的可移动平台,其特征在于,所述图像处理设备获取所述第一图像帧在曝光时的姿态数据时,具体用于:The movable platform according to claim 32, wherein when the image processing device acquires the posture data of the first image frame at the time of exposure, it is specifically used for:
    获取所述第一图像帧在曝光之前所述拍摄装置的第一姿态数据以及所述第一图像帧在曝光之后所述拍摄装置的第二姿态数据。Acquire first posture data of the photographing device before the first image frame is exposed and second posture data of the photographing device after the first image frame is exposed.
  36. 根据权利要求35所述的可移动平台,其特征在于,所述图像处理设 备获取所述第一图像帧在曝光之前所述拍摄装置的第一姿态数据以及所述第一图像帧在曝光之后所述拍摄装置的第二姿态数据时,具体用于:The movable platform according to claim 35, wherein the image processing device acquires the first posture data of the photographing device before the first image frame is exposed and the first image frame after the exposure. When describing the second posture data of the camera, it is specifically used for:
    获取所述拍摄装置拍摄所述第一图像帧时的IMU数据;Acquiring IMU data when the photographing device photographed the first image frame;
    根据所述IMU数据确定所述第一图像帧在曝光之前所述拍摄装置的第一姿态数据以及所述第一图像帧在曝光之后所述拍摄装置的第二姿态数据。Determine the first posture data of the photographing device before the first image frame is exposed and the second posture data of the photographing device after the first image frame is exposed according to the IMU data.
  37. 根据权利要求32所述的可移动平台,其特征在于,所述图像处理设备根据所述姿态数据调整所述至少一个目标图像帧时,具体用于:The movable platform according to claim 32, wherein when the image processing device adjusts the at least one target image frame according to the posture data, it is specifically configured to:
    根据截止频率对所述至少一个目标图像帧的所述姿态数据进行过滤,得到目标姿态数据。Filter the posture data of the at least one target image frame according to the cutoff frequency to obtain target posture data.
  38. 根据权利要求37所述的可移动平台,其特征在于,所述截止频率小于1Hz。The movable platform of claim 37, wherein the cut-off frequency is less than 1 Hz.
  39. 根据权利要求37所述的可移动平台,其特征在于,所述图像处理设备根据所述姿态数据调整所述至少一个目标图像帧时,具体用于:The movable platform according to claim 37, wherein when the image processing device adjusts the at least one target image frame according to the posture data, it is specifically configured to:
    对所述至少一个目标图像帧的所述姿态数据进行积分处理,得到估计姿态数据。Performing integration processing on the posture data of the at least one target image frame to obtain estimated posture data.
  40. 根据权利要求39所述的可移动平台,其特征在于,所述图像处理设备根据所述姿态数据调整所述至少一个目标图像帧时,具体用于:The movable platform according to claim 39, wherein when the image processing device adjusts the at least one target image frame according to the posture data, it is specifically configured to:
    根据所述估计姿态数据和所述目标姿态数据,确定所述至少一个目标图像帧的调整是否有效。According to the estimated posture data and the target posture data, it is determined whether the adjustment of the at least one target image frame is effective.
  41. 根据权利要求40所述的可移动平台,其特征在于,所述图像处理设备根据所述估计姿态数据和所述目标姿态数据,确定所述至少一个目标图像帧的调整是否有效时,具体用于:The mobile platform according to claim 40, wherein the image processing device determines whether the adjustment of the at least one target image frame is effective according to the estimated posture data and the target posture data, which is specifically used for :
    根据所述估计姿态数据和所述目标姿态数据的差值,确定所述至少一个目标图像帧的调整是否有效;Determining whether the adjustment of the at least one target image frame is effective according to the difference between the estimated posture data and the target posture data;
    若所述差值超出范围,则丢弃所述差值超出范围的所述估计姿态数据和所 述目标姿态数据对应的目标图像帧。If the difference value is out of the range, discard the estimated posture data and the target image frame corresponding to the target posture data whose difference value is out of the range.
  42. 根据权利要求41所述的可移动平台,其特征在于,所述图像处理设备根据所述估计姿态数据和所述目标姿态数据的差值,确定所述至少一个目标图像帧的调整是否有效时,具体用于:The mobile platform according to claim 41, wherein the image processing device determines whether the adjustment of the at least one target image frame is effective according to the difference between the estimated posture data and the target posture data, Specifically used for:
    获取所述估计姿态数据与所述目标姿态数据的姿态差值;Acquiring the posture difference between the estimated posture data and the target posture data;
    若所述姿态差值小于或等于预设角度阈值,则确定所述至少一个目标图像帧的调整有效;If the attitude difference is less than or equal to the preset angle threshold, determining that the adjustment of the at least one target image frame is valid;
    若所述姿态差值大于预设角度阈值,则确定所述至少一个目标图像帧的调整无效。If the attitude difference is greater than the preset angle threshold, it is determined that the adjustment of the at least one target image frame is invalid.
  43. 根据权利要求39所述的可移动平台,其特征在于,所述姿态数据包括角加速度和/或角速度。The movable platform according to claim 39, wherein the posture data includes angular acceleration and/or angular velocity.
  44. 根据权利要求32所述的可移动平台,其特征在于,所述目标图像帧包括第一预设数量的图像帧,所述姿态数据包括第二预设数量的姿态数据,所述第二预设数量为所述第一预设数量的两倍以上。The movable platform according to claim 32, wherein the target image frame includes a first preset number of image frames, the posture data includes a second preset number of posture data, and the second preset The number is more than twice the first preset number.
  45. 根据权利要求40所述的可移动平台,其特征在于,The movable platform of claim 40, wherein:
    当所述目标图像帧超过第一预设数量时,丢弃所述目标图像帧中的在先数据;When the target image frame exceeds the first preset number, discard the previous data in the target image frame;
    当所述姿态数据超过第二预设数量时,丢弃所述姿态数据中的在先数据。When the posture data exceeds the second preset number, the previous data in the posture data is discarded.
  46. 根据权利要求32或33所述的可移动平台,其特征在于,所述第一视频存储于指定深度的第一先入先出存储器。The movable platform according to claim 32 or 33, wherein the first video is stored in a first-in-first-out memory of a specified depth.
  47. 根据权利要求35或36所述的可移动平台,其特征在于,所述第一姿态数据为一个或多个,所述第二姿态数据为一个或多个,所述第一姿态数据和所述第二姿态数据存储于第二先入先出存储器。The mobile platform according to claim 35 or 36, wherein the first posture data is one or more, the second posture data is one or more, the first posture data and the The second posture data is stored in the second first-in first-out memory.
  48. 一种成像装置,其特征在于,包括:An imaging device, characterized in that it comprises:
    第一获取单元,用于获取第一视频,所述第一视频包括多个第一图像帧;The first acquiring unit is configured to acquire a first video, where the first video includes a plurality of first image frames;
    选取单元,用于从所述多个第一图像帧中选取至少一个目标图像帧;A selecting unit, configured to select at least one target image frame from the plurality of first image frames;
    第二获取单元,用于获取所述第一图像帧在曝光时的姿态数据;The second acquiring unit is configured to acquire the posture data of the first image frame during exposure;
    调整单元,用于根据所述姿态数据调整所述至少一个目标图像帧,获得第二视频。The adjusting unit is configured to adjust the at least one target image frame according to the posture data to obtain a second video.
  49. 根据权利要求48所述的装置,其特征在于,所述选取单元从所述多个第一图像帧中选取至少一个目标图像帧时,具体用于:The device according to claim 48, wherein when the selecting unit selects at least one target image frame from the plurality of first image frames, it is specifically configured to:
    根据播放频率从所述多个第一图像帧中选取所述至少一个目标图像帧,所述播放频率为所述第二视频与所述第一视频的播放速度比。The at least one target image frame is selected from the plurality of first image frames according to a playing frequency, where the playing frequency is a ratio of the playing speed of the second video to the first video.
  50. 根据权利要求49所述的装置,其特征在于,所述播放频率为可变频率。The device of claim 49, wherein the playing frequency is a variable frequency.
  51. 根据权利要求48所述的装置,其特征在于,所述第二获取单元获取所述第一图像帧在曝光时的姿态数据时,具体用于:The device according to claim 48, wherein when the second acquiring unit acquires the posture data of the first image frame during exposure, it is specifically configured to:
    获取所述第一图像帧在曝光之前所述拍摄装置的第一姿态数据以及所述第一图像帧在曝光之后所述拍摄装置的第二姿态数据。Acquire first posture data of the photographing device before the first image frame is exposed and second posture data of the photographing device after the first image frame is exposed.
  52. 根据权利要求51所述的装置,其特征在于,所述第二获取单元获取所述第一图像帧在曝光之前所述拍摄装置的第一姿态数据以及所述第一图像帧在曝光之后所述拍摄装置的第二姿态数据时,具体用于:The device according to claim 51, wherein the second acquiring unit acquires the first posture data of the photographing device before the first image frame is exposed, and the first image frame is When the second posture data of the photographing device is specifically used for:
    获取所述拍摄装置拍摄所述第一图像帧时的IMU数据;Acquiring IMU data when the photographing device photographed the first image frame;
    根据所述IMU数据确定所述第一图像帧在曝光之前所述拍摄装置的第一姿态数据以及所述第一图像帧在曝光之后所述拍摄装置的第二姿态数据。Determine the first posture data of the photographing device before the first image frame is exposed and the second posture data of the photographing device after the first image frame is exposed according to the IMU data.
  53. 根据权利要求48所述的装置,其特征在于,所述调整单元根据所述姿态数据调整所述至少一个目标图像帧时,具体用于:The device according to claim 48, wherein when the adjustment unit adjusts the at least one target image frame according to the posture data, it is specifically configured to:
    根据截止频率对所述至少一个目标图像帧的所述姿态数据进行过滤,得 到目标姿态数据。Filter the posture data of the at least one target image frame according to the cutoff frequency to obtain target posture data.
  54. 根据权利要求53所述的装置,其特征在于,所述截止频率小于1Hz。The device of claim 53, wherein the cut-off frequency is less than 1 Hz.
  55. 根据权利要求53所述的装置,其特征在于,所述调整单元根据所述姿态数据调整所述至少一个目标图像帧时,具体用于:The device according to claim 53, wherein when the adjustment unit adjusts the at least one target image frame according to the posture data, it is specifically configured to:
    对所述至少一个目标图像帧的所述姿态数据进行积分处理,得到估计姿态数据。Performing integration processing on the posture data of the at least one target image frame to obtain estimated posture data.
  56. 根据权利要求55所述的装置,其特征在于,所述调整单元根据所述姿态数据调整所述至少一个目标图像帧时,具体用于:The device according to claim 55, wherein when the adjustment unit adjusts the at least one target image frame according to the posture data, it is specifically configured to:
    根据所述估计姿态数据和所述目标姿态数据,确定所述至少一个目标图像帧的调整是否有效。According to the estimated posture data and the target posture data, it is determined whether the adjustment of the at least one target image frame is effective.
  57. 根据权利要求56所述的装置,其特征在于,所述调整单元根据所述估计姿态数据和所述目标姿态数据,确定所述至少一个目标图像帧的调整是否有效时,具体用于:The device according to claim 56, wherein when the adjustment unit determines whether the adjustment of the at least one target image frame is effective according to the estimated pose data and the target pose data, it is specifically configured to:
    根据所述估计姿态数据和所述目标姿态数据的差值,确定所述至少一个目标图像帧的调整是否有效;Determining whether the adjustment of the at least one target image frame is effective according to the difference between the estimated posture data and the target posture data;
    若所述差值超出范围,则丢弃所述差值超出范围的所述估计姿态数据和所述目标姿态数据对应的目标图像帧。If the difference value is out of the range, discarding the estimated posture data and the target image frame corresponding to the target posture data whose difference value is out of the range.
  58. 根据权利要求57所述的装置,其特征在于,所述调整单元根据所述估计姿态数据和所述目标姿态数据的差值,确定所述至少一个目标图像帧的调整是否有效时,具体用于:The device according to claim 57, wherein the adjustment unit is specifically configured to determine whether the adjustment of the at least one target image frame is effective according to the difference between the estimated posture data and the target posture data. :
    获取所述估计姿态数据与所述目标姿态数据的姿态差值;Acquiring the posture difference between the estimated posture data and the target posture data;
    若所述姿态差值小于或等于预设角度阈值,则确定所述至少一个目标图像帧的调整有效;If the attitude difference is less than or equal to the preset angle threshold, determining that the adjustment of the at least one target image frame is valid;
    若所述姿态差值大于预设角度阈值,则确定所述至少一个目标图像帧的调整无效。If the attitude difference is greater than the preset angle threshold, it is determined that the adjustment of the at least one target image frame is invalid.
  59. 根据权利要求55所述的装置,其特征在于,所述姿态数据包括角加速度和/或角速度。The device according to claim 55, wherein the posture data includes angular acceleration and/or angular velocity.
  60. 根据权利要求48所述的装置,其特征在于,所述目标图像帧包括第一预设数量的图像帧,所述姿态数据包括第二预设数量的姿态数据,所述第二预设数量为所述第一预设数量的两倍以上。The device according to claim 48, wherein the target image frame comprises a first preset number of image frames, the posture data comprises a second preset number of posture data, and the second preset number is More than twice the first preset number.
  61. 根据权利要求60所述的装置,其特征在于,The device of claim 60, wherein:
    当所述目标图像帧超过第一预设数量时,丢弃所述目标图像帧中的在先数据;When the target image frame exceeds the first preset number, discard the previous data in the target image frame;
    当所述姿态数据超过第二预设数量时,丢弃所述姿态数据中的在先数据。When the posture data exceeds the second preset number, the previous data in the posture data is discarded.
  62. 根据权利要求48或49所述的装置,其特征在于,所述第一视频存储于指定深度的第一先入先出存储器。The device according to claim 48 or 49, wherein the first video is stored in a first first-in first-out memory of a specified depth.
  63. 根据权利要求51或52所述的装置,其特征在于,所述第一姿态数据为一个或多个,所述第二姿态数据为一个或多个,所述第一姿态数据和所述第二姿态数据存储于第二先入先出存储器。The device according to claim 51 or 52, wherein the first posture data is one or more, the second posture data is one or more, and the first posture data and the second posture data are The posture data is stored in the second first-in first-out memory.
  64. 根据权利要求63所述的装置,其特征在于,所述第二先入先出存储器的容量为第一先入先出存储器的两倍以上。The device according to claim 63, wherein the capacity of the second first-in first-out memory is more than twice that of the first first-in first-out memory.
  65. 一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,其特征在于:所述计算机程序被处理器执行时实现如权利要求1至14中任一项所述方法的步骤。A computer-readable storage medium in which a computer program is stored, characterized in that: when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 14 are implemented .
PCT/CN2020/070487 2020-01-06 2020-01-06 Method and device for image processing, movable platform, imaging apparatus and storage medium WO2021138768A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/070487 WO2021138768A1 (en) 2020-01-06 2020-01-06 Method and device for image processing, movable platform, imaging apparatus and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/070487 WO2021138768A1 (en) 2020-01-06 2020-01-06 Method and device for image processing, movable platform, imaging apparatus and storage medium

Publications (1)

Publication Number Publication Date
WO2021138768A1 true WO2021138768A1 (en) 2021-07-15

Family

ID=76787697

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/070487 WO2021138768A1 (en) 2020-01-06 2020-01-06 Method and device for image processing, movable platform, imaging apparatus and storage medium

Country Status (1)

Country Link
WO (1) WO2021138768A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114798505A (en) * 2022-04-21 2022-07-29 无锡比益特科技有限公司 Cargo sorting device capable of achieving self-adaptive adjustment of cargo pose

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3007429A1 (en) * 2014-10-10 2016-04-13 Parrot Mobile apparatus, in particular a rotary-wing drone, provided with a video camera supplying image sequences with dynamic correction of the wobble effect
CN107995439A (en) * 2016-10-27 2018-05-04 中兴通讯股份有限公司 A kind of video capture, broadcasting, processing method, photo terminal
CN108600622A (en) * 2018-04-12 2018-09-28 联想(北京)有限公司 A kind of method and device of video stabilization
CN110235431A (en) * 2019-04-30 2019-09-13 深圳市大疆创新科技有限公司 Electronic stability augmentation method, image capture device, moveable platform
CN110610465A (en) * 2019-08-26 2019-12-24 Oppo广东移动通信有限公司 Image correction method and device, electronic equipment and computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3007429A1 (en) * 2014-10-10 2016-04-13 Parrot Mobile apparatus, in particular a rotary-wing drone, provided with a video camera supplying image sequences with dynamic correction of the wobble effect
CN107995439A (en) * 2016-10-27 2018-05-04 中兴通讯股份有限公司 A kind of video capture, broadcasting, processing method, photo terminal
CN108600622A (en) * 2018-04-12 2018-09-28 联想(北京)有限公司 A kind of method and device of video stabilization
CN110235431A (en) * 2019-04-30 2019-09-13 深圳市大疆创新科技有限公司 Electronic stability augmentation method, image capture device, moveable platform
CN110610465A (en) * 2019-08-26 2019-12-24 Oppo广东移动通信有限公司 Image correction method and device, electronic equipment and computer readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114798505A (en) * 2022-04-21 2022-07-29 无锡比益特科技有限公司 Cargo sorting device capable of achieving self-adaptive adjustment of cargo pose
CN114798505B (en) * 2022-04-21 2024-02-20 无锡比益特科技有限公司 Cargo sorting device capable of realizing cargo pose self-adaptive adjustment

Similar Documents

Publication Publication Date Title
KR102527811B1 (en) Apparatus and method for generating time lapse image
CN108495142B (en) Video coding method and device
CN112740652B (en) System and method for stabilizing video
CN106507094B (en) Correct the method and device of panoramic video display view angle
US10547784B2 (en) Image stabilization
US9762799B2 (en) Received video stabilization
CN104065876A (en) Image processing device and image processing method
CN110235431B (en) Electronic stability augmentation method, image acquisition equipment and movable platform
CN107615744B (en) Image shooting parameter determining method and camera device
CN110678898A (en) Video anti-shake method and mobile device
US11019262B2 (en) Omnidirectional moving image processing apparatus, system, method, and recording medium
US20160150158A1 (en) Photographing apparatus and method for controlling thereof
JP2008172310A (en) Electronic hand blurring correction method, device and program, and imaging apparatus
CN110351508B (en) Anti-shake processing method and device based on video recording mode and electronic equipment
WO2021138768A1 (en) Method and device for image processing, movable platform, imaging apparatus and storage medium
TW202305739A (en) Temporal filtering restart for improved scene integrity
US11128814B2 (en) Image processing apparatus, image capturing apparatus, video reproducing system, method and program
CN107979729B (en) Method and equipment for displaying preview image
WO2014188647A1 (en) Image adjustment device, image adjustment method, image adjustment program, and image capture device
JP2020096349A (en) Image processing device, imaging device, moving image reproduction system, method, and program
CN113808173A (en) Image correction method, image correction device, electronic device and storage medium
JP7206797B2 (en) Imaging device, information processing device, correction value calculation method and program
JP2007300269A (en) Exposure correcting device, photographing device, image restoring device, exposure value setting device, exposure correction value calculation method and control program
CN112204956B (en) Shooting device, control method thereof and movable platform
WO2023185096A1 (en) Image blurriness determination method and device related thereto

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

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

Country of ref document: EP

Kind code of ref document: A1