Shooting method and device, electronic equipment and readable storage medium

By obtaining and converging the exposure data of the camera module during the zooming process, calculating and applying exposure parameters, the problem of unsmooth changes in the preview screen during the zooming process is solved, and a more stable brightness conversion is achieved.

CN119729222AActive Publication Date: 2025-03-28VIVO MOBILE COMM CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202311281709.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-28
Publication Date
2025-03-28
Estimated Expiration
2043-09-28

AI Technical Summary

Technical Problem

During the zoom process, the brightness changes of the preview screen are not smooth enough, and there is a problem of sudden brightness changes.

Method used

By acquiring the exposure data determined by the image data collected by at least one of the first imaging module and the second imaging module, a convergence process is performed to generate the second exposure data, and the first and second exposure parameters are calculated based on the data, and the imaging module is controlled to expose according to these parameters.

Benefits of technology

It improves the smoothness of brightness convergence, reduces the degree of brightness change of the preview screen when the user adjusts the shooting focal length, and solves the problem of sudden brightness changes in the preview screen during zooming.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119729222A_ABST
    Figure CN119729222A_ABST
Patent Text Reader

Abstract

The invention discloses a shooting method and device, electronic equipment and a readable storage medium, and belongs to the technical field of image processing. The shooting method comprises the steps that in the zooming process of the electronic equipment, first exposure data are obtained, and the first exposure data are exposure data determined according to image data collected by at least one of a first camera module and a second camera module; carrying out convergence processing on the first exposure data through 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; and 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] The present application belongs to the field of image processing technology, and specifically relates to a shooting method, device, electronic device and readable storage medium. Background Art

[0002] With the advancement of camera technology of mobile electronic devices, users can control mobile electronic devices to achieve a zoom function by switching camera modules with different focal lengths.

[0003] In the related art, due to the differences between different camera modules, the brightness change during the zoom process is not smooth enough, and the preview screen has the problem of sudden brightness changes. Summary of the invention

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

[0005] In a first aspect, an embodiment of the present application provides a shooting method, which is applied to an electronic device, wherein the electronic device includes a first camera module and a second camera module, and the method includes: during zooming of the electronic device, obtaining first exposure data, the first exposure data being exposure data determined based on image data collected by at least one of the first camera module and the second camera module; performing convergence processing on the first exposure data through 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] In a second aspect, an embodiment of the present application provides a shooting device, which is applied to an electronic device, wherein the electronic device includes a first camera module and a second camera module, and the shooting device includes: an acquisition module, which is used to acquire first exposure data during zooming of the electronic device, the first exposure data being exposure data determined based on image data collected by at least one of the first camera module and the second camera module; a processing module, which is used to perform convergence processing on the first exposure data through exposure algorithm parameters of the first camera module to obtain second exposure data; the processing module is used to calculate first exposure parameters and second exposure parameters based on the second exposure data; and a control module is 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] In a third aspect, an embodiment of the present application provides an electronic device, including a processor and a memory, wherein the memory stores programs or instructions that can be executed on the processor, and when the programs or instructions are executed by the processor, the steps of the method of the first aspect are implemented.

[0008] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method of the first aspect are implemented.

[0009] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the steps of the method of the first aspect.

[0010] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method of the first aspect.

[0011] In the embodiment of the present application, when the user zooms through the electronic device, the electronic device can obtain the first exposure data determined by the image data collected by at least one of the first camera module and the second camera module, and converge the first exposure data through the exposure algorithm parameters corresponding to the first camera module to obtain the second exposure data, thereby improving the smoothness of brightness convergence. Then, the first exposure parameters and the second exposure parameters corresponding to the first camera module and the second camera module are generated according to the second exposure data, further improving the consistency of the brightness of the preview image collected by the first camera module and the preview image collected by the second camera module, making the brightness change of the zoom process smoother, reducing the degree of brightness change of the preview image when the user adjusts the shooting focal length, and solving the problem of sudden brightness change of the preview image during the zoom process. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 One of the flowcharts of the shooting method provided by some embodiments of the present application is shown;

[0013] Figure 2 One of the structural block diagrams of the first processor and the second processor provided in some embodiments of the present application is shown;

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

[0015] Figure 4 A schematic block diagram of a photographing device provided in some embodiments of the present application is shown;

[0016] Figure 5A structural block diagram of an electronic device provided by some embodiments of the present application is shown;

[0017] Figure 6 A schematic diagram of the hardware structure of an electronic device provided in some embodiments of the present application is shown. DETAILED DESCRIPTION

[0018] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0019] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0020] The following is combined with Figures 1 to 6 , the shooting method, shooting device, electronic device and readable storage medium provided in the embodiments of the present application are described in detail through specific embodiments and their application scenarios.

[0021] In some embodiments of the present application, a shooting method is provided, which is applied to an electronic device, wherein the electronic device includes a first camera module and a second camera module. Figure 1 FIG. 1 is a flow chart of a shooting method provided by some embodiments of the present application. Figure 1 As shown, the shooting method includes:

[0022] Step 102, obtaining first exposure data during zooming of the electronic device;

[0023] The first exposure data is exposure data determined according to image data collected by at least one of the first camera module and the second camera module;

[0024] In an embodiment of the present application, the electronic device includes a first camera module, and the first camera module and the second camera module are used to collect image data of different focal lengths. During the zooming process of the electronic device, the electronic device shoots through at least one of the first camera module and the second camera module, and determines the first exposure data through the image data obtained by the shooting.

[0025] Step 104, performing convergence processing on the first exposure data using the exposure algorithm parameters of the first exposure module to obtain 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 corresponding exposure algorithm parameters.

[0027] In the embodiment of the present application, the first exposure data is converged by the exposure algorithm parameters of the first camera module, so that no matter whether the first exposure data is generated based on the image data collected by the first camera module or the image data collected by the second camera module, the first exposure data is converged by the exposure algorithm parameters of the first camera module, so that the converged second exposure data obtained is the second exposure data after convergence processing based on the exposure algorithm parameters of the first camera module, so that the second exposure data matches the first camera module, thereby improving the smoothness of brightness convergence.

[0028] Step 106, calculating a first exposure parameter and a second exposure parameter according to the second exposure data;

[0029] Exemplarily, the first exposure parameter and the second exposure parameter both include exposure gain and exposure time, which are outputs of an automatic exposure (AE) algorithm.

[0030] Step 108, 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.

[0031] In the embodiment of the present application, the second exposure data is the exposure data after the convergence processing, the first exposure parameter is the exposure parameter that needs to be configured in the first camera module, that is, the first camera module is exposed by the first exposure parameter, and the second exposure parameter is the exposure parameter that needs to be configured in the second camera module, that is, the second camera module is exposed by the second exposure parameter. Since the first exposure parameter and the second exposure parameter are both generated according to the second exposure data, and the second exposure data is the exposure data obtained by converging only through the exposure algorithm parameters corresponding to the first camera module, in 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, the consistency of the brightness of the preview image collected by the first camera module through the first exposure parameter and the preview image collected by the second camera module through the second exposure parameter is improved, and when the user adjusts the shooting focal length, the brightness switching process of the preview image in the display screen is smoother.

[0032] In the embodiment of the present application, when the user zooms through the electronic device, the electronic device can obtain the first exposure data determined by the image data collected by at least one of the first camera module and the second camera module, and converge the first exposure data to obtain the second exposure data through the exposure algorithm parameters corresponding to the first camera module corresponding to the first camera module, thereby improving the smoothness of brightness convergence. Then, the first exposure parameters and the second exposure parameters corresponding to the first camera module and the second camera module are generated according to the second exposure data, further improving the consistency of the brightness of the preview image collected by the first camera module and the preview image collected by the second camera module, making the brightness change of the zoom process smoother, reducing the degree of brightness change of the preview image when the user adjusts the shooting focal length, and solving the problem of sudden brightness change of the preview image during the zoom process.

[0033] In some embodiments of the present application, the exposure data includes image statistical data and metadata, and obtaining the first exposure data includes: obtaining the first exposure data according to the first image data collected by the first camera module.

[0034] In the embodiment of the present application, the exposure data includes image statistics (stats) and metadata (Metadata). In the process of determining the first exposure data by the first image data, it is necessary to obtain the image statistics and metadata of the first image data, and determine the first exposure data by the image statistics and metadata.

[0035] Exemplarily, after the first image data is acquired, image statistical data and metadata in the first image data are acquired, and the acquired image statistical data and metadata are determined as the first exposure data.

[0036] In an embodiment of the present application, when the electronic device is in a zooming process, the processor obtains first image data captured by the first camera module, and obtains image statistics and metadata in the first image data as first exposure data.

[0037] It should be noted that, since only the image statistics and metadata in the first image data are used as the first exposure data, there is no need to turn on the second camera module. Exemplarily, when it is detected that the electronic device is in the zoom process, the second camera module is controlled to stop running to reduce the power consumption of the electronic device when shooting.

[0038] In the embodiment of the present application, by using the image statistics and metadata of the first image data captured by the first camera module as the first exposure data, there is no need to obtain the image data captured by the second camera module, and there is no need to perform corresponding processing on the image data captured by the second camera module, thereby further reducing the power consumption required during the shooting process of the electronic device.

[0039] In some embodiments of the present application, the exposure data includes image statistical data and metadata, and obtaining the first exposure data includes: determining the third exposure data based on the first image data captured by the first camera module; determining the fourth exposure data based on the second image data captured 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 the embodiment of the present application, the exposure data includes image statistical data and metadata, then the image statistical data and metadata in the first image data are obtained to obtain the third exposure data corresponding to the first camera module, and the image statistical data and metadata of the second image data are obtained to obtain the fourth exposure data corresponding to the second camera module. The third exposure data and the fourth exposure data are then linearly added and fused to obtain the first exposure data.

[0041] In an embodiment of the present application, the first exposure data is exposure data obtained by linearly adding and fusion processing the third exposure data corresponding to the first image data and the fourth exposure data corresponding to the second image data, so that the metering data corresponding to the first camera module and the second camera module can be fused and transitioned, thereby improving the adaptability of the first exposure data to the first camera module and the second camera module and improving the stability of the metering.

[0042] In an embodiment of the present application, when the user controls the electronic device to zoom, first image data captured by the first camera module and second image data captured by the second camera module are obtained, 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 first exposure data.

[0043] Exemplarily, the first exposure data is calculated by the following relation (1):

[0044]

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

[0046] Exemplarily, in the case of a total 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 according to the above-mentioned relationship (1) to obtain the first exposure data.

[0047] It should be noted that the weight is associated with 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 an embodiment of the present application, 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, thereby further improving the stability of the metering process, and 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 the present application, the shooting method further includes:

[0050] Obtaining a first effect tuning parameter corresponding to the first camera module, and obtaining a second effect tuning parameter corresponding to the second camera module;

[0051] The exposure algorithm of the first camera module is configured through the first effect tuning parameter and the second effect tuning parameter to update the exposure algorithm parameters of the first camera module.

[0052] In the embodiment of the present application, the first camera module corresponds to a first effect tuning parameter, and the second camera module corresponds to a second effect tuning parameter. Exemplarily, the effect tuning parameter is a Tuning parameter.

[0053] In an embodiment of the present application, after obtaining the first effect tuning parameters and the second effect tuning parameters, 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, so that the subsequent convergence processing of the first exposure data through the exposure algorithm parameters of the first camera module is more accurate, and the converged second exposure data is further matched with the first camera module, thereby improving the smoothness of brightness convergence.

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

[0055] When the first chip receives the third image data, the image statistics data and metadata of the third image data are calculated, where the third image data includes at least one of the image data collected by the first camera module and the image data collected by the second camera module; the first chip transmits the image statistics data and metadata of the third image data to the second chip; and the second chip is used to perform exposure convergence processing on the image statistics data and metadata of the third image data.

[0056] In the embodiment of the present application, the third image data is the image data acquired by the first chip at the first camera module and / or the second camera module, and the third image data may 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 may be the image data acquired by the first camera module, or 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, wherein 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, and the second chip can determine first exposure data according to the third image data, and perform subsequent steps of determining first exposure parameters and second exposure parameters according to the first exposure data.

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

[0059] Figure 2 One of the structural block diagrams of the first chip and the second chip provided in some embodiments of the present application is shown, such as Figure 2As shown, AP is the first chip, SOC is the second chip, the first camera module is 1×sensor, and the second camera module is 2×sensor. AP performs image signal processing (ISP) on the 1×sensor raw image collected by the first camera module and the 2×sensor raw image collected by the second camera module to obtain the first image data and the 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 image data and the second image data to the SOC, and the SOC sends the first image data and the second image data corresponding to the 1× focal length and the 2× focal length to the automatic exposure algorithm for processing. The algorithm performs linear addition fusion and synchronization on the first image data and the second image data according to the brightness difference between 1× and 2× and the respective Tuning (effect tuning) parameters. The convergence part is only processed in the 1X automatic exposure algorithm. After the converged second exposure data is processed, the first exposure parameter corresponding to the first camera module and the second exposure parameter corresponding to the second camera module are generated respectively. The exposure parameters include exposure gain and exposure time. Among them, 1×Metering and 2×Metering are the metering processing processes in the automatic exposure algorithm, which are used to obtain the corresponding exposure data, 1×Convergence and 2×Convergence are the convergence processing processes in the automatic exposure algorithm, which are used to perform convergence processing on the exposure data, and 1×Arbitration and 2×Arbitration are the decision processing processes in the automatic exposure algorithm, which are used to generate exposure parameters according to the exposure data after convergence processing. The first image data of the first camera module and the second image data of the second camera module are obtained, and the exposure data corresponding to the first image data and the second image data are converged only in the automatic exposure algorithm corresponding to the first camera module, thereby improving the smoothness of brightness convergence, and generating the first exposure parameter and the second exposure parameter corresponding to the first camera module and the second camera module accordingly, further improving the consistency of the brightness of the preview image collected by the first camera module and the preview image collected by the second camera module, making the brightness change of the zoom process smoother, reducing the degree of brightness change of the preview screen when the user adjusts the shooting focal length, and solving the problem of sudden brightness change of the preview screen during the zoom process. The first chip is used to obtain image data, and does not perform related automatic exposure algorithm processing. The automatic exposure algorithm is only run in the second chip to generate the first exposure parameter and the second exposure parameter, which shares the power consumption of the first chip end and maintains the overall operation stability of the electronic device.

[0060] Figure 3 The second structural block diagram of the first chip and the second chip provided in some embodiments of the present application is shown. Figure 3 As shown, Figure 3 The module with shadows is the Pass module, that is, the module does not execute the corresponding steps. AP is the first chip, SOC is the second chip, the first camera module is 1×sensor, and the second camera module is 2×sensor. AP performs ISP processing on the 1×sensor raw image collected by the first camera module to obtain the first image data. Among them, the first image data includes 1×stats and 1×Metadata. AP transmits the first image data to SOC, and SOC sends the first image data corresponding to 1× to the AE algorithm for processing. The algorithm performs linear addition fusion and synchronization on the first image data combined with 1×Tuning parameters and 2×Tuning parameters. Among them, the convergence part is only processed in the 1×AE algorithm. The second exposure data obtained by convergence, after the algorithm processing is completed, the first exposure parameters corresponding to the first camera module and the second exposure parameters corresponding to the second camera module are generated respectively. The exposure parameters include exposure gain and exposure time. Among them, 1×Metering is the metering process in the automatic exposure algorithm, which is used to obtain the corresponding exposure data, 1×Convergence is the convergence process in the automatic exposure algorithm, which is used to perform convergence processing on the exposure data, and 1×Arbitration is the decision-making process in the automatic exposure algorithm, which is used to generate exposure parameters according to the exposure data after convergence processing. The first image data of the first camera module is obtained, and the first image data is only converged in the automatic exposure algorithm corresponding to the first camera module, which further improves the smoothness of brightness convergence, and the second camera module does not need to transmit the image data collected by itself to the second chip, which further reduces the energy consumption required for the processing process. Based on this, the first exposure parameters and the second exposure parameters corresponding to the first camera module and the second camera module are generated, which further improves the consistency of the brightness of the preview image collected by the first camera module and the preview image collected by the second camera module, making the brightness change of the zoom process smoother, reducing the degree of brightness change of the preview picture when the user adjusts the shooting focal length, and solving the problem of sudden brightness change of the preview picture during the zoom process. The first chip is only used to acquire image data without performing corresponding calculations, and the first exposure parameter and the second exposure parameter are generated in the second chip, which further saves energy consumption and improves the operating stability of the electronic device.

[0061] In the embodiment of the present application, the first chip is only used to obtain the image data collected by the first camera module and the second camera module, and the automatic exposure algorithm is run in the second chip to generate the corresponding first exposure parameter and second exposure parameter, which shares the power consumption of the first chip end, thereby saving the energy consumption of the electronic device. In the case where the first chip is the main chip of the electronic device, the stability of the operation of the electronic device can also be improved.

[0062] The shooting method provided in the embodiment of the present application can be executed by a shooting device. In the embodiment of the present application, the shooting method is executed by a shooting device as an example to illustrate the shooting device provided in the embodiment of the present application.

[0063] In some embodiments of the present application, a photographing device is provided, which is applied to an electronic device and includes a first camera module and a second camera module. Figure 4 Schematic block diagram of a shooting device provided by some embodiments of the present application is shown. Figure 4 As shown, the photographing device 400 includes:

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

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

[0066] A processing module 404, configured to calculate a first exposure parameter and a second exposure parameter according to the second exposure data;

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

[0068] In the embodiment of the present application, when the user zooms through the electronic device, the electronic device can obtain the first exposure data determined by the image data collected by at least one of the first camera module and the second camera module, and converge the first exposure data through the exposure algorithm parameters corresponding to the first camera module to obtain the second exposure data, thereby improving the smoothness of brightness convergence. Then, the first exposure parameters and the second exposure parameters corresponding to the first camera module and the second camera module are generated according to the second exposure data, further improving the consistency of the brightness of the preview image collected by the first camera module and the preview image collected by the second camera module, making the brightness change of the zoom process smoother, reducing the degree of brightness change of the preview image when the user adjusts the shooting focal length, and solving the problem of sudden brightness change of the preview image during the zoom process.

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

[0070] In the embodiment of the present application, by using the image statistics and metadata of the first image data captured by the first camera module as the first exposure data, there is no need to obtain the image data captured by the second camera module, and there is no need to perform corresponding processing on the image data captured by the second camera module, thereby further reducing the power consumption required during the shooting process of the electronic device.

[0071] In some embodiments of the present application, the processing module 404 is used to determine the third exposure data according to the first image data collected by the first camera module;

[0072] The processing module 404 is used to determine fourth exposure data according to the second image data collected by the second camera module;

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

[0074] In an embodiment of the present application, 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, thereby further improving the stability of the metering process, and 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 the present application, the acquisition module 402 is used to acquire a first effect tuning parameter corresponding to the first camera module, and acquire a second effect tuning parameter corresponding to the second camera module;

[0076] The processing module 404 is used to configure the exposure algorithm of the first camera module through the first effect tuning parameter and the second effect tuning parameter to update the exposure algorithm parameters of the first camera module.

[0077] In an embodiment of the present application, after obtaining the first effect tuning parameters and the second effect tuning parameters, 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, so that the subsequent convergence processing of the first exposure data through the exposure algorithm parameters of the first camera module is more accurate, and the converged second exposure data is further matched with the first camera module, thereby improving the smoothness of brightness convergence.

[0078] The shooting device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or other devices other than a terminal. For example, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc. It can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., and the embodiment of the present application does not make specific limitations.

[0079] The shooting device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0080] The shooting device provided in the embodiment of the present application can implement each process implemented in the above method embodiment, and will not be described again here to avoid repetition.

[0081] Optionally, an embodiment of the present application further provides an electronic device, which includes a shooting device as in any of the above embodiments, and thus has all the beneficial effects of the shooting device in any of the embodiments, which will not be elaborated herein.

[0082] Optionally, an embodiment of the present application further provides an electronic device, Figure 5 A structural block diagram of an electronic device according to an embodiment of the present application is shown. Figure 5 As shown, the electronic device 500 includes a processor 502, a memory 504, and a program or instruction stored in the memory 504 and executable on the processor 502. When the program or instruction is executed by the processor 502, each process of the above-mentioned shooting method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.

[0083] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned 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 the present application.

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

[0086] Those skilled in the art will appreciate that the electronic device 600 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 610 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 6 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0087] The processor 610 is used to obtain first exposure data during zooming of the electronic device, where the first exposure data is exposure data determined based on image data collected by at least one of the first camera module and the second camera module;

[0088] Processor 610, configured to perform convergence processing on the first exposure data using exposure algorithm parameters of the first camera module to obtain second exposure data;

[0089] Processor 610, configured to calculate a first exposure parameter and a second exposure parameter according to the second exposure data;

[0090] Processor 610 is used to control the first camera module to expose according to the first exposure parameter, and control the second camera module to expose according to the second exposure parameter.

[0091] In the embodiment of the present application, when the user zooms through the electronic device, the electronic device can obtain the first exposure data determined by the image data collected by at least one of the first camera module and the second camera module, and converge the first exposure data through the exposure algorithm parameters corresponding to the first camera module to obtain the second exposure data, thereby improving the smoothness of brightness convergence. Then, the first exposure parameters and the second exposure parameters corresponding to the first camera module and the second camera module are generated according to the second exposure data, further improving the consistency of the brightness of the preview image collected by the first camera module and the preview image collected by the second camera module, making the brightness change of the zoom process smoother, reducing the degree of brightness change of the preview image when the user adjusts the shooting focal length, and solving the problem of sudden brightness change of the preview image during the zoom process.

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

[0093] In the embodiment of the present application, by using the image statistics and metadata of the first image data captured by the first camera module as the first exposure data, there is no need to obtain the image data captured by the second camera module, and there is no need to perform corresponding processing on the image data captured by the second camera module, thereby further reducing the power consumption required during the shooting process of the electronic device.

[0094] Further, the processor 610 is used to determine third exposure data according to the first image data collected by the first camera module;

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

[0096] The processor 610 is configured to perform linear addition fusion on the third exposure data and the fourth exposure data to obtain the first exposure data.

[0097] In an embodiment of the present application, 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, thereby further improving the stability of the metering process, and 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] Further, the processor 610 is used to obtain a first effect tuning parameter corresponding to the first camera module, and obtain a second effect tuning parameter corresponding to the second camera module;

[0099] The processor 610 is used to configure the exposure algorithm of the first camera module through the first effect tuning parameter and the second effect tuning parameter to update the exposure algorithm parameters of the first camera module.

[0100] In an embodiment of the present application, after obtaining the first effect tuning parameters and the second effect tuning parameters, 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, so that the subsequent convergence processing of the first exposure data through the exposure algorithm parameters of the first camera module is more accurate, and the converged second exposure data is further matched with the first camera module, thereby improving the smoothness of brightness convergence.

[0101] It should be understood that in the embodiment of the present application, the input unit 604 may include a graphics processor (GPU) 6041 and a microphone 6042, and the graphics processor 6041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 606 may include a display panel 6061, and the display panel 6061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 607 includes a processor 6071 and at least one of other input devices 6072. The processor 6071 is also called a touch screen. The processor 6071 may include two parts: 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 a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

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

[0103] The processor 610 may include one or more processing units; optionally, the processor 610 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 610.

[0104] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

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

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

[0107] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

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

[0109] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0110] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of each embodiment of the present application.

[0111] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. 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 shooting method includes: During zooming of the electronic device, first exposure data is acquired, where the first exposure data is exposure data determined according to image data collected by at least one of the first camera module and the second camera module; Performing convergence processing on the first exposure data using exposure algorithm parameters 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; Control the first camera module to perform exposure according to the first exposure parameter, and control the second camera module to perform exposure according to the second exposure parameter.

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

3. The shooting method according to claim 1, characterized in that: The exposure data includes image statistical data and metadata, and the acquiring of the first exposure data includes: Determining third exposure data according to the first image data collected by the first camera module; Determining fourth exposure data according to the second image data collected by the second camera module; The third exposure data and the fourth exposure data are linearly added and fused to obtain first exposure data.

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

5. The shooting method according to any one of claims 1 to 3, characterized in that: The electronic device includes a first chip and a second chip, and the method further includes: When the first chip receives third image data, calculate image statistics and metadata of the third image data, where the third image data includes at least one of the image data collected by the first camera module and the image data collected by the second camera module; The first chip transmits image statistical data and metadata of the third image data to the second chip; The second chip is used to perform exposure convergence processing on image statistics and metadata of the third image data.

6. A photographing device, characterized in that: Applied to electronic equipment, the electronic equipment includes a first camera module and a second camera module, and the shooting device includes: an acquisition module, configured to acquire first exposure data during zooming of the electronic device, wherein the first exposure data is exposure data determined according to image data collected by at least one of the first camera module and the second camera module; a processing module, configured to perform convergence processing on the first exposure data by using exposure algorithm parameters of the first camera module to obtain second exposure data; a processing module, configured to calculate a first exposure parameter and a second exposure parameter according to the second exposure data; A control module is used to control the first camera module to expose according to the first exposure parameter, and control the second camera module to expose according to the second exposure parameter.

7. The photographing device according to claim 6, characterized in that: The processing module is used to obtain first exposure data based on the first image data collected by the first camera module.

8. The photographing device according to claim 6 or 7, characterized in that: The acquisition module is used to acquire the first image data acquired by the first camera module, and acquire the second image data acquired by the second camera module; The processing module is used to obtain a first effect tuning parameter corresponding to the first camera module, and obtain a second effect tuning parameter corresponding to the second camera module; The processing module is used to configure the first effect tuning parameter and the second effect tuning parameter to the exposure algorithm of the first camera module to update the exposure algorithm parameters of the first camera module.

9. An electronic device, characterized in that: include: A processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the method according to any one of claims 1 to 5 are implemented.

10. A readable storage medium having a program or instruction stored thereon, characterized in that: When the program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Image processing method and device, and electronic equipment

    CN107071291A

  • Optimized Exposure Temporal Smoothing For Time-Lapse Mode

    US20190098196A1

  • Image processing method and apparatus based on multiple frames of images, and electronic device

    WO2020207261A1

  • Photographing method and related device

    WO2023160230A1