Image processing circuit, device, method, electronic equipment, image processing chip and main control chip
By using parallel processing of image processing chips and main control chips and gyroscope sensor detection in electronic devices, the problem of poor high frame rate image anti-shake processing in the existing technology is solved, and the shooting effect is improved.
Patent Information
- Application Number
- CN202111626914.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-28
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2041-12-28
AI Technical Summary
Existing electronic equipment has poor anti-shake processing effect on high frame rate images, resulting in poor shooting results, mainly due to the low performance of the anti-shake algorithm.
By introducing parallel processing of image processing chips and main control chips in electronic devices, the anti-shake algorithm is transformed from software level to hardware level processing. The image processing chip is used to perform anti-shake processing on the preview image, and the gyroscope sensor is used to detect shake information. Real-time compensation.
It improves the anti-shake processing efficiency and shooting effect of electronic equipment for high frame rate images, avoids the problem of low efficiency of software anti-shake algorithm, and achieves clearer shooting effects.
Smart Images

Figure CN114286001B
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communication technology, and specifically relates to an image processing circuit, device, method, electronic equipment, image processing chip and main control chip. Background Art
[0002] Currently, when a user uses an electronic device to take a photo, the electronic device can turn on the anti-shake function to perform anti-shake processing on the subject during the shooting process. Usually, the electronic device can process the anti-shake algorithm on the subject in the central processing unit (CPU) to make the shooting effect of the subject clearer.
[0003] However, in the above method, due to the low performance of the anti-shake algorithm, the electronic device has a poor anti-shake processing effect on high frame rate images, and therefore the shooting effect of the electronic device is poor. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide an image processing circuit, device, method, electronic device, image processing chip and main control chip, which can improve the shooting effect of the electronic device.
[0005] In a first aspect, an embodiment of the present application provides an image processing circuit, which includes: a main control chip and an image processing chip, the main control chip being connected to the image processing chip; the main control chip being used to perform image interface separation processing on a first image to be processed by the image processing chip to obtain a user interface image and a preview image, the preview image including an image captured by a camera, the user interface image including information of a user graphic area of the preview interface; the image processing chip being used to perform anti-shake processing on the preview image, and outputting a second image based on the user interface image and the anti-shake processed preview image.
[0006] In a second aspect, an embodiment of the present application provides an image processing device, which includes: an image sensor, a main control chip connected to the image sensor; and a display unit connected to the image processing chip.
[0007] In a third aspect, an embodiment of the present application provides an image processing method, which includes: a main control chip performs image interface separation processing on a first image displayed on a shooting preview interface to obtain a user interface image and a preview image, wherein the preview image includes an image captured by a camera, and the user interface image includes information of a user graphic area of the shooting preview interface; the image processing chip performs anti-shake processing on the preview image, and outputs a second image based on the user interface image and the anti-shake processed preview image.
[0008] In a fourth aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the third aspect.
[0009] In a fifth aspect, an embodiment of the present application provides an image processing chip, wherein the processor chip includes a processor and a communication interface, wherein the communication interface is coupled to the processor, the communication interface is used to transmit image data, and the processor is used to run programs or instructions to implement the steps of the method described in the third aspect.
[0010] In a sixth aspect, an embodiment of the present application provides a main control chip, the chip comprising a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the steps of the method described in the third aspect.
[0011] In an embodiment of the present application, the electronic device includes a main control chip and an image processing chip, and the main control chip is connected to the image processing chip; after the main control chip performs image separation processing on the first image to obtain a preview image and a user interface image, and outputs both the preview image and the user interface image to the image processing chip, the image processing chip can perform anti-shake processing on the preview image and output a second image after anti-shake processing. In this solution, since the preview image can be processed by the image processing chip to obtain an anti-shake processed image, that is, the algorithm processing of image anti-shake can be converted from a software-level processing method to a hardware-level processing method, the electronic device can process the captured image in parallel through the CPU and the image processing chip, avoiding the poor anti-shake processing effect of high frame rate images due to the low efficiency of the software image anti-shake algorithm. In this way, while improving the efficiency of the electronic device in processing captured images, it also improves the shooting effect of the electronic device. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 This is one of the structural schematic diagrams of an image processing circuit provided in an embodiment of the present application;
[0013] Figure 2 This is a schematic diagram of an example of a mobile phone interface provided in an embodiment of the present application;
[0014] Figure 3 This is a second structural diagram of an image processing circuit provided in an embodiment of the present application;
[0015] Figure 4 This is a third structural diagram of an image processing circuit provided in an embodiment of the present application;
[0016] Figure 5This is a fourth structural diagram of an image processing circuit provided in an embodiment of the present application;
[0017] Figure 6 This is a fifth structural diagram of an image processing circuit provided in an embodiment of the present application;
[0018] Figure 7 This is the sixth structural diagram of an image processing circuit provided in an embodiment of the present application;
[0019] Figure 8 This is the seventh structural diagram of an image processing circuit provided in an embodiment of the present application;
[0020] Fig. 9 This is an eighth structural diagram of an image processing circuit provided in an embodiment of the present application;
[0021] Fig.10 is a structural schematic diagram of an image processing device provided in an embodiment of the present application;
[0022] Fig.11 is a flow chart of an image processing method provided by an embodiment of the present application;
[0023] Fig.12 This is one of the hardware structure diagrams of an electronic device provided in an embodiment of the present application;
[0024] Fig.13 This is the second schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0025] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0026] 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 data used in this way can be 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.
[0027] The image processing circuit, device, method, electronic device, image processing chip and main control chip provided in the embodiments of the present application are described in detail below in conjunction with the accompanying drawings through specific embodiments and their application scenarios.
[0028] The image processing circuit provided in the embodiments of the present application can be applied to a scenario in which an electronic device performs anti-shake processing on a captured image when capturing the image.
[0029] Exemplarily, if a user needs to take a selfie video, the user can open the camera application in the electronic device and switch to the video recording mode so that the electronic device enters the video recording preview mode. In the video recording preview mode, a first image can be displayed on the screen of the electronic device, and the first image includes a preview image (i.e., a selfie image of the user captured by the camera in the electronic device) and a user interface image (e.g., an image corresponding to a shooting control, an image corresponding to a beauty control, and an image corresponding to an editing control, etc.). At this time, the main control chip in the electronic device can separate the first image to obtain a preview image and a user interface image, so that the main control chip can use the MIPI DSI protocol to transmit the preview image and the user interface image to the image processing chip, so that the image processing chip can perform anti-shake processing on the preview image, and output a second image on the screen of the electronic device based on the preview image and the user interface image after the anti-shake processing. That is, when the user is recording a selfie, the screen of the electronic device displays the second image after the anti-shake processing, thereby improving the shooting effect of the electronic device.
[0030] In the embodiment of the present application, the electronic device can be connected to the main control chip of the electronic device through the image processing chip, so that after the electronic device obtains the image data of the captured image, the image data can be output to the image processing chip through the main control chip, and after the image processing chip performs anti-shake processing on the image data, the anti-shake processed image is output. In this solution, since the electronic device can perform anti-shake processing on the first image through the image processing chip, the algorithm processing of the EIS is changed from a software-level processing method to a hardware-level processing method, so that the electronic device can process the captured image in parallel through the CPU and the image processing chip, thus improving the efficiency of the electronic device in processing the captured image and also improving the shooting effect of the electronic device.
[0031] The embodiment of the present application provides an image processing circuit, Figure 1 FIG. 1 shows a schematic diagram of the structure of an image processing circuit provided by an embodiment of the present application. Figure 1 As shown, the electronic device provided in the embodiment of the present application may include: a main control chip 10 and an image processing chip 11.
[0032] In the embodiment of the present application, the main control chip 10 is connected to the image processing chip 11; the main control chip 10 is used to perform image interface separation processing on the first image to be processed by the image processing chip to obtain a user interface image and a preview image, the preview image includes an image captured by a camera, and the user interface image includes information about the user graphic area of the preview interface; the image processing chip is used to perform anti-shake processing on the preview image, and output a second image based on the user interface image and the anti-shake processed preview image. The user graphic area in the embodiment of the present application is an area including graphical user interface elements, wherein the graphical user interface elements include controls such as shooting mode controls, function controls for controlling shooting, shooting control identifiers, preview controls for previewing shot content, etc., for example Figure 2 The area marked with 32 includes the rectangular areas of "Flash", "HDR" and "Settings" controls arranged from left to right at the top, and the area below, including the "Panorama", "Beauty", "Photo", and "Video" mode switching controls, the circular shooting controls, the rectangular camera switching controls, and the square preview controls in the lower left corner.
[0033] It should be noted that the first image is an image of the display area of the entire shooting preview interface in the electronic device, that is, the first image includes the preview image captured by the electronic device and the controls in the shooting preview interface.
[0034] For example, taking the electronic device as a mobile phone as an example, Figure 2 As shown, the first image captured by the camera is displayed on the shooting preview interface of the mobile phone, and the first image includes a preview image 31 ( Figure 2 31 in the figure) and a user interface image 32 ( Figure 2 ), after the mobile phone captures the first image through the camera, the main control chip in the electronic device can separate and process the first image to obtain a preview image and a user interface image, so that the image processing chip can perform anti-shake processing on the preview image, and obtain the second image based on the user interface image and the anti-shake processed preview image.
[0035] Optionally, in the embodiment of the present application, combined with Figure 1 ,like Figure 3 As shown, the main control chip includes a separation module 12, a first output port and a second output port, and the image processing chip includes a first input port and a second input port.
[0036] Among them, the third output port ( Figure 3 UI in the figure) and the first output port ( Figure 3 MIPI DSI0) is connected to the fourth output port ( Figure 3IMAGE in the figure) and the second output port ( Figure 3 MIPI DSI1) is connected to the first input port ( Figure 3 ) is connected to the first output port, and the second input port ( Figure 3 The MIPI DSI RX1 is connected to the second output port.
[0037] In an embodiment of the present application, the above-mentioned separation module is used to separate the first image to obtain a user interface image and a preview image; the above-mentioned first output port is used to output the user interface image, the above-mentioned second output port is used to output the preview image, the above-mentioned first input port is used to receive the user interface image, and the above-mentioned second input port is used to receive the preview image.
[0038] In an embodiment of the present application, the electronic device can obtain the user interface image and the preview image of the first image through the separation module in the main control chip. The main control chip can output the user interface image to the image processing chip through the DSI0 port (i.e., the first output port) by using the standard DSIMIPI protocol through the DSI RX0 port (i.e., the first input port) of the image processing chip; and the main control chip can output the preview image to the image processing chip through the DSI1 port (i.e., the second output port) by using the same standard DSIMIPI protocol through the DSI RX1 (i.e., the second input port) of the image processing chip, so that the image processing chip can perform anti-shake processing on the preview image.
[0039] In an embodiment of the present application, the separation module can separate the first image to obtain a user interface image and a preview image, and send them to the image processing chip so that the image processing chip can perform anti-shake processing on the preview image, thereby realizing parallel processing of the CPU and the image processing chip. In this way, the efficiency of the electronic device in anti-shake processing of the preview image is improved.
[0040] Optionally, in the embodiment of the present application, combined with Figure 3 ,like Figure 4 As shown, the main control chip further includes a third input port, an image signal processing chip 13 and a storage module 14 .
[0041] The image sensor 15 and the third input port ( Figure 4 MIPI CSI RX0 in FIG. 1 ), the third input port is connected to the storage module 14 ( Figure 4 The storage module 14 is connected to the image signal processing chip 13 ( Figure 4 The image signal processing chip 13 is connected to the separation module 12;
[0042] In the embodiment of the present application, the third input port is used to receive the original image captured by the image sensor, and the image signal processing chip is used to perform image processing on the original image to obtain the first image.
[0043] In the embodiment of the present application, the image signal processing chip can perform basic effect processing (such as contrast adjustment, color adjustment or brightness adjustment) on the original image output by the image sensor to obtain a first image.
[0044] Optionally, in the embodiment of the present application, combined with Figure 4 ,like Figure 5 As shown, the image processing chip further includes a storage module 14, an electronic image stabilization (EIS) module 16, an image synthesis module 17, and a fifth output port.
[0045] Among them, the storage module 14 ( Figure 5 The input port ( Figure 5 DIN1 in the figure) are connected to the first input port and the second input port respectively; and the output port ( Figure 5 DOUT1) are respectively connected to the fourth input port ( Figure 5 UI in the figure) and EIS module 16 ( Figure 5 The fifth input port ( Figure 5 The sixth output port ( Figure 5 denoted by EOUT in the figure) and the sixth input port ( Figure 5 The seventh output port ( Figure 5 AOUT) and the fifth output port ( Figure 5 MIPIDSI TX0 in the figure) connection.
[0046] In an embodiment of the present application, the EIS module is used to perform anti-shake processing on the preview image and output the anti-shake processed preview image; the image synthesis module is used to perform image synthesis processing on the user interface image and the anti-shake processed preview; the storage module is used to cache the user interface image and the preview image; the fourth input port is used to receive the user interface image, and the sixth input port is used to receive the anti-shake processed preview image.
[0047] In an embodiment of the present application, after the image processing chip receives the user interface image and the preview image, the image processing chip can write the user interface image and the preview image into different storage units in the storage module through the first input port and the second input port, respectively, so that the EIS module can perform anti-shake processing on the preview image separately to obtain the preview image after anti-shake processing, so that the image synthesis module can merge the preview image after anti-shake processing with the stored user interface image, and output it through the fifth output port.
[0048] In the embodiment of the present application, since the separation module can separate the preview image and the user interface image in the shooting interface, the EIS module can perform hardware-level anti-shake processing on the preview image separately, avoiding the poor anti-shake processing effect on high frame rate images due to the low performance of the anti-shake algorithm, thereby improving the shooting effect of the electronic device.
[0049] Optionally, in the embodiment of the present application, combined with Figure 5 ,like Figure 6 As shown, the image processing chip also includes a serial peripheral interface SPI18.
[0050] Among them, SPI18( Figure 6 ) and the seventh input port ( Figure 6 In the figure, it is represented by EIN2) connection.
[0051] Optionally, in the embodiment of the present application, the image processing circuit further includes a gyroscope sensor 19 .
[0052] Among them, the gyro sensor 19 ( Figure 6 GYRO in the figure) is connected to SPI18.
[0053] In an embodiment of the present application, the above-mentioned gyroscope sensor can be an external gyroscope sensor, or can be a sensor in an image processing chip; the gyroscope sensor is used to detect jitter information; the above-mentioned SPI is used to read the jitter information detected by the gyroscope sensor in real time; the above-mentioned EIS module is used to perform anti-shake processing on the preview image based on the jitter information, and transmit the preview image after anti-shake processing to the image synthesis module.
[0054] In an embodiment of the present application, the SPI bus is connected to the gyroscope sensor, so that the electronic device can obtain the jitter information of the preset image (for example, the jitter generated when the user holds the electronic device) in real time, and perform anti-shake processing on the preset image based on the jitter information.
[0055] In an embodiment of the present application, the EIS module can be connected to the gyroscope sensor via the SPI bus to obtain jitter information, so that the EIS module can perform anti-shake processing on the preset image in real time based on the jitter information, thereby improving the accuracy of the electronic device's anti-shake processing of the preview image.
[0056] Optionally, in the embodiment of the present application, combined with Figure 6 ,like Figure 7 As shown, the above-mentioned image processing circuit further includes a display unit 20 .
[0057] The fifth output port is connected to the display unit 20 .
[0058] In the embodiment of the present application, the image synthesis module is also used to send the second image to the display unit for display.
[0059] In an embodiment of the present application, the image synthesis module can synthesize the user interface image and the preview image after anti-shake processing, and output them to the display unit. That is, the user can view the anti-shake shooting interface in real time during the shooting process, thereby improving the display effect of the electronic device.
[0060] Optionally, in the embodiment of the present application, combined with Figure 7 ,like Figure 8 As shown, the main control chip further includes an eighth input port, an encoding module 21 and a storage module 14, and the above-mentioned image processing chip further includes an eighth output port.
[0061] Among them, the eighth output port ( Figure 8 ) and the ninth output port ( Figure 8 The eighth input port ( Figure 8 MIPI CSI RX1) and the eighth output port ( Figure 8 The eighth input port is connected to the encoding module 21, and the encoding module 21 is connected to the storage module 14.
[0062] It should be noted that the eighth output port is a port in the image processing chip.
[0063] In an embodiment of the present application, the above-mentioned EIS module is also used to transmit the preview image after anti-shake processing back to the eighth input port through the eighth output port; the above-mentioned encoding module is used to encode the preview image after anti-shake processing received by the eighth input port; and the above-mentioned storage module is used to store the preview image after encoding processing by the encoding module.
[0064] It should be noted that, for ease of understanding, Figure 8The five storage modules are respectively different storage units in one storage module.
[0065] In the embodiment of the present application, the image processing chip can transmit the preview image after anti-shake processing back to the main control chip through the eighth output port through the standard CSI MIPI protocol, and after transmission, it does not need to be processed by the image signal processing chip, but is directly sent to the encoding module for encoding, and the encoded preview image is output to the storage module for storage.
[0066] Optionally, in the embodiment of the present application, combined with Figure 8 ,like Fig. 9 As shown, the main control chip includes a first interface, and the image processing chip includes a second interface.
[0067] Among them, the first interface ( Fig. 9 I2C / SPI1) and the second interface ( Fig. 9 I2C / SPI2 in the diagram) connection.
[0068] In an embodiment of the present application, the main control chip is also used to control the image processing chip to switch to the video preview mode and enable the EIS module through the first interface when receiving the user's first input. The first input is the input that triggers the start of the video preview mode.
[0069] In an embodiment of the present application, a user can use a first input to enable the electronic device to enter a video preview mode. At this time, the main control chip can send a switching instruction to the second interface of the image processing chip through the first interface. The switching instruction is used to control the image processing chip to switch from the BYPASS mode to the video preview mode, and enable the EIS module in the image processing chip to perform anti-shake processing on the preview image displayed on the shooting preview interface.
[0070] Optionally, in the embodiment of the present application, the first input may be any of the following: click input, slide input, long press input, user's physical key input or physical key combination input on the electronic device, etc. The specific input may be determined according to actual needs and is not limited in the embodiment of the present application.
[0071] Optionally, in an embodiment of the present application, the above-mentioned main control chip is also used to control the image processing chip to switch from the video preview mode to the video recording mode through the first interface when receiving the second input from the user, and the second input is the input that triggers the start of video recording; the main control chip is also used to control the image processing chip to return the preview image after anti-shake processing to the main control chip through the first interface in the video recording mode; the main control chip is also used to control the encoding module to encode the preview image after anti-shake processing received by the main control chip through the first interface; the main control chip is also used to control the third storage module to store the preview image encoded by the encoding module through the first interface.
[0072] Optionally, in an embodiment of the present application, the main control chip is also used to control the image processing chip to switch from the recording mode to the recording preview mode through the first interface when receiving a third input from the user, and to control the EIS module to stop transmitting the image and the encoding module to stop encoding the image, and the third input is the input that triggers the end of the recording.
[0073] In an embodiment of the present application, after the main control chip receives the third input from the user (for example, the user clicks on the control to end recording), the main control chip can control the image processing chip through the first interface to switch from the recording mode to the recording preview mode, so as to stop the EIS module from continuing to send the preview image after anti-shake processing to the eighth output port. At the same time, the main control chip no longer encodes and stores the preview image after anti-shake processing.
[0074] Optionally, in an embodiment of the present application, the main control chip is also used to control the image processing chip to switch from the video preview mode to the video recording mode through the first interface when receiving a fourth input from the user, and to control the EIS module to continue to transmit the image and the encoding module to continue to encode the image, and the fourth input is an input that triggers the electronic device to continue to turn on the video recording mode.
[0075] An embodiment of the present application provides an image processing circuit, which includes a main control chip and an image processing chip. After the main control chip outputs the preview image to the independent image processing chip, the image processing chip can perform anti-shake processing on the image data and output the anti-shake processed image. In this solution, since the image processing chip can process the preview image to obtain the anti-shake processed image, that is, the EIS algorithm processing can be converted from a software-level processing method to a hardware-level processing method, so that the electronic device can process the image collected by the camera in parallel through the CPU and the image processing chip, avoiding the poor anti-shake processing effect on high frame rate images caused by the low efficiency of the EIS algorithm. In this way, while improving the efficiency of the electronic device in processing the captured image, the shooting effect of the electronic device is also improved.
[0076] The present application provides an image processing device. Fig.10 FIG. 1 is a schematic diagram showing the structure of an image processing device provided by an embodiment of the present application. Fig.10 As shown, the image processing device provided in the embodiment of the present application may include an image processing circuit.
[0077] It should be noted that the above-mentioned image processing circuit may be the image processing circuit described in the above-mentioned embodiment. For the description of the image processing circuit, reference may be made to the description in the above-mentioned embodiment, which will not be repeated here.
[0078] For example, Fig.10As shown, the image processing device further includes an image sensor 15 and a display unit 20 . The main control chip 10 is connected to the image sensor 15 ; and the display unit 20 is connected to the image processing chip 11 .
[0079] An embodiment of the present application provides an image processing device, which includes a main control chip and an image processing chip. After the main control chip outputs the preview image to the independent image processing chip, the image processing chip can perform anti-shake processing on the image data and output the anti-shake processed image. In this solution, since the preview image can be processed by the image processing chip to obtain the anti-shake processed image, that is, the EIS algorithm processing can be converted from a software-level processing method to a hardware-level processing method, so that the image processing device can process the captured image in parallel through the CPU and the image processing chip, avoiding the poor anti-shake processing effect on high frame rate images due to the low efficiency of the EIS algorithm. In this way, while improving the efficiency of the image processing device in processing the captured images, the shooting effect of the image processing device is also improved.
[0080] The present application provides an image processing method. Fig.11 FIG. 1 is a flow chart of an image processing method provided by an embodiment of the present application. Fig.11 As shown, the image processing method provided in the embodiment of the present application may include the following steps 201 and 202.
[0081] Step 201: The main control chip performs image interface separation processing on the first image displayed on the shooting preview interface to obtain a user interface image and a preview image.
[0082] In the embodiment of the present application, the preview image includes an image captured by a camera, and the user interface image includes information of a user graphic area of the preview interface.
[0083] In an embodiment of the present application, the image processing device can obtain the first image in the shooting preview interface while displaying the shooting preview interface, and transmit it to the separation module in the main control chip. The separation module can identify the position of each image interface in the first image and the user interface image in the first image, thereby separating the preview image and the user interface image of the first image, so that the image processing device can process the preview image to obtain the second image.
[0084] Optionally, in an embodiment of the present application, the preview image may be an image captured by a front camera in the image processing device; or, the preview image may be an image captured by a rear camera in the image processing device.
[0085] Optionally, in the embodiment of the present application, the camera may be any one of the following: a wide-angle camera, a pan / tilt camera, a macro camera, or an ultra-wide-angle camera, etc. The camera may be specifically determined according to actual needs, and the embodiment of the present application does not limit the camera.
[0086] Optionally, in an embodiment of the present application, the above-mentioned user interface image may include at least one of the following: an image corresponding to a shooting control, an image corresponding to an editing control (such as a delete control, an add control, and a beautification control), an image corresponding to a beautification control, and an image corresponding to a shooting mode selection control, etc.
[0087] Optionally, in the embodiment of the present application, the user may perform a shooting input to trigger the image processing device to acquire the first image.
[0088] Optionally, in the embodiment of the present application, the shooting input may be a long press input, a click input, a sliding input, or a preset track input of a shooting control in a shooting interface by a user; or, the shooting input may be a pressing input of a physical button or a combination of physical buttons of an electronic device by a user, etc. The specific input may be determined according to actual use requirements and is not limited in the embodiment of the present application.
[0089] Step 202: The image processing chip performs anti-shake processing on the preview image, and outputs a second image based on the user interface image and the anti-shake processed preview image.
[0090] In the embodiment of the present application, the image processing device can perform anti-shake processing on the preview image through the EIS module in the image processing chip, and input it into the image synthesis module to obtain the second image.
[0091] Optionally, in the embodiment of the present application, the above step 202 can be specifically implemented by the following steps 202a to 202c.
[0092] Step 202a: The gyroscope sensor detects vibration information.
[0093] In the embodiment of the present application, the gyro sensor can detect the deflection angle and tilt angle of the image processing device to obtain the jitter parameters of the preview image.
[0094] Step 202b: The EIS module reads the shaking information detected by the gyroscope sensor in real time, performs anti-shake processing on the preview image, and transmits the preview image after the anti-shake processing to the image synthesis module.
[0095] In an embodiment of the present application, after the gyroscope sensor obtains the jitter parameters of the preview image, the gyroscope sensor can send the jitter information to the EIS module in the image processing chip, so that the EIS module can perform anti-shake processing on the preview data through image cropping and compensation according to the jitter information to obtain a processed second image, and transmit the anti-shake processed preview image to the image synthesis module for fusion processing with the user interface image.
[0096] Optionally, in an embodiment of the present application, the above-mentioned jitter information includes at least one of the following: jitter angular velocity, jitter speed, and jitter frequency.
[0097] Step 202c: The image synthesis module performs image synthesis processing on the user interface image and the preview image that has been subjected to anti-shake processing, and outputs a second image.
[0098] In an embodiment of the present application, the main control chip can obtain the hierarchical relationship of the original image (i.e., the hierarchical relationship between the preview image and the user interface image) and send it to the image synthesis module in the image processing chip, so that the image synthesis module can perform image synthesis processing on the preview image and the user interface image after anti-shake processing based on the hierarchical relationship, and output them to the display unit.
[0099] In the embodiment of the present application, since the image processing device can detect the jitter parameters of the preview image through the gyroscope sensor to obtain the jitter information corresponding to the preview image, the EIS module can accurately perform anti-shake processing on the preview image according to the jitter information, and synthesize the processed preview image and the user interface image in the image synthesis module and output them to the display unit. That is, when the user is shooting, the second image after the anti-shake processing is displayed on the screen of the image processing device, thereby improving the display effect of the image processing device.
[0100] The embodiment of the present application provides an image processing method, wherein the image processing device can obtain a preview image and a user interface image of a first image through a main control chip, and then the image processing device can perform anti-shake processing on the first image through the image processing chip to obtain and output a second image. In this solution, since the image processing device can perform anti-shake processing on the preview image of the first image through the image processing chip, that is, the EIS anti-shake processing can be converted from a software-level processing method to a hardware-level processing method, the image processing device can perform parallel processing on the first image through the CPU and the image processing chip, thereby avoiding the need to run the EIS anti-shake algorithm in the image processing device, resulting in a slow processing speed of the electronic device, and solving the problem that the image processing device has poor anti-shake processing performance for high frame rate images due to the low performance of the EIS anti-shake algorithm itself. Therefore, while improving the efficiency of the image processing device in processing captured images, the shooting effect of the image processing device is also improved.
[0101] Optionally, in the embodiment of the present application, after the above step 201, the image processing method provided in the embodiment of the present application further includes the following step 301.
[0102] Step 301: The main control chip sends the user interface image to the image synthesis module of the image processing chip, and sends the preview image to the EIS module.
[0103] In an embodiment of the present application, after the separation module in the main control chip separates the first image into an image interface and obtains a user interface image and a preview image, on the one hand, the image processing device can directly transmit the user interface image to the image synthesis module in the image processing chip through the first output port in the main control chip, and on the other hand, transmit the preview image to the EIS module through the second output port, so that the EIS module can perform anti-shake processing on the separate preview image.
[0104] In the embodiment of the present application, the image processing device can perform anti-shake processing on the preview image through the EIS module, that is, the electronic device can change the anti-shake processing of the preview image from a software-level processing method to a hardware-level processing method, so that the image processing device can process the preview image in parallel through the CPU and the image processing chip, thereby improving the efficiency of the electronic device in processing the first image.
[0105] Optionally, in the embodiment of the present application, after the above step 202, the image processing method provided in the embodiment of the present application further includes the following step 401.
[0106] Step 401: The image processing chip sends the second image to a display unit for display.
[0107] In an embodiment of the present application, after the image synthesis module in the image processing chip fuses the user interface image and the preview interface after anti-shake processing to obtain the second image, the image processing device can send the second image to the display unit through the fifth output port in the image processing chip through the image synthesis module in the image processing chip, so that the second image can be displayed on the display unit.
[0108] In an embodiment of the present application, the image processing device can synthesize the preview image and user interface image after anti-shake processing, and output them to the display unit, so that the user can view the anti-shake shooting interface in real time during the shooting process, thereby improving the display effect of the image processing device.
[0109] Optionally, in an embodiment of the present application, before the above step 201, the image processing method provided in the embodiment of the present application further includes the following steps 501 and 502.
[0110] Step 501: The image processing apparatus receives a first input from a user.
[0111] In the embodiment of the present application, the first input is an input for triggering the start of the video preview mode.
[0112] In the embodiment of the present application, the image processing device may receive a first input from a user through a first interface, so that the image processing chip switches to a video preview mode to start the video preview mode.
[0113] Optionally, in the embodiment of the present application, the first input may be any of the following: long press input, click input, slide input or preset track input; or the first input may be a user pressing a physical key or a combination of physical keys of the image processing device, etc. The specific input may be determined according to actual use requirements and is not limited in the embodiment of the present application.
[0114] Step 502: In response to the first input, the image processing device controls the image processing chip to switch to the video preview mode and enables the EIS module.
[0115] In an embodiment of the present application, after the image processing device receives the first input from the user, the main control chip can send a switching instruction to the second interface of the image processing chip through the first interface. The switching instruction is used to control the image processing chip to switch from BYPASS mode to video preview mode, and enable the EIS module in the image processing chip to perform anti-shake processing on the preview image displayed on the shooting preview interface.
[0116] Optionally, in the embodiment of the present application, after the above step 502, the image processing method provided in the embodiment of the present application further includes the following steps 502a to 502e.
[0117] Step 502a: The image processing apparatus receives a second input from the user.
[0118] In the embodiment of the present application, the second input is an input for triggering the start of video recording.
[0119] Optionally, in the embodiment of the present application, the second input may be any of the following: long press input, click input, slide input or preset track input; or the second input may be a user pressing a physical key or a combination of physical keys of the image processing device, etc. The specific input may be determined according to actual use requirements and is not limited in the embodiment of the present application.
[0120] Step 502b: In response to the second input, the image processing device controls the image processing chip to switch from the video preview mode to the video recording mode.
[0121] In the embodiment of the present application, after the image processing device receives the second input from the user, the main control chip can control the image processing chip to switch from the video preview mode to the video recording mode through the first interface.
[0122] Step 502c, in the video recording mode, the main control chip controls the image processing chip to transmit the preview image after anti-shake processing back to the main control chip.
[0123] In an embodiment of the present application, when the image processing device is in the recording mode, the EIS module in the image processing chip can transmit the preview image after anti-shake processing through the eighth output port to the eighth input port of the main control chip through the standard CSI MIPI protocol.
[0124] Step 502d: The main control chip controls the encoding module to encode the preview image after the anti-shake processing received by the main control chip.
[0125] It can be understood that after the EIS module transmits the preview image after anti-shake processing back to the main control chip, the preview image does not need to be processed by the image signal processing chip again, but is directly transmitted to the encoding module for encoding and storage.
[0126] Step 502e: The main control chip controls the storage module to store the preview image encoded by the encoding module.
[0127] Optionally, in an embodiment of the present application, the user can send the stored preview image to other users; or, the user can edit the processed preview image (for example, add an image, add an expression, or add a filter).
[0128] Optionally, in an embodiment of the present application, after the above step 502b, the image processing method provided in the embodiment of the present application further includes the following steps 601 and 602.
[0129] Step 601: The image processing apparatus receives a third input from a user.
[0130] In the embodiment of the present application, the third input is an input for triggering the end of recording.
[0131] Optionally, in the embodiment of the present application, the third input may be any one of the following: long press input, click input, slide input or preset track input; or the third input may be a user pressing a physical key or a combination of physical keys of the image processing device, etc. The specific input may be determined according to actual use requirements and is not limited in the embodiment of the present application.
[0132] Step 602: In response to the third input, the image processing device controls the image processing chip to switch from the video recording mode to the video recording preview mode, and controls the EIS module to stop sending the image after the anti-shake processing and the encoding module to stop encoding the image.
[0133] In an embodiment of the present application, after the image processing device receives the third input from the user, the main control chip can send a switching instruction to the image processing chip through the first interface, so that the image processing chip can switch from the recording mode to the recording preview mode, control the EIS module to stop anti-shake processing of the preview image, and stop sending the preview image after anti-shake processing, and the encoding module and storage module in the main control chip no longer encode and store the preview image.
[0134] Optionally, in an embodiment of the present application, when the main control chip receives the fourth input from the user, the image processing chip is controlled to switch from the video preview mode to the video mode through the first interface, and the EIS module is controlled to continue to transmit the image and the encoding module to continue to encode the image. The fourth input is the input that triggers the continuation of the video recording mode.
[0135] Optionally, in the embodiment of the present application, the fourth input may be any one of the following: long press input, click input, slide input or preset track input; or the third input may be a user pressing a physical key or a combination of physical keys of the image processing device, etc. The specific input may be determined according to actual use requirements and is not limited in the embodiment of the present application.
[0136] The image processing device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in an electronic device. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0137] The image processing device in the embodiment of the present application may be a 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.
[0138] The image processing device provided in the embodiment of the present application can implement each process implemented in the above method embodiment and can achieve the same technical effect. To avoid repetition, it will not be described here.
[0139] Alternatively, if Fig.12 As shown, an embodiment of the present application also provides an electronic device 90, including a processor 91, a memory 92, and a program or instruction stored in the memory 92 and executable on the processor 91. When the program or instruction is executed by the processor 91, each process of the above-mentioned method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0140] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0141] Fig.13 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0142] The electronic device 100 includes but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a main control chip 10, an image processing chip 11 and other components.
[0143] In the embodiment of the present application, the main control chip 10 may be a processor 110 , or the main control chip 10 includes the processor 110 , that is, the processor 110 is integrated on the main control chip 10 .
[0144] Optionally, the main control chip 10 includes a separation module, a first output port and a second output port, and the image processing chip 11 includes a first input port and a second input port; the third output port of the separation module is connected to the first output port, the fourth output port of the separation module is connected to the second output port, the first input port is connected to the first output port, and the second input port is connected to the second output port.
[0145] Optionally, the main control chip 10 also includes a third input port, an image signal processing chip and a storage module; the image sensor is connected to the third input port, the third input port is connected to the storage module, the storage module is connected to the image signal processing chip, and the image signal processing chip is connected to the separation module.
[0146] Optionally, the image processing chip 11 also includes a storage module, an EIS module, an image synthesis module, and a fifth output port; the input port of the storage module is respectively connected to the first input port and the second input port; the output port of the storage module is respectively connected to the fourth input port of the image synthesis module and the fifth input port of the EIS module; the sixth output port of the EIS module is connected to the sixth input port of the image synthesis module; and the seventh output port of the image synthesis module is connected to the fifth output port.
[0147] Optionally, the image processing chip 11 further includes a serial peripheral interface SPI; the SPI is connected to the seventh input port of the EIS module; the image processing circuit 11 further includes a gyroscope sensor, which is an external gyroscope sensor, or a sensor in the image processing chip 11.
[0148] Optionally, the image processing circuit 11 further includes a display unit, and the fifth output port is connected to the display unit.
[0149] Optionally, the main control chip 10 also includes an eighth input port, an encoding module and a storage module, and the image processing chip 11 also includes an eighth output port; the eighth output port is connected to the ninth output port of the EIS module, the eighth input port is connected to the eighth output port, the eighth input port is connected to the encoding module, and the encoding module is connected to the storage module.
[0150] Optionally, the main control chip 10 includes a first interface, the image processing chip 11 includes a second interface, and the first interface is connected to the second interface.
[0151] Those skilled in the art will appreciate that the electronic device 100 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.13 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0152] The main control chip 10 performs image interface separation processing on the first image displayed on the shooting preview interface to obtain a user interface image and a preview image, wherein the preview image includes an image captured by the camera, and the user interface image includes information of a user graphic area of the shooting preview interface. The image processing chip 11 performs anti-shake processing on the preview image, and outputs a second image based on the user interface image and the anti-shake processed preview image.
[0153] An embodiment of the present application provides an electronic device, in which an image processing chip can process a preview image to obtain an image after anti-shake processing, that is, the algorithm processing of EIS can be converted from a software-level processing method to a hardware-level processing method, so that the electronic device can process the captured image in parallel through a CPU and an image processing chip, thereby avoiding the poor anti-shake processing effect on high frame rate images caused by the low efficiency of the anti-shake algorithm. In this way, while the efficiency of the electronic device in processing captured images is improved, the shooting effect of the electronic device is also improved.
[0154] The electronic device provided in the embodiment of the present application can implement each process implemented in the above method embodiment and can achieve the same technical effect. To avoid repetition, it will not be described here.
[0155] The beneficial effects of various implementations in this embodiment can be specifically referred to the beneficial effects of the corresponding implementations in the above method embodiment. To avoid repetition, they will not be described again here.
[0156] It should be understood that in the embodiment of the present application, the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, and the graphics processor 1041 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 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 107 includes a touch panel 1071 and other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include two parts: a touch detection device and a touch controller. Other input devices 1072 may include but are not limited to a physical keyboard, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 109 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 110 can integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, the user interface, and the application program, etc., and the modem processor mainly processes wireless communication. It is understandable that the above-mentioned modem processor may not be integrated into the processor 110.
[0157] 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 method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0158] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0159] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0160] 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.
[0161] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out 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.
[0162] 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 prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0163] 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
1. An image processing circuit, characterized in that: It includes a main control chip and an image processing chip, wherein the main control chip is connected to the image processing chip, and the image processing chip includes an electronic image stabilization EIS module; The main control chip is used to perform image interface separation processing on the first image processed by the image processing chip to obtain a user interface image and a preview image, wherein the preview image includes an image captured by a camera, and the user interface image includes information of a user graphic area of a preview interface; The image processing chip is used to perform anti-shake processing on the preview image through the EIS module and output a second image based on the user interface image and the preview image after the anti-shake processing.
2. The image processing circuit according to claim 1, characterized in that: The main control chip includes a separation module, a first output port and a second output port, and the image processing chip includes a first input port and a second input port; The third output port of the separation module is connected to the first output port, the fourth output port of the separation module is connected to the second output port, the first input port is connected to the first output port, and the second input port is connected to the second output port; The separation module is used to separate the first image to obtain a user interface image and a preview image; The first output port is used to output the user interface image, the second output port is used to output the preview image, the first input port is used to receive the user interface image, and the second input port is used to receive the preview image.
3. The image processing circuit according to claim 2, characterized in that: The main control chip further includes a third input port, an image signal processing chip and a storage module; the image sensor is connected to the third input port, the third input port is connected to the storage module, the storage module is connected to the image signal processing chip, and the image signal processing chip is connected to the separation module; The third input port is used to receive the original image collected by the image sensor, and the image signal processing chip is used to perform image processing on the original image to obtain the first image.
4. The image processing circuit according to claim 2, characterized in that: The image processing chip also includes a storage module, an image synthesis module, and a fifth output port; The input port of the storage module is connected to the first input port and the second input port respectively; The output port of the storage module is connected to the fourth input port of the image synthesis module and the fifth input port of the EIS module respectively; The sixth output port of the EIS module is connected to the sixth input port of the image synthesis module; the seventh output port of the image synthesis module is connected to the fifth output port; The EIS module is used to perform anti-shake processing on the preview image and output the preview image after anti-shake processing; the image synthesis module is used to perform image synthesis processing on the user interface image and the preview image after anti-shake processing; the storage module is used to cache the user interface image and the preview image; the fourth input port is used to receive the user interface image, and the sixth input port is used to receive the preview image after anti-shake processing.
5. The image processing circuit according to claim 4, characterized in that: The image processing chip further includes a serial peripheral interface SPI; the SPI is connected to the seventh input port of the EIS module; The image processing circuit further includes a gyroscope sensor, which is an external gyroscope sensor or a sensor in the image processing chip; The gyro sensor is used to detect jitter information; the SPI is used to read the jitter information detected by the gyro sensor in real time; The EIS module is used to perform anti-shake processing on the preview image based on the shake information, and transmit the preview image after the anti-shake processing to the image synthesis module.
6. The image processing circuit according to claim 4, characterized in that: The image processing circuit further includes a display unit, and the fifth output port is connected to the display unit; The image synthesis module is also used to send the second image to a display unit for display.
7. The image processing circuit according to claim 1, characterized in that: The main control chip further includes an eighth input port, an encoding module and a storage module, and the image processing chip further includes an eighth output port; The eighth output port is connected to the ninth output port of the EIS module, the eighth input port is connected to the eighth output port, the eighth input port is connected to the encoding module, and the encoding module is connected to the storage module; The EIS module is further used to transmit the preview image after anti-shake processing back to the eighth input port through the eighth output port; the encoding module is used to encode the preview image after anti-shake processing received by the eighth input port; The storage module is used to store the preview image after encoding by the encoding module.
8. The image processing circuit according to claim 1, characterized in that: The main control chip includes a first interface, the image processing chip includes a second interface, and the first interface is connected to the second interface; The main control chip is also used to control the image processing chip to switch to the video preview mode and enable the EIS module through the first interface when receiving the first input from the user, and the first input is the input that triggers the start of the video preview mode.
9. The image processing circuit according to claim 8, characterized in that: The main control chip is further used to control the image processing chip to switch from the video preview mode to the video recording mode through the first interface when receiving a second input from the user, wherein the second input is an input for triggering the start of video recording; The main control chip is also used to control the image processing chip to transmit the preview image after anti-shake processing back to the main control chip through the first interface in the video recording mode; The main control chip is also used to control the encoding module to encode the preview image after anti-shake processing received by the main control chip through the first interface; The main control chip is also used to control the storage module to store the preview image encoded by the encoding module through the first interface.
10. The image processing circuit according to claim 9, characterized in that: The main control chip is also used to control the image processing chip to switch from the recording mode to the recording preview mode through the first interface when receiving the user's third input, and control the EIS module to stop image transmission and the encoding module to stop encoding the image, and the third input is the input that triggers the end of recording.
11. An image processing device, characterized in that: The invention comprises the image processing circuit described in claims 1-10.
12. The image processing device according to claim 11, characterized in that: The image processing device also includes an image sensor, and the main control chip is connected to the image sensor.
13. An image processing method, applied to the image processing device according to claim 11 or 12, characterized in that: The method comprises: The main control chip performs image interface separation processing on the first image displayed on the shooting preview interface to obtain a user interface image and a preview image, wherein the preview image includes an image captured by the camera, and the user interface image includes information of a user graphic area of the shooting preview interface; The image processing chip EIS module performs anti-shake processing on the preview image and outputs a second image based on the user interface image and the preview image after the anti-shake processing.
14. The method according to claim 13, characterized in that After the main control chip performs image interface separation processing on the first image displayed on the shooting preview interface to obtain the user interface image and the preview image, the method further includes: The main control chip sends the user interface image to the image synthesis module of the image processing chip, and sends the preview image to the EIS module.
15. The method according to claim 14, characterized in that The image processing chip performs anti-shake processing on the preview image, and outputs a second image based on the user interface image and the preview image after the anti-shake processing, including: The gyroscope sensor detects jitter information; The EIS module reads the jitter information detected by the gyroscope sensor in real time, performs anti-shake processing on the preview image, and transmits the preview image after anti-shake processing to the image synthesis module; The image synthesis module performs image synthesis processing on the user interface image and the preview image after anti-shake processing, and outputs a second image; The jitter information includes at least one of the following: jitter speed and jitter frequency.
16. The method according to claim 13, characterized in that After the image processing chip performs anti-shake processing on the preview image and outputs a second image based on the user interface image and the preview image after the anti-shake processing, the method further includes: The image processing chip sends the second image to a display unit for display.
17. The method according to claim 13, characterized in that The main control chip performs image interface separation processing on the first image displayed on the shooting preview interface to obtain the user interface image and the preview image, and also includes: Receive a first input from a user, where the first input is an input for triggering the start of a video preview mode; In response to the first input, the main control chip controls the image processing chip to switch to a video preview mode.
18. The method according to claim 17, characterized in that In response to the first input, the main control chip controls the image processing chip to switch to a video preview mode, further comprising: receiving a second input from a user, where the second input is an input for triggering the start of recording; In response to the second input, the main control chip controls the image processing chip to switch from a video preview mode to a video recording mode; In the video recording mode, the main control chip controls the image processing chip to transmit the preview image after anti-shake processing back to the main control chip; The main control chip controls the encoding module to encode the preview image after the anti-shake processing received by the main control chip; The main control chip controls the storage module to store the preview image after encoding by the encoding module.
19. The method according to claim 18, characterized in that After the image processing chip is controlled to switch from the video preview mode to the video recording mode in response to the second input, the method further includes: receiving a third input from the user, wherein the third input is an input for triggering the end of the video recording; In response to the third input, the main control chip controls the image processing chip to switch from the video recording mode to the video recording preview mode, and controls the EIS module to stop sending the image after the anti-shake processing and the encoding module to stop encoding the image.
20. An electronic device, characterized in that: The invention comprises the image processing circuit as described in claims 1 to 10, a processor and a memory, wherein 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 as described in any one of claims 13 to 19 are implemented.
21. An image processing chip, characterized in that: The processing chip includes a processor and a communication interface, the communication interface is coupled to the processor, the communication interface is used to transmit image data, and the processor is used to run programs or instructions to implement the steps performed by the image processing chip in the image processing method as described in any one of claims 13 to 19.
22. A main control chip, characterized in that: The main control chip includes a processor and a communication interface, the communication interface is coupled to the processor, the communication interface is used to transmit image data, and the processor is used to run programs or instructions to implement the steps performed by the main control chip in the image processing method as described in any one of claims 13 to 19.
