Shooting method and device, electronic equipment and storage medium
By counting and processing the image data of multiple rear cameras, and generating update parameters to improve image consistency, the problem of poor consistency of the output images of multiple cameras is solved and power consumption of electronic devices is saved.
Patent Information
- Application Number
- CN202311603213.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-28
- Publication Date
- 2025-05-30
AI Technical Summary
The different focal lengths of multiple rear cameras lead to poor consistency of the output image, resulting in inconsistent brightness, inconsistent color, and inconsistent focus position.
The first image data is counted by the first image signal processor ISP to obtain the first statistical information; the second image data is counted by the second sensor to obtain the second statistical information; the two statistical information are processed based on these two statistical information, and the first image data is updated based on these parameters to perform image display.
While avoiding the problem of poor consistency of images output by multiple cameras, power consumption of the second sensor is saved and overall power consumption of the electronic device is reduced.
Smart Images

Figure CN120075603A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of image processing technologies, and in particular, to a shooting method, apparatus, electronic device, and storage medium. Background Art
[0002] With the increasing shooting requirements of users, in order to enable an electronic device to have better photographing effects, multiple rear cameras are set for the electronic device. The multiple rear cameras are usually a combination of multiple cameras with different focal lengths. Since the focal lengths of the multiple rear cameras are different, the field of view angles of the multiple rear cameras are significantly different, resulting in poor consistency of the images output by the multiple cameras, that is, the images will have problems of visible brightness inconsistency, color inconsistency, and focus position inconsistency to the naked eye. Summary of the Invention
[0003] To overcome the problems existing in the related art, the present disclosure provides a shooting method, apparatus, electronic device, and storage medium.
[0004] According to a first aspect of an embodiment of the present disclosure, a shooting method is provided. The method includes:
[0005] Performing data statistics on first image data through a first image signal processor (ISP) to obtain first statistical information, where the first image data is collected by a first sensor, and the first sensor is an image sensor corresponding to a first camera;
[0006] Performing data statistics on second image data through a second sensor to obtain second statistical information, where the second image data is collected by the second sensor, and the second sensor is an image sensor corresponding to a second camera;
[0007] Processing based on the first statistical information and the second statistical information to obtain updated parameters;
[0008] Performing image display based on the updated parameters and the first image data.
[0009] In some embodiments, the performing data statistics on second image data through a second sensor to obtain second statistical information includes:
[0010] Performing downsampling on the second image data through the second sensor to obtain third image data after downsampling;
[0011] Performing data statistics on the third image data through the second sensor to obtain the second statistical information.
[0012] In some embodiments, after performing data statistics on first image data through a first ISP to obtain first statistical information, the method further includes:
[0013] Save the first statistical information to a first storage area through the first ISP;
[0014] After the second sensor performs data statistics on the second image data to obtain second statistical information, the method further includes:
[0015] Transmit the second statistical information to a second ISP through the second sensor;
[0016] Save the second statistical information to a second storage area through the second ISP.
[0017] In some embodiments, the processing based on the first statistical information and the second statistical information to obtain updated parameters includes:
[0018] Call a first preset algorithm to process the second statistical information to obtain third statistical information, and the information format of the third statistical information matches the information format of the first statistical information;
[0019] Call a second preset algorithm to process the first statistical information and the third statistical information to obtain the updated parameters.
[0020] In some embodiments, the frame rate of the first camera is the same as the frame rate of the second camera.
[0021] In some embodiments, the image display based on the updated parameters and the first image data includes:
[0022] Update the first image data based on the updated parameters to obtain target image data;
[0023] Perform image display based on the target image data.
[0024] In some embodiments, before the first ISP performs data statistics on the first image data, the method further includes:
[0025] When it is determined that the first camera is the main camera, control the first sensor and the first ISP to be in a first working mode;
[0026] When it is determined that the second camera is the secondary camera, control the second sensor and the second ISP to be in a second working mode, and the first working mode is different from the second working mode.
[0027] According to the second aspect of the embodiments of the present disclosure, there is provided a photographing device, and the method includes:
[0028] The first information acquisition module is configured to perform data statistics on the first image data through a first image signal processor (ISP) to obtain first statistical information. The first image data is collected by a first sensor, and the first sensor is an image sensor corresponding to a first camera.
[0029] The second information acquisition module is configured to perform data statistics on the second image data through a second sensor to obtain second statistical information. The second image data is collected by the second sensor, and the second sensor is an image sensor corresponding to a second camera.
[0030] The parameter update module is configured to process based on the first statistical information and the second statistical information to obtain updated parameters.
[0031] The image display module is configured to perform image display based on the updated parameters and the first image data.
[0032] In some embodiments, the second information acquisition module is configured to:
[0033] Perform downsampling on the second image data through the second sensor to obtain third image data after downsampling.
[0034] Perform data statistics on the third image data through the second sensor to obtain the second statistical information.
[0035] In some embodiments, the device further includes:
[0036] The storage module is configured to save the first statistical information to a first storage area through the first ISP.
[0037] The storage module is further configured to transmit the second statistical information to a second ISP through the second sensor.
[0038] The storage module is further configured to save the second statistical information to a second storage area through the second ISP.
[0039] In some embodiments, the parameter update module is configured to:
[0040] Invoke a first preset algorithm to process the second statistical information to obtain third statistical information, and the information format of the third statistical information matches the information format of the first statistical information.
[0041] Invoke a second preset algorithm to process the first statistical information and the third statistical information to obtain the updated parameters.
[0042] In some embodiments, the frame rate of the first camera is the same as the frame rate of the second camera.
[0043] In some embodiments, the image display module is configured to:
[0044] Update the first image data based on the update parameter to obtain target image data;
[0045] Perform image display based on the target image data.
[0046] In some embodiments, the apparatus further includes:
[0047] A mode determination module, configured to control the first sensor and the first ISP to be in a first working mode when it is determined that the first camera is the main camera;
[0048] A mode determination module, configured to control the second sensor and the second ISP to be in a second working mode when it is determined that the second camera is the secondary camera, where the first working mode is different from the second working mode.
[0049] According to a third aspect of the embodiments of the present disclosure, there is provided an electronic device, including:
[0050] A processor;
[0051] A memory for storing instructions executable by the processor;
[0052] Wherein, the processor is configured to execute the method described in the first aspect of the embodiments of the present disclosure.
[0053] According to a fourth aspect of the embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by the processor of the electronic device, enabling the electronic device to execute the method described in the first aspect of the embodiments of the present disclosure.
[0054] Adopting the above method of the present disclosure has the following beneficial effects:
[0055] The method provided by the embodiments of the present disclosure turns on the first camera and the second camera during the shooting process. The first image data corresponding to the first camera is sent from the first sensor to the first ISP and then processed by the first ISP, while the second image data corresponding to the second camera is directly processed by the second sensor. Although two cameras are turned on, the second sensor no longer outputs the second image data and only outputs the content of the statistical information, reducing the amount of data output and saving the power consumption of the second sensor. Thus, while avoiding the problem of poor consistency of the images output by multiple cameras, the power consumption of the electronic device can be saved.
[0056] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. Brief Description of the Drawings
[0057] The drawings herein are incorporated into and constitute a part of this specification, showing embodiments consistent with the present invention, and are used together with the specification to explain the principles of the present invention.
[0058] Figure 1 is a flowchart of a shooting method shown according to an exemplary embodiment;
[0059] Figure 2 is a flowchart of a shooting method shown according to an exemplary embodiment;
[0060] Figure 3 is a schematic diagram of an image downsampling shown according to an exemplary embodiment;
[0061] Figure 4 is a schematic diagram of an image downsampling shown according to an exemplary embodiment;
[0062] Figure 5 is a schematic diagram of a shooting process shown according to an exemplary embodiment;
[0063] Figure 6 is a schematic diagram of a shooting process in related art shown according to an exemplary embodiment;
[0064] Figure 7 is a schematic diagram of a shooting process shown according to an exemplary embodiment;
[0065] Figure 8 is a block diagram of a shooting device shown according to an exemplary embodiment;
[0066] Figure 9 is a block diagram of an electronic device shown according to an exemplary embodiment. Detailed Description of the Embodiments
[0067] Exemplary embodiments will be described in detail herein, and examples thereof are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.
[0068] In the related art, during the shooting process, one of the multiple rear cameras (for example, rear camera 1) is always turned on. When the user adjusts the zoom and switches to other cameras, rear camera 1 remains on. At this time, two cameras with different field of views are working simultaneously. The electronic device will send the image data collected by both cameras to the 3A (AE, AWB, AF) algorithm for calculation to obtain a unified 3A result. At this time, the two cameras can obtain images with consistent brightness, color, and focus positions, thereby improving the visual experience and user experience when switching between multiple cameras. However, turning on both cameras simultaneously will increase the power consumption of the electronic device.
[0069] In the embodiments of the present disclosure, to address the above problems, by preventing the second sensor from outputting second image data, the power consumption of the second sensor is saved, thereby saving the power consumption of the electronic device while avoiding the problem of poor consistency of the images output by multiple cameras.
[0070] The method provided by the embodiments of the present disclosure is executed by an electronic device, which can be a device with multiple cameras such as a mobile phone, a tablet computer, or a smart home device.
[0071] Figure 1 is a flowchart of a shooting method shown according to an exemplary embodiment, which is executed by an electronic device. Refer to Figure 1 and the method includes the following steps:
[0072] Step S101: Perform data statistics on the first image data through the first ISP to obtain first statistical information. The first image data is collected by the first sensor, and the first sensor is the image sensor corresponding to the first camera.
[0073] Among them, the first camera is any one of the multiple rear cameras, and during the current shooting process, the first camera is the main camera; the first sensor is the image sensor corresponding to the first camera, and the image sensor can be a low-power CMOS (Complementary Metal-Oxide Semiconductor) sensor or other types of image sensors; the first ISP (Image Signal Processor) is the ISP that processes data related to the first camera.
[0074] For the first camera (main camera), after the first image data is collected by the first sensor, the first image data is transmitted to the first ISP, and then the first ISP performs data statistics on the first image data to obtain the first statistical information. Among them, the first image data includes information of multiple pixels. For example, the first image data includes information of the R (red), G (green), and B (blue) channels; the first statistical information includes the first AE (Auto Exposur) information, the first AWB (Auto White Balance) information, and the first AF (Auto Focus) information.
[0075] Step S102: Perform data statistics on the second image data through the second sensor to obtain the second statistical information. The second image data is collected by the second sensor, and the second sensor is the image sensor corresponding to the second camera.
[0076] Among them, the second camera is any one of multiple rear cameras and is different from the first camera. During the current shooting process, the second camera is the secondary camera; the second sensor is the image sensor corresponding to the second camera; the second ISP is the ISP that processes data related to the second camera.
[0077] As the secondary camera, the second image data is used as reference data for the first image data, and it is not necessary to output the second image data for image display. Moreover, since the data volume of the second image data is large, if the second sensor transmits the second image data, the required power consumption is large. Therefore, in the embodiments of the present disclosure, in order to reduce power consumption, the second sensor directly performs data statistics on the second image data to obtain the second statistical information, and then the second sensor only needs to transmit the second statistical information instead of the second image data. Among them, the second image data includes information of multiple pixels; the second statistical information includes the second AE information, the second AWB information, and the second AF information.
[0078] Step S103: Process based on the first statistical information and the second statistical information to obtain updated parameters.
[0079] After obtaining the first statistical information and the second statistical information, process based on the first statistical information and the second statistical information to obtain updated parameters, which are used to represent the AE information, AWB information, and AF information to be updated for the first image data.
[0080] Step S104: Perform image display based on the updated parameters and the first image data.
[0081] Update the first image data based on the updated parameters, and then perform image display based on the updated image data.
[0082] In the method provided by the embodiments of the present disclosure, the first camera and the second camera are turned on during the shooting process. The first image data corresponding to the first camera is sent by the first sensor to the first ISP and then processed by the first ISP, while the second image data corresponding to the second camera is directly processed by the second sensor. Although two cameras are turned on, the second sensor no longer outputs the second image data, but only outputs the content of the statistical information, reducing the amount of data output and saving the power consumption of the second sensor. Thus, while avoiding the problem of poor consistency of the images output by multiple cameras, the power consumption of the electronic device can be saved.
[0083] In some embodiments, when it is determined that the first camera is the main camera, the first sensor and the first ISP are controlled to be in the first working mode; when it is determined that the second camera is the secondary camera, the second sensor and the second ISP are controlled to be in the second working mode, and the first working mode and the second working mode are different. Among them, the first working mode means that the image sensor transmits the acquired image data to the ISP, and the ISP processes the image data and forwards the processed information; the second working mode means that the image sensor directly processes the acquired image data, and then transmits the processed information to the ISP, and the ISP directly forwards the processed information. On this basis, the shooting process will be described in detail through the Figure 2 embodiments shown below.
[0084] Figure 2 is a flowchart of a shooting method shown according to an exemplary embodiment, which is executed by an electronic device. Refer to Figure 2 and the method includes the following steps:
[0085] Step S201, acquire first image data through the first sensor and transmit the first image data to the first ISP through the first sensor.
[0086] For the first sensor, the first sensor is in the first working mode. After the first sensor acquires the first image data, it directly transmits the first image data to the first ISP without processing the first image data.
[0087] Step S202, perform data statistics on the first image data through the first ISP to obtain first statistical information and save the first statistical information to the first storage area.
[0088] For the first ISP, after receiving the first image data transmitted by the first sensor, the first ISP performs data statistics on the first image data to obtain first statistical information. That is, the first ISP extracts first AE information, first AWB information, and first AF information from the first image data. Then, the first statistical information is stored in the first storage area, which is convenient for directly reading the first statistical information from the first storage area when the first statistical information needs to be processed later. Here, the first storage area is any area in the electronic device for storing information.
[0089] It should be noted that in the embodiments of the present disclosure, there is no limitation on the data statistics method when obtaining statistical information.
[0090] Step S203, collect second image data through the second sensor, and perform data statistics on the second image data to obtain second statistical information.
[0091] For the second sensor, the second sensor is in the second working mode. After collecting the second image data, the second sensor directly performs data statistics on the second image data to obtain second statistical information. That is, the second sensor extracts second AE information, second AWB information, and second AF information from the second image data.
[0092] In some embodiments, the second sensor downsamples the second image data to obtain the third image data after downsampling; the second sensor performs data statistics on the third image data after downsampling to obtain second statistical information. Since after downsampling the second image data, the amount of data that the second sensor needs to process is reduced, but it does not affect the FOV (Field of View) of the sampled image, and it also does not affect the pixel size. Performing data statistics on the third image data after downsampling has the same result as performing data statistics on the second image data. Therefore, performing data statistics on the third image data can further reduce the power consumption of the second sensor while ensuring that the second statistical information remains unchanged.
[0093] For example, referring to Figure 3 the schematic diagram of image downsampling shown in Figure 3 is to perform 1 / 4 downsampling on the image. Again, for example, referring to Figure 4 the schematic diagram of image downsampling shown in Figure 4 is to perform 1 / 16 downsampling on the image. Figure 3 And Figure 4 the black squares in
[0094] Step S204: Transmit the second statistical information to the second ISP through the second sensor, and save the second statistical information to the second storage area.
[0095] The second ISP only needs to save the second statistical information to the second storage area, so that when the second statistical information needs to be processed later, the second statistical information can be directly read from the second storage area. Herein, the second storage area is any area in the electronic device used for storing information, and the second storage area and the first storage area may be the same storage area or different storage areas.
[0096] In the embodiments of the present disclosure, for the second ISP, there is no need to process the second image data, which saves memory and bus bandwidth, and reduces the power consumption of the second ISP, that is, reduces the power consumption of the electronic device.
[0097] It should be noted that the embodiments of the present disclosure are only described by taking the execution of steps S201 and S202 first, and then the execution of steps S203 and S204 as an example. In the actual execution process, steps S203 and S204 may be executed first, and then steps S201 and S202, or steps S201 - S202 and steps S203 - S204 may be executed simultaneously.
[0098] Step S205: Invoke the first preset algorithm to process the second statistical information to obtain the third statistical information.
[0099] Wherein, the first preset algorithm is a pre - set 3A algorithm, and the 3A algorithm includes an AE algorithm, an AWB algorithm, and an AF algorithm. In the embodiments of the present disclosure, no limitation is imposed on the specific algorithms adopted. The first preset algorithm is used to read the second statistical information from the second storage area, and then process the second statistical information to obtain the third statistical information, and the third statistical information is used to represent the AE information, AWB information, and AF information to be updated of the second image data.
[0100] In some embodiments, since the second statistical information is processed by the second sensor, while the first statistical information is processed by the first ISP, and the modules for processing the second statistical information and the first statistical information are different, the second statistical information and the first statistical information may not match in terms of format, content, etc. Therefore, when invoking the first preset algorithm to process the second statistical information, the second statistical information also needs to be adapted, that is, the processed third statistical information needs to be statistical information that matches the first statistical information in terms of format, content, etc.
[0101] In some embodiments, the third statistical information is transmitted to the second sensor, and based on the third statistical information, the second image data is updated.
[0102] Step S206: Invoke a second preset algorithm to process the first statistical information and the third statistical information to obtain update parameters.
[0103] Among them, the second preset algorithm is a pre-set 3A algorithm, which is different from the first preset algorithm. The second preset algorithm is used to read the first statistical information from the first storage area, and then process the first statistical information and the third statistical information to obtain update parameters. Among them, the update parameters are used to characterize the AE information, AWB information, and AF information to be updated for the first image data.
[0104] Step S207: Update the first image data based on the update parameters to obtain target image data.
[0105] In the embodiments of the present disclosure, it is necessary to transmit the update parameters to the first sensor, and then update the first image data based on the update parameters to obtain target image data.
[0106] Step S208: Perform image display based on the target image data.
[0107] Transmit the target image data to the display module, and perform image display through the display module.
[0108] In some embodiments, the above shooting process can be as Figure 5 shown. Refer to Figure 5 , the first sensor transmits the first image data to the first ISP. The function of the first ISP is to process images. The first ISP performs data statistics on the first image data to obtain the first statistical information, and then transmits the first statistical information to the first 3A algorithm. The second sensor performs data statistics on the second image data to obtain the second statistical information, and then transmits the second statistical information to the second ISP. The second ISP is in a pass-through mode, that is, the second ISP transmits the second sensor to the second 3A algorithm. The second 3A algorithm is used to process the second statistical information to obtain the third statistical information, and then transmits the third statistical information to the first 3A algorithm. The first 3A algorithm processes the first statistical information and the third statistical information to obtain update parameters, and transmits the update parameters to the first sensor. The first sensor updates the first image data, and then transmits the updated target image data to the first ISP. The first ISP sends the target image data to the display screen, and the display screen displays the image.
[0109] It should be noted that the above implementation manner is described by taking the shooting process of one image as an example. For other images in the shooting process, the same implementation manner is used for processing to reduce the power consumption of the electronic device.
[0110] In addition, in a related technology, in order to save power consumption, the frame rate of the rear camera that is always on is reduced. However, a reduced frame rate means a lower update frequency of 3A statistics, which will reduce the 3A convergence speed. For example, refer to Figure 6 the schematic diagram of the shooting process in the related technology shown in the figure. The main camera captures two images, and the secondary camera (the rear camera that is always on) captures one image. The frame rate of the secondary camera is relatively low. The two images captured by the main camera need to refer to the same image captured by the secondary camera for 3A synchronization.
[0111] In the embodiments of the present disclosure, since both the second sensor and the second ISP have reduced power consumption, there is no need to save power in terms of frame rate. That is, the frame rate of the first camera can be the same as that of the second camera, thereby increasing the iteration speed of 3A and improving the 3A convergence speed. Moreover, the main camera no longer relies on the image captured by the secondary camera for 3A synchronization, but directly uses the statistics of the secondary camera for 3A synchronization. For example, refer to Figure 7 the schematic diagram of the shooting process shown in the figure. The main camera captures one image, and the secondary camera also captures one image. The frame rates of the main camera and the secondary camera are the same. The image captured by the main camera refers to the statistical information corresponding to the image captured by the secondary camera for 3A synchronization.
[0112] For the method provided in the embodiments of the present disclosure, for the second sensor, the first camera and the second camera are turned on during the shooting process. The first image data corresponding to the first camera is sent from the first sensor to the first ISP and then processed by the first ISP, while the second image data corresponding to the second camera is directly processed by the second sensor. Although two cameras are turned on, the second sensor no longer outputs the second image data, but only outputs the content of the statistics, reducing the amount of data output and saving the power consumption of the second sensor. Moreover, the second sensor downsamples the second image data and performs data statistics on the downsampled image data, further saving the power consumption of the second sensor. Thus, while avoiding the problem of poor consistency of images output by multiple cameras, the power consumption of the electronic device can be saved.
[0113] For the second ISP, the second ISP no longer processes the second image data, saving memory and bus bandwidth and further reducing the power consumption of the electronic device.
[0114] Figure 8 is a block diagram of a shooting device shown according to an exemplary embodiment, which is configured in an electronic device. Refer to Figure 8 and the device includes:
[0115] The first information acquisition module 801 is configured to perform data statistics on the first image data through a first image signal processor (ISP) to obtain first statistical information. The first image data is collected by a first sensor, and the first sensor is an image sensor corresponding to a first camera.
[0116] The second information acquisition module 802 is configured to perform data statistics on the second image data through a second sensor to obtain second statistical information. The second image data is collected by the second sensor, and the second sensor is an image sensor corresponding to a second camera.
[0117] The parameter update module 803 is configured to process based on the first statistical information and the second statistical information to obtain update parameters.
[0118] The image display module 804 is configured to perform image display based on the update parameters and the first image data.
[0119] In some embodiments, the second information acquisition module 802 is configured to:
[0120] Downsample the second image data through the second sensor to obtain third image data after downsampling.
[0121] Perform data statistics on the third image data through the second sensor to obtain second statistical information.
[0122] In some embodiments, the apparatus further includes:
[0123] A storage module is configured to save the first statistical information to a first storage area through the first ISP.
[0124] The storage module is further configured to transmit the second statistical information to a second ISP through the second sensor.
[0125] The storage module is further configured to save the second statistical information to a second storage area through the second ISP.
[0126] In some embodiments, the parameter update module 803 is configured to:
[0127] Call a first preset algorithm to process the second statistical information to obtain third statistical information, and the information format of the third statistical information matches the information format of the first statistical information.
[0128] Call a second preset algorithm to process the first statistical information and the third statistical information to obtain update parameters.
[0129] In some embodiments, the frame rate of the first camera is the same as the frame rate of the second camera.
[0130] In some embodiments, the image display module 804 is configured to:
[0131] Update the first image data based on the update parameters to obtain target image data;
[0132] Perform image display based on the target image data.
[0133] In some embodiments, the device further includes:
[0134] A mode determination module, configured to control the first sensor and the first ISP to be in a first operating mode when it is determined that the first camera is the main camera;
[0135] A mode determination module, configured to control the second sensor and the second ISP to be in a second operating mode when it is determined that the second camera is the secondary camera, and the first operating mode is different from the second operating mode.
[0136] Regarding the device in the above embodiments, the specific manners in which each module performs operations have been described in detail in the embodiments related to the method, and will not be elaborated herein.
[0137] An embodiment of the present disclosure further provides an electronic device, including: a processor; a memory for storing processor-executable instructions; wherein, the processor is configured to execute the shooting method in the above embodiments.
[0138] Figure 9 It is a block diagram of an electronic device 900 shown according to an exemplary embodiment.
[0139] Referring to Figure 9 , the electronic device 900 may include one or more of the following components: a processing component 902, a memory 904, a power component 906, a multimedia component 908, an audio component 910, an input / output (I / O) interface 912, a sensor component 914, and a communication component 916.
[0140] The processing component 902 generally controls the overall operation of the electronic device 900, such as operations associated with display, telephone calls, data communication, camera operations, and recording operations. The processing component 902 may include one or more processors 920 to execute instructions to complete all or part of the steps of the above method. In addition, the processing component 902 may include one or more modules to facilitate the interaction between the processing component 902 and other components. For example, the processing component 902 may include a multimedia module to facilitate the interaction between the multimedia component 908 and the processing component 902.
[0141] The memory 904 is configured to store various types of data to support the operation of the electronic device 900. Examples of such data include instructions for any application or method operating on the electronic device 900, contact data, phone book data, messages, pictures, videos, and the like. The memory 904 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.
[0142] The power supply component 906 provides power to various components of the electronic device 900. The power supply component 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 900.
[0143] The multimedia component 908 includes a screen that provides an output interface between the electronic device 900 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can not only sense the boundaries of the touch or swipe actions but also detect the duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 908 includes a front camera and / or a rear camera. When the electronic device 900 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
[0144] The audio component 910 is configured to output and / or input audio signals. For example, the audio component 910 includes a microphone (MIC) that is configured to receive external audio signals when the electronic device 900 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the memory 904 or transmitted via the communication component 916. In some embodiments, the audio component 910 further includes a speaker for outputting audio signals.
[0145] The I / O interface 912 provides an interface between the processing component 902 and a peripheral interface module, which can be a keyboard, a click wheel, buttons, etc. These buttons can include, but are not limited to: a home button, a volume button, a power-on button, and a lock button.
[0146] The sensor assembly 914 includes one or more sensors for providing an assessment of various aspects of the status of the electronic device 900. For example, the sensor assembly 914 can detect the on / off state of the electronic device 900, the relative positioning of components, such as the display and keypad of the electronic device 900. The sensor assembly 914 can also detect a change in the position of the electronic device 900 or a component of the electronic device 900, the presence or absence of user contact with the electronic device 900, the orientation or acceleration / deceleration of the electronic device 900, and a change in the temperature of the electronic device 900. The sensor assembly 914 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 914 can also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 914 can also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0147] The communication component 916 is configured to facilitate communication between the electronic device 900 and other devices in a wired or wireless manner. The electronic device 900 can access a wireless network based on communication standards, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 916 further includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0148] In an exemplary embodiment, the electronic device 900 can be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above method.
[0149] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 904 including instructions, which can be executed by a processor 920 of the electronic device 900 to complete the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.
[0150] Embodiments of the present disclosure also provide a non-transitory computer-readable storage medium. When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the shooting method in the above embodiments.
[0151] Those skilled in the art will readily conceive of other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present invention, which follow the general principles of the present invention and include common general knowledge or conventional technical means in the technical field not disclosed in the present disclosure. The specification and embodiments are only to be considered as exemplary, and the true scope and spirit of the present invention are pointed out by the following claims.
[0152] It should be understood that the present invention is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present invention is only limited by the appended claims.
Claims
1. A shooting method, characterized in that, the method includes: Performing data statistics on first image data through a first Image Signal Processor (ISP) to obtain first statistical information, where the first image data is collected by a first sensor, and the first sensor is an image sensor corresponding to a first camera; Performing data statistics on second image data through a second sensor to obtain second statistical information, where the second image data is collected by the second sensor, and the second sensor is an image sensor corresponding to a second camera; Processing based on the first statistical information and the second statistical information to obtain an update parameter; Performing image display based on the update parameter and the first image data.
2. The method according to claim 1, characterized in that, the performing data statistics on second image data through the second sensor to obtain second statistical information includes: Performing downsampling on the second image data through the second sensor to obtain downsampled third image data; Performing data statistics on the third image data through the second sensor to obtain the second statistical information.
3. The method according to claim 1, characterized in that, after performing data statistics on first image data through the first ISP to obtain first statistical information, the method further includes: Saving the first statistical information to a first storage area through the first ISP; after performing data statistics on second image data through the second sensor to obtain second statistical information, the method further includes: Transmitting the second statistical information to a second ISP through the second sensor; Saving the second statistical information to a second storage area through the second ISP.
4. The method according to claim 1, characterized in that, the processing based on the first statistical information and the second statistical information to obtain an update parameter includes: Invoking a first preset algorithm to process the second statistical information to obtain third statistical information, where the information format of the third statistical information matches the information format of the first statistical information; Invoking a second preset algorithm to process the first statistical information and the third statistical information to obtain the update parameter.
5. The method according to claim 1, characterized in that, the frame rate of the first camera is the same as the frame rate of the second camera.
6. The method according to claim 1, characterized in that, the performing image display based on the update parameter and the first image data includes: Updating the first image data based on the update parameter to obtain target image data; Performing image display based on the target image data.
7. The method according to claim 1, characterized in that, before performing data statistics on first image data through the first ISP, the method further includes: When determining that the first camera is the main camera, controlling the first sensor and the first ISP to be in a first working mode; When it is determined that the second camera is a secondary camera, control the second sensor and the second ISP to be in a second working mode, where the first working mode is different from the second working mode.
8. A shooting device, characterized in that the device includes: a first information acquisition module configured to perform data statistics on first image data through a first image signal processor (ISP) to obtain first statistical information, where the first image data is collected by a first sensor, and the first sensor is an image sensor corresponding to a first camera; a second information acquisition module configured to perform data statistics on second image data through a second sensor to obtain second statistical information, where the second image data is collected by the second sensor, and the second sensor is an image sensor corresponding to a second camera; a parameter update module configured to process based on the first statistical information and the second statistical information to obtain updated parameters; an image display module configured to perform image display based on the updated parameters and the first image data.
9. An electronic device, characterized in that it includes: a processor; a memory for storing processor-executable instructions; wherein, the processor is configured to execute the method according to any one of claims 1-7.
10. A non-transitory computer-readable storage medium, characterized in that when the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method according to any one of claims 1-7.