Photographing method, apparatus, electronic device, and readable storage medium

By acquiring and processing image data from the camera module of a mobile electronic device, generating corresponding exposure parameters using exposure algorithm parameters, and controlling the exposure of the camera module, the problem of sudden brightness changes in the preview image during zooming is solved, achieving smooth brightness changes.

CN119729222BActive Publication Date: 2026-07-21VIVO MOBILE COMM CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
VIVO MOBILE COMM CO LTD
Filing Date
2023-09-28
Publication Date
2026-07-21

AI Technical Summary

Technical Problem

During zooming, the brightness changes of the preview screen on mobile electronic devices are not smooth enough, and there are sudden brightness changes.

Method used

By acquiring image data from the first camera module and the second camera module, the exposure data is converged using the exposure algorithm parameters of the first camera module. The exposure parameters of the first and second camera modules are calculated and generated, and each module is controlled to expose according to the corresponding parameters to improve the smoothness of brightness convergence.

Benefits of technology

It achieves smooth brightness changes in the preview image during zooming, reduces the degree of brightness change when users adjust the shooting focal length, and solves the problem of sudden brightness changes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119729222B_ABST
    Figure CN119729222B_ABST
Patent Text Reader

Abstract

The application discloses a photographing method and device, electronic equipment and readable storage medium, and belongs to the technical field of image processing. The photographing method comprises the following steps: acquiring first exposure data in the zooming process of the electronic equipment, wherein the first exposure data is exposure data determined according to image data collected by at least one of a first camera module and a second camera module; performing convergence processing on the first exposure data by using an exposure algorithm parameter of the first camera module to obtain second exposure data; calculating a first exposure parameter and a second exposure parameter according to the second exposure data; controlling the first camera module to perform exposure according to the first exposure parameter, and controlling the second camera module to perform exposure according to the second exposure parameter.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of image processing technology, specifically relating to a shooting method, apparatus, electronic device, and readable storage medium. Background Technology

[0002] With advancements in camera technology for mobile electronic devices, users can control these devices to achieve zoom functionality by switching between camera modules with different focal lengths.

[0003] In related technologies, due to differences between different camera modules, the brightness changes during zooming are not smooth enough, resulting in sudden brightness changes in the preview image. Summary of the Invention

[0004] The purpose of this application is to provide a shooting method, device, electronic device, and readable storage medium to reduce the degree of brightness change in the preview image when the user adjusts the shooting focal length, and to solve the problem of sudden brightness changes in the preview image during zooming.

[0005] In a first aspect, embodiments of this application provide a shooting method applied to an electronic device, the electronic device including a first camera module and a second camera module, the method comprising: during the zooming process of the electronic device, acquiring first exposure data, the first exposure data being exposure data determined based on image data acquired by at least one of the first and second camera modules; performing convergence processing on the first exposure data using exposure algorithm parameters of the first camera module to obtain second exposure data; calculating first exposure parameters and second exposure parameters based on the second exposure data; controlling the first camera module to expose according to the first exposure parameters, and controlling the second camera module to expose according to the second exposure parameters.

[0006] Secondly, embodiments of this application provide a shooting device applied to an electronic device. The electronic device includes a first camera module and a second camera module. The shooting device includes: an acquisition module, used to acquire first exposure data during the zooming process of the electronic device, the first exposure data being exposure data determined based on image data acquired by at least one of the first and second camera modules; a processing module, used to perform convergence processing on the first exposure data using exposure algorithm parameters of the first camera module to obtain second exposure data; a processing module, used to calculate first exposure parameters and second exposure parameters based on the second exposure data; and a control module, used to control the first camera module to expose according to the first exposure parameters and control the second camera module to expose according to the second exposure parameters.

[0007] Thirdly, embodiments of this application provide an electronic device, including a processor and a memory, wherein the memory stores a program or instructions that can run on the processor, and when the program or instructions are executed by the processor, they implement the steps of the method as described in the first aspect.

[0008] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method as described in the first aspect.

[0009] Fifthly, embodiments of this application provide a chip including a processor and a communication interface coupled to the processor, the processor being used to run programs or instructions to implement the steps of the method as described in the first aspect.

[0010] In a sixth aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method as described in the first aspect.

[0011] In this embodiment, when a user zooms using an electronic device, the electronic device can acquire first exposure data determined by image data collected by at least one of the first and second camera modules. It then converges the first exposure data using the exposure algorithm parameters corresponding to the first camera module to obtain second exposure data, improving the smoothness of brightness convergence. Based on this second exposure data, first and second exposure parameters corresponding to the first and second camera modules are generated, further improving the consistency of brightness between the preview images collected by the first and second camera modules. This makes brightness changes during zooming smoother, reduces the degree of brightness change in the preview image when the user adjusts the shooting focal length, and solves the problem of sudden brightness changes in the preview image during zooming. Attached Figure Description

[0012] Figure 1 A schematic flowchart of one of the imaging methods provided in some embodiments of this application is shown;

[0013] Figure 2 This illustration shows one of the structural block diagrams of the first processor and the second processor provided in some embodiments of this application;

[0014] Figure 3 This is a second structural block diagram of the first processor and the second processor provided in some embodiments of this application;

[0015] Figure 4 Schematic block diagrams of the imaging apparatus provided in some embodiments of this application are shown;

[0016] Figure 5The present application shows structural block diagrams of electronic devices provided in some embodiments;

[0017] Figure 6 The diagram shows a hardware structure schematic of an electronic device provided in some embodiments of this application. Detailed Implementation

[0018] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.

[0019] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such terms can be used interchangeably where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0020] The following is in conjunction with the appendix Figures 1 to 6 The present application provides a detailed description of the shooting method, shooting device, electronic device and readable storage medium provided in the embodiments of this application through specific implementation methods and application scenarios.

[0021] In some embodiments of this application, a shooting method is provided, applied to an electronic device, the electronic device including a first camera module and a second camera module. Figure 1 A flowchart illustrating the imaging method provided in some embodiments of this application is shown. For example... Figure 1 As shown, the shooting methods include:

[0022] Step 102: Acquire the first exposure data during the zooming process of the electronic device;

[0023] The first exposure data is the exposure data determined based on image data acquired by at least one of the first and second camera modules;

[0024] In this embodiment of the application, the electronic device includes a first camera module and a second camera module for acquiring image data at different focal lengths. During the zooming process of the electronic device, the electronic device takes pictures through at least one of the first camera module and the second camera module, and determines the first exposure data through the acquired image data.

[0025] Step 104: The first exposure data is converged using the exposure algorithm parameters of the first exposure module to obtain the second exposure data;

[0026] It should be noted that the electronic device stores automatic exposure algorithms corresponding to the first camera module and the second camera module respectively, and sets the corresponding exposure algorithm parameters.

[0027] In this embodiment, the first exposure data is converged using the exposure algorithm parameters of the first camera module. This ensures that the first exposure data, whether generated from image data acquired by the first camera module or image data acquired by the second camera module, is converged using the exposure algorithm parameters of the first camera module. Consequently, the converged second exposure data is the second exposure data that has been converged based on the exposure algorithm parameters of the first camera module, thus matching the second exposure data with the first camera module and improving the smoothness of brightness convergence.

[0028] Step 106: Calculate the first exposure parameters and the second exposure parameters based on the second exposure data;

[0029] For example, both the first and second exposure parameters include exposure gain and exposure time. Both exposure gain and exposure time are outputs of the automatic exposure (AE) algorithm.

[0030] Step 108: Control the first camera module to expose according to the first exposure parameters, and control the second camera module to expose according to the second exposure parameters.

[0031] In this embodiment, the second exposure data is the converged exposure data, the first exposure parameter is the exposure parameter to be configured in the first camera module (i.e., the first camera module exposes using the first exposure parameter), and the second exposure parameter is the exposure parameter to be configured in the second camera module (i.e., the second camera module exposes using the second exposure parameter). Since both the first and second exposure parameters are generated based on the second exposure data, and the second exposure data is the exposure data converged only through the exposure algorithm parameters corresponding to the first camera module, the consistency of brightness between the preview image acquired by the first camera module using the first exposure parameter and the preview image acquired by the second camera module using the second exposure parameter is improved during the process of controlling the first camera module to expose according to the first exposure parameter and controlling the second camera module to expose according to the second exposure parameter. This results in a smoother brightness transition process in the preview image displayed when the user adjusts the shooting focal length.

[0032] In this embodiment, when a user zooms using an electronic device, the electronic device can obtain first exposure data determined by image data collected by at least one of the first and second camera modules. It then converges the first exposure data using the exposure algorithm parameters corresponding to the first camera module to obtain second exposure data, improving the smoothness of brightness convergence. Based on this second exposure data, first and second exposure parameters corresponding to the first and second camera modules are generated, further improving the consistency of brightness between the preview images collected by the first and second camera modules. This makes brightness changes during zooming smoother, reduces the degree of brightness change in the preview image when the user adjusts the shooting focal length, and solves the problem of sudden brightness changes in the preview image during zooming.

[0033] In some embodiments of this application, the exposure data includes image statistics and metadata, and obtaining the first exposure data includes: obtaining the first exposure data based on the first image data collected by the first camera module.

[0034] In this embodiment, the exposure data includes image statistics (stats) and metadata. In determining the first exposure data using the first image data, it is necessary to obtain the image statistics and metadata of the first image data, and then use the image statistics and metadata to determine the first exposure data.

[0035] For example, after acquiring the first image data, image statistics and metadata in the first image data are acquired, and the acquired image statistics and metadata are determined as the first exposure data.

[0036] In this embodiment of the application, during the zooming process of the electronic device, the processor acquires the first image data collected by the first camera module, and acquires the image statistics data and metadata in the first image data as the first exposure data.

[0037] It should be noted that since only the image statistics and metadata from the first image data are used as the first exposure data, there is no need to activate the second camera module. For example, when the electronic device is detected to be zooming, the second camera module is controlled to stop operating, reducing the power consumption of the electronic device during shooting.

[0038] In this embodiment, by using the image statistics data and metadata of the first image data collected by the first camera module as the first exposure data, it is not necessary to acquire the image data collected by the second camera module, nor is it necessary to process the image data collected by the second camera module, thus further reducing the power consumption required by the electronic device during shooting.

[0039] In some embodiments of this application, the exposure data includes image statistics data and metadata. Obtaining the first exposure data includes: determining the third exposure data based on the first image data collected by the first camera module; determining the fourth exposure data based on the second image data collected by the second camera module; and performing linear addition fusion on the third exposure data and the fourth exposure data to obtain the first exposure data.

[0040] In this embodiment, the exposure data includes image statistics and metadata. The image statistics and metadata from the first image data are obtained to get the third exposure data corresponding to the first camera module. The image statistics and metadata from the second image data are also obtained to get the fourth exposure data corresponding to the second camera module. The third and fourth exposure data are then linearly added together to obtain the first exposure data.

[0041] In this embodiment, the first exposure data is the exposure data obtained by linearly adding and fusing the third exposure data corresponding to the first image data and the fourth exposure data corresponding to the second image data. This enables the metering data corresponding to the first camera module and the second camera module to be fused and transitioned, thereby improving the adaptability of the first exposure data with the first camera module and the second camera module and improving the stability of metering.

[0042] In this embodiment of the application, during the zooming process of the user-controlled electronic device, the first image data collected by the first camera module and the second image data collected by the second camera module are acquired, and the third exposure data of the first image data and the fourth exposure data of the second image data are linearly added and fused to generate the first exposure data.

[0043] For example, the first exposure data is calculated using the following relationship (1):

[0044]

[0045] Where Y is the first exposure data, n is the number of camera modules, n=2, W i X represents the weight of the exposure data corresponding to the i-th camera module. i This is the exposure data output by the i-th camera module.

[0046] For example, in the case of two camera modules including a first camera module and a second camera module, the third exposure data corresponding to the first camera module and the fourth exposure data corresponding to the second camera module are linearly added and fused using the above relationship (1) to obtain the first exposure data.

[0047] It should be noted that the weights are related to the shooting focal length. For example, the first camera module and the second camera module correspond to different focal lengths. When the zoom is in the focal length of the first camera module, the weight of the exposure data of the first camera module is increased. When the zoom is in the focal length of the second camera module, the weight of the exposure data of the second camera module is increased.

[0048] In this embodiment, the first exposure data is obtained by linearly adding and fusing the third exposure data of the first image data and the fourth exposure data of the second image data, which further improves the stability of the metering process. Furthermore, the subsequent convergence processing of the first exposure data is only performed in the first automatic exposure algorithm corresponding to the first camera module, which can improve the brightness convergence stability of the camera module switching process.

[0049] In some embodiments of this application, the shooting method further includes:

[0050] Obtain the first effect optimization parameters corresponding to the first camera module, and obtain the second effect optimization parameters corresponding to the second camera module;

[0051] The exposure algorithm parameters of the first camera module are updated by configuring the first effect tuning parameters and the second effect tuning parameters into the exposure algorithm of the first camera module.

[0052] In this embodiment, the first camera module corresponds to a first effect tuning parameter, and the second camera module corresponds to a second effect tuning parameter. For example, the effect tuning parameter is a tuning parameter.

[0053] In this embodiment, after obtaining the first effect tuning parameter and the second effect tuning parameter, both of the above two effect tuning parameters are configured into the exposure algorithm of the first camera module, thereby updating the exposure algorithm parameters corresponding to the first camera module. This makes the subsequent convergence processing of the first exposure data through the exposure algorithm parameters of the first camera module more accurate, and further makes the converged second exposure data match the first camera module, improving the smoothness of brightness convergence.

[0054] In some embodiments of this application, the electronic device includes a first chip and a second chip; the imaging method further includes:

[0055] When the first chip receives the third image data, it calculates the image statistics and metadata of the third image data. The third image data includes at least one of the image data acquired by the first camera module and the image data acquired by the second camera module. The first chip transmits the image statistics and metadata of the third image data to the second chip. The second chip performs exposure convergence processing on the image statistics and metadata of the third image data.

[0056] In this embodiment, the third image data is the image data acquired by the first chip at the first camera module and / or the second camera module. The third image data can be at least one of the image data acquired by the first camera module and the image data acquired by the second camera module. For example, the third image data can be the image data acquired by the first camera module, or it can be the image data acquired by the first camera module and the image data acquired by the second camera module.

[0057] The electronic device includes a first chip and a second chip. The first chip is used to acquire third image data. The first chip transmits the acquired third image data to the second chip for processing. The second chip can determine first exposure data based on the third image data and perform subsequent steps to determine first exposure parameters and second exposure parameters based on the first exposure data.

[0058] For example, the first chip is an application processor (AP) in an electronic device, and the second chip is a system-on-chip (SOC) chip in an electronic device.

[0059] Figure 2 This application shows one of the structural block diagrams of the first chip and the second chip provided in some embodiments, such as... Figure 2As shown, the AP is the first chip, the SOC is the second chip, the first camera module has 1×sensor, and the second camera module has 2×sensor. The AP performs Image Signal Processing (ISP) on the 1×sensor raw image acquired by the first camera module and the 2×sensor raw image acquired by the second camera module to obtain first image data and second image data. The first image data includes 1×stats and 1×metadata, and the second image data includes 2×stats and 2×metadata. The AP transmits the first and second image data to the SOC. The SOC then feeds the first and second image data corresponding to the 1× and 2× focal lengths into the automatic exposure algorithm for processing. Internally, the algorithm performs linear addition and fusion of the first and second image data based on the brightness difference between 1× and 2× focal lengths, combined with their respective tuning parameters, and synchronizes them. The convergence part is processed only within the 1× automatic exposure algorithm. After the algorithm finishes processing the converged second exposure data, it generates the first exposure parameters for the first camera module and the second exposure parameters for the second camera module, respectively. Both exposure parameters include exposure gain and exposure time. Specifically, 1×Metering and 2×Metering are the metering processes in the automatic exposure algorithm used to acquire the corresponding exposure data; 1×Convergence and 2×Convergence are the convergence processes in the automatic exposure algorithm used to converge the exposure data; and 1×Arbitration and 2×Arbitration are the decision processes in the automatic exposure algorithm used to generate exposure parameters based on the converged exposure data. The system acquires first image data from the first camera module and second image data from the second camera module. The exposure data corresponding to the first and second image data is then converged only within the automatic exposure algorithm corresponding to the first camera module, improving the smoothness of brightness convergence. Based on this, first and second exposure parameters corresponding to the first and second camera modules are generated. This further improves the consistency of brightness between the preview images captured by the first and second camera modules, making brightness changes during zooming smoother and reducing the degree of brightness change in the preview image when the user adjusts the shooting focal length. This solves the problem of sudden brightness changes in the preview image during zooming. The first chip is used to acquire image data but does not perform related automatic exposure algorithm processing. The automatic exposure algorithm is only run in the second chip to generate the first and second exposure parameters, thus sharing the power consumption of the first chip and maintaining the overall operational stability of the electronic device.

[0060] Figure 3 This application shows two structural block diagrams of the first chip and the second chip provided in some embodiments, such as... Figure 3 As shown, Figure 3 The modules marked with shaded areas are Pass modules, meaning these modules do not execute the corresponding steps. The AP is the first chip, the SOC is the second chip, the first camera module has 1×sensor, and the second camera module has 2×sensor. The AP performs ISP processing on the 1×sensor raw image acquired by the first camera module to obtain the first image data. This first image data includes 1×stats and 1×Metadata. The AP transmits the first image data to the SOC, which then sends the corresponding 1×first image data to the AE algorithm for processing. The algorithm combines the first image data with 1×Tuning parameters and 2×Tuning parameters through linear addition fusion and synchronization. The convergence part is processed only within the 1×AE algorithm. The converged second exposure data, after processing by the algorithm, generates the first exposure parameters corresponding to the first camera module and the second exposure parameters corresponding to the second camera module. Both exposure parameters include exposure gain and exposure time. Among them, 1×Metering is the metering process in the automatic exposure algorithm, used to acquire the corresponding exposure data; 1×Convergence is the convergence process in the automatic exposure algorithm, used to converge the exposure data; and 1×Arbitration is the decision processing process in the automatic exposure algorithm, used to generate exposure parameters based on the converged exposure data. The first image data of the first camera module is acquired, and convergence is performed only on the automatic exposure algorithm corresponding to the first camera module, further improving the smoothness of brightness convergence. Furthermore, the second camera module does not need to transmit its acquired image data to the second chip, further reducing the energy consumption required for processing. Based on this, first and second exposure parameters corresponding to the first and second camera modules are generated, further improving the consistency of brightness between the preview images acquired by the first and second camera modules. This makes brightness changes during zooming smoother, reduces the degree of brightness change in the preview image when the user adjusts the shooting focal length, and solves the problem of sudden brightness changes in the preview image during zooming. The first chip is only used to acquire image data and does not perform any calculations. The first and second exposure parameters are generated in the second chip, which further saves energy and improves the operational stability of the electronic device.

[0061] In this embodiment, the first chip is only used to acquire image data collected by the first and second camera modules, and the automatic exposure algorithm is run in the second chip to generate corresponding first and second exposure parameters, thus sharing the power consumption of the first chip and saving energy consumption of the electronic device. When the first chip is the main chip of the electronic device, it can also improve the stability of the electronic device's operation.

[0062] The shooting method provided in this application can be executed by a shooting device. This application uses a shooting device executing the shooting method as an example to illustrate the shooting device provided in this application.

[0063] In some embodiments of this application, a shooting device is provided, applied to an electronic device including a first camera module and a second camera module. Figure 4 Schematic block diagrams of imaging devices provided in some embodiments of this application are shown. For example... Figure 4 As shown, the imaging device 400 includes:

[0064] The acquisition module 402 is used to acquire first exposure data during the zooming process of the electronic device. The first exposure data is the exposure data determined based on the image data collected by at least one of the first camera module and the second camera module.

[0065] Processing module 404 is used to perform convergence processing on the first exposure data using the exposure algorithm parameters of the first camera module to obtain the second exposure data;

[0066] Processing module 404 is used to calculate the first exposure parameters and the second exposure parameters based on the second exposure data;

[0067] The control module 406 is used to control the first camera module to expose according to the first exposure parameters and to control the second camera module to expose according to the second exposure parameters.

[0068] In this embodiment, when a user zooms using an electronic device, the electronic device can acquire first exposure data determined by image data collected by at least one of the first and second camera modules. It then converges the first exposure data using the exposure algorithm parameters corresponding to the first camera module to obtain second exposure data, improving the smoothness of brightness convergence. Based on this second exposure data, first and second exposure parameters corresponding to the first and second camera modules are generated, further improving the consistency of brightness between the preview images collected by the first and second camera modules. This makes brightness changes during zooming smoother, reduces the degree of brightness change in the preview image when the user adjusts the shooting focal length, and solves the problem of sudden brightness changes in the preview image during zooming.

[0069] In some embodiments of this application, the processing module 404 is used to obtain first exposure data based on the first image data collected by the first camera module.

[0070] In this embodiment, by using the image statistics data and metadata of the first image data collected by the first camera module as the first exposure data, it is not necessary to acquire the image data collected by the second camera module, nor is it necessary to process the image data collected by the second camera module, thus further reducing the power consumption required by the electronic device during shooting.

[0071] In some embodiments of this application, the processing module 404 is used to determine the third exposure data based on the first image data acquired by the first camera module;

[0072] Processing module 404 is used to determine fourth exposure data based on the second image data acquired by the second camera module;

[0073] Processing module 404 is used to perform linear addition and fusion of the third exposure data and the fourth exposure data to obtain the first exposure data.

[0074] In this embodiment, the first exposure data is obtained by linearly adding and fusing the third exposure data of the first image data and the fourth exposure data of the second image data, which further improves the stability of the metering process. Furthermore, the subsequent convergence processing of the first exposure data is only performed in the first automatic exposure algorithm corresponding to the first camera module, which can improve the brightness convergence stability of the camera module switching process.

[0075] In some embodiments of this application, the acquisition module 402 is used to acquire the first effect optimization parameters corresponding to the first camera module and the second effect optimization parameters corresponding to the second camera module;

[0076] The processing module 404 is configured to update the exposure algorithm parameters of the first camera module by configuring the first effect optimization parameters and the second effect optimization parameters to the exposure algorithm of the first camera module.

[0077] In this embodiment, after obtaining the first effect tuning parameter and the second effect tuning parameter, both of the above two effect tuning parameters are configured into the exposure algorithm of the first camera module, thereby updating the exposure algorithm parameters corresponding to the first camera module. This makes the subsequent convergence processing of the first exposure data through the exposure algorithm parameters of the first camera module more accurate, and further makes the converged second exposure data match the first camera module, improving the smoothness of brightness convergence.

[0078] The shooting device in this application embodiment can be an electronic device or a component of an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, handheld computer, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television (TV), ATM, or self-service machine, etc. The embodiments of this application do not specifically limit the scope.

[0079] The shooting device in this application embodiment can be a device with an operating system. The operating system can be Android, iOS, or other possible operating systems, and this application embodiment does not specifically limit it.

[0080] The imaging device provided in this application embodiment can realize all the processes implemented in the above method embodiments, and will not be described again here to avoid repetition.

[0081] Optionally, embodiments of this application also provide an electronic device, including the shooting device as described in any of the above embodiments, and thus having all the beneficial effects of the shooting device in any of the embodiments, which will not be elaborated further here.

[0082] Optionally, embodiments of this application also provide an electronic device. Figure 5 A structural block diagram of an electronic device according to an embodiment of this application is shown, such as... Figure 5 As shown, the electronic device 500 includes a processor 502, a memory 504, and a program or instructions stored in the memory 504 and executable on the processor 502. When the program or instructions are executed by the processor 502, they implement the various processes of the above-described shooting method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.

[0083] It should be noted that the electronic devices in the embodiments of this application include the aforementioned mobile electronic devices and non-mobile electronic devices.

[0084] Figure 6 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application.

[0085] The electronic device 600 includes, but is not limited to, components such as: radio frequency unit 601, network module 602, audio output unit 603, input unit 604, sensor 605, display unit 606, user input unit 607, interface unit 608, memory 609, and processor 610.

[0086] Those skilled in the art will understand that the electronic device 600 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 610 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 6 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.

[0087] The processor 610 is used to acquire first exposure data during the zooming process of the electronic device. The first exposure data is exposure data determined based on image data acquired by at least one of the first and second camera modules.

[0088] The processor 610 is used to converge the first exposure data using the exposure algorithm parameters of the first camera module to obtain the second exposure data;

[0089] Processor 610 is used to calculate first exposure parameters and second exposure parameters based on second exposure data;

[0090] The processor 610 is used to control the first camera module to expose according to the first exposure parameters, and to control the second camera module to expose according to the second exposure parameters.

[0091] In this embodiment, when a user zooms using an electronic device, the electronic device can acquire first exposure data determined by image data collected by at least one of the first and second camera modules. It then converges the first exposure data using the exposure algorithm parameters corresponding to the first camera module to obtain second exposure data, improving the smoothness of brightness convergence. Based on this second exposure data, first and second exposure parameters corresponding to the first and second camera modules are generated, further improving the consistency of brightness between the preview images collected by the first and second camera modules. This makes brightness changes during zooming smoother, reduces the degree of brightness change in the preview image when the user adjusts the shooting focal length, and solves the problem of sudden brightness changes in the preview image during zooming.

[0092] Furthermore, the processor 610 is used to obtain first exposure data based on the first image data acquired by the first camera module.

[0093] In this embodiment, by using the image statistics data and metadata of the first image data collected by the first camera module as the first exposure data, it is not necessary to acquire the image data collected by the second camera module, nor is it necessary to process the image data collected by the second camera module, thus further reducing the power consumption required by the electronic device during shooting.

[0094] Furthermore, the processor 610 is used to determine the third exposure data based on the first image data acquired by the first camera module;

[0095] The processor 610 is used to determine the fourth exposure data based on the second image data acquired by the second camera module;

[0096] Processor 610 is used to perform linear addition and fusion of the third exposure data and the fourth exposure data to obtain the first exposure data.

[0097] In this embodiment, the first exposure data is obtained by linearly adding and fusing the third exposure data of the first image data and the fourth exposure data of the second image data, which further improves the stability of the metering process. Furthermore, the subsequent convergence processing of the first exposure data is only performed in the first automatic exposure algorithm corresponding to the first camera module, which can improve the brightness convergence stability of the camera module switching process.

[0098] Furthermore, the processor 610 is used to obtain the first effect optimization parameters corresponding to the first camera module and the second effect optimization parameters corresponding to the second camera module.

[0099] The processor 610 is configured to update the exposure algorithm parameters of the first camera module by configuring the first effect tuning parameters and the second effect tuning parameters to the exposure algorithm of the first camera module.

[0100] In this embodiment, after obtaining the first effect tuning parameter and the second effect tuning parameter, both of the above two effect tuning parameters are configured into the exposure algorithm of the first camera module, thereby updating the exposure algorithm parameters corresponding to the first camera module. This makes the subsequent convergence processing of the first exposure data through the exposure algorithm parameters of the first camera module more accurate, and further makes the converged second exposure data match the first camera module, improving the smoothness of brightness convergence.

[0101] It should be understood that, in this embodiment, the input unit 604 may include a graphics processing unit (GPU) 6041 and a microphone 6042. The GPU 6041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 606 may include a display panel 6061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 607 includes at least one of a processor 6071 and other input devices 6072. The processor 6071 is also called a touch screen. The processor 6071 may include a touch detection device and a touch controller. Other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, power buttons, etc.), a trackball, a mouse, and a joystick, which will not be described in detail here.

[0102] The memory 609 can be used to store software programs and various data. The memory 609 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 609 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 609 in this embodiment includes, but is not limited to, these and any other suitable types of memory.

[0103] Processor 610 may include one or more processing units; optionally, processor 610 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 610.

[0104] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.

[0105] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.

[0106] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface and the processor are coupled. The processor is used to run programs or instructions to implement the various processes of the above-described shooting method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0107] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.

[0108] This application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the above-described shooting method embodiments, and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0109] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0110] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of this application.

[0111] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. A shooting method, characterized in that, Applied to an electronic device, the electronic device includes a first camera module and a second camera module, and the electronic device also includes a first chip and a second chip, the shooting method including: During the zooming process of the electronic device, first exposure data is acquired, which is exposure data determined based on image data collected by at least one of the first camera module and the second camera module; The first exposure data is converged using the exposure algorithm parameters of the first camera module to obtain the second exposure data, which is matched with the first camera module. Based on the second exposure data, calculate the first exposure parameter and the second exposure parameter; The first camera module is controlled to expose according to the first exposure parameters, and the second camera module is controlled to expose according to the second exposure parameters; When the first chip receives the third image data, it calculates the image statistics and metadata of the third image data, wherein the third image data includes at least one of the image data acquired by the first camera module and the image data acquired by the second camera module; The first chip transmits the image statistics and metadata of the third image data to the second chip; The second chip is used to perform exposure convergence processing on the image statistics and metadata of the third image data. The first chip is only used to acquire image data, and the second chip generates the first exposure parameter and the second exposure parameter.

2. The shooting method according to claim 1, characterized in that, The exposure data includes image statistics and metadata, and obtaining the first exposure data includes: First exposure data is obtained based on the first image data acquired by the first camera module.

3. The shooting method according to claim 1, characterized in that, The exposure data includes image statistics and metadata. Obtaining the first exposure data includes: The third exposure data is determined based on the first image data acquired by the first camera module; The fourth exposure data is determined based on the second image data acquired by the second camera module; The third exposure data and the fourth exposure data are linearly added together to obtain the first exposure data.

4. The shooting method according to any one of claims 1 to 3, characterized in that, The method further includes: Obtain the first effect tuning parameters corresponding to the first camera module, and obtain the second effect tuning parameters corresponding to the second camera module; The first effect tuning parameter and the second effect tuning parameter are configured into the exposure algorithm of the first camera module to update the exposure algorithm parameters of the first camera module.

5. A shooting device, characterized in that, Applied to an electronic device, the electronic device includes a first camera module and a second camera module, the electronic device also includes a first chip and a second chip, and the shooting device includes: The acquisition module is used to acquire first exposure data during the zooming process of the electronic device. The first exposure data is exposure data determined based on image data acquired by at least one of the first camera module and the second camera module. The processing module is used to perform convergence processing on the first exposure data using the exposure algorithm parameters of the first camera module to obtain second exposure data, wherein the second exposure data is matched with the first camera module. The processing module is used to calculate the first exposure parameter and the second exposure parameter based on the second exposure data; The control module is used to control the first camera module to expose according to the first exposure parameters, and to control the second camera module to expose according to the second exposure parameters; When the first chip receives the third image data, it calculates the image statistics and metadata of the third image data, wherein the third image data includes at least one of the image data acquired by the first camera module and the image data acquired by the second camera module; The first chip transmits the image statistics and metadata of the third image data to the second chip; The second chip is used to perform exposure convergence processing on the image statistics and metadata of the third image data. The first chip is only used to acquire image data, and the second chip generates the first exposure parameter and the second exposure parameter.

6. The shooting device according to claim 5, characterized in that, The processing module is used to obtain first exposure data based on the first image data acquired by the first camera module.

7. The shooting device according to claim 5 or 6, characterized in that, The acquisition module is used to acquire first image data collected by the first camera module and second image data collected by the second camera module; The processing module is used to obtain the first effect optimization parameters corresponding to the first camera module and the second effect optimization parameters corresponding to the second camera module. The processing module is used to configure the first effect tuning parameters and the second effect tuning parameters into the exposure algorithm of the first camera module, so as to update the exposure algorithm parameters of the first camera module.

8. An electronic device, characterized in that, include: A processor and a memory, the memory storing a program or instructions executable on the processor, the program or instructions, when executed by the processor, implementing the steps of the method as described in any one of claims 1 to 4.

9. A readable storage medium having a program or instructions stored thereon, characterized in that, When the program or instructions are executed by the processor, they implement the steps of the method as described in any one of claims 1 to 4.