WO2024088163A1 - Image processing method and circuit, device, and medium - Google Patents

Image processing method and circuit, device, and medium Download PDF

Info

Publication number
WO2024088163A1
WO2024088163A1 PCT/CN2023/125564 CN2023125564W WO2024088163A1 WO 2024088163 A1 WO2024088163 A1 WO 2024088163A1 CN 2023125564 W CN2023125564 W CN 2023125564W WO 2024088163 A1 WO2024088163 A1 WO 2024088163A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
chip
image processing
sent
processor
Prior art date
Application number
PCT/CN2023/125564
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 维沃移动通信有限公司
Publication of WO2024088163A1 publication Critical patent/WO2024088163A1/en

Links

Definitions

  • the present application belongs to the field of image processing technology, and specifically relates to an image processing method, circuit, device and medium.
  • the purpose of the embodiments of the present application is to provide an image processing method, circuit, device and medium, which can solve the problem of low image processing efficiency.
  • an embodiment of the present application provides an image processing method, comprising:
  • the first chip When the ambient brightness is greater than a brightness threshold, the first chip receives the first image and the second image sent by the image sensor;
  • the first chip performs image fusion processing on the first image and the second image to obtain a third image, and sends the third image to the second chip;
  • the first chip receives the fourth image sent by the image sensor, and sends the fourth image to the second chip.
  • an image processing circuit including:
  • a first chip and a second chip comprising a first image receiving unit, an image fusion unit and a first image sending unit;
  • a first image receiving unit configured to receive the first image and the second image sent by the image sensor when the ambient brightness is greater than a brightness threshold, and to receive the fourth image sent by the image sensor when the ambient brightness is less than or equal to the brightness threshold;
  • An image fusion unit used for performing image fusion processing on the first image and the second image to obtain a third image
  • the first image sending unit is used to send the third image or the fourth image to the second chip.
  • an embodiment of the present application provides an electronic device comprising a processor, a memory and an image sensor, wherein the processor comprises the image processing circuit provided in the second aspect of the embodiment of the present application, and the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the image processing method described in the first aspect are implemented.
  • an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the image processing method described in the first aspect are implemented.
  • an embodiment of the present application provides a chip, including a processor and a communication interface, wherein the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the steps of the image processing method described in the first aspect.
  • an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the steps of the image processing method as described in the first aspect.
  • the first chip when the ambient brightness is greater than the brightness threshold, receives the first image and the second image sent by the image sensor; the first chip performs image fusion processing on the first image and the second image to obtain a third image, and sends the third image to the second chip; when the ambient brightness is less than or equal to the brightness threshold, the first chip receives the fourth image sent by the image sensor, and sends the fourth image to the second chip.
  • the second chip receives an image, and the second chip does not need to switch the image pipeline, which can improve the image processing efficiency.
  • FIG1 is a schematic diagram of an image processing process corresponding to an SHDR mode provided by a related art
  • FIG2 is a schematic diagram of an image processing process corresponding to a Binning mode provided by a related art
  • FIG3 is a schematic diagram of a flow chart of an image processing method provided in an embodiment of the present application.
  • FIG4 is a schematic diagram of a first process of image processing provided by an embodiment of the present application.
  • FIG5 is a schematic diagram of a second process of image processing provided by an embodiment of the present application.
  • FIG6 is a schematic diagram of an image processing process in a dark environment provided by an embodiment of the present application.
  • FIG7 is a schematic diagram of an image processing process in a bright environment provided by an embodiment of the present application.
  • FIG8 is a schematic diagram of the structure of an image processing circuit provided in an embodiment of the present application.
  • FIG9 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
  • FIG. 10 is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.
  • first, second, etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first”, “second”, etc. are generally of one type, and the number of objects is not limited.
  • the first object can be one or more.
  • “and/or” in the specification and claims represents at least one of the connected objects, and the character “/" generally indicates that the objects associated with each other are in an "or” relationship.
  • the image sensor in the image acquisition unit (such as a camera) in the related technology provides two working modes: Stagger High Dynamic Range Imaging (SHDR) mode and Binning mode.
  • SHDR Stagger High Dynamic Range Imaging
  • the image sensor When the image sensor works in SHDR mode, for each frame of image collected by the image sensor, the image sensor will output two original, i.e., unprocessed (RAW) images to an image signal processor (ISP), the ISP performs RAW domain image processing on the two RAW images, and outputs the two images obtained after the RAW domain image processing to another ISP, the ISP performs YUV domain image processing on the two images, and fuses the two images obtained after the YUV domain image processing to obtain a high dynamic range (HDR) image, as shown in Figure 1, wherein the two RAW images include a long exposure (Long) RAW image and a short exposure (Short) RAW image;
  • the image sensor works in Binning mode, for each frame of image collected by the image sensor, the image sensor will output a RAW image to an ISP, the ISP performs RAW domain image processing on the RAW image, and outputs the image obtained after the RAW domain image processing to another ISP, the ISP performs YUV domain image
  • the current image pipeline of the image acquisition unit runs in the pipeline state of SHDR mode.
  • ISP1 needs to receive two images; when the image sensor works in Binning mode, the current image pipeline of the image acquisition unit runs in the pipeline state of Binning mode. In the pipeline state of Binning mode, ISP1 needs to receive one image.
  • the embodiments of the present application provide an image processing method, circuit, device and medium.
  • the image processing method, circuit, device and medium provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.
  • FIG3 is a flow chart of an image processing method provided in an embodiment of the present application. As shown in FIG3 , the image processing method may include:
  • the first chip When the ambient brightness is greater than a brightness threshold, the first chip receives a first image and a second image sent by an image sensor;
  • the first chip performs image fusion processing on the first image and the second image to obtain a third image
  • S305 Sending the fourth image to the second chip.
  • the first chip when the ambient brightness is greater than the brightness threshold, receives the first image and the second image sent by the image sensor; the first chip performs image fusion processing on the first image and the second image to obtain a third image, and sends the third image to the second chip; when the ambient brightness is less than or equal to the brightness threshold, the first chip receives the fourth image sent by the image sensor, and sends the fourth image to the second chip.
  • the second chip receives an image, and the second chip does not need to switch the image pipeline, which can improve the image processing efficiency.
  • the ambient brightness can be acquired when the image acquisition unit in the electronic device is started.
  • the ambient brightness is acquired by using a brightness sensor.
  • the image processing method provided by the embodiments of the present application may further include: the ambient brightness detection module receives image data sent by the image sensor, and performs ambient brightness detection based on the image data.
  • the embodiment of the present application does not limit the method used to detect ambient brightness based on image data, and any available method can be applied to the embodiment of the present application.
  • the ambient brightness can be detected by the image data sent by the image sensor, and no brightness sensor is required, which can save costs.
  • the image processing method provided by the embodiments of the present application may further include: controlling the working mode of the image sensor according to the ambient brightness, wherein the working mode of the image sensor includes: a bright environment working mode or a dark environment working mode.
  • the bright environment working mode in the embodiments of the present application may be an SHDR mode
  • the dark environment working mode may be a Binning mode
  • the working mode of the image sensor when the ambient brightness is greater than a brightness threshold, the working mode of the image sensor is controlled to be a bright environment working mode; when the ambient brightness is less than or equal to the brightness threshold, the working mode of the image sensor is controlled to be a dark environment working mode.
  • the image sensor When the image sensor operates in a bright environment operating mode, the image sensor outputs two images, namely, a first image and a second image.
  • the image sensor When the image sensor operates in the dark environment operating mode, the image sensor outputs only one image, namely, the fourth image.
  • the image processing method provided by the embodiments of the present application may further include: controlling the working state of the first chip according to the ambient brightness, wherein the working state of the first chip includes: Bypass state and Fusion state.
  • the image sensor when the ambient brightness is greater than the brightness threshold, the image sensor is controlled to work in a bright environment working mode, and the first chip is controlled to work in a Fusion state.
  • the Fusion state the first chip fuses the first image and the second image sent by the image sensor to obtain a third image, and sends the third image to the second chip.
  • the image sensor is controlled to work in a dark environment working mode, and the first chip is controlled to work in a Bypass state. In the Bypass state, the first chip forwards the fourth image sent by the image sensor to the second chip.
  • the image processing method provided by the embodiments of the present application may also include: the second chip receives the third image sent by the first chip, and performs RAW domain image processing on the third image to obtain a fifth image; or, the second chip receives the fourth image sent by the first chip, and performs RAW domain image processing on the fourth image to obtain a sixth image.
  • the image processing method provided by the embodiments of the present application may also include: the third chip receives the fifth image or the sixth image sent by the second chip, and performs YUV domain image processing on the fifth image or the sixth image.
  • Figures 4 and 5 show the image processing process when the image sensor works in a bright environment working mode and the first chip works in a Fusion state;
  • Figure 5 shows the image processing process when the image sensor works in a dark environment working mode and the first chip works in a Bypass state.
  • the image sensor works in SHDR mode
  • the first chip works in Fusion mode.
  • the image sensor sends the first image and the second image to the first chip; the first chip fuses the received first image and the second image to obtain a third image, and sends the third image to the second chip; the second chip fuses the third image.
  • the fifth image is obtained by performing RAW domain image processing, and the fifth image is sent to the third chip.
  • the third chip performs YUV domain image processing on the fifth image.
  • the image sensor works in Binning mode, and the first chip works in Bypass state.
  • the image sensor sends the fourth image to the first chip; the first chip sends the received fourth image to the second chip; the second chip performs RAW domain image processing on the fourth image to obtain a sixth image, and sends the sixth image to the third chip, and the third chip performs YUV domain image processing on the sixth image.
  • the second chip receives an image, and the second chip does not need to switch the image pipeline, thereby improving image processing efficiency.
  • the second chip may be a chip for a preview path; or may be a chip for a photo taking path.
  • the data path of the image acquisition unit includes a preview path and a photo path. Different data paths use different chips. In the preview mode, the image passes through the preview path and the chip of the preview path is used for image processing; in the photo and video modes, the image passes through the photo path and the chip of the photo path is used for image processing.
  • the RAW domain image processing in the embodiments of the present application when the data path of the image acquisition unit is a preview path, includes but is not limited to: lens correction, bad pixel correction, color interpolation, white balance and other processing; the RAW domain image processing in the embodiments of the present application includes but is not limited to: tone adjustment, noise reduction and other processing.
  • the RAW domain image processing in the embodiments of the present application includes but is not limited to: lens correction, bad pixel correction, color interpolation, white balance and other processing; the RAW domain image processing in the embodiments of the present application may also include bad pixel removal, phase focus, color processing, detail enhancement and other processing.
  • FIG6 shows the image processing process in a dark environment
  • FIG7 shows the image processing process in a bright environment.
  • the image sensor sends the image it has captured to the ambient brightness detection module, and the ambient brightness detection module performs ambient brightness detection based on the image.
  • the image sensor is controlled to work in Binning mode, and the first chip is controlled to work in Bypass state.
  • the data path of the image acquisition unit first works in the preview path.
  • the image sensor sends an image it has captured at this time to the first chip, and the first chip sends the image to ISP1.
  • ISP1 performs RAW domain image processing on the image, and sends the image obtained after the RAW domain image processing to ISP2.
  • ISP2 performs YUV domain image processing on the image obtained after the RAW domain image processing.
  • the data path of the image acquisition unit switches to the photo path, and the image sensor sends an image it has captured at this time to the first chip.
  • the first chip sends the image to ISP3, ISP3 performs RAW domain image processing on the image, and sends the image obtained after the RAW domain image processing to ISP4.
  • ISP4 performs YUV domain image processing on the image obtained after the RAW domain image processing.
  • the image sensor sends the image it has collected to the environment brightness detection module, and the environment brightness detection module performs environment brightness detection based on the image.
  • the image sensor is controlled to work in the SHDR mode, and the first chip is controlled to work in the Fusion state.
  • the data path of the image acquisition unit first works in the preview path.
  • the image sensor sends the two images it has collected to the first chip.
  • the first chip performs fusion processing on the two images, and sends the image obtained after the fusion processing to ISP1.
  • ISP1 performs RAW domain image processing on the image obtained after the fusion processing, and sends the image obtained after the RAW domain image processing to ISP2.
  • ISP2 performs YUV domain image processing on the image obtained after the RAW domain image processing.
  • the data path of the image acquisition unit is switched to the photo path, and the image sensor sends the two images it has collected to the first chip.
  • the first chip performs fusion processing on the two images, and sends the image obtained after the fusion processing to ISP3.
  • ISP3 performs RAW domain image processing on the image obtained after the fusion processing, and sends the image obtained after the RAW domain image processing to ISP4.
  • ISP4 performs YUV domain image processing on the image obtained after the RAW domain image processing.
  • the chip among the first chip, the second chip and the third chip may be a chip including an image signal processor ISP.
  • the image processing method provided in the embodiment of the present application can be executed by an image processing circuit.
  • the image processing circuit provided in the embodiment of the present application is described by taking the image processing circuit executing the image processing method as an example.
  • Fig. 8 is a schematic diagram of the structure of an image processing circuit provided in an embodiment of the present application.
  • the image processing circuit 800 may include: a first chip 801 and a second chip 802, the first chip 801 includes a first image receiving unit 8011, an image fusion unit 8012 and a first image sending unit 8013;
  • the first image receiving unit 8011 is configured to receive the first image and the second image sent by the image sensor 500 when the ambient brightness is greater than a brightness threshold, and to receive the fourth image sent by the image sensor 500 when the ambient brightness is less than or equal to the brightness threshold;
  • An image fusion unit 8012 is used to perform image fusion processing on the first image and the second image to obtain a third image
  • the first image sending unit 8013 is configured to send the third image or the fourth image to the second chip 802 .
  • the second chip receives an image, and the second chip does not need to switch the image pipeline, thereby improving image processing efficiency.
  • the image processing circuit 800 may further include: a third chip 803, and the second chip 802 may include: a second image receiving unit 8021, a first image processing unit 8022, and a second image sending unit 8023;
  • the second image receiving unit 8021 is used to receive the third image or the fourth image sent by the first chip 801;
  • the first image processing unit 8022 is configured to perform RAW domain image processing on the third image to obtain a fifth image; or perform RAW domain image processing on the fourth image to obtain a sixth image;
  • the second image sending unit 8023 is configured to send the fifth image or the sixth image to the third chip 803 .
  • the third chip 803 includes: a third image receiving unit 8031 and a second image processing unit 8032;
  • the third image receiving unit 8031 is used to receive the fifth image or the sixth image sent by the second chip 802;
  • the second image processing unit 8032 is used to perform YUV domain image processing on the fifth image or the sixth image.
  • the second chip 802 may be a preview path chip or a camera path chip.
  • the image processing circuit 800 may further include:
  • the environment brightness detection module 804 is used to receive the image data sent by the image sensor 500 and perform environment brightness detection according to the image data.
  • the image processing circuit provided in the embodiment of the present application can implement each process in the image processing method embodiments of Figures 3 to 7, and will not be described again here to avoid repetition.
  • an embodiment of the present application further provides an electronic device 900, including a processor 901, a memory 902 and an image sensor 903, the processor 901 includes the image processing circuit 800 provided in the embodiment of the present application, the memory 902 stores a program or instruction that can be executed on the processor 901, and when the program or instruction is executed by the processor 901, the various steps of the above-mentioned image processing method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
  • the processor 901 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
  • CPU central processing unit
  • ASIC application specific integrated circuit
  • the memory 902 may include a read-only memory (ROM), a random access memory (RAM), a disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical/tangible memory storage device. Therefore, generally, the memory 902 includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the image processing method according to the embodiments of the present application.
  • ROM read-only memory
  • RAM random access memory
  • the memory 902 includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the image processing method according to the embodiments of the present
  • the electronic device 900 may be a terminal or other device other than a terminal.
  • the electronic device may be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a mobile Internet device (MID), an augmented reality (AR)/virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (PDA), etc.
  • MID mobile Internet device
  • AR augmented reality
  • VR virtual reality
  • UMPC ultra-mobile personal computer
  • PDA personal digital assistant
  • It may also be a server, a network attached storage (NAS), a personal Personal computer (PC), television (TV), ATM or self-service machine, etc., are not specifically limited in the embodiments of the present application.
  • the electronic device 900 in the embodiment of the present application may be an electronic device having an operating system.
  • the operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
  • FIG. 10 is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.
  • the electronic device 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010 and other components.
  • the electronic device 1000 can also include a power source (such as a battery) for supplying power to each component, and the power source can be logically connected to the processor 1010 through a power management system, so that the power management system can manage charging, discharging, and power consumption management.
  • a power source such as a battery
  • the electronic device structure shown in FIG10 does not constitute a limitation on the electronic device, and the electronic device can include more or fewer components than shown in the figure, or combine certain components, or arrange components differently, which will not be described in detail here.
  • the processor 1010 includes the image processing circuit provided in the embodiment of the present application.
  • the first chip in the image processing circuit is used to: receive the first image and the second image sent by the image sensor when the ambient brightness is greater than the brightness threshold, and receive the fourth image sent by the image sensor when the ambient brightness is less than or equal to the brightness threshold; perform image fusion processing on the first image and the second image to obtain a third image; and send the third image or the fourth image to the second chip.
  • the second chip receives an image, and the second chip does not need to switch the image pipeline, thereby improving image processing efficiency.
  • the second chip in the image processing circuit may be used for:
  • the fifth image or the sixth image is sent to the third chip.
  • the third chip in the image processing circuit may be used for:
  • the second chip may be a preview path chip or a camera path chip.
  • the processor 1010 may be configured to:
  • the input unit 1004 may include a graphics processing unit (GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode.
  • the display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc.
  • the user input unit 1007 includes a touch panel 10071 and at least one of other input devices 10072.
  • the touch panel 10071 is also called a touch screen.
  • the touch panel 10071 may include two parts: a touch detection device and a touch controller.
  • Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (such as a volume control key, a switch key, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
  • the memory 1009 can be used to store software programs and various data.
  • the memory 1009 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc.
  • the memory 1009 may include a volatile memory or a non-volatile memory, or the memory 1009 may include both volatile and non-volatile memories.
  • the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory.
  • the volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM).
  • the memory 1009 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
  • the processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1010.
  • An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored.
  • a program or instruction is stored.
  • the various processes of the above-mentioned image processing method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
  • the processor is the processor in the electronic device in the above embodiment.
  • the readable storage medium includes a computer-readable storage medium, and examples of the computer-readable storage medium include a non-transitory computer-readable storage medium, such as a ROM, RAM, a magnetic disk or an optical disk.
  • the embodiment of the present application also provides a chip, including a processor and a communication interface, the communication interface and the processor are coupled, the processor is used to run programs or instructions, implement the various processes of the above-mentioned image processing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
  • the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
  • An embodiment of the present application also provides a computer program product, which is stored in a storage medium.
  • the program product is executed by at least one processor to implement the various processes of the above-mentioned image processing method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
  • the technical solution of the present application can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
  • a storage medium such as ROM/RAM, a disk, or an optical disk
  • a terminal which can be a mobile phone, a computer, a server, or a network device, etc.

Landscapes

  • Studio Devices (AREA)

Abstract

Disclosed in the present application are an image processing method and circuit, a device, and a medium, belonging to the technical field of image processing. The image processing method comprises: when ambient brightness is greater than a brightness threshold, a first chip receives a first image and a second image which are sent by an image sensor; the first chip performs image fusion processing on the first image and the second image to obtain a third image, and sends to a second chip the third image; and when the ambient brightness is less than or equal to the brightness threshold, the first chip receives a fourth image sent by the image sensor and sends to the second chip the fourth image.

Description

图像处理方法、电路、设备及介质Image processing method, circuit, device and medium
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请主张在2022年10月24日在中国提交的中国专利申请号202211301287.2的优先权,其全部内容通过引用包含于此。This application claims priority to Chinese patent application No. 202211301287.2 filed in China on October 24, 2022, the entire contents of which are incorporated herein by reference.
技术领域Technical Field
本申请属于图像处理技术领域,具体涉及一种图像处理方法、电路、设备及介质。The present application belongs to the field of image processing technology, and specifically relates to an image processing method, circuit, device and medium.
背景技术Background technique
随着电子设备的不断发展,用户对电子设备的影像能力有了更高的要求,要求在外界环境较亮的情况下拍摄得到的图像具有更高的动态范围,在外界环境较暗的情况下拍摄得到的图像具有更好的亮度和更少的噪音。With the continuous development of electronic devices, users have higher requirements on the imaging capabilities of electronic devices, requiring that images taken in brighter external environments have a higher dynamic range, and images taken in darker external environments have better brightness and less noise.
相关技术中,当外界环境亮度发生变化时,图像传感器的工作模式和图像管道(pipeline)状态均不能自动切换。为了得到较好的图像,需要用户手动退出拍摄再启动拍摄以切换图像传感器的工作模式和图像pipeline状态。然而,通过手动切换图像传感器的工作模式和图像pipeline状态,操作比较繁琐,图像处理效率较低。In the related art, when the brightness of the external environment changes, the working mode of the image sensor and the image pipeline state cannot be switched automatically. In order to obtain a better image, the user needs to manually exit shooting and restart shooting to switch the working mode of the image sensor and the image pipeline state. However, manually switching the working mode of the image sensor and the image pipeline state is cumbersome and the image processing efficiency is low.
发明内容Summary of the invention
本申请实施例的目的是提供一种图像处理方法、电路、设备及介质,能够解决图像处理效率低的问题。The purpose of the embodiments of the present application is to provide an image processing method, circuit, device and medium, which can solve the problem of low image processing efficiency.
第一方面,本申请实施例提供了一种图像处理方法,包括:In a first aspect, an embodiment of the present application provides an image processing method, comprising:
在环境亮度大于亮度阈值的情况下,第一芯片接收图像传感器发送的第一图像和第二图像;When the ambient brightness is greater than a brightness threshold, the first chip receives the first image and the second image sent by the image sensor;
第一芯片将第一图像和第二图像进行图像融合处理,得到第三图像,并向第二芯片发送第三图像;The first chip performs image fusion processing on the first image and the second image to obtain a third image, and sends the third image to the second chip;
在环境亮度小于或等于亮度阈值的情况下,第一芯片接收图像传感器发送的第四图像,并向第二芯片发送第四图像。When the ambient brightness is less than or equal to the brightness threshold, the first chip receives the fourth image sent by the image sensor, and sends the fourth image to the second chip.
第二方面,本申请实施例提供了一种图像处理电路,包括:In a second aspect, an embodiment of the present application provides an image processing circuit, including:
第一芯片和第二芯片,第一芯片包括第一图像接收单元、图像融合单元和第一图像发送单元; A first chip and a second chip, the first chip comprising a first image receiving unit, an image fusion unit and a first image sending unit;
第一图像接收单元,用于在环境亮度大于亮度阈值的情况下,接收图像传感器发送的第一图像和第二图像,在环境亮度小于或等于亮度阈值的情况下,接收图像传感器发送的第四图像;A first image receiving unit, configured to receive the first image and the second image sent by the image sensor when the ambient brightness is greater than a brightness threshold, and to receive the fourth image sent by the image sensor when the ambient brightness is less than or equal to the brightness threshold;
图像融合单元,用于将第一图像和第二图像进行图像融合处理,得到第三图像;An image fusion unit, used for performing image fusion processing on the first image and the second image to obtain a third image;
第一图像发送单元,用于向第二芯片发送第三图像或第四图像。The first image sending unit is used to send the third image or the fourth image to the second chip.
第三方面,本申请实施例提供了一种电子设备,包括处理器、存储器和图像传感器,处理器包括本申请实施例第二方面提供的图像处理电路,存储器存储可在处理器上运行的程序或指令,程序或指令被处理器执行时实现如第一方面所述的图像处理方法的步骤。In a third aspect, an embodiment of the present application provides an electronic device comprising a processor, a memory and an image sensor, wherein the processor comprises the image processing circuit provided in the second aspect of the embodiment of the present application, and the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the image processing method described in the first aspect are implemented.
第四方面,本申请实施例提供了一种可读存储介质,可读存储介质上存储程序或指令,程序或指令被处理器执行时实现如第一方面所述的图像处理方法的步骤。In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the image processing method described in the first aspect are implemented.
第五方面,本申请实施例提供了一种芯片,包括处理器和通信接口,通信接口和处理器耦合,处理器用于运行程序或指令,实现如第一方面所述的图像处理方法的步骤。In a fifth aspect, an embodiment of the present application provides a chip, including a processor and a communication interface, wherein the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the steps of the image processing method described in the first aspect.
第六方面,本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如第一方面所述的图像处理方法的步骤。In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the steps of the image processing method as described in the first aspect.
在本申请实施例中,通过在环境亮度大于亮度阈值的情况下,第一芯片接收图像传感器发送的第一图像和第二图像;第一芯片将第一图像和第二图像进行图像融合处理,得到第三图像,并向第二芯片发送第三图像;在环境亮度小于或等于亮度阈值的情况下,第一芯片接收图像传感器发送的第四图像,并向第二芯片发送第四图像。如此,无论电子设备的外部环境是亮环境还是暗环境,图像传感器工作在亮环境工作模式还是暗环境工作模式,第二芯片接收到的都是一个图像,第二芯片无需进行图像pipeline切换,能够提高图像处理效率。In the embodiment of the present application, when the ambient brightness is greater than the brightness threshold, the first chip receives the first image and the second image sent by the image sensor; the first chip performs image fusion processing on the first image and the second image to obtain a third image, and sends the third image to the second chip; when the ambient brightness is less than or equal to the brightness threshold, the first chip receives the fourth image sent by the image sensor, and sends the fourth image to the second chip. In this way, no matter whether the external environment of the electronic device is a bright environment or a dark environment, and the image sensor works in a bright environment working mode or a dark environment working mode, the second chip receives an image, and the second chip does not need to switch the image pipeline, which can improve the image processing efficiency.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1是相关技术提供的对应SHDR模式的图像处理过程示意图;FIG1 is a schematic diagram of an image processing process corresponding to an SHDR mode provided by a related art;
图2是相关技术提供的对应Binning模式的图像处理过程示意图;FIG2 is a schematic diagram of an image processing process corresponding to a Binning mode provided by a related art;
图3是本申请实施例提供的图像处理方法的流程示意图;FIG3 is a schematic diagram of a flow chart of an image processing method provided in an embodiment of the present application;
图4是本申请实施例提供的图像处理的第一种过程示意图;FIG4 is a schematic diagram of a first process of image processing provided by an embodiment of the present application;
图5是本申请实施例提供的图像处理的第二种过程示意图;FIG5 is a schematic diagram of a second process of image processing provided by an embodiment of the present application;
图6是本申请实施例提供的暗环境下的图像处理过程的示意图;FIG6 is a schematic diagram of an image processing process in a dark environment provided by an embodiment of the present application;
图7是本申请实施例提供的亮环境下的图像处理过程的示意图;FIG7 is a schematic diagram of an image processing process in a bright environment provided by an embodiment of the present application;
图8是本申请实施例提供的图像处理电路的结构示意图; FIG8 is a schematic diagram of the structure of an image processing circuit provided in an embodiment of the present application;
图9是本申请实施例提供的电子设备的结构示意图;FIG9 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
图10是实现本申请实施例的电子设备的硬件结构示意图。FIG. 10 is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的术语在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and/or" in the specification and claims represents at least one of the connected objects, and the character "/" generally indicates that the objects associated with each other are in an "or" relationship.
相关技术中的图像采集单元(例如摄像头)中的图像传感器提供了两种工作模式:交错高动态范围成像(Stagger High Dynamic Range Imaging,SHDR)模式和Binning模式。The image sensor in the image acquisition unit (such as a camera) in the related technology provides two working modes: Stagger High Dynamic Range Imaging (SHDR) mode and Binning mode.
当图像传感器工作在SHDR模式时,对于图像传感器采集到的每一帧图像,图像传感器会输出两张原始的即未经过处理的(RAW)图像到一个图像信号处理器(Image Signal Processor,ISP),该ISP对两张RAW图像进行RAW域图像处理,将RAW域图像处理后得到的两张图像输出到另一个ISP,该ISP对两张图像进行YUV域图像处理,并将YUV域图像处理后得到的两张图像进行融合得到高动态范围(High Dynamic Range,HDR)图像,如图1所示,其中,两张RAW图像包括长曝(Long)RAW图像和短曝(Short)RAW图像;当图像传感器工作在Binning模式,对于图像传感器采集到的每一帧图像,图像传感器会输出一张RAW图像到一个ISP,该ISP对该张RAW图像进行RAW域图像处理,将RAW域图像处理后得到的图像输出到另一个ISP,该ISP对图像进行YUV域图像处理,得到高亮度低噪声图像,如图2所示。其中,在图1和图2中,两个ISP包括ISP1和ISP2。When the image sensor works in SHDR mode, for each frame of image collected by the image sensor, the image sensor will output two original, i.e., unprocessed (RAW) images to an image signal processor (ISP), the ISP performs RAW domain image processing on the two RAW images, and outputs the two images obtained after the RAW domain image processing to another ISP, the ISP performs YUV domain image processing on the two images, and fuses the two images obtained after the YUV domain image processing to obtain a high dynamic range (HDR) image, as shown in Figure 1, wherein the two RAW images include a long exposure (Long) RAW image and a short exposure (Short) RAW image; when the image sensor works in Binning mode, for each frame of image collected by the image sensor, the image sensor will output a RAW image to an ISP, the ISP performs RAW domain image processing on the RAW image, and outputs the image obtained after the RAW domain image processing to another ISP, the ISP performs YUV domain image processing on the image to obtain a high-brightness and low-noise image, as shown in Figure 2. In FIG. 1 and FIG. 2 , the two ISPs include ISP1 and ISP2.
当图像传感器工作在SHDR模式时,图像采集单元当前的图像pipeline运行在SHDR模式下的pipeline状态,在SHDR模式下的pipeline状态,ISP1需要接收两张图像;当图像传感器工作在Binning模式时,图像采集单元当前的图像pipeline运行在Binning模式下的pipeline状态,在Binning模式下的pipeline状态,ISP1需要接收一张图像。 When the image sensor works in SHDR mode, the current image pipeline of the image acquisition unit runs in the pipeline state of SHDR mode. In the pipeline state of SHDR mode, ISP1 needs to receive two images; when the image sensor works in Binning mode, the current image pipeline of the image acquisition unit runs in the pipeline state of Binning mode. In the pipeline state of Binning mode, ISP1 needs to receive one image.
当外界环境亮度发生变化时,图像传感器的工作模式和图像pipeline状态均不能自动切换。为了得到较好的图像,需要用户手动退出拍摄再启动拍摄以切换图像传感器的工作模式和图像pipeline状态。然而,通过手动切换图像传感器的工作模式和图像pipeline状态,操作比较繁琐,图像处理效率较低。When the brightness of the external environment changes, the working mode of the image sensor and the image pipeline state cannot be switched automatically. In order to obtain a better image, the user needs to manually exit shooting and restart shooting to switch the working mode of the image sensor and the image pipeline state. However, manually switching the working mode of the image sensor and the image pipeline state is cumbersome and the image processing efficiency is low.
为了提高图像处理效率,本申请实施例提供了一种图像处理方法、电路、设备及介质。下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的图像处理方法、电路、设备及介质进行详细地说明。In order to improve the efficiency of image processing, the embodiments of the present application provide an image processing method, circuit, device and medium. The image processing method, circuit, device and medium provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.
图3是本申请实施例提供的图像处理方法的流程示意图。如图3所示,图像处理方法可以包括:FIG3 is a flow chart of an image processing method provided in an embodiment of the present application. As shown in FIG3 , the image processing method may include:
S301:在环境亮度大于亮度阈值的情况下,第一芯片接收图像传感器发送的第一图像和第二图像;S301: When the ambient brightness is greater than a brightness threshold, the first chip receives a first image and a second image sent by an image sensor;
S302:第一芯片将第一图像和第二图像进行图像融合处理,得到第三图像;S302: The first chip performs image fusion processing on the first image and the second image to obtain a third image;
S303:向第二芯片发送第三图像;S303: Sending a third image to the second chip;
S304:在环境亮度小于或等于亮度阈值的情况下,第一芯片接收图像传感器发送的第四图像;S304: When the ambient brightness is less than or equal to the brightness threshold, the first chip receives a fourth image sent by the image sensor;
S305:向第二芯片发送第四图像。S305: Sending the fourth image to the second chip.
上述各步骤的具体实现方式将在下文中进行详细描述。The specific implementation of the above steps will be described in detail below.
在本申请实施例中,通过在环境亮度大于亮度阈值的情况下,第一芯片接收图像传感器发送的第一图像和第二图像;第一芯片将第一图像和第二图像进行图像融合处理,得到第三图像,并向第二芯片发送第三图像;在环境亮度小于或等于亮度阈值的情况下,第一芯片接收图像传感器发送的第四图像,并向第二芯片发送第四图像。如此,无论电子设备的外部环境是亮环境还是暗环境,图像传感器工作在亮环境工作模式还是暗环境工作模式,第二芯片接收到的都是一个图像,第二芯片无需进行图像pipeline切换,能够提高图像处理效率。In the embodiment of the present application, when the ambient brightness is greater than the brightness threshold, the first chip receives the first image and the second image sent by the image sensor; the first chip performs image fusion processing on the first image and the second image to obtain a third image, and sends the third image to the second chip; when the ambient brightness is less than or equal to the brightness threshold, the first chip receives the fourth image sent by the image sensor, and sends the fourth image to the second chip. In this way, no matter whether the external environment of the electronic device is a bright environment or a dark environment, and the image sensor works in a bright environment working mode or a dark environment working mode, the second chip receives an image, and the second chip does not need to switch the image pipeline, which can improve the image processing efficiency.
在本申请实施例的一些可能实现中,可以在电子设备中的图像采集单元启动时,获取环境亮度。例如,在电子设备中的图像采集单元启动时利用亮度传感器对环境亮度进行采集,得到环境亮度。In some possible implementations of the embodiments of the present application, the ambient brightness can be acquired when the image acquisition unit in the electronic device is started. For example, when the image acquisition unit in the electronic device is started, the ambient brightness is acquired by using a brightness sensor.
在本申请实施例的一些可能实现中,在S301和S304之前,本申请实施例提供的图像处理方法还可以包括:环境亮度检测模块接收图像传感器发送的图像数据,并根据图像数据进行环境亮度检测。In some possible implementations of the embodiments of the present application, before S301 and S304, the image processing method provided by the embodiments of the present application may further include: the ambient brightness detection module receives image data sent by the image sensor, and performs ambient brightness detection based on the image data.
本申请实施例并不对根据图像数据进行环境亮度检测所采用的方式进行限定,任何可用的方式均可以应用于本申请实施例中。The embodiment of the present application does not limit the method used to detect ambient brightness based on image data, and any available method can be applied to the embodiment of the present application.
在本申请实施例中,通过图像传感器发送的图像数据即可检测出环境亮度,无需亮度传感器,能够节省成本。 In the embodiment of the present application, the ambient brightness can be detected by the image data sent by the image sensor, and no brightness sensor is required, which can save costs.
在本申请实施例的一些可能实现中,在S301和S304之前,本申请实施例提供的图像处理方法还可以包括:根据环境亮度,控制图像传感器的工作模式,其中,图像传感器的工作模式包括:亮环境工作模式或暗环境工作模式。In some possible implementations of the embodiments of the present application, before S301 and S304, the image processing method provided by the embodiments of the present application may further include: controlling the working mode of the image sensor according to the ambient brightness, wherein the working mode of the image sensor includes: a bright environment working mode or a dark environment working mode.
在本申请实施例的一些可能实现中,本申请实施例中的亮环境工作模式可以为SHDR模式,暗环境工作模式可以为Binning模式。In some possible implementations of the embodiments of the present application, the bright environment working mode in the embodiments of the present application may be an SHDR mode, and the dark environment working mode may be a Binning mode.
在本申请实施例的一些可能实现中,在环境亮度大于亮度阈值的情况下,控制图像传感器的工作模式为亮环境工作模式;在环境亮度小于或等于亮度阈值的情况下,控制图像传感器的工作模式为暗环境工作模式。In some possible implementations of the embodiments of the present application, when the ambient brightness is greater than a brightness threshold, the working mode of the image sensor is controlled to be a bright environment working mode; when the ambient brightness is less than or equal to the brightness threshold, the working mode of the image sensor is controlled to be a dark environment working mode.
当图像传感器工作在亮环境工作模式下,图像传感器输出两张图像,即第一图像和第二图像。When the image sensor operates in a bright environment operating mode, the image sensor outputs two images, namely, a first image and a second image.
当图像传感器工作在暗环境工作模式下,图像传感器仅输出一张图像,即第四图像。When the image sensor operates in the dark environment operating mode, the image sensor outputs only one image, namely, the fourth image.
在本申请实施例的一些可能实现中,在S301和S304之前,本申请实施例提供的图像处理方法还可以包括:根据环境亮度,控制第一芯片的工作状态,其中,第一芯片的工作状态包括:Bypass状态和融合(Fusion)状态。In some possible implementations of the embodiments of the present application, before S301 and S304, the image processing method provided by the embodiments of the present application may further include: controlling the working state of the first chip according to the ambient brightness, wherein the working state of the first chip includes: Bypass state and Fusion state.
在本申请实施例的一些可能实现中,当环境亮度大于亮度阈值时,控制图像传感器工作在亮环境工作模式,控制第一芯片工作在Fusion状态,在Fusion状态下,第一芯片将图像传感器发送的第一图像和第二图像进行图像融合,得到第三图像,将该第三图像发送给第二芯片。当环境亮度不大于亮度阈值时,控制图像传感器工作在暗环境工作模式,控制第一芯片工作在Bypass状态,在Bypass状态下,第一芯片将图像传感器发送的第四图像转发给第二芯片。In some possible implementations of the embodiments of the present application, when the ambient brightness is greater than the brightness threshold, the image sensor is controlled to work in a bright environment working mode, and the first chip is controlled to work in a Fusion state. In the Fusion state, the first chip fuses the first image and the second image sent by the image sensor to obtain a third image, and sends the third image to the second chip. When the ambient brightness is not greater than the brightness threshold, the image sensor is controlled to work in a dark environment working mode, and the first chip is controlled to work in a Bypass state. In the Bypass state, the first chip forwards the fourth image sent by the image sensor to the second chip.
在本申请实施例的一些可能实现中,本申请实施例提供的图像处理方法还可以包括:第二芯片接收第一芯片发送的第三图像,并对第三图像进行RAW域图像处理,得到第五图像;或,第二芯片接收第一芯片发送的第四图像,并对第四图像进行RAW域图像处理,得到第六图像。In some possible implementations of the embodiments of the present application, the image processing method provided by the embodiments of the present application may also include: the second chip receives the third image sent by the first chip, and performs RAW domain image processing on the third image to obtain a fifth image; or, the second chip receives the fourth image sent by the first chip, and performs RAW domain image processing on the fourth image to obtain a sixth image.
在本申请实施例的一些可能实现中,本申请实施例提供的图像处理方法还可以包括:第三芯片接收第二芯片发送的第五图像或第六图像,并对第五图像或第六图像进行YUV域图像处理。In some possible implementations of the embodiments of the present application, the image processing method provided by the embodiments of the present application may also include: the third chip receives the fifth image or the sixth image sent by the second chip, and performs YUV domain image processing on the fifth image or the sixth image.
图像处理过程如图4和图5所示,其中,图4示出了图像传感器工作在亮环境工作模式和第一芯片工作在Fusion状态的图像处理过程;图5示出了图像传感器工作在暗环境工作模式和第一芯片工作在Bypass状态的图像处理过程。The image processing process is shown in Figures 4 and 5, wherein Figure 4 shows the image processing process when the image sensor works in a bright environment working mode and the first chip works in a Fusion state; Figure 5 shows the image processing process when the image sensor works in a dark environment working mode and the first chip works in a Bypass state.
在图4中,图像传感器工作在SHDR模式,第一芯片工作在Fushion状态。图像传感器向第一芯片发送第一图像和第二图像;第一芯片对接收到的第一图像和第二图像进行融合,得到第三图像,将第三图像发送给第二芯片;第二芯片对第三图像进行 RAW域图像处理,得到第五图像,将第五图像发送给第三芯片,第三芯片对第五图像进行YUV域图像处理。In Figure 4, the image sensor works in SHDR mode, and the first chip works in Fusion mode. The image sensor sends the first image and the second image to the first chip; the first chip fuses the received first image and the second image to obtain a third image, and sends the third image to the second chip; the second chip fuses the third image. The fifth image is obtained by performing RAW domain image processing, and the fifth image is sent to the third chip. The third chip performs YUV domain image processing on the fifth image.
在图5中,图像传感器工作在Binning模式,第一芯片工作在Bypass状态。图像传感器向第一芯片发送第四图像;第一芯片将接收到的第四图像发送给第二芯片;第二芯片对第四图像进行RAW域图像处理,得到第六图像,将第六图像发送给第三芯片,第三芯片对第六图像进行YUV域图像处理。In FIG5 , the image sensor works in Binning mode, and the first chip works in Bypass state. The image sensor sends the fourth image to the first chip; the first chip sends the received fourth image to the second chip; the second chip performs RAW domain image processing on the fourth image to obtain a sixth image, and sends the sixth image to the third chip, and the third chip performs YUV domain image processing on the sixth image.
在本申请实施例中,无论电子设备的外部环境是亮环境还是暗环境,图像传感器工作在亮环境工作模式还是暗环境工作模式,第二芯片接收到的都是一个图像,第二芯片无需进行图像pipeline切换,能够提高图像处理效率。In the embodiment of the present application, no matter whether the external environment of the electronic device is a bright environment or a dark environment, and whether the image sensor operates in a bright environment working mode or a dark environment working mode, the second chip receives an image, and the second chip does not need to switch the image pipeline, thereby improving image processing efficiency.
在本申请实施例的一些可能实现中,第二芯片可以为预览通路的芯片;还可以为拍照通路的芯片。In some possible implementations of the embodiments of the present application, the second chip may be a chip for a preview path; or may be a chip for a photo taking path.
其中,图像采集单元的数据通路包括预览通路和拍照通路。不同的数据通路使用不同的芯片。在预览模式下,图像通过预览通路,使用预览通路的芯片进行图像处理;在拍照和录像模式下,图像通过拍照通路,使用拍照通路的芯片进行图像处理。The data path of the image acquisition unit includes a preview path and a photo path. Different data paths use different chips. In the preview mode, the image passes through the preview path and the chip of the preview path is used for image processing; in the photo and video modes, the image passes through the photo path and the chip of the photo path is used for image processing.
在本申请实施例的一些可能实现中,当图像采集单元的数据通路为预览通路时,本申请实施例中的RAW域图像处理包括但不限于:镜头矫正、坏点矫正、色彩插值、白平衡等处理;本申请实施例中的RAW域图像处理包括但不限于:影调调整、降噪等处理。当图像采集单元的数据通路为拍照通路时,本申请实施例中的RAW域图像处理包括但不限于:镜头矫正、坏点矫正、色彩插值、白平衡等处理;本申请实施例中的RAW域图像处理还可以包括坏点去除、相位对焦、颜色处理、细节增强等处理。In some possible implementations of the embodiments of the present application, when the data path of the image acquisition unit is a preview path, the RAW domain image processing in the embodiments of the present application includes but is not limited to: lens correction, bad pixel correction, color interpolation, white balance and other processing; the RAW domain image processing in the embodiments of the present application includes but is not limited to: tone adjustment, noise reduction and other processing. When the data path of the image acquisition unit is a photo taking path, the RAW domain image processing in the embodiments of the present application includes but is not limited to: lens correction, bad pixel correction, color interpolation, white balance and other processing; the RAW domain image processing in the embodiments of the present application may also include bad pixel removal, phase focus, color processing, detail enhancement and other processing.
当图像采集单元的数据通路包括预览通路和拍照通路时,图像处理过程如图6和图7所示,其中,图6示出了暗环境下的图像处理过程;图7示出了亮环境下的图像处理过程。When the data path of the image acquisition unit includes a preview path and a photographing path, the image processing process is shown in FIG6 and FIG7 , wherein FIG6 shows the image processing process in a dark environment; and FIG7 shows the image processing process in a bright environment.
在图6中,图像传感器将其采集的图像发送给环境亮度检测模块,环境亮度检测模块根据该图像进行环境亮度检测,当检测到环境亮度不大于亮度阈值时,控制图像传感器工作在Binning模式,控制第一芯片工作在Bypass状态。图像采集单元的数据通路首先工作在预览通路,此时,图像传感器将其此时采集的一个图像发送给第一芯片,第一芯片将该图像发送给ISP1,ISP1对该图像进行RAW域图像处理,将RAW域图像处理后得到的图像发送给ISP2,ISP2对RAW域图像处理后得到的图像进行YUV域图像处理。当用户点击“拍照”控件或“录像”控件后,图像采集单元的数据通路切换为拍照通路,图像传感器将其此时采集的一个图像发送给第一芯片,第一芯片将该图像发送给ISP3,ISP3对该图像进行RAW域图像处理,将RAW域图像处理后得到的图像发送给ISP4,ISP4对RAW域图像处理后得到的图像进行YUV域图像处理。 In FIG6 , the image sensor sends the image it has captured to the ambient brightness detection module, and the ambient brightness detection module performs ambient brightness detection based on the image. When it is detected that the ambient brightness is not greater than the brightness threshold, the image sensor is controlled to work in Binning mode, and the first chip is controlled to work in Bypass state. The data path of the image acquisition unit first works in the preview path. At this time, the image sensor sends an image it has captured at this time to the first chip, and the first chip sends the image to ISP1. ISP1 performs RAW domain image processing on the image, and sends the image obtained after the RAW domain image processing to ISP2. ISP2 performs YUV domain image processing on the image obtained after the RAW domain image processing. When the user clicks the "photo" control or the "record" control, the data path of the image acquisition unit switches to the photo path, and the image sensor sends an image it has captured at this time to the first chip. The first chip sends the image to ISP3, ISP3 performs RAW domain image processing on the image, and sends the image obtained after the RAW domain image processing to ISP4. ISP4 performs YUV domain image processing on the image obtained after the RAW domain image processing.
在图7中,图像传感器将其采集的图像发送给环境亮度检测模块,环境亮度检测模块根据该图像进行环境亮度检测,当检测到环境亮度不大于亮度阈值时,控制图像传感器工作在SHDR模式,控制第一芯片工作在Fushion状态。图像采集单元的数据通路首先工作在预览通路,此时,图像传感器将其此时采集的两个图像发送给第一芯片,第一芯片对该两个图像进行融合处理,将融合处理后得到的图像发送给ISP1,ISP1对该融合处理后得到的图像进行RAW域图像处理,将RAW域图像处理得到后的图像发送给ISP2,ISP2对RAW域图像处理后得到的图像进行YUV域图像处理。当用户点击“拍照”控件或“录像”控件后,图像采集单元的数据通路切换为拍照通路,图像传感器将其此时采集的两个图像发送给第一芯片,第一芯片对该两个图像进行融合处理,将融合处理后得到的图像发送给ISP3,ISP3对该融合处理后得到的图像进行RAW域图像处理,将RAW域图像处理得到后的图像发送给ISP4,ISP4对RAW域图像处理后得到的图像进行YUV域图像处理。需要说明的是,上述第一芯片、第二芯片和第三芯片中的芯片可以为包括图像信号处理器ISP的芯片。In FIG7 , the image sensor sends the image it has collected to the environment brightness detection module, and the environment brightness detection module performs environment brightness detection based on the image. When it is detected that the environment brightness is not greater than the brightness threshold, the image sensor is controlled to work in the SHDR mode, and the first chip is controlled to work in the Fusion state. The data path of the image acquisition unit first works in the preview path. At this time, the image sensor sends the two images it has collected to the first chip. The first chip performs fusion processing on the two images, and sends the image obtained after the fusion processing to ISP1. ISP1 performs RAW domain image processing on the image obtained after the fusion processing, and sends the image obtained after the RAW domain image processing to ISP2. ISP2 performs YUV domain image processing on the image obtained after the RAW domain image processing. When the user clicks the "photo" control or the "record" control, the data path of the image acquisition unit is switched to the photo path, and the image sensor sends the two images it has collected to the first chip. The first chip performs fusion processing on the two images, and sends the image obtained after the fusion processing to ISP3. ISP3 performs RAW domain image processing on the image obtained after the fusion processing, and sends the image obtained after the RAW domain image processing to ISP4. ISP4 performs YUV domain image processing on the image obtained after the RAW domain image processing. It should be noted that the chip among the first chip, the second chip and the third chip may be a chip including an image signal processor ISP.
需要说明的是,本申请实施例提供的图像处理方法,执行主体可以为图像处理电路。本申请实施例中以图像处理电路执行图像处理方法为例,说明本申请实施例提供的图像处理电路。It should be noted that the image processing method provided in the embodiment of the present application can be executed by an image processing circuit. In the embodiment of the present application, the image processing circuit provided in the embodiment of the present application is described by taking the image processing circuit executing the image processing method as an example.
图8是本申请实施例提供的图像处理电路的结构示意图。如图8所示,图像处理电路800可以包括:第一芯片801和第二芯片802,第一芯片801包括第一图像接收单元8011、图像融合单元8012和第一图像发送单元8013;Fig. 8 is a schematic diagram of the structure of an image processing circuit provided in an embodiment of the present application. As shown in Fig. 8, the image processing circuit 800 may include: a first chip 801 and a second chip 802, the first chip 801 includes a first image receiving unit 8011, an image fusion unit 8012 and a first image sending unit 8013;
第一图像接收单元8011,用于在环境亮度大于亮度阈值的情况下,接收图像传感器500发送的第一图像和第二图像,在环境亮度小于或等于亮度阈值的情况下,接收图像传感器500发送的第四图像;The first image receiving unit 8011 is configured to receive the first image and the second image sent by the image sensor 500 when the ambient brightness is greater than a brightness threshold, and to receive the fourth image sent by the image sensor 500 when the ambient brightness is less than or equal to the brightness threshold;
图像融合单元8012,用于将第一图像和第二图像进行图像融合处理,得到第三图像;An image fusion unit 8012 is used to perform image fusion processing on the first image and the second image to obtain a third image;
第一图像发送单元8013,用于向第二芯片802发送第三图像或第四图像。The first image sending unit 8013 is configured to send the third image or the fourth image to the second chip 802 .
在本申请实施例中,无论电子设备的外部环境是亮环境还是暗环境,图像传感器工作在亮环境工作模式还是暗环境工作模式,第二芯片接收到的都是一个图像,第二芯片无需进行图像pipeline切换,能够提高图像处理效率。In the embodiment of the present application, no matter whether the external environment of the electronic device is a bright environment or a dark environment, and whether the image sensor operates in a bright environment working mode or a dark environment working mode, the second chip receives an image, and the second chip does not need to switch the image pipeline, thereby improving image processing efficiency.
在本申请实施例的一些可能实现中,图像处理电路800还可以包括:第三芯片803,第二芯片802可以包括:第二图像接收单元8021、第一图像处理单元8022和第二图像发送单元8023;In some possible implementations of the embodiments of the present application, the image processing circuit 800 may further include: a third chip 803, and the second chip 802 may include: a second image receiving unit 8021, a first image processing unit 8022, and a second image sending unit 8023;
第二图像接收单元8021,用于接收第一芯片801发送的第三图像或第四图像;The second image receiving unit 8021 is used to receive the third image or the fourth image sent by the first chip 801;
第一图像处理单元8022,用于对第三图像进行RAW域图像处理,得到第五图像;或,对第四图像进行RAW域图像处理,得到第六图像; The first image processing unit 8022 is configured to perform RAW domain image processing on the third image to obtain a fifth image; or perform RAW domain image processing on the fourth image to obtain a sixth image;
第二图像发送单元8023,用于向第三芯片803发送第五图像或第六图像。The second image sending unit 8023 is configured to send the fifth image or the sixth image to the third chip 803 .
在本申请实施例的一些可能实现中,第三芯片803包括:第三图像接收单元8031和第二图像处理单元8032;In some possible implementations of the embodiments of the present application, the third chip 803 includes: a third image receiving unit 8031 and a second image processing unit 8032;
第三图像接收单元8031,用于接收第二芯片802发送的第五图像或第六图像;The third image receiving unit 8031 is used to receive the fifth image or the sixth image sent by the second chip 802;
第二图像处理单元8032,用于对第五图像或第六图像进行YUV域图像处理。The second image processing unit 8032 is used to perform YUV domain image processing on the fifth image or the sixth image.
在本申请实施例的一些可能实现中,第二芯片802可以为预览通路芯片或拍照通路芯片。In some possible implementations of the embodiments of the present application, the second chip 802 may be a preview path chip or a camera path chip.
在本申请实施例的一些可能实现中,图像处理电路800还可以包括:In some possible implementations of the embodiments of the present application, the image processing circuit 800 may further include:
环境亮度检测模块804,用于接收图像传感器500发送的图像数据,并根据图像数据进行环境亮度检测。The environment brightness detection module 804 is used to receive the image data sent by the image sensor 500 and perform environment brightness detection according to the image data.
本申请实施例提供的图像处理电路能够实现图3至图7的图像处理方法实施例中的各个过程,为避免重复,这里不再赘述。The image processing circuit provided in the embodiment of the present application can implement each process in the image processing method embodiments of Figures 3 to 7, and will not be described again here to avoid repetition.
可选的,如图9所示,本申请实施例还提供一种电子设备900,包括处理器901、存储器902和图像传感器903,处理器901包括本申请实施例提供的图像处理电路800,存储器902存储有可在处理器901上运行的程序或指令,该程序或指令被处理器901执行时实现上述图像处理方法实施例的各个步骤,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, as shown in Figure 9, an embodiment of the present application further provides an electronic device 900, including a processor 901, a memory 902 and an image sensor 903, the processor 901 includes the image processing circuit 800 provided in the embodiment of the present application, the memory 902 stores a program or instruction that can be executed on the processor 901, and when the program or instruction is executed by the processor 901, the various steps of the above-mentioned image processing method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
在本申请实施例的一些可能实现中,处理器901可以包括中央处理器(CPU),或者特定集成电路(Application Specific Integrated Circuit,ASIC),或者可以被配置成实施本申请实施例的一个或多个集成电路。In some possible implementations of the embodiments of the present application, the processor 901 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
在本申请实施例的一些可能实现中,存储器902可以包括只读存储器(Read-Only Memory,ROM),随机存取存储器(Random Access Memory,RAM),磁盘存储介质设备,光存储介质设备,闪存设备,电气、光学或其他物理/有形的存储器存储设备。因此,通常,存储器902包括一个或多个编码有包括计算机可执行指令的软件的有形(非暂态)计算机可读存储介质(例如,存储器设备),并且当该软件被执行(例如,由一个或多个处理器)时,其可操作来执行参考根据本申请实施例的图像处理方法所描述的操作。In some possible implementations of the embodiments of the present application, the memory 902 may include a read-only memory (ROM), a random access memory (RAM), a disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical/tangible memory storage device. Therefore, generally, the memory 902 includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the image processing method according to the embodiments of the present application.
该电子设备900可以是终端,也可以为除终端之外的其他设备。示例性的,电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、移动上网装置(Mobile Internet Device,MID)、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、机器人、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,还可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个 人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The electronic device 900 may be a terminal or other device other than a terminal. For example, the electronic device may be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a mobile Internet device (MID), an augmented reality (AR)/virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (PDA), etc. It may also be a server, a network attached storage (NAS), a personal Personal computer (PC), television (TV), ATM or self-service machine, etc., are not specifically limited in the embodiments of the present application.
本申请实施例中的电子设备900可以为具有操作系统的电子设备。该操作系统可以为安卓(Android)操作系统,可以为iOS操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The electronic device 900 in the embodiment of the present application may be an electronic device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
图10是实现本申请实施例的电子设备的硬件结构示意图。FIG. 10 is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.
该电子设备1000包括但不限于:射频单元1001、网络模块1002、音频输出单元1003、输入单元1004、传感器1005、显示单元1006、用户输入单元1007、接口单元1008、存储器1009、以及处理器1010等部件。The electronic device 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010 and other components.
本领域技术人员可以理解,电子设备1000还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器1010逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图10中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 1000 can also include a power source (such as a battery) for supplying power to each component, and the power source can be logically connected to the processor 1010 through a power management system, so that the power management system can manage charging, discharging, and power consumption management. The electronic device structure shown in FIG10 does not constitute a limitation on the electronic device, and the electronic device can include more or fewer components than shown in the figure, or combine certain components, or arrange components differently, which will not be described in detail here.
处理器1010包括本申请实施例提供的图像处理电路。The processor 1010 includes the image processing circuit provided in the embodiment of the present application.
其中,图像处理电路中的第一芯片用于:在环境亮度大于亮度阈值的情况下,接收图像传感器发送的第一图像和第二图像,在环境亮度小于或等于亮度阈值的情况下,接收图像传感器发送的第四图像;将第一图像和第二图像进行图像融合处理,得到第三图像;向第二芯片发送第三图像或第四图像。Among them, the first chip in the image processing circuit is used to: receive the first image and the second image sent by the image sensor when the ambient brightness is greater than the brightness threshold, and receive the fourth image sent by the image sensor when the ambient brightness is less than or equal to the brightness threshold; perform image fusion processing on the first image and the second image to obtain a third image; and send the third image or the fourth image to the second chip.
在本申请实施例中,无论电子设备的外部环境是亮环境还是暗环境,图像传感器工作在亮环境工作模式还是暗环境工作模式,第二芯片接收到的都是一个图像,第二芯片无需进行图像pipeline切换,能够提高图像处理效率。In the embodiment of the present application, no matter whether the external environment of the electronic device is a bright environment or a dark environment, and whether the image sensor operates in a bright environment working mode or a dark environment working mode, the second chip receives an image, and the second chip does not need to switch the image pipeline, thereby improving image processing efficiency.
在本申请实施例的一些可能实现中,图像处理电路中的第二芯片可以用于:In some possible implementations of the embodiments of the present application, the second chip in the image processing circuit may be used for:
接收第一芯片发送的第三图像或第四图像;receiving the third image or the fourth image sent by the first chip;
对第三图像进行RAW域图像处理,得到第五图像;或,对第四图像进行RAW域图像处理,得到第六图像;Performing RAW domain image processing on the third image to obtain a fifth image; or performing RAW domain image processing on the fourth image to obtain a sixth image;
向第三芯片发送第五图像或第六图像。The fifth image or the sixth image is sent to the third chip.
在本申请实施例的一些可能实现中,图像处理电路中的第三芯片可以用于:In some possible implementations of the embodiments of the present application, the third chip in the image processing circuit may be used for:
接收第二芯片发送的第五图像或第六图像;receiving the fifth image or the sixth image sent by the second chip;
对第五图像或第六图像进行YUV域图像处理。Perform YUV domain image processing on the fifth image or the sixth image.
在本申请实施例的一些可能实现中,第二芯片可以为预览通路芯片或拍照通路芯片。In some possible implementations of the embodiments of the present application, the second chip may be a preview path chip or a camera path chip.
在本申请实施例的一些可能实现中,处理器1010可以用于:In some possible implementations of the embodiments of the present application, the processor 1010 may be configured to:
接收图像传感器发送的图像数据,并根据图像数据进行环境亮度检测。 Receive image data sent by the image sensor and perform ambient brightness detection based on the image data.
应理解的是,本申请实施例中,输入单元1004可以包括图形处理器(Graphics Processing Unit,GPU)10041和麦克风10042,图形处理器10041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元1006可包括显示面板10061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板10061。用户输入单元1007包括触控面板10071以及其他输入设备10072中的至少一种。触控面板10071,也称为触摸屏。触控面板10071可包括触摸检测装置和触摸控制器两个部分。其他输入设备10072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。It should be understood that in the embodiment of the present application, the input unit 1004 may include a graphics processing unit (GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1007 includes a touch panel 10071 and at least one of other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include two parts: a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (such as a volume control key, a switch key, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
存储器1009可用于存储软件程序以及各种数据。存储器1009可主要包括存储程序或指令的第一存储区和存储数据的第二存储区,其中,第一存储区可存储操作系统、至少一个功能所需的应用程序或指令(比如声音播放功能、图像播放功能等)等。此外,存储器1009可以包括易失性存储器或非易失性存储器,或者,存储器1009可以包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synch link DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRRAM)。本申请实施例中的存储器1009包括但不限于这些和任意其它适合类型的存储器。The memory 1009 can be used to store software programs and various data. The memory 1009 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 1009 may include a volatile memory or a non-volatile memory, or the memory 1009 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 1009 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
处理器1010可包括一个或多个处理单元;可选的,处理器1010集成应用处理器和调制解调处理器,其中,应用处理器主要处理涉及操作系统、用户界面和应用程序等的操作,调制解调处理器主要处理无线通信信号,如基带处理器。可以理解的是,上述调制解调处理器也可以不集成到处理器1010中。The processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1010.
本申请实施例还提供一种可读存储介质,可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述图像处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned image processing method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
其中,处理器为上述实施例中的电子设备中的处理器。可读存储介质包括计算机可读存储介质,计算机可读存储介质的示例包括非暂态计算机可读存储介质,如ROM、RAM、磁碟或者光盘等。 The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer-readable storage medium, and examples of the computer-readable storage medium include a non-transitory computer-readable storage medium, such as a ROM, RAM, a magnetic disk or an optical disk.
本申请实施例还提供了一种芯片,包括处理器和通信接口,通信接口和处理器耦合,处理器用于运行程序或指令,实现上述图像处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application also provides a chip, including a processor and a communication interface, the communication interface and the processor are coupled, the processor is used to run programs or instructions, implement the various processes of the above-mentioned image processing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
本申请实施例还提供了一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如上述图像处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application also provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned image processing method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises one..." does not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be noted that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对相关技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the relevant technology, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。 The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims (15)

  1. 一种图像处理方法,所述方法包括:An image processing method, the method comprising:
    在环境亮度大于亮度阈值的情况下,第一芯片接收图像传感器发送的第一图像和第二图像;When the ambient brightness is greater than a brightness threshold, the first chip receives the first image and the second image sent by the image sensor;
    所述第一芯片将所述第一图像和所述第二图像进行图像融合处理,得到第三图像,并向第二芯片发送所述第三图像;The first chip performs image fusion processing on the first image and the second image to obtain a third image, and sends the third image to the second chip;
    在所述环境亮度小于或等于所述亮度阈值的情况下,所述第一芯片接收所述图像传感器发送的第四图像,并向所述第二芯片发送所述第四图像。When the ambient brightness is less than or equal to the brightness threshold, the first chip receives the fourth image sent by the image sensor, and sends the fourth image to the second chip.
  2. 根据权利要求1所述的方法,其中,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    所述第二芯片接收所述第一芯片发送的所述第三图像,并对所述第三图像进行RAW域图像处理,得到第五图像;或,The second chip receives the third image sent by the first chip, and performs RAW domain image processing on the third image to obtain a fifth image; or,
    所述第二芯片接收所述第一芯片发送的所述第四图像,并对所述第四图像进行RAW域图像处理,得到第六图像。The second chip receives the fourth image sent by the first chip, and performs RAW domain image processing on the fourth image to obtain a sixth image.
  3. 根据权利要求2所述的方法,其中,所述方法还包括:The method according to claim 2, wherein the method further comprises:
    第三芯片接收所述第二芯片发送的所述第五图像,并对所述第五图像进行YUV域图像处理;或,The third chip receives the fifth image sent by the second chip, and performs YUV domain image processing on the fifth image; or,
    所述第三芯片接收所述第二芯片发送的所述第六图像,并对所述第六图像进行YUV域图像处理。The third chip receives the sixth image sent by the second chip, and performs YUV domain image processing on the sixth image.
  4. 根据权利要求1所述的方法,其中,所述第二芯片为预览通路芯片或拍照通路芯片。The method according to claim 1, wherein the second chip is a preview path chip or a camera path chip.
  5. 根据权利要求1所述的方法,其中,在所述第一芯片接收图像传感器发送的第一图像和第二图像之前,或,在所述第一芯片接收所述图像传感器发送的第四图像之前,所述方法还包括:The method according to claim 1, wherein before the first chip receives the first image and the second image sent by the image sensor, or before the first chip receives the fourth image sent by the image sensor, the method further comprises:
    环境亮度检测模块接收所述图像传感器发送的图像数据,并根据所述图像数据进行环境亮度检测。The environment brightness detection module receives the image data sent by the image sensor, and performs environment brightness detection according to the image data.
  6. 一种图像处理电路,所述电路包括:第一芯片和第二芯片,所述第一芯片包括第一图像接收单元、图像融合单元和第一图像发送单元;An image processing circuit, the circuit comprising: a first chip and a second chip, the first chip comprising a first image receiving unit, an image fusion unit and a first image sending unit;
    所述第一图像接收单元,用于在环境亮度大于亮度阈值的情况下,接收图像传感器发送的第一图像和第二图像,在所述环境亮度小于或等于所述亮度阈值的情况下,接收所述图像传感器发送的第四图像;The first image receiving unit is configured to receive the first image and the second image sent by the image sensor when the ambient brightness is greater than a brightness threshold, and to receive the fourth image sent by the image sensor when the ambient brightness is less than or equal to the brightness threshold;
    所述图像融合单元,用于将所述第一图像和所述第二图像进行图像融合处理,得到第三图像;The image fusion unit is used to perform image fusion processing on the first image and the second image to obtain a third image;
    所述第一图像发送单元,用于向第二芯片发送所述第三图像或所述第四图像。 The first image sending unit is used to send the third image or the fourth image to the second chip.
  7. 根据权利要求6所述的电路,其中,所述电路还包括:第三芯片,所述第二芯片包括:第二图像接收单元、第一图像处理单元和第二图像发送单元;The circuit according to claim 6, wherein the circuit further comprises: a third chip, the second chip comprising: a second image receiving unit, a first image processing unit, and a second image sending unit;
    所述第二图像接收单元,用于接收所述第一芯片发送的所述第三图像或所述第四图像;The second image receiving unit is used to receive the third image or the fourth image sent by the first chip;
    所述第一图像处理单元,用于对所述第三图像进行RAW域图像处理,得到第五图像;或,对所述第四图像进行RAW域图像处理,得到第六图像;The first image processing unit is configured to perform RAW domain image processing on the third image to obtain a fifth image; or perform RAW domain image processing on the fourth image to obtain a sixth image;
    所述第二图像发送单元,用于向所述第三芯片发送所述第五图像或所述第六图像。The second image sending unit is used to send the fifth image or the sixth image to the third chip.
  8. 根据权利要求7所述的电路,其中,所述第三芯片包括:第三图像接收单元和第二图像处理单元;The circuit according to claim 7, wherein the third chip comprises: a third image receiving unit and a second image processing unit;
    所述第三图像接收单元,用于接收所述第二芯片发送的所述第五图像或所述第六图像;The third image receiving unit is used to receive the fifth image or the sixth image sent by the second chip;
    所述第二图像处理单元,用于对所述第五图像或所述第六图像进行YUV域图像处理。The second image processing unit is used to perform YUV domain image processing on the fifth image or the sixth image.
  9. 根据权利要求6所述的电路,其中,所述第二芯片为预览通路芯片或拍照通路芯片。The circuit according to claim 6, wherein the second chip is a preview path chip or a photo taking path chip.
  10. 根据权利要求6所述的电路,其中,所述电路还包括:The circuit according to claim 6, wherein the circuit further comprises:
    环境亮度检测模块,用于接收所述图像传感器发送的图像数据,并根据所述图像数据进行环境亮度检测。The environment brightness detection module is used to receive the image data sent by the image sensor and perform environment brightness detection according to the image data.
  11. 一种电子设备,所述电子设备包括:处理器、存储器和图像传感器;An electronic device, comprising: a processor, a memory, and an image sensor;
    所述处理器包括权利要求6至10任一项所述的图像处理电路;The processor comprises the image processing circuit according to any one of claims 6 to 10;
    所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1至5任一项所述的图像处理方法的步骤。The memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the image processing method according to any one of claims 1 to 5 are implemented.
  12. 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1至5任一项所述的图像处理方法的步骤。A readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps of the image processing method according to any one of claims 1 to 5 are implemented.
  13. 一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1至5任一项所述的图像处理方法的步骤。A chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the steps of the image processing method according to any one of claims 1 to 5.
  14. 一种计算机程序产品,所述程序产品被存储在存储介质中,所述程序产品被至少一个处理器执行以实现如权利要求1至5任一项所述的图像处理方法的步骤。A computer program product, wherein the program product is stored in a storage medium and is executed by at least one processor to implement the steps of the image processing method according to any one of claims 1 to 5.
  15. 一种电子设备,被配置为用于执行如权利要求1至5任一项所述的图像处理方法的步骤。 An electronic device is configured to execute the steps of the image processing method according to any one of claims 1 to 5.
PCT/CN2023/125564 2022-10-24 2023-10-20 Image processing method and circuit, device, and medium WO2024088163A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211301287.2 2022-10-24
CN202211301287.2A CN115665562A (en) 2022-10-24 2022-10-24 Image processing method, circuit, device and medium

Publications (1)

Publication Number Publication Date
WO2024088163A1 true WO2024088163A1 (en) 2024-05-02

Family

ID=84991977

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/125564 WO2024088163A1 (en) 2022-10-24 2023-10-20 Image processing method and circuit, device, and medium

Country Status (2)

Country Link
CN (1) CN115665562A (en)
WO (1) WO2024088163A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115665562A (en) * 2022-10-24 2023-01-31 维沃移动通信有限公司 Image processing method, circuit, device and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019183813A1 (en) * 2018-03-27 2019-10-03 华为技术有限公司 Image capture method and device
WO2020207262A1 (en) * 2019-04-09 2020-10-15 Oppo广东移动通信有限公司 Image processing method and apparatus based on multiple frames of images, and electronic device
CN112532892A (en) * 2019-09-19 2021-03-19 华为技术有限公司 Image processing method and electronic device
CN114299014A (en) * 2021-12-28 2022-04-08 维沃移动通信有限公司 Image processing architecture, method, electronic device and storage medium
CN115665562A (en) * 2022-10-24 2023-01-31 维沃移动通信有限公司 Image processing method, circuit, device and medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019183813A1 (en) * 2018-03-27 2019-10-03 华为技术有限公司 Image capture method and device
WO2020207262A1 (en) * 2019-04-09 2020-10-15 Oppo广东移动通信有限公司 Image processing method and apparatus based on multiple frames of images, and electronic device
CN112532892A (en) * 2019-09-19 2021-03-19 华为技术有限公司 Image processing method and electronic device
CN114299014A (en) * 2021-12-28 2022-04-08 维沃移动通信有限公司 Image processing architecture, method, electronic device and storage medium
CN115665562A (en) * 2022-10-24 2023-01-31 维沃移动通信有限公司 Image processing method, circuit, device and medium

Also Published As

Publication number Publication date
CN115665562A (en) 2023-01-31

Similar Documents

Publication Publication Date Title
CN111491102B (en) Detection method and system for photographing scene, mobile terminal and storage medium
US8891004B2 (en) Method and apparatus for driving camera
WO2024088163A1 (en) Image processing method and circuit, device, and medium
WO2022156766A1 (en) Picture-photographing method and apparatus, and electronic device
WO2023061326A1 (en) Photographing method and apparatus, and electronic device
US20200059597A1 (en) Shooting method and terminal
WO2022089479A1 (en) Photographing method and apparatus, and electronic device
JP2008072410A (en) Imaging apparatus, cellular phone, imaging control method, imaging control program, and program recording medium
CN112422798A (en) Photographing method and device, electronic equipment and storage medium
WO2018161568A1 (en) Photographing method and device based on two cameras
WO2019179242A1 (en) Image processing method and electronic device
WO2021238942A1 (en) Anti-shake method, anti-shake apparatus, and electronic device
WO2024061134A1 (en) Photographing method and apparatus, electronic device, and medium
WO2023125669A1 (en) Image processing circuit, image processing method, electronic device, and readable storage medium
WO2020248705A1 (en) Camera and camera starting method and device
WO2023125316A1 (en) Video processing method and apparatus, electronic device, and medium
WO2023125273A1 (en) Image display method of electronic equipment, image processing circuit and electronic equipment
CN112383708B (en) Shooting method and device, electronic equipment and readable storage medium
CN114299014A (en) Image processing architecture, method, electronic device and storage medium
CN113037996A (en) Image processing method and device and electronic equipment
US20130242167A1 (en) Apparatus and method for capturing image in mobile terminal
CN114630016B (en) Image processing method, image processor and electronic equipment
TWI828302B (en) Shooting methods and shooting equipment
CN112367470B (en) Image processing method and device and electronic equipment
CN117793534A (en) Zoom method and device, electronic equipment and readable storage medium