WO2022094784A1 - Image processing method and apparatus, and movable platform - Google Patents

Image processing method and apparatus, and movable platform Download PDF

Info

Publication number
WO2022094784A1
WO2022094784A1 PCT/CN2020/126421 CN2020126421W WO2022094784A1 WO 2022094784 A1 WO2022094784 A1 WO 2022094784A1 CN 2020126421 W CN2020126421 W CN 2020126421W WO 2022094784 A1 WO2022094784 A1 WO 2022094784A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
frames
target
memory
movable platform
Prior art date
Application number
PCT/CN2020/126421
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/126421 priority Critical patent/WO2022094784A1/en
Publication of WO2022094784A1 publication Critical patent/WO2022094784A1/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N25/00Circuitry of solid-state image sensors [SSIS]; Control thereof
    • H04N25/50Control of the SSIS exposure
    • H04N25/57Control of the dynamic range
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/265Mixing

Definitions

  • the present application relates to the technical field of image processing, and in particular, to an image processing method, device and movable platform.
  • HDR High Dynamic Range
  • the HDR function of the image acquisition device acquires multiple frames of images by exposing the shooting scene to different degrees, and then uses the multiple frames of images to synthesize a frame of HDR image. For example, the scene is exposed with high exposure and low exposure to obtain two frames of images, and then two frames of images are used to synthesize one frame of HDR image.
  • the dynamic range of the collected image is improved in this way, only one frame of image can be obtained by collecting multiple frames of images, which greatly reduces the frame rate of the image.
  • the present application provides an image processing method, device and movable platform.
  • an image processing method comprising:
  • the first image currently acquired by the image acquisition device is acquired, where N is an integer greater than or equal to 2;
  • the first image is fused with N-1 frames of second images collected before the first image to obtain a first target image, and the exposures of the N-1 frames of second images are different and different. exposure to the first image;
  • the first image and the third image are fused to obtain a second target image
  • the N-1 frames of the third image The exposures are different and different from the exposure of the first image.
  • an image processing apparatus includes a processor, a memory, and a computer program stored in the memory for execution by the processor, when the processor executes the computer program , implement the following steps:
  • the first image currently acquired by the image acquisition device is acquired, where N is an integer greater than or equal to 2;
  • the first image is fused with N-1 frames of second images collected before the first image to obtain a first target image, and the exposures of the N-1 frames of second images are different and different. exposure to the first image;
  • the first image and the third image are fused to obtain a second target image
  • the N-1 frames of the third image The exposures are different and different from the exposure of the first image.
  • a movable platform includes an image acquisition device and an image processing chip, and the image processing chip includes a processor and a memory, and storage in the memory is available for the processing.
  • a computer program executed by a processor when the processor executes the computer program, the following steps are implemented:
  • a first image currently acquired by the image acquisition device is acquired, where N is an integer greater than or equal to 2;
  • the first image is fused with N-1 frames of second images collected before the first image to obtain a first target image, and the exposures of the N-1 frames of second images are different and different. exposure to the first image;
  • the first image and the third image are fused to obtain a second target image
  • the N-1 frames of the third image The exposures are different and different from the exposure of the first image.
  • a computer-readable storage medium on which computer program instructions are stored.
  • the instructions are executed by a processor, the image processing method mentioned in the first aspect can be implemented.
  • the image acquisition device can be made to perform image acquisition cyclically according to N different exposures, and for a frame of the first image currently collected by the image acquisition device, the first image can be compared with the first image acquired before the first image.
  • the N-1 frame exposures of the N-1 frames are different and different from the exposure of the first image, and the second image is fused to obtain the first target image with high dynamic range.
  • the exposure amount of the N-1 frames is different, and the third image is fused with the exposure amount different from the first image to obtain the second target image with high dynamic range.
  • FIG. 1 is a schematic diagram of synthesizing an HDR image in the related art.
  • FIG. 2 is a flowchart of an image processing method according to an embodiment of the present application.
  • FIG. 3( a ) is a schematic diagram of synthesizing an HDR image according to an embodiment of the present application.
  • FIG. 3(b) is a schematic diagram of synthesizing an HDR image according to an embodiment of the present application.
  • FIG. 4( a ) is a schematic diagram of an application scenario of an embodiment of the present application.
  • Figure 4(b) is a schematic diagram of the internal structure of an unmanned aerial vehicle according to an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a logical structure of an image processing apparatus according to an embodiment of the present application.
  • the image collected by the image acquisition device may be partially overexposed or too dark, and the image details cannot be well displayed.
  • many image capture devices are equipped with the HDR function.
  • the image capture device will capture images of the shooting scene with different exposures to obtain multiple frames of images, and then use the HDR function. Multiple frames of images generate one frame of HDR image.
  • Exposure is the amount of light reaching the photosensitive element when the image acquisition device captures an image.
  • the brightness of the image captured by the image acquisition device is related to the exposure. The greater the exposure, the greater the brightness of the captured image.
  • the exposure is related to the exposure parameters (exposure duration, aperture size, and ISO) of the image acquisition device and ambient brightness. By adjusting the exposure parameters, the exposure can be controlled, thereby adjusting the brightness of the image.
  • the image acquisition device can be controlled to acquire images with different exposures, for example, a high-exposure image and a low-exposure image are acquired, and then two frames of images are used to synthesize an HDR image.
  • FIG. 1 it is a schematic diagram of obtaining one frame of HDR image by using one frame of high-exposure image and one frame of low-exposure image. It can be seen from the figure that after 4 frames of images are collected, only 2 frames of HDR images can be synthesized.
  • this method to generate HDR images assuming that the original 1s image acquisition device can collect 60 frames of images, now only 30 frames of images can be obtained in 1s. The frame rate is reduced from 60 frames/s to 30 frames/s, and the frame rate of the image will be reduced by half.
  • the present application provides an image processing method, which can allow an image acquisition device to cyclically perform image acquisition according to N different exposures, and for each frame of image collected by the image acquisition device, it can be reused, and the The HDR image is obtained by merging with the image collected before and with the image collected later, and the frame rate of the image can be greatly improved by reusing each frame of the image to synthesize the HDR image.
  • the image processing method of the present application can be performed by an image acquisition device, wherein the image acquisition device can be any device with an image acquisition function, such as a camera, a mobile phone, a tablet, a PTZ with a camera, and other devices.
  • the image acquisition device can also be executed by a movable platform, such as by a drone on a gimbal or a gimbal. Processing chip execution.
  • the image processing method may also be performed by other devices that are communicatively connected to the image capture device.
  • the image capture device After the image capture device captures an image, it can be sent to a remote server for image processing, or, if the image capture device
  • the device is mounted on the movable platform, and can also be sent to the control terminal of the movable platform for image processing, and then displayed to the user.
  • the user can also set the execution body of the image processing method by himself, which is not limited in this application.
  • a frame of images currently captured by the image capturing device is referred to as a first image
  • an image captured before the first image is referred to as a second image
  • an image captured after the first image is referred to as a third image.
  • the image with larger dynamic range obtained by fusing the first image and the second image is called the first target image
  • the image with larger dynamic range obtained by fusing the first image and the third image is called the second target image.
  • the image processing method includes the following steps:
  • the N-1 frame of the third image After acquiring the N-1 frames of the third image collected after the first image, fuse the first image and the third image to obtain a second target image, the N-1 frame of the third image.
  • the exposure levels of the three images are different and different from the exposure levels of the first image.
  • the image capture device can be cyclically arranged according to N kinds of images. Different exposures are used for image acquisition, N represents the type of exposure, and the exposure can be set to 2, 3, or even more.
  • images can be collected cyclically according to high exposure and low exposure, or images can be collected cyclically according to high exposure, normal exposure, and low exposure, where high exposure, normal exposure, and low exposure represent three
  • the relationship of exposure is: high exposure > normal exposure > low exposure.
  • the exposure types can be set according to actual needs. For example, if the dynamic range of the fused image is more refined, the exposure types can be appropriately increased.
  • the image capture device can enter a mode of cyclically capturing images according to N exposures. For each frame of the first image captured by the image capture device at the current moment, the image capture device can The collected N-1 frames of the second images are fused to obtain a frame of the first target image with a larger dynamic range, wherein the exposures of the N-1 frames of the second images are different and different from the exposure of the first image. In this way, it can be ensured that each frame of the first target image is obtained by synthesizing N kinds of images with different exposures, thereby ensuring that each frame of the first target image has a larger dynamic range.
  • the first image and the third image can also be fused to obtain a second target image with a larger dynamic range, wherein, The exposures of the N-1 frames of the third image are also different and different from the exposure of the first image, so as to ensure that each frame of the first target image is synthesized from N images with different exposures, ensuring that each frame is The second target image has a larger dynamic range.
  • the image acquisition device cyclically collects images according to high exposure, normal exposure, and low exposure, and the currently collected image is a low exposure image
  • the second image can be the exposure collected before the first image.
  • the third image can be two frames of images with high exposure and normal exposure, and the third image can be two frames of images with high exposure and normal exposure acquired after the first image.
  • each frame of images includes images with different exposures before or after it. If low exposure is included, each frame of image can be reused and fused with images of different exposures collected before or after, to obtain images with a larger dynamic range. Since each frame of image is reused, the number of final composite HDR images will be greatly increased. Taking two frames of images with different exposures to obtain one frame of HDR image as an example, in the past, one frame of HDR image required the image acquisition device to collect two frames of images, and then synthesized into one frame of HDR image. It is assumed that the image acquisition device collects 60 frames per second. In the end, only 30 frames of HDR images can be output, and the frame rate is 30 frames/s.
  • each frame can be synthesized with the previous frame or the next frame to obtain one frame of HDR image, so that after 60 frames of images are collected, 59 frames of HDR images can be synthesized, that is, the frame The rate is 59 frames/s, which greatly improves the frame rate.
  • the image acquisition device cyclically collects images according to N exposures, for each frame of the first image currently collected, the first N-1 frames adjacent to it or the next N-1 frames adjacent to it
  • the images all include exposure amounts other than the exposure amounts corresponding to the first image among the N exposure amounts. For example, assuming that the image acquisition device cyclically collects images according to three exposures: high exposure, normal exposure, and low exposure, and the current image is a low-exposure image, the first two adjacent frames of images are normal exposures respectively.
  • N-1 frames of second images or N-1 frames of third images may be consecutive N-1 frames of images adjacent to the first image, and the first images are respectively adjacent to N- One frame of image is fused to obtain one frame of HDR image, as shown in Fig.
  • the N-1 frames of the second image or the N-1 frames of the third image may not be adjacent to the first image.
  • the image acquisition device cyclically collects images according to high exposure and low exposure, and the first image currently collected is a low-exposure image. Therefore, the third frame image (also a high-exposure image) before the first image can also be selected. ) and the first image are fused to obtain an HDR image, as shown in FIG. 3(b) , a schematic diagram of HDR image synthesis.
  • the exposure of the image capture device is related to the brightness of the environment and the exposure parameters of the image capture device (exposure duration, aperture size, ISO), the ISO of the image capture device is usually fixed, so when the ambient brightness is determined, it can be passed through Adjust the exposure duration and aperture size to adjust the exposure of the image capture device. Therefore, in some embodiments, N different exposures can be preset, and during the process of image acquisition by the image acquisition device, the exposure duration or aperture size of the image acquisition device can be adjusted in real time according to the brightness of the environment, or the exposure duration can be adjusted at the same time and the aperture size, so that the exposure of the image acquisition device reaches the preset N exposures.
  • the HDR images captured by the image capture device be transmitted to other devices with the lowest possible delay.
  • the user can adjust the flight path of the drone according to the image sent by the drone to the control terminal. If the image transmission delay is large, it may be unfavorable. The user adjusts the flight path of the drone in time to cause an accident.
  • two frames of images are used to synthesize one frame of HDR image, and then transmit.
  • each frame of image in the embodiments of the present application is fused with the previously collected image, in order to reduce the transmission delay of the HDR image, in some embodiments, it is not necessary to wait for the image data of the first image to be completely collected before starting
  • the image acquisition device collects part of the image data of the first image, it can acquire and store part of the collected image data, and store the part of the image data with the pixels corresponding to the part of the image data in the second image.
  • the image data at the position is fused to obtain a part of the image data of the first target image. In this way, HDR image fusion can be performed while collecting image data, and there is no need to wait until the entire image is collected to perform fusion, which reduces the time for synthesizing HDR images, thereby reducing the delay of HDR images.
  • the image capture device may capture and output image data of each frame of image line by line, so part of the image data may be several lines of image data of the first image.
  • the image capture device may The data of each frame of image is collected column by column and output, so part of the image data can be several columns of image data of the first image.
  • the data amount of the partial image can be determined based on the maximum storage bandwidth of the memory of the device executing the image processing method.
  • the image acquisition device when the image acquisition device collects the first 10 lines of image data of the first image, it will combine the first 10 lines of image data with the first image data.
  • the first 10 lines of data of the previous frame image are fused to obtain the data of the first 10 lines of the HDR image, and then the next 10 lines of data are fused with the image data at the corresponding pixel positions of the previous frame image in turn, until the entire image is synthesized. HDR images.
  • the image acquisition device can be mounted on a movable platform, and the movable platform can be various devices such as drones, unmanned vehicles, and PTZs.
  • the movable platform may include an image processing chip, and the image processing method may be performed by an image acquisition device or an image processing chip of the movable platform.
  • the image acquisition device includes an image processing chip, and the image acquisition The images are composited into HDR images and output.
  • the image acquisition device may only be responsible for acquiring images, and then output the acquired images to the image processing chip of the movable platform, so that the image processing chip can synthesize the HDR image.
  • the image processing chip on the movable platform may include a first memory, and the first memory may be a cache memory.
  • the image processing chip can obtain this part of the image data and cache it in the first memory, and then use the cached part of the image data and the previously collected image to perform HDR image synthesis, wherein the data amount of the part of the image data is based on the maximum storage capacity of the first memory. Bandwidth is determined.
  • the movable platform may also include a second memory in which the second image may be stored.
  • the image processing chip on the removable platform may be an ISP chip, and the second memory on the removable platform may be a DDR memory.
  • the first target image or the second target image can be sent to the control terminal of the movable platform
  • the control terminal may be various devices for controlling the movement of the movable platform, such as a remote controller, a mobile phone, flying glasses, etc., so that the control terminal displays the first target image or the second target image to the user. Since each frame of image is reused, the frame rate of the image is greatly improved, and the method of synthesizing HDR images while collecting is adopted, the delay in transmitting the synthesized HDR images to the control terminal is greatly reduced, and the user experience is improved.
  • a video may also be generated by using the first target image or the second target image, and then the video may be stored or output to other devices. Since each frame of image is reused, the frame rate of the image is greatly improved, and the video picture is smoother.
  • an image acquisition device 42 is mounted on the drone 41 , and the image acquisition device 42 collects images or videos during the flight of the drone 41 . Afterwards, it will be sent to the control terminal 43 on the ground, so that the user can view the image or video through the control terminal 43, so as to control the flight trajectory of the drone 41.
  • the image capture device 42 is backlit or facing the sun, and the light is very bright, so the captured image may be too bright or too dark, so that the user cannot see the details of the image clearly.
  • an image acquisition device 42 with an HDR function may be used, and an HDR image is obtained by synthesizing the images collected by the image acquisition device 42, and then sent to the user to improve the dynamic range of the image.
  • the schematic diagram of the internal structure of the drone is shown in FIG. 4( b ).
  • the drone includes an ISP chip 411 and a DDR memory 422 , and the ISP chip 411 includes a cache memory 4111 .
  • the image acquisition device 42 can cyclically perform image acquisition according to two preset exposures to obtain a high-exposure image and a low-exposure image, and then send the acquired image to the ISP of the drone 41 .
  • chip 411 so that the ISP chip 411 can synthesize the HDR image.
  • Each frame of image collected by the image collection device 42 can be stored in the DDR 412 of the unmanned aerial vehicle 41 so as to be fused with the next frame of image.
  • the image acquisition device 42 After the image acquisition device 42 acquires the first frame of image, it can be directly sent to the control terminal 43, or of course, it can be directly stored in the DDR412 of the drone without transmitting.
  • the ISP chip 411 For the second frame image and subsequent images collected by the image capture device 42, the ISP chip 411 all processes according to the following processing logic:
  • the ISP chip 411 can cache the data of the first N lines of the current frame of the image output by the image acquisition device 42 in the cache memory 4111 of the ISP chip 411, and then obtain the data of the first N lines of the previous frame of the image from the DDR 412, and store the current image.
  • the first N lines of data are fused with the first N lines of data of the previous frame of image to obtain the first N data of the HDR image, and the above process is repeated until the HDR synthesis of the entire image is completed.
  • the ISP chip 411 can further perform noise reduction, lens shadow correction, white balance adjustment, sharpening, local enhancement and other processing on the HDR image, and then encode the processed HDR image and transmit it through wireless communication to the control terminal 43.
  • the frame rate of the generated HDR image is greatly improved.
  • the HDR image synthesis operation starts, that is, synthesizing while collecting, rather than waiting for the entire image to be collected and then synthesizing the HDR image. Reduce the delay of image transmission.
  • the present application also provides an image processing apparatus.
  • the apparatus includes a processor 51 , a memory 52 , and a computer program stored in the memory 52 for execution by the processor 51 .
  • the processor 51 executes the computer program, the following steps are implemented:
  • the first image currently acquired by the image acquisition device is acquired, where N is an integer greater than or equal to 2;
  • the first image is fused with N-1 frames of second images collected before the first image to obtain a first target image, and the exposures of the N-1 frames of second images are different and different. exposure to the first image;
  • the first image and the third image are fused to obtain a second target image
  • the N-1 frames of the third image The exposures are different and different from the exposure of the first image.
  • the N-1 frames of second images or the N-1 frames of third images are adjacent to the first image.
  • the N exposure amounts are obtained by adjusting the exposure duration and/or aperture size of the image capture device.
  • the processor when the processor is configured to fuse the first image with N-1 frames of second images collected before the first image to obtain the first target image, the processor is specifically configured to:
  • the image acquisition device After the image acquisition device acquires part of the image data of the first image, acquire and store the part of the image data;
  • the stored part of the image data is fused with the image data at the pixel positions corresponding to the part of the image data in the second image to obtain image data of the target image.
  • the partial image data includes several lines of image data of the first image.
  • the image acquisition device is mounted on a movable platform, the movable platform includes an image processing chip, and the image processing device is the image acquisition device; or
  • the image processing device is the image processing chip.
  • the image processing device is the image processing chip, the image processing chip includes a first memory, and the data amount of the partial image data is determined based on a maximum storage bandwidth of the first memory.
  • the movable platform includes a second memory in which the second image is stored.
  • the image processing chip includes an ISP chip
  • the second memory includes DDR.
  • the apparatus is further configured to:
  • the apparatus is further configured to:
  • a video is generated and output using the first target image or the second target image.
  • the present application also provides a movable platform, the movable platform includes an image acquisition device and an image processing chip, and the image processing chip includes a processor and a memory, and the memory is stored in the memory for the processor.
  • Executed computer program when the processor executes the computer program, the following steps are implemented:
  • a first image currently acquired by the image acquisition device is acquired, where N is an integer greater than or equal to 2;
  • the first image is fused with N-1 frames of second images collected before the first image to obtain a first target image, and the exposures of the N-1 frames of second images are different and different. exposure to the first image;
  • the first image and the third image are fused to obtain a second target image
  • the N-1 frames of the third image The exposures are different and different from the exposure of the first image.
  • the image processing chip includes a first memory
  • the processor is configured to acquire and store the partial image data in the first image after the image acquisition device collects the partial image data of the first image.
  • the first memory which fuses the part of the image data stored in the first memory with the image data at the pixel positions corresponding to the part of the image data in the second image to obtain image data of the target image.
  • the data amount of the partial image data is determined based on a maximum storage bandwidth of the first memory.
  • the movable platform further includes a second memory in which the second image is stored.
  • the processor is further configured to send the first target image or the second target image to a control terminal of the movable platform, so that the control terminal sends the first target image or the second target image to the control terminal of the movable platform.
  • the second target image is displayed to the user, wherein the control terminal is used to control the movement of the movable platform.
  • an embodiment of the present specification further provides a computer storage medium, where a program is stored in the storage medium, and when the program is executed by a processor, the image processing method in any of the foregoing embodiments is implemented.
  • Embodiments of the present specification may take the form of a computer program product embodied on one or more storage media having program code embodied therein, including but not limited to disk storage, CD-ROM, optical storage, and the like.
  • Computer-usable storage media includes permanent and non-permanent, removable and non-removable media, and storage of information can be accomplished by any method or technology.
  • Information may be computer readable instructions, data structures, modules of programs, or other data.
  • Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), Flash Memory or other memory technology, Compact Disc Read Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, Magnetic tape cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
  • PRAM phase-change memory
  • SRAM static random access memory
  • DRAM dynamic random access memory
  • RAM random access memory
  • ROM read only memory
  • EEPROM Electrically Erasable Programmable Read Only Memory
  • Flash Memory or other memory technology
  • CD-ROM Compact Disc Read Only Memory
  • CD-ROM Compact Disc Read Only Memory
  • DVD Digital Versatile Disc
  • Magnetic tape cassettes magnetic tape magnetic disk storage or other magnetic storage devices or any other non-

Abstract

An image processing method and apparatus, and a movable platform. The method comprises: an image acquisition device cyclically acquiring images according to N different amounts of exposure; for a frame of first image currently acquired by the image acquisition device, fusing the first image and an (N-1) frames of second images acquired before the first image, so as to obtain a first high-dynamic-range (HDR) target image, the (N-1) frames of second images having different amounts of exposure from one another and having a different amount of exposure from the first image; and fusing the first image and (N-1) frames of third images acquired after the first image, so as to obtain a second HDR target image, the (N-1) frames of third images having different amounts of exposure from one another and having a different amount of exposure from the first image. By means of the repetitive use of each frame of image acquired by the image acquisition device and the fusion of each frame of image and images acquired before and after same, more HDR images can be obtained by means of synthesis, thereby greatly increasing the frame rate of the acquired HDR images.

Description

图像处理方法、装置及可移动平台Image processing method, device and movable platform 技术领域technical field
本申请涉及图像处理技术领域,具体而言,涉及一种图像处理方法、装置及可移动平台。The present application relates to the technical field of image processing, and in particular, to an image processing method, device and movable platform.
背景技术Background technique
相比于普通图像,HDR(High Dynamic Range)图像具有更高的动态范围,在拍摄场景亮度较大或较小时,图像不会出现过曝或者过暗的现象,可以很好地展现图像的细节,因此,目前一些图像采集设备都配备有HDR功能。但是,目前图像采集设备的HDR功能都是通过对拍摄场景进行不同程度的曝光采集得到多帧图像,然后再用这多帧图像合成一帧HDR图像。比如分别采用高曝光量和低曝光量对场景进行曝光得到两帧图像,再用这两帧图像合成一帧HDR图像。采用这种方式虽然提高了采集的图像的动态范围,但是采集多帧图像才能得到一帧图像,大大降低了图像的帧率。Compared with ordinary images, HDR (High Dynamic Range) images have a higher dynamic range. When the brightness of the shooting scene is large or small, the image will not be overexposed or too dark, and the details of the image can be well displayed. , Therefore, some image acquisition devices are currently equipped with HDR function. However, at present, the HDR function of the image acquisition device acquires multiple frames of images by exposing the shooting scene to different degrees, and then uses the multiple frames of images to synthesize a frame of HDR image. For example, the scene is exposed with high exposure and low exposure to obtain two frames of images, and then two frames of images are used to synthesize one frame of HDR image. Although the dynamic range of the collected image is improved in this way, only one frame of image can be obtained by collecting multiple frames of images, which greatly reduces the frame rate of the image.
发明内容SUMMARY OF THE INVENTION
有鉴于此,本申请提供一种图像处理方法、装置及可移动平台。In view of this, the present application provides an image processing method, device and movable platform.
根据本申请的第一方面,提供一种图像处理方法,所述方法包括:According to a first aspect of the present application, an image processing method is provided, the method comprising:
在图像采集设备循环地按照N种曝光量进行图像采集的过程中,获取所述图像采集设备当前采集的第一图像,其中,N为大于或等于2的整数;During the process that the image acquisition device cyclically performs image acquisition according to N exposures, the first image currently acquired by the image acquisition device is acquired, where N is an integer greater than or equal to 2;
将所述第一图像与在所述第一图像之前采集的N-1帧第二图像进行融合,得到第一目标图像,所述N-1帧第二图像的曝光量各不相同,且不同于所述第一图像的曝光量;The first image is fused with N-1 frames of second images collected before the first image to obtain a first target image, and the exposures of the N-1 frames of second images are different and different. exposure to the first image;
在获取到所述第一图像之后采集的N-1帧第三图像后,将所述第一图像与所述第三图像进行融合,得到第二目标图像,所述N-1帧第三图像的 曝光量各不相同,且不同于所述第一图像的曝光量。After N-1 frames of third images collected after the first image are acquired, the first image and the third image are fused to obtain a second target image, the N-1 frames of the third image The exposures are different and different from the exposure of the first image.
根据本申请的第二方面,提供一种图像处理装置,所述装置包括处理器、存储器、存储于所述存储器可供所述处理器执行的计算机程序,所述处理器执行所述计算机程序时,实现以下步骤:According to a second aspect of the present application, an image processing apparatus is provided, the apparatus includes a processor, a memory, and a computer program stored in the memory for execution by the processor, when the processor executes the computer program , implement the following steps:
在图像采集设备循环地按照N种曝光量进行图像采集的过程中,获取所述图像采集设备当前采集的第一图像,其中,N为大于或等于2的整数;During the process that the image acquisition device cyclically performs image acquisition according to N exposures, the first image currently acquired by the image acquisition device is acquired, where N is an integer greater than or equal to 2;
将所述第一图像与在所述第一图像之前采集的N-1帧第二图像进行融合,得到第一目标图像,所述N-1帧第二图像的曝光量各不相同,且不同于所述第一图像的曝光量;The first image is fused with N-1 frames of second images collected before the first image to obtain a first target image, and the exposures of the N-1 frames of second images are different and different. exposure to the first image;
在获取到所述第一图像之后采集的N-1帧第三图像后,将所述第一图像与所述第三图像进行融合,得到第二目标图像,所述N-1帧第三图像的曝光量各不相同,且不同于所述第一图像的曝光量。After N-1 frames of third images collected after the first image are acquired, the first image and the third image are fused to obtain a second target image, the N-1 frames of the third image The exposures are different and different from the exposure of the first image.
根据本申请的第三方面,提供一种可移动平台,所述可移动平台包括图像采集装置和图像处理芯片,所述图像处理芯片包括处理器、存储器、存储于所述存储器可供所述处理器执行的计算机程序,所述处理器执行所述计算机程序时,实现以下步骤:According to a third aspect of the present application, a movable platform is provided, the movable platform includes an image acquisition device and an image processing chip, and the image processing chip includes a processor and a memory, and storage in the memory is available for the processing. A computer program executed by a processor, when the processor executes the computer program, the following steps are implemented:
在所述图像采集设备循环地按照N种曝光量进行图像采集的过程中,获取所述图像采集设备当前采集的第一图像,其中,N为大于或等于2的整数;During the process that the image acquisition device cyclically performs image acquisition according to N exposures, a first image currently acquired by the image acquisition device is acquired, where N is an integer greater than or equal to 2;
将所述第一图像与在所述第一图像之前采集的N-1帧第二图像进行融合,得到第一目标图像,所述N-1帧第二图像的曝光量各不相同,且不同于所述第一图像的曝光量;The first image is fused with N-1 frames of second images collected before the first image to obtain a first target image, and the exposures of the N-1 frames of second images are different and different. exposure to the first image;
在获取到所述第一图像之后采集的N-1帧第三图像后,将所述第一图像与所述第三图像进行融合,得到第二目标图像,所述N-1帧第三图像的曝光量各不相同,且不同于所述第一图像的曝光量。After N-1 frames of third images collected after the first image are acquired, the first image and the third image are fused to obtain a second target image, the N-1 frames of the third image The exposures are different and different from the exposure of the first image.
根据本申请的第四方面,提供一种计算机可读存储介质,其上存储有计算机程序指令,当该指令被处理器执行时,可实现上述第一方面提及的图像处理方法。According to a fourth aspect of the present application, there is provided a computer-readable storage medium on which computer program instructions are stored. When the instructions are executed by a processor, the image processing method mentioned in the first aspect can be implemented.
应用本申请提供的方案,可以让图像采集设备循环地按照N种不同的曝光量进行图像采集,针对图像采集设备当前采集的一帧第一图像,可以将第一图像与在第一图像之前采集的N-1帧曝光量各不相同,且不同于第一图像的曝光量的第二图像融合,得到高动态范围的第一目标图像,同时,可以将第一图像与在第一图像之后采集的N-1帧曝光量各不相同,且不同于第一图像的曝光量的第三图像融合,得到高动态范围的第二目标图像。通过重复利用图像采集设备采集的每一帧图像,将其分别与之前和之后采集的不同曝光量的图像融合,可以合成得到更多的HDR图像,大大提高HDR图像的帧率。By applying the solution provided by the present application, the image acquisition device can be made to perform image acquisition cyclically according to N different exposures, and for a frame of the first image currently collected by the image acquisition device, the first image can be compared with the first image acquired before the first image. The N-1 frame exposures of the N-1 frames are different and different from the exposure of the first image, and the second image is fused to obtain the first target image with high dynamic range. The exposure amount of the N-1 frames is different, and the third image is fused with the exposure amount different from the first image to obtain the second target image with high dynamic range. By reusing each frame of image collected by the image acquisition device and fusing it with images of different exposures collected before and after, more HDR images can be synthesized and the frame rate of HDR images can be greatly improved.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the drawings that are used in the description of 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, other drawings can also be obtained from these drawings without creative labor.
图1是相关技术中合成HDR图像的示意图。FIG. 1 is a schematic diagram of synthesizing an HDR image in the related art.
图2是本申请一个实施例一种图像处理方法的流程图。FIG. 2 is a flowchart of an image processing method according to an embodiment of the present application.
图3(a)是本申请一个实施例的合成HDR图像的示意图。FIG. 3( a ) is a schematic diagram of synthesizing an HDR image according to an embodiment of the present application.
图3(b)是本申请一个实施例的合成HDR图像的示意图。FIG. 3(b) is a schematic diagram of synthesizing an HDR image according to an embodiment of the present application.
图4(a)是本申请一个实施例的一种应用场景示意图。FIG. 4( a ) is a schematic diagram of an application scenario of an embodiment of the present application.
图4(b)是本申请一个实施例的一种无人机的内部结构示意图。Figure 4(b) is a schematic diagram of the internal structure of an unmanned aerial vehicle according to an embodiment of the present application.
图5是本申请一个实施例的一种图像处理装置的逻辑结构示意图。FIG. 5 is a schematic diagram of a logical structure of an image processing apparatus according to an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
在光线较暗或光线较亮的拍摄场景,图像采集设备采集的图像可能出现局部过曝或者过暗的现象,无法很好地展示图像细节。为了提高图像的动态范围,目前,很多图像采集设备都配备了HDR功能,当用户开启HDR功能时,图像采集设备会以不同的曝光量对拍摄场景进行图像采集,得到多帧图像,然后利用这多帧图像生成一帧HDR图像。曝光量即图像采集设备采集图像时达到感光元件的光线的量,图像采集设备采集的图像的亮度与曝光量有关,曝光量越大,则采集的图像亮度越大。曝光量与图像采集设备的曝光参数(曝光时长、光圈大小和ISO)和环境亮度有关,通过调整曝光参数即可以控制曝光量,从而调整图像的亮度。在生成HDR图像时,可以控制图像采集设备以不同的曝光量采集图像,比如,采集得到高曝光图像和低曝光图像,然后利用这两帧图像合成得到一帧HDR图像。In a shooting scene with low light or bright light, the image collected by the image acquisition device may be partially overexposed or too dark, and the image details cannot be well displayed. In order to improve the dynamic range of the image, at present, many image capture devices are equipped with the HDR function. When the user turns on the HDR function, the image capture device will capture images of the shooting scene with different exposures to obtain multiple frames of images, and then use the HDR function. Multiple frames of images generate one frame of HDR image. Exposure is the amount of light reaching the photosensitive element when the image acquisition device captures an image. The brightness of the image captured by the image acquisition device is related to the exposure. The greater the exposure, the greater the brightness of the captured image. The exposure is related to the exposure parameters (exposure duration, aperture size, and ISO) of the image acquisition device and ambient brightness. By adjusting the exposure parameters, the exposure can be controlled, thereby adjusting the brightness of the image. When generating an HDR image, the image acquisition device can be controlled to acquire images with different exposures, for example, a high-exposure image and a low-exposure image are acquired, and then two frames of images are used to synthesize an HDR image.
目前这种方式虽然可以提高图像采集设备采集的图像的动态范围,但是由于需采集多帧图像才能合成一帧图像,大大降低了图像的帧率。如图1所示,为利用一帧高曝光图像和一帧低曝光图像得到一帧HDR图像的示意图。从图中可知,采集到4帧图像后只能合成得到2帧HDR图像,采用这种方式生成HDR图像,假设原本1s图像采集装置可以采集60帧图像,现在1s仅能得到30帧图像,图像帧率由60帧/s降为30帧/s,图像的帧率会降低一半。Although this method can improve the dynamic range of the image collected by the image collection device at present, it greatly reduces the frame rate of the image because it needs to collect multiple frames of images to synthesize one frame of image. As shown in FIG. 1 , it is a schematic diagram of obtaining one frame of HDR image by using one frame of high-exposure image and one frame of low-exposure image. It can be seen from the figure that after 4 frames of images are collected, only 2 frames of HDR images can be synthesized. Using this method to generate HDR images, assuming that the original 1s image acquisition device can collect 60 frames of images, now only 30 frames of images can be obtained in 1s. The frame rate is reduced from 60 frames/s to 30 frames/s, and the frame rate of the image will be reduced by half.
基于此,本申请提供了一种图像处理方法,可以让图像采集设备循环地按照N种不同的曝光量进行图像采集,针对图像采集设备采集的每一帧 图像,可以进行重复利用,分别将其与之前采集的图像融合,以及将其与之后采集的图像融合,得到HDR图像,通过重复利用每一帧图像合成HDR图像,可以大大提高图像的帧率。Based on this, the present application provides an image processing method, which can allow an image acquisition device to cyclically perform image acquisition according to N different exposures, and for each frame of image collected by the image acquisition device, it can be reused, and the The HDR image is obtained by merging with the image collected before and with the image collected later, and the frame rate of the image can be greatly improved by reusing each frame of the image to synthesize the HDR image.
本申请的图像处理方法可以由图像采集设备执行,其中,图像采集设备可以是任一具有图像采集功能的设备,比如,可以是相机、手机、平板、带有摄像头的云台等设备。在一些实施例中,如果图像采集设备搭载于无人机、无人车、云台等可移动平台上,该图像处理方法也可以由可移动平台执行,比如由无人机、云台上的处理芯片执行。在一些实施例中,该图像处理方法也可以由与图像采集设备通信连接的其他设备执行,比如,图像采集设备采集到图像后,可以发给远程的服务器去实现图像处理,或者,如果图像采集设备搭载于可移动平台上,也可以发送给可移动平台的控制终端进行图像处理后,再显示给用户。当然,针对其他的应用场景,用户也可以自行设置图像处理方法的执行主体,本申请不做限制。The image processing method of the present application can be performed by an image acquisition device, wherein the image acquisition device can be any device with an image acquisition function, such as a camera, a mobile phone, a tablet, a PTZ with a camera, and other devices. In some embodiments, if the image acquisition device is mounted on a movable platform such as an unmanned aerial vehicle, an unmanned vehicle, a gimbal, etc., the image processing method can also be executed by a movable platform, such as by a drone on a gimbal or a gimbal. Processing chip execution. In some embodiments, the image processing method may also be performed by other devices that are communicatively connected to the image capture device. For example, after the image capture device captures an image, it can be sent to a remote server for image processing, or, if the image capture device The device is mounted on the movable platform, and can also be sent to the control terminal of the movable platform for image processing, and then displayed to the user. Of course, for other application scenarios, the user can also set the execution body of the image processing method by himself, which is not limited in this application.
为了便于区分,以下将图像采集设备当前采集的一帧图像称为第一图像,在第一图像之前采集的图像称为第二图像,第一图像之后采集的图像称为第三图像。将第一图像与第二图像进行融合得到的具有更大动态范围的图像称为第一目标图像,将第一图像与第三图像进行融合得到的具有更大动态范围的图像称为第二目标图像。For ease of distinction, hereinafter, a frame of images currently captured by the image capturing device is referred to as a first image, an image captured before the first image is referred to as a second image, and an image captured after the first image is referred to as a third image. The image with larger dynamic range obtained by fusing the first image and the second image is called the first target image, and the image with larger dynamic range obtained by fusing the first image and the third image is called the second target image.
具体的,所述图像处理方法如图2所示,包括以下步骤:Specifically, the image processing method, as shown in Figure 2, includes the following steps:
S202、在图像采集设备循环地按照N种曝光量进行图像采集的过程中,获取所述图像采集设备当前采集的第一图像,其中,N为大于或等于2的整数;S202. During the process of image acquisition by the image acquisition device cyclically according to N exposures, acquire a first image currently acquired by the image acquisition device, where N is an integer greater than or equal to 2;
S204、将所述第一图像与在所述第一图像之前采集的N-1帧第二图像进行融合,得到第一目标图像,所述N-1帧第二图像的曝光量各不相同,且不同于所述第一图像的曝光量;S204. Fusion of the first image and N-1 frames of second images collected before the first image to obtain a first target image, where the exposures of the N-1 frames of second images are different, and different from the exposure of the first image;
S206、在获取到所述第一图像之后采集的N-1帧第三图像后,将所述第一图像与所述第三图像进行融合,得到第二目标图像,所述N-1帧第三图像 的曝光量各不相同,且不同于所述第一图像的曝光量。S206. After acquiring the N-1 frames of the third image collected after the first image, fuse the first image and the third image to obtain a second target image, the N-1 frame of the third image. The exposure levels of the three images are different and different from the exposure levels of the first image.
为了让图像采集设备采集的每一帧图像可以重复利用,即可以与该图像之前采集的图像或者之后采集的图像进行融合,得到动态范围更大的图像,可以让图像采集设备循环地按照N种不同的曝光量进行图像采集,N表示曝光量的种类,曝光量可以设置成2种、3种、甚至更多种。比如,可以按照高曝光量、低曝光量循环地采集图像,或者按照高曝光量、正常曝光量、低曝光量循环地采集图像,其中,高曝光量、正常曝光量、低曝光量表示三种不同的曝光量数值,其曝光量的大小关系为:高曝光>正常曝光>低曝光。曝光量种类的设置可以根据实际需求设置,比如,如果想要融合得到的图像动态范围更加精细,可以适当增加曝光量的种类。In order to make each frame of image collected by the image capture device reusable, that is, it can be fused with the image captured before or after the image to obtain an image with a larger dynamic range, the image capture device can be cyclically arranged according to N kinds of images. Different exposures are used for image acquisition, N represents the type of exposure, and the exposure can be set to 2, 3, or even more. For example, images can be collected cyclically according to high exposure and low exposure, or images can be collected cyclically according to high exposure, normal exposure, and low exposure, where high exposure, normal exposure, and low exposure represent three For different exposure values, the relationship of exposure is: high exposure > normal exposure > low exposure. The exposure types can be set according to actual needs. For example, if the dynamic range of the fused image is more refined, the exposure types can be appropriately increased.
在用户开启HDR功能后,图像采集设备可以进入循环地按照N种曝光量进行图像采集的模式,针对当前时刻图像采集设备采集的每一帧第一图像,可以让第一图像与图像采集设备之前采集的N-1帧第二图像进行融合,得到一帧动态范围更大的第一目标图像,其中,这N-1帧第二图像的曝光量各不相同,且不同于第一图像的曝光量,这样便可以保证每一帧第一目标图像由N种不同曝光量的图像合成得到,保证每一帧第一目标图像的具有较大动态范围。同样的,在获取到在第一图像之后采集的N-1帧第三图像后,也可以让第一图像和第三图像进行融合,得到一帧动态范围更大的第二目标图像,其中,这N-1帧第三图像的曝光量也各不相同,并且不同于第一图像的曝光量,以保证每一帧第一目标图像由N种不同曝光量的图像合成得到,保证每一帧第二目标图像的具有较大动态范围。举个例子,假设图像采集设备循环的按照高曝光量、正常曝光量、低曝光量采集图像,当前采集的图像为低曝光图像,那么第二图像则可以是在第一图像之前采集的曝光量为高曝光量以及正常曝光量的两帧图像,第三图像则可以是在第一图像之后采集的曝光量为高曝光量以及正常曝光量的两帧图像。After the user turns on the HDR function, the image capture device can enter a mode of cyclically capturing images according to N exposures. For each frame of the first image captured by the image capture device at the current moment, the image capture device can The collected N-1 frames of the second images are fused to obtain a frame of the first target image with a larger dynamic range, wherein the exposures of the N-1 frames of the second images are different and different from the exposure of the first image. In this way, it can be ensured that each frame of the first target image is obtained by synthesizing N kinds of images with different exposures, thereby ensuring that each frame of the first target image has a larger dynamic range. Similarly, after N-1 frames of the third image collected after the first image are acquired, the first image and the third image can also be fused to obtain a second target image with a larger dynamic range, wherein, The exposures of the N-1 frames of the third image are also different and different from the exposure of the first image, so as to ensure that each frame of the first target image is synthesized from N images with different exposures, ensuring that each frame is The second target image has a larger dynamic range. For example, assuming that the image acquisition device cyclically collects images according to high exposure, normal exposure, and low exposure, and the currently collected image is a low exposure image, the second image can be the exposure collected before the first image. The third image can be two frames of images with high exposure and normal exposure, and the third image can be two frames of images with high exposure and normal exposure acquired after the first image.
由于图像采集装置循环的按照不同的曝光量采集图像,因而每一帧图像之前或者之后都包括与自身曝光量不同的图像,比如当前图像的曝光量是高 曝光,之前和之后采集的图像中一定包含低曝光,那么每一帧图像都可以进行重复利用,分别和之前采集或者之后采集的不同曝光量的图像进行融合,得到动态范围更大的图像。由于每一帧图像都重复利用了,最后合成的HDR图像数量会大大增加。以使用两帧不同曝光量的图像合成得到一帧HDR图像为例,以往一帧HDR图像需要图像采集设备采集到两帧图像后,再合成为一帧HDR图像,假设图像采集设备1s采集60帧图像,最后只能输出30帧HDR图像,帧率为30帧/s。而采用本申请实施例提供的方案,每一帧都可以分别和前一帧或者后一帧合成得到一帧HDR图像,这样采集到60帧图像后,即可以合成得到59帧HDR图像,即帧率为59帧/s,大大提高了帧率。Since the image acquisition device cyclically collects images according to different exposures, each frame of images includes images with different exposures before or after it. If low exposure is included, each frame of image can be reused and fused with images of different exposures collected before or after, to obtain images with a larger dynamic range. Since each frame of image is reused, the number of final composite HDR images will be greatly increased. Taking two frames of images with different exposures to obtain one frame of HDR image as an example, in the past, one frame of HDR image required the image acquisition device to collect two frames of images, and then synthesized into one frame of HDR image. It is assumed that the image acquisition device collects 60 frames per second. In the end, only 30 frames of HDR images can be output, and the frame rate is 30 frames/s. However, with the solution provided by the embodiment of the present application, each frame can be synthesized with the previous frame or the next frame to obtain one frame of HDR image, so that after 60 frames of images are collected, 59 frames of HDR images can be synthesized, that is, the frame The rate is 59 frames/s, which greatly improves the frame rate.
由于图像采集设备是循环的按照N种曝光量进行图像采集的,所以,针对当前采集的每一帧第一图像,与其相邻的前N-1帧图像或者与其相邻的后N-1帧图像都包括了N种曝光量中除第一图像对应的曝光量以外的曝光量。举个例子,假设图像采集设备循环按照高曝光量、正常曝光量、低曝光量三种曝光量进行图像采集,当前图像为低曝光图像,则其相邻的前两帧图像分别为正常曝光量以及高曝光量的图像,其相邻的后两帧图像分别为高曝光量以及正常曝光量的图像,所以,将第一图像与相邻的前2帧或者相邻的后2帧图像融合,都可以得到HDR图像,且由于每帧HDR图像都包含高曝光、正常曝光、低曝光三种曝光量,合成得到的不同HDR图像亮度比较均匀,并且相邻的图像与第一图像的场景相似度较高,也可以得到较好的融合效果。所以,在一些实施例中,N-1帧第二图像或N-1帧第三图像可以是与第一图像相邻的连续N-1帧图像,第一图像分别与前后相邻的N-1帧图像融合得到一帧HDR图像,如图3(a)所示的HDR图像合成示意图。当然,在一些实施例中,N-1帧第二图像或N-1帧第三图像与第一图像也可以不相邻。比如,图像采集设备循环地按照高曝光量、低曝光量进行图像采集,当前采集的第一图像为低曝光图像,因此,也可以选择第一图像前面的第三帧图像(也为高曝光图像)与第一图像进行融合得到HDR图像,如图3(b)所示的HDR图像合成示意图。Since the image acquisition device cyclically collects images according to N exposures, for each frame of the first image currently collected, the first N-1 frames adjacent to it or the next N-1 frames adjacent to it The images all include exposure amounts other than the exposure amounts corresponding to the first image among the N exposure amounts. For example, assuming that the image acquisition device cyclically collects images according to three exposures: high exposure, normal exposure, and low exposure, and the current image is a low-exposure image, the first two adjacent frames of images are normal exposures respectively. And the image with high exposure, the next two adjacent frames of images are images of high exposure and normal exposure respectively, so, the first image is fused with the adjacent first 2 frames or the adjacent last 2 frames of images, HDR images can be obtained, and since each frame of HDR image contains three exposures: high exposure, normal exposure, and low exposure, the brightness of the different HDR images obtained by synthesis is relatively uniform, and the adjacent images are similar to the scene of the first image. The higher the value, the better the fusion effect can be obtained. Therefore, in some embodiments, N-1 frames of second images or N-1 frames of third images may be consecutive N-1 frames of images adjacent to the first image, and the first images are respectively adjacent to N- One frame of image is fused to obtain one frame of HDR image, as shown in Fig. 3(a), which is a schematic diagram of HDR image synthesis. Of course, in some embodiments, the N-1 frames of the second image or the N-1 frames of the third image may not be adjacent to the first image. For example, the image acquisition device cyclically collects images according to high exposure and low exposure, and the first image currently collected is a low-exposure image. Therefore, the third frame image (also a high-exposure image) before the first image can also be selected. ) and the first image are fused to obtain an HDR image, as shown in FIG. 3(b) , a schematic diagram of HDR image synthesis.
由于图像采集设备的曝光量与环境的亮度以及图像采集设备的曝光参数有关(曝光时长、光圈大小、ISO),通常图像采集设备的ISO是固定的,因而在环境亮度确定的情况下,可以通过调整曝光时长和光圈大小调整图像采集设备的曝光量。所以,在一些实施例中,可以预先设置N种不同的曝光量,在图像采集设备采集图像的过程中,可以实时根据环境的亮度调整图像采集设备的曝光时长或光圈大小,或者同时调整曝光时长以及光圈大小,以让图像采集设备的曝光量达到预设的N种曝光量。Since the exposure of the image capture device is related to the brightness of the environment and the exposure parameters of the image capture device (exposure duration, aperture size, ISO), the ISO of the image capture device is usually fixed, so when the ambient brightness is determined, it can be passed through Adjust the exposure duration and aperture size to adjust the exposure of the image capture device. Therefore, in some embodiments, N different exposures can be preset, and during the process of image acquisition by the image acquisition device, the exposure duration or aperture size of the image acquisition device can be adjusted in real time according to the brightness of the environment, or the exposure duration can be adjusted at the same time and the aperture size, so that the exposure of the image acquisition device reaches the preset N exposures.
对于有些场景,要求图像采集设备采集的HDR图像以尽可能低的延时传输给其他设备。以无人机将采集的图像发送给地面的控制终端的场景为例,用户可以根据无人机发送给控制终端的图像调整无人机的飞行路径,如果图像传输延时较大,可能不利于用户及时调整无人机的飞行路径,造成事故。相关技术中,在生成HDR图像时,都是等图像采集设备采集完两帧不同曝光量的图像后,利用两帧图像合成一帧HDR图像,然后再传输。考虑到等待2帧图像采集的延时、合成HDR图像延时以及图像传输的延时进行累加后,会导致整体的图像传输延时比较严重。由于本申请实施例的每一帧图像都与之前采集的图像进行融合,为了减少HDR图像的传输延时,在一些实施例中,可以不用等第一图像的图像数据完全采集完后,再开始HDR图像的合成,而是在图像采集设备采集到第一图像的部分图像数据后,就可以获取采集的部分图像数据并存储,将存储的部分图像数据与第二图像中该部分图像数据对应像素位置上的图像数据融合,得到第一目标图像的一部分图像数据。这样便可以实现边采集图像数据,边进行HDR图像融合,无需等到整张图像采集完后在进行融合,降低了合成HDR图像的时间,从而降低了HDR图像的延时。For some scenarios, it is required that the HDR images captured by the image capture device be transmitted to other devices with the lowest possible delay. Take the scene where the drone sends the collected image to the control terminal on the ground as an example, the user can adjust the flight path of the drone according to the image sent by the drone to the control terminal. If the image transmission delay is large, it may be unfavorable. The user adjusts the flight path of the drone in time to cause an accident. In the related art, when generating an HDR image, after the image acquisition device has collected two frames of images with different exposures, two frames of images are used to synthesize one frame of HDR image, and then transmit. Considering that the delay of waiting for two frames of image acquisition, the delay of synthesizing HDR images, and the delay of image transmission are accumulated, the overall image transmission delay will be serious. Since each frame of image in the embodiments of the present application is fused with the previously collected image, in order to reduce the transmission delay of the HDR image, in some embodiments, it is not necessary to wait for the image data of the first image to be completely collected before starting In the synthesis of HDR images, after the image acquisition device collects part of the image data of the first image, it can acquire and store part of the collected image data, and store the part of the image data with the pixels corresponding to the part of the image data in the second image. The image data at the position is fused to obtain a part of the image data of the first target image. In this way, HDR image fusion can be performed while collecting image data, and there is no need to wait until the entire image is collected to perform fusion, which reduces the time for synthesizing HDR images, thereby reducing the delay of HDR images.
当然,在一些实施例中,图像采集设备可以是一行一行采集每帧图像的图像数据并输出,因而部分图像数据可以是第一图像的若干行图像数据,在一些实施例中,图像采集设备可以是一列一列采集每帧图像的数据并输出,因而部分图像数据可以是第一图像的若干列图像数据。其中,部分图像的数 据量可以基于执行该图像处理方法的设备的存储器的最大存储带宽确定。Of course, in some embodiments, the image capture device may capture and output image data of each frame of image line by line, so part of the image data may be several lines of image data of the first image. In some embodiments, the image capture device may The data of each frame of image is collected column by column and output, so part of the image data can be several columns of image data of the first image. Wherein, the data amount of the partial image can be determined based on the maximum storage bandwidth of the memory of the device executing the image processing method.
举个例子,以图像采集设备循环地按照高曝光、低曝光采集图像为例,图像采集设备在采集到第一图像的前10行图像数据时,则将该前10行图像数据与第一图像前一帧图像的前10行数据进行融合,得到HDR图像前10行的数据,然后再依次将接下来的10行数据与前一帧图像对应像素位置上的图像数据融合,直至合成得到整张HDR图像。For example, taking the image acquisition device cyclically collecting images according to high exposure and low exposure as an example, when the image acquisition device collects the first 10 lines of image data of the first image, it will combine the first 10 lines of image data with the first image data. The first 10 lines of data of the previous frame image are fused to obtain the data of the first 10 lines of the HDR image, and then the next 10 lines of data are fused with the image data at the corresponding pixel positions of the previous frame image in turn, until the entire image is synthesized. HDR images.
在一些实施例中,图像采集设备可以搭载在可移动平台上,可移动平台可以无人机、无人车、云台等各种设备。可移动平台可以包括图像处理芯片,则该图像处理方法可以由图像采集设备执行,也可以由可移动平台的图像处理芯片执行,比如,图像采集设备包括图像处理芯片,通过该图像处理芯片将采集的图像合成HDR图像并输出。或者图像采集设备可以只负责采集图像,然后将采集的图像输出给可移动平台的图像处理芯片,以便图像处理芯片合成HDR图像。In some embodiments, the image acquisition device can be mounted on a movable platform, and the movable platform can be various devices such as drones, unmanned vehicles, and PTZs. The movable platform may include an image processing chip, and the image processing method may be performed by an image acquisition device or an image processing chip of the movable platform. For example, the image acquisition device includes an image processing chip, and the image acquisition The images are composited into HDR images and output. Or the image acquisition device may only be responsible for acquiring images, and then output the acquired images to the image processing chip of the movable platform, so that the image processing chip can synthesize the HDR image.
在图像处理方法由可移动平台上的图像处理芯片执行的场景,可移动平台上的图像处理芯片可以包括第一存储器,第一存储器可以是缓存存储器,在图像采集设备采集到部分图像数据时,图像处理芯片即可以获取这部分图像数据并缓存至第一存储器中,然后利用缓存的部分图像数据与之前采集的图像进行HDR图像合成,其中,部分图像数据的数据量基于第一存储器的最大存储带宽确定。In the scenario where the image processing method is performed by the image processing chip on the movable platform, the image processing chip on the movable platform may include a first memory, and the first memory may be a cache memory. When the image acquisition device collects part of the image data, The image processing chip can obtain this part of the image data and cache it in the first memory, and then use the cached part of the image data and the previously collected image to perform HDR image synthesis, wherein the data amount of the part of the image data is based on the maximum storage capacity of the first memory. Bandwidth is determined.
当然,由于图像采集设备当前采集的每一帧图像,都可以和之前采集的第二图像进行融合,因而,在采集到第二图像后,可以将第二图像进行存储,以便和之后采集的第一图像进行融合。在一些实施例中,可移动平台还可以包括第二存储器,第二图像可以存储在第二存储器中。Of course, since each frame of image currently collected by the image collection device can be fused with the second image collected before, after the second image is collected, the second image can be stored so as to be combined with the second image collected later. An image is fused. In some embodiments, the movable platform may also include a second memory in which the second image may be stored.
在一些实施例中,可移动平台上的图像处理芯片可以是ISP芯片,可移动平台上的第二存储器可以是DDR存储器。In some embodiments, the image processing chip on the removable platform may be an ISP chip, and the second memory on the removable platform may be a DDR memory.
在一些实施例中,如果图像采集设备搭载于可移动平台,在合成得到第一目标图像或第二目标图像后,可以将第一目标图像或第二目标图像发送给 可移动平台的控制终端,控制终端可以是用于控制可移动平台运动的各种设备,比如、遥控器、手机、飞行眼镜等,以便控制终端将第一目标图像或第二目标图像显示给用户。由于每帧图像重复利用,大大提高了图像的帧率,并且采用边采集边合成HDR图像的方式,合成的HDR图像传输给控制终端的延时大大降低,提升了用户的体验。In some embodiments, if the image acquisition device is mounted on the movable platform, after the first target image or the second target image is synthesized, the first target image or the second target image can be sent to the control terminal of the movable platform, The control terminal may be various devices for controlling the movement of the movable platform, such as a remote controller, a mobile phone, flying glasses, etc., so that the control terminal displays the first target image or the second target image to the user. Since each frame of image is reused, the frame rate of the image is greatly improved, and the method of synthesizing HDR images while collecting is adopted, the delay in transmitting the synthesized HDR images to the control terminal is greatly reduced, and the user experience is improved.
在一些实施例中,在合成得到第一目标图像或第二目标图像后,还可以利用第一目标图像或第二目标图像生成视频,然后将视频存储或者输出给其他设备。由于每帧图像重复利用,大大提高了图像的帧率,使得视频画面更加流畅。In some embodiments, after the first target image or the second target image is synthesized, a video may also be generated by using the first target image or the second target image, and then the video may be stored or output to other devices. Since each frame of image is reused, the frame rate of the image is greatly improved, and the video picture is smoother.
为了进一步解释本申请提供的图像处理方法,以下以一个具体的实施例加以解释。In order to further explain the image processing method provided by the present application, a specific embodiment is explained below.
如图4(a)所示,为本申请实施例的一个应用场景示意图,无人机41上搭载有图像采集装置42,无人机41在飞行过程中,图像采集装置42采集到图像或视频后,会发给地面上的控制终端43,以便用户通过控制终端43查看图像或者视频,从而控制无人机41的飞行轨迹。由于无人机41在飞行过程中,可能存在图像采集装置42逆光或者正对太阳,光线很亮的场景,因而采集的图像可能会过亮或者过暗,使得用户无法看清图像的细节。为了保证图像的清晰度,可以采用具备HDR功能的图像采集装置42,将图像采集装置42采集的图像合成得到HDR图像后,再发送给用户,提高图像的动态范围。As shown in FIG. 4( a ), which is a schematic diagram of an application scenario of the embodiment of the present application, an image acquisition device 42 is mounted on the drone 41 , and the image acquisition device 42 collects images or videos during the flight of the drone 41 . Afterwards, it will be sent to the control terminal 43 on the ground, so that the user can view the image or video through the control terminal 43, so as to control the flight trajectory of the drone 41. During the flight of the drone 41 , there may be scenes where the image capture device 42 is backlit or facing the sun, and the light is very bright, so the captured image may be too bright or too dark, so that the user cannot see the details of the image clearly. In order to ensure the clarity of the image, an image acquisition device 42 with an HDR function may be used, and an HDR image is obtained by synthesizing the images collected by the image acquisition device 42, and then sent to the user to improve the dynamic range of the image.
其中,无人机的内部结构示意图如图4(b)所示,无人机包括ISP芯片411和DDR存储器422,ISP芯片411中包括缓存存储器4111。图像采集装置42开启HDR功能后,图像采集装置42可以循环地按照预设的两种曝光量进行图像采集,得到高曝光图像和低曝光图像,然后将采集的图像发送给无人机41的ISP芯片411,以便ISP芯片411合成得到HDR图像。图像采集装置42采集的每一帧图像,都可以存储在无人41机的DDR 412中,以便与下一帧图像进行融合。图像采集装置42在采集到第一帧图像后,可以直接发给控制终端43,当然也可以不发送,直接存储在无人机的DDR412上。针对 图像采集装置42采集到的第二帧图像以及之后的图像,ISP芯片411都按照以下处理逻辑进行处理:The schematic diagram of the internal structure of the drone is shown in FIG. 4( b ). The drone includes an ISP chip 411 and a DDR memory 422 , and the ISP chip 411 includes a cache memory 4111 . After the image acquisition device 42 enables the HDR function, the image acquisition device 42 can cyclically perform image acquisition according to two preset exposures to obtain a high-exposure image and a low-exposure image, and then send the acquired image to the ISP of the drone 41 . chip 411, so that the ISP chip 411 can synthesize the HDR image. Each frame of image collected by the image collection device 42 can be stored in the DDR 412 of the unmanned aerial vehicle 41 so as to be fused with the next frame of image. After the image acquisition device 42 acquires the first frame of image, it can be directly sent to the control terminal 43, or of course, it can be directly stored in the DDR412 of the drone without transmitting. For the second frame image and subsequent images collected by the image capture device 42, the ISP chip 411 all processes according to the following processing logic:
ISP芯片411可以将图像采集装置42输出的当前一帧图像的前N行数据缓存在ISP芯片411的缓存存储器4111中,然后从DDR 412中获取上一帧图像的前N行数据,将当前图像前N行数据与上一帧图像的前N行数据融合,得到HDR图像的前N数据,重复上述过程,直至完成整张图像的HDR合成。在合成得到HDR图像后,ISP芯片411可以对HDR图像进一步进行降噪、镜头阴影矫正、白平衡调节、锐化、局部增强等处理,然后将处理后的HDR图像进行编码处理,通过无线通信传输至控制终端43。The ISP chip 411 can cache the data of the first N lines of the current frame of the image output by the image acquisition device 42 in the cache memory 4111 of the ISP chip 411, and then obtain the data of the first N lines of the previous frame of the image from the DDR 412, and store the current image. The first N lines of data are fused with the first N lines of data of the previous frame of image to obtain the first N data of the HDR image, and the above process is repeated until the HDR synthesis of the entire image is completed. After synthesizing the HDR image, the ISP chip 411 can further perform noise reduction, lens shadow correction, white balance adjustment, sharpening, local enhancement and other processing on the HDR image, and then encode the processed HDR image and transmit it through wireless communication to the control terminal 43.
由于每帧图像都重复利用,分别与前一帧图像和后一帧图像融合,从而大大提高了生成的HDR图像的帧率。并且在进行HDR图像合成时,在图像采集装置只采集一部分图像数据后则开始执行HDR图像的合成操作,即边采集边合成,而不是等整张图像采集完后再进行HDR图像的合成,可以减小图像传输的延时。Since each frame of image is reused and fused with the previous frame image and the next frame image, the frame rate of the generated HDR image is greatly improved. And when synthesizing HDR images, after the image acquisition device only collects a part of the image data, the HDR image synthesis operation starts, that is, synthesizing while collecting, rather than waiting for the entire image to be collected and then synthesizing the HDR image. Reduce the delay of image transmission.
相应的,本申请还提供了一种图像处理装置,如图5所示,所述装置包括处理器51、存储器52、存储于所述存储器52可供所述处理器51执行的计算机程序,所述处理器51执行所述计算机程序时,实现以下步骤:Correspondingly, the present application also provides an image processing apparatus. As shown in FIG. 5 , the apparatus includes a processor 51 , a memory 52 , and a computer program stored in the memory 52 for execution by the processor 51 . When the processor 51 executes the computer program, the following steps are implemented:
在图像采集设备循环地按照N种曝光量进行图像采集的过程中,获取所述图像采集设备当前采集的第一图像,其中,N为大于或等于2的整数;During the process that the image acquisition device cyclically performs image acquisition according to N exposures, the first image currently acquired by the image acquisition device is acquired, where N is an integer greater than or equal to 2;
将所述第一图像与在所述第一图像之前采集的N-1帧第二图像进行融合,得到第一目标图像,所述N-1帧第二图像的曝光量各不相同,且不同于所述第一图像的曝光量;The first image is fused with N-1 frames of second images collected before the first image to obtain a first target image, and the exposures of the N-1 frames of second images are different and different. exposure to the first image;
在获取到所述第一图像之后采集的N-1帧第三图像后,将所述第一图像与所述第三图像进行融合,得到第二目标图像,所述N-1帧第三图像的曝光量各不相同,且不同于所述第一图像的曝光量。After N-1 frames of third images collected after the first image are acquired, the first image and the third image are fused to obtain a second target image, the N-1 frames of the third image The exposures are different and different from the exposure of the first image.
在一些实施例中,所述N-1帧第二图像或所述N-1帧第三图像与所述第一图像相邻。In some embodiments, the N-1 frames of second images or the N-1 frames of third images are adjacent to the first image.
在一些实施例中,所述N种曝光量通过调整所述图像采集设备的曝光时长和/或光圈大小得到。In some embodiments, the N exposure amounts are obtained by adjusting the exposure duration and/or aperture size of the image capture device.
在一些实施例中,所述处理器用于将所述第一图像与在所述第一图像之前采集的N-1帧第二图像进行融合,得到第一目标图像时,具体用于:In some embodiments, when the processor is configured to fuse the first image with N-1 frames of second images collected before the first image to obtain the first target image, the processor is specifically configured to:
在所述图像采集设备采集到所述第一图像的部分图像数据后,获取所述部分图像数据并存储;After the image acquisition device acquires part of the image data of the first image, acquire and store the part of the image data;
将存储的所述部分图像数据与所述第二图像中所述部分图像数据对应像素位置上的图像数据融合,得到所述目标图像的图像数据。The stored part of the image data is fused with the image data at the pixel positions corresponding to the part of the image data in the second image to obtain image data of the target image.
在一些实施例中,,所述部分图像数据包括所述第一图像的若干行图像数据;或In some embodiments, the partial image data includes several lines of image data of the first image; or
所述第一图像的若干列图像数据。Several columns of image data for the first image.
在一些实施例中,所述图像采集设备搭载于可移动平台上,所述可移动平台包括图像处理芯片,所述图像处理装置为所述图像采集设备;或In some embodiments, the image acquisition device is mounted on a movable platform, the movable platform includes an image processing chip, and the image processing device is the image acquisition device; or
所述图像处理装置为所述图像处理芯片。The image processing device is the image processing chip.
在一些实施例中,所述图像处理装置为所述图像处理芯片,所述图像处理芯片包括第一存储器,所述部分图像数据的数据量基于所述第一存储器的最大存储带宽确定。In some embodiments, the image processing device is the image processing chip, the image processing chip includes a first memory, and the data amount of the partial image data is determined based on a maximum storage bandwidth of the first memory.
在一些实施例中,所述可移动平台包括第二存储器,所述第二图像存储于所述第二存储器中。In some embodiments, the movable platform includes a second memory in which the second image is stored.
在一些实施例中,所述图像处理芯片包括ISP芯片,所述第二存储器包括DDR。In some embodiments, the image processing chip includes an ISP chip, and the second memory includes DDR.
在一些实施例中,在得到所述第一目标图像或第二目标图像后,所述装置还用于:In some embodiments, after obtaining the first target image or the second target image, the apparatus is further configured to:
将所述第一目标图像或第二目标图像发送给所述可移动平台的控制终端,以使所述控制终端将所述第一目标图像或第二目标图像显示给用户,其中,所述控制终端用于控制所述可移动平台运动。sending the first target image or the second target image to the control terminal of the movable platform, so that the control terminal displays the first target image or the second target image to the user, wherein the control The terminal is used to control the movement of the movable platform.
在一些实施例中,在得到所述第一目标图像或所述第二目标图像后,所 述装置还用于:In some embodiments, after obtaining the first target image or the second target image, the apparatus is further configured to:
利用所述第一目标图像或所述第二目标图像生成视频并输出。A video is generated and output using the first target image or the second target image.
其中,图像处理装置进行图像处理时的具体实施细节可参考上述图像处理方法中描述,在此不再赘述。The specific implementation details when the image processing apparatus performs image processing may refer to the description in the above-mentioned image processing method, which will not be repeated here.
进一步的,本申请还提供中一种可移动平台,所述可移动平台包括图像采集装置和图像处理芯片,所述图像处理芯片包括处理器、存储器、存储于所述存储器可供所述处理器执行的计算机程序,所述处理器执行所述计算机程序时,实现以下步骤:Further, the present application also provides a movable platform, the movable platform includes an image acquisition device and an image processing chip, and the image processing chip includes a processor and a memory, and the memory is stored in the memory for the processor. Executed computer program, when the processor executes the computer program, the following steps are implemented:
在所述图像采集设备循环地按照N种曝光量进行图像采集的过程中,获取所述图像采集设备当前采集的第一图像,其中,N为大于或等于2的整数;During the process that the image acquisition device cyclically performs image acquisition according to N exposures, a first image currently acquired by the image acquisition device is acquired, where N is an integer greater than or equal to 2;
将所述第一图像与在所述第一图像之前采集的N-1帧第二图像进行融合,得到第一目标图像,所述N-1帧第二图像的曝光量各不相同,且不同于所述第一图像的曝光量;The first image is fused with N-1 frames of second images collected before the first image to obtain a first target image, and the exposures of the N-1 frames of second images are different and different. exposure to the first image;
在获取到所述第一图像之后采集的N-1帧第三图像后,将所述第一图像与所述第三图像进行融合,得到第二目标图像,所述N-1帧第三图像的曝光量各不相同,且不同于所述第一图像的曝光量。After N-1 frames of third images collected after the first image are acquired, the first image and the third image are fused to obtain a second target image, the N-1 frames of the third image The exposures are different and different from the exposure of the first image.
在一些实施例中,所述图像处理芯片包括第一存储器,所述处理器用于在所述图像采集设备采集到所述第一图像的部分图像数据后,获取所述部分图像数据并存储至所述第一存储器,将存储至所述第一存储器的所述部分图像数据与所述第二图像中所述部分图像数据对应像素位置上的图像数据融合,得到所述目标图像的图像数据。In some embodiments, the image processing chip includes a first memory, and the processor is configured to acquire and store the partial image data in the first image after the image acquisition device collects the partial image data of the first image. the first memory, which fuses the part of the image data stored in the first memory with the image data at the pixel positions corresponding to the part of the image data in the second image to obtain image data of the target image.
在一些实施例中,所述部分图像数据的数据量基于所述第一存储器的最大存储带宽确定。In some embodiments, the data amount of the partial image data is determined based on a maximum storage bandwidth of the first memory.
在一些实施例中,所述可移动平台还包括第二存储器,所述第二图像存储于所述第二存储器。In some embodiments, the movable platform further includes a second memory in which the second image is stored.
在一些实施例中,所述处理器还用于将所述第一目标图像或第二目标图像发送给所述可移动平台的控制终端,以使所述控制终端将所述第一目标图 像或第二目标图像显示给用户,其中,所述控制终端用于控制所述可移动平台运动。In some embodiments, the processor is further configured to send the first target image or the second target image to a control terminal of the movable platform, so that the control terminal sends the first target image or the second target image to the control terminal of the movable platform. The second target image is displayed to the user, wherein the control terminal is used to control the movement of the movable platform.
其中,图像处理芯片进行图像处理时的具体实施细节可参考上述图像处理方法中描述,在此不再赘述。The specific implementation details when the image processing chip performs image processing can refer to the description in the above image processing method, which will not be repeated here.
相应地,本说明书实施例还提供一种计算机存储介质,所述存储介质中存储有程序,所述程序被处理器执行时实现上述任一实施例中图像处理方法。Correspondingly, an embodiment of the present specification further provides a computer storage medium, where a program is stored in the storage medium, and when the program is executed by a processor, the image processing method in any of the foregoing embodiments is implemented.
本说明书实施例可采用在一个或多个其中包含有程序代码的存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。计算机可用存储介质包括永久性和非永久性、可移动和非可移动媒体,可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括但不限于:相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。Embodiments of the present specification may take the form of a computer program product embodied on one or more storage media having program code embodied therein, including but not limited to disk storage, CD-ROM, optical storage, and the like. Computer-usable storage media includes permanent and non-permanent, removable and non-removable media, and storage of information can be accomplished by any method or technology. Information may be computer readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), Flash Memory or other memory technology, Compact Disc Read Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, Magnetic tape cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
对于装置实施例而言,由于其基本对应于方法实施例,所以相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。For the apparatus embodiments, since they basically correspond to the method embodiments, reference may be made to the partial descriptions of the method embodiments for related parts. The device embodiments described above are only illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in One place, or it can be distributed over multiple network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment. Those of ordinary skill in the art can understand and implement it without creative effort.
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。术语“包括”、 “包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that, in this document, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any relationship between these entities or operations. any such actual relationship or sequence exists. The terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion such that a process, method, article or device comprising a series of elements includes not only those elements, but also other not expressly listed elements, or also include elements inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.
以上对本发明实施例所提供的方法和装置进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The methods and devices provided by the embodiments of the present invention have been described in detail above. The principles and implementations of the present invention are described with specific examples in this paper. The descriptions of the above embodiments are only used to help understand the methods of the present invention and its implementation. At the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation and application scope. To sum up, the content of this description should not be construed as a limitation to the present invention. .

Claims (27)

  1. 一种图像处理方法,其特征在于,所述方法包括:An image processing method, characterized in that the method comprises:
    在图像采集设备循环地按照N种曝光量进行图像采集的过程中,获取所述图像采集设备当前采集的第一图像,其中,N为大于或等于2的整数;During the process that the image acquisition device cyclically performs image acquisition according to N exposures, the first image currently acquired by the image acquisition device is acquired, where N is an integer greater than or equal to 2;
    将所述第一图像与在所述第一图像之前采集的N-1帧第二图像进行融合,得到第一目标图像,所述N-1帧第二图像的曝光量各不相同,且不同于所述第一图像的曝光量;The first image is fused with N-1 frames of second images collected before the first image to obtain a first target image, and the exposures of the N-1 frames of second images are different and different. exposure to the first image;
    在获取到所述第一图像之后采集的N-1帧第三图像后,将所述第一图像与所述第三图像进行融合,得到第二目标图像,所述N-1帧第三图像的曝光量各不相同,且不同于所述第一图像的曝光量。After N-1 frames of third images collected after the first image are acquired, the first image and the third image are fused to obtain a second target image, the N-1 frames of the third image The exposures are different and different from the exposure of the first image.
  2. 根据权利要求1所述的方法,其特征在于,所述N-1帧第二图像或所述N-1帧第三图像与所述第一图像相邻。The method according to claim 1, wherein the N-1 frames of the second image or the N-1 frames of the third image are adjacent to the first image.
  3. 根据权利要求1或2所述的方法,其特征在于,所述N种曝光量通过调整所述图像采集设备的曝光时长和/或光圈大小得到。The method according to claim 1 or 2, wherein the N exposure amounts are obtained by adjusting the exposure duration and/or aperture size of the image acquisition device.
  4. 根据权利要求1-3任一项所述的方法,其特征在于,将所述第一图像与在所述第一图像之前采集的N-1帧第二图像进行融合,得到第一目标图像,包括:The method according to any one of claims 1-3, wherein the first image is fused with N-1 frames of second images collected before the first image to obtain a first target image, include:
    在所述图像采集设备采集到所述第一图像的部分图像数据后,获取所述部分图像数据并存储;After the image acquisition device acquires part of the image data of the first image, acquire and store the part of the image data;
    将存储的所述部分图像数据与所述第二图像中所述部分图像数据对应像素位置上的图像数据融合,得到所述目标图像的图像数据。The stored part of the image data is fused with the image data at the pixel positions corresponding to the part of the image data in the second image to obtain image data of the target image.
  5. 根据权利要求4所述的方法,其特征在于,所述部分图像数据包括所述第一图像的若干行图像数据;或The method according to claim 4, wherein the partial image data comprises several lines of image data of the first image; or
    所述第一图像的若干列图像数据。Several columns of image data for the first image.
  6. 根据权利要求4或5所述的方法,其特征在于,所述图像采集设备搭载于可移动平台上,所述可移动平台包括图像处理芯片,所述图像处理方法由所述图像采集设备执行;或The method according to claim 4 or 5, wherein the image acquisition device is mounted on a movable platform, the movable platform includes an image processing chip, and the image processing method is executed by the image acquisition device; or
    所述图像处理方法由所述图像处理芯片执行。The image processing method is performed by the image processing chip.
  7. 根据权利要求6所述的方法,其特征在于,所述图像处理方法由所述图像处理芯片执行,所述图像处理芯片包括第一存储器,所述部分图像数据的数据量基于所述第一存储器的最大存储带宽确定。The method according to claim 6, wherein the image processing method is performed by the image processing chip, the image processing chip includes a first memory, and the data amount of the partial image data is based on the first memory The maximum storage bandwidth is determined.
  8. 根据权利要求7所述的方法,其特征在于,所述可移动平台包括第二存储器,所述第二图像存储于所述第二存储器中。8. The method of claim 7, wherein the movable platform includes a second memory, and wherein the second image is stored in the second memory.
  9. 根据权利要求8所述的方法,其特征在于,所述图像处理芯片包括ISP芯片,所述第二存储器包括DDR。The method according to claim 8, wherein the image processing chip comprises an ISP chip, and the second memory comprises a DDR.
  10. 根据权利要求6所述的方法,其特征在于,在得到所述第一目标图像或第二目标图像后,所述方法还包括:The method according to claim 6, wherein after obtaining the first target image or the second target image, the method further comprises:
    将所述第一目标图像或第二目标图像发送给所述可移动平台的控制终端,以使所述控制终端将所述第一目标图像或第二目标图像显示给用户,其中,所述控制终端用于控制所述可移动平台运动。sending the first target image or the second target image to the control terminal of the movable platform, so that the control terminal displays the first target image or the second target image to the user, wherein the control The terminal is used to control the movement of the movable platform.
  11. 根据权利要求1-10任一项所述的方法,其特征在于,在得到所述第一目标图像或所述第二目标图像后,所述方法还包括:The method according to any one of claims 1-10, wherein after obtaining the first target image or the second target image, the method further comprises:
    利用所述第一目标图像或所述第二目标图像生成视频并输出。A video is generated and output using the first target image or the second target image.
  12. 一种图像处理装置,其特征在于,所述装置包括处理器、存储器、存储于所述存储器可供所述处理器执行的计算机程序,所述处理器执行所述计算机程序时,实现以下步骤:An image processing device, characterized in that the device includes a processor, a memory, and a computer program stored in the memory for execution by the processor, and when the processor executes the computer program, the following steps are implemented:
    在图像采集设备循环地按照N种曝光量进行图像采集的过程中,获取所述图像采集设备当前采集的第一图像,其中,N为大于或等于2的整数;During the process that the image acquisition device cyclically performs image acquisition according to N exposures, the first image currently acquired by the image acquisition device is acquired, where N is an integer greater than or equal to 2;
    将所述第一图像与在所述第一图像之前采集的N-1帧第二图像进行融合,得到第一目标图像,所述N-1帧第二图像的曝光量各不相同,且不同于所述第一图像的曝光量;The first image is fused with N-1 frames of second images collected before the first image to obtain a first target image, and the exposures of the N-1 frames of second images are different and different. exposure to the first image;
    在获取到所述第一图像之后采集的N-1帧第三图像后,将所述第一图像与所述第三图像进行融合,得到第二目标图像,所述N-1帧第三图像的曝光量各不相同,且不同于所述第一图像的曝光量。After N-1 frames of third images collected after the first image are acquired, the first image and the third image are fused to obtain a second target image, the N-1 frames of the third image The exposures are different and different from the exposure of the first image.
  13. 根据权利要求12所述的装置,其特征在于,所述N-1帧第二图像或所述N-1帧第三图像与所述第一图像相邻。The apparatus according to claim 12, wherein the N-1 frames of the second image or the N-1 frames of the third image are adjacent to the first image.
  14. 根据权利要求12或13所述的装置,其特征在于,所述N种曝光量通过调整所述图像采集设备的曝光时长和/或光圈大小得到。The apparatus according to claim 12 or 13, wherein the N exposure amounts are obtained by adjusting the exposure duration and/or aperture size of the image acquisition device.
  15. 根据权利要求12-14任一项所述的装置,其特征在于,所述处理器用于将所述第一图像与在所述第一图像之前采集的N-1帧第二图像进行融合,得到第一目标图像时,具体用于:The device according to any one of claims 12-14, wherein the processor is configured to fuse the first image with N-1 frames of second images collected before the first image, to obtain When the first target image is used, it is specifically used for:
    在所述图像采集设备采集到所述第一图像的部分图像数据后,获取所述部分图像数据并存储;After the image acquisition device acquires part of the image data of the first image, acquire and store the part of the image data;
    将存储的所述部分图像数据与所述第二图像中所述部分图像数据对应像素位置上的图像数据融合,得到所述目标图像的图像数据。The stored part of the image data is fused with the image data at the pixel positions corresponding to the part of the image data in the second image to obtain image data of the target image.
  16. 根据权利要求15所述的装置,其特征在于,所述部分图像数据包括所述第一图像的若干行图像数据;或The apparatus of claim 15, wherein the partial image data comprises several lines of image data of the first image; or
    所述第一图像的若干列图像数据。Several columns of image data for the first image.
  17. 根据权利要求15或16所述的装置,其特征在于,所述图像采集设备搭载于可移动平台上,所述可移动平台包括图像处理芯片,所述图像处理装置为所述图像采集设备;或The device according to claim 15 or 16, wherein the image acquisition device is mounted on a movable platform, the movable platform includes an image processing chip, and the image processing device is the image acquisition device; or
    所述图像处理装置为所述图像处理芯片。The image processing device is the image processing chip.
  18. 根据权利要求17所述的装置,其特征在于,所述图像处理装置为所述图像处理芯片,所述图像处理芯片包括第一存储器,所述部分图像数据的数据量基于所述第一存储器的最大存储带宽确定。The device according to claim 17, wherein the image processing device is the image processing chip, the image processing chip includes a first memory, and the data amount of the partial image data is based on the data of the first memory. The maximum storage bandwidth is determined.
  19. 根据权利要求18所述的装置,其特征在于,所述可移动平台包括第二存储器,所述第二图像存储于所述第二存储器中。19. The apparatus of claim 18, wherein the movable platform includes a second memory and the second image is stored in the second memory.
  20. 根据权利要求19所述的装置,其特征在于,所述图像处理芯片包括ISP芯片,所述第二存储器包括DDR。The apparatus of claim 19, wherein the image processing chip comprises an ISP chip, and the second memory comprises a DDR.
  21. 根据权利要求17所述的装置,其特征在于,在得到所述第一目标图像或第二目标图像后,所述装置还用于:The device according to claim 17, wherein after obtaining the first target image or the second target image, the device is further configured to:
    将所述第一目标图像或第二目标图像发送给所述可移动平台的控制终端,以使所述控制终端将所述第一目标图像或第二目标图像显示给用户,其中,所述控制终端用于控制所述可移动平台运动。sending the first target image or the second target image to the control terminal of the movable platform, so that the control terminal displays the first target image or the second target image to the user, wherein the control The terminal is used to control the movement of the movable platform.
  22. 根据权利要求12-21任一项所述的装置,其特征在于,在得到所述第一目标图像或所述第二目标图像后,所述装置还用于:The device according to any one of claims 12-21, wherein after obtaining the first target image or the second target image, the device is further configured to:
    利用所述第一目标图像或所述第二目标图像生成视频并输出。A video is generated and output using the first target image or the second target image.
  23. 一种可移动平台,其特征在于,所述可移动平台包括图像采集装置和图像处理芯片,所述图像处理芯片包括处理器、存储器、存储于所述存储器可供所述处理器执行的计算机程序,所述处理器执行所述计算机程序时,实现以下步骤:A movable platform, characterized in that the movable platform includes an image acquisition device and an image processing chip, and the image processing chip includes a processor, a memory, and a computer program stored in the memory for execution by the processor , when the processor executes the computer program, the following steps are implemented:
    在所述图像采集设备循环地按照N种曝光量进行图像采集的过程中,获取所述图像采集设备当前采集的第一图像,其中,N为大于或等于2的整数;During the process that the image acquisition device cyclically performs image acquisition according to N exposures, a first image currently acquired by the image acquisition device is acquired, where N is an integer greater than or equal to 2;
    将所述第一图像与在所述第一图像之前采集的N-1帧第二图像进行融合,得到第一目标图像,所述N-1帧第二图像的曝光量各不相同,且不同于所述第一图像的曝光量;The first image is fused with N-1 frames of second images collected before the first image to obtain a first target image, and the exposures of the N-1 frames of second images are different and different. exposure to the first image;
    在获取到所述第一图像之后采集的N-1帧第三图像后,将所述第一图像与所述第三图像进行融合,得到第二目标图像,所述N-1帧第三图像的曝光量各不相同,且不同于所述第一图像的曝光量。After N-1 frames of third images collected after the first image are acquired, the first image and the third image are fused to obtain a second target image, the N-1 frames of the third image The exposures are different and different from the exposure of the first image.
  24. 根据权利要求23所述的可移动平台,其特征在于,所述图像处理芯片包括第一存储器,所述处理器用于在所述图像采集设备采集到所述第一图像的部分图像数据后,获取所述部分图像数据并存储至所述第一存储器,将存储至所述第一存储器的所述部分图像数据与所述第二图像中所述部分图像数据对应像素位置上的图像数据融合,得到所述目标图像的图像数据。The movable platform according to claim 23, wherein the image processing chip comprises a first memory, and the processor is configured to acquire, after the image acquisition device acquires part of the image data of the first image, The part of the image data is stored in the first memory, and the part of the image data stored in the first memory is fused with the image data at the pixel position corresponding to the part of the image data in the second image to obtain image data of the target image.
  25. 根据权利要求24所述的可移动平台,其特征在于,所述部分图像数据的数据量基于所述第一存储器的最大存储带宽确定。The movable platform according to claim 24, wherein the data amount of the partial image data is determined based on the maximum storage bandwidth of the first memory.
  26. 根据权利要求23-25任一项所述的可移动平台,其特征在于,所述可移动平台还包括第二存储器,所述第二图像存储于所述第二存储器。The movable platform according to any one of claims 23-25, wherein the movable platform further comprises a second memory, and the second image is stored in the second memory.
  27. 根据权利要求23-26任一项所述的可移动平台,其特征在于,所述处理器还用于将所述第一目标图像或第二目标图像发送给所述可移动平台的控制终端,以使所述控制终端将所述第一目标图像或第二目标图像显示给用户,其中,所述控制终端用于控制所述可移动平台运动。The movable platform according to any one of claims 23-26, wherein the processor is further configured to send the first target image or the second target image to a control terminal of the movable platform, so that the control terminal displays the first target image or the second target image to the user, wherein the control terminal is used to control the movement of the movable platform.
PCT/CN2020/126421 2020-11-04 2020-11-04 Image processing method and apparatus, and movable platform WO2022094784A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/126421 WO2022094784A1 (en) 2020-11-04 2020-11-04 Image processing method and apparatus, and movable platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/126421 WO2022094784A1 (en) 2020-11-04 2020-11-04 Image processing method and apparatus, and movable platform

Publications (1)

Publication Number Publication Date
WO2022094784A1 true WO2022094784A1 (en) 2022-05-12

Family

ID=81458461

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/126421 WO2022094784A1 (en) 2020-11-04 2020-11-04 Image processing method and apparatus, and movable platform

Country Status (1)

Country Link
WO (1) WO2022094784A1 (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102209201A (en) * 2010-03-30 2011-10-05 奥林巴斯映像株式会社 Image pickup apparatus, image pickup system, and image pickup method
JP2013118513A (en) * 2011-12-02 2013-06-13 Canon Inc Imaging apparatus
CN107079107A (en) * 2014-10-06 2017-08-18 徕卡显微系统(瑞士)股份公司 Microscope and method for the HDR composograph that obtains object
CN110198419A (en) * 2019-06-28 2019-09-03 Oppo广东移动通信有限公司 Image processing method, device, storage medium and electronic equipment
CN110213503A (en) * 2019-06-28 2019-09-06 Oppo广东移动通信有限公司 Image processing method, device, storage medium and electronic equipment
CN111028189A (en) * 2019-12-09 2020-04-17 Oppo广东移动通信有限公司 Image processing method, image processing device, storage medium and electronic equipment
CN111416945A (en) * 2019-01-07 2020-07-14 三星电子株式会社 Method and apparatus for processing image

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102209201A (en) * 2010-03-30 2011-10-05 奥林巴斯映像株式会社 Image pickup apparatus, image pickup system, and image pickup method
JP2013118513A (en) * 2011-12-02 2013-06-13 Canon Inc Imaging apparatus
CN107079107A (en) * 2014-10-06 2017-08-18 徕卡显微系统(瑞士)股份公司 Microscope and method for the HDR composograph that obtains object
CN111416945A (en) * 2019-01-07 2020-07-14 三星电子株式会社 Method and apparatus for processing image
CN110198419A (en) * 2019-06-28 2019-09-03 Oppo广东移动通信有限公司 Image processing method, device, storage medium and electronic equipment
CN110213503A (en) * 2019-06-28 2019-09-06 Oppo广东移动通信有限公司 Image processing method, device, storage medium and electronic equipment
CN111028189A (en) * 2019-12-09 2020-04-17 Oppo广东移动通信有限公司 Image processing method, image processing device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
US11588984B2 (en) Optimized exposure temporal smoothing for time-lapse mode
WO2021077963A1 (en) Image fusion method and apparatus, electronic device, and readable storage medium
CN105323465B (en) Image processing apparatus and its control method
CN103905730A (en) Shooting method of mobile terminal and mobile terminal
CN106657805A (en) Shooting method in movement and mobile terminal
WO2020207261A1 (en) Image processing method and apparatus based on multiple frames of images, and electronic device
EP3676795A1 (en) Local tone mapping
CN109474770B (en) Imaging device and imaging method
CN105657243A (en) Anti-jitter delay photographing method and device
US20220094838A1 (en) Method, Electronic Device and Computer-Readable Storage Medium for Generating a High Dynamic Range Image
CN108337445A (en) Photographic method, relevant device and computer storage media
DE102015204118A1 (en) METHOD, ELECTRONIC DEVICE AND SERVER FOR THE PRODUCTION OF DIGITALLY PROCESSED PICTURES
WO2020029679A1 (en) Control method and apparatus, imaging device, electronic device and readable storage medium
WO2015146006A1 (en) Imaging device, and imaging control method
US10600170B2 (en) Method and device for producing a digital image
CN106027914A (en) Imaging device and imaging method
CN106303243A (en) A kind of photographic method, device and terminal
CN113596357B (en) Image signal processor, image signal processing device and method, chip and terminal equipment
JP2010273035A (en) Imaging device
WO2022094784A1 (en) Image processing method and apparatus, and movable platform
JP7247609B2 (en) Imaging device, imaging method and program
TW201801515A (en) Image generating method and image capturing device
WO2022160294A1 (en) Exposure control method and device, and computer-readable storage medium
US8629925B2 (en) Image processing apparatus, image processing method, and computer program
US20210129991A1 (en) Image capturing method and unmanned aerial vehicle

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

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

Country of ref document: EP

Kind code of ref document: A1