Shooting control method and device, electronic equipment and storage medium

By acquiring and mapping the 3A parameters of multiple cameras, the inconsistency of parameter caused by camera hardware differences is solved, and the continuity of previewing images is achieved during multi-camera switching, improving user experience.

CN119545129APending Publication Date: 2025-02-28BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202311112049.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-30
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

In multi-camera shooting scenes, due to the difference in the camera's hardware, the 3A parameters of the camera are inconsistent, which affects the quality of the preview image and reduces the user experience.

Method used

By obtaining the 3A parameter values ​​of the normally open camera and the main camera in the current shooting scene, using the preset parameter mapping relationship, calculate the 3A parameter prediction value of the main camera, and determine it as the target parameter value of the preview image to keep the 3A parameters of the camera consistent.

Benefits of technology

It realizes the continuity of previewing images when camera switches, improves the user's shooting experience and avoids image jumps.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119545129A_ABST
    Figure CN119545129A_ABST
Patent Text Reader

Abstract

The invention provides a shooting control method and device, electronic equipment and a storage medium, and the method comprises the steps: obtaining a 3A parameter value of a normally-open camera in a current shooting scene, and obtaining a first parameter value; obtaining a 3A parameter value of the main camera in the current shooting scene to obtain a second parameter value; according to a preset parameter mapping relation and the first parameter value, obtaining a predicted value of a 3A parameter of the main camera in the current shooting scene, and obtaining a third parameter value; the parameter mapping relation refers to a conversion relation of hardware differences between the main camera and the normally-open camera under the same shooting condition; and determining the second parameter value or the third parameter value as a target parameter value for performing image post-processing on the preview image of the main camera. Therefore, when the main cameras are switched, the image jumping phenomenon does not occur in the scheme, so that a user does not perceive camera switching, and the use experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of control technology, and in particular to a shooting control method and device, an electronic device, and a storage medium. Background Art

[0002] Existing electronic devices are usually provided with multiple cameras, for example, 2 to 4 cameras, to improve the quality of captured images.

[0003] In actual applications, the above-mentioned multiple cameras may have hardware differences, resulting in inconsistent 3A (automatic white balance AWB, automatic exposure AE and auto focus AF) parameters of the camera sensors. As a result, when switching to preview each camera in a multi-camera shooting scene, the 3A parameters of the preview image are inconsistent, reducing the shooting experience. Summary of the invention

[0004] The present disclosure provides a shooting control method and device, an electronic device, and a storage medium to solve the above technical problems.

[0005] According to a first aspect of the present disclosure, a shooting control method is provided, which is applicable to an electronic device, wherein the electronic device includes at least two cameras, one of the at least two cameras is used as a normally-on camera, and the other at least one camera is used as a main camera, and the method includes:

[0006] Obtain the 3A parameter value of the normally-on camera in the current shooting scene to obtain the first parameter value;

[0007] Obtaining a 3A parameter value of the main camera in a current shooting scene to obtain a second parameter value;

[0008] According to a preset parameter mapping relationship and the first parameter value, a predicted value of the 3A parameter of the main camera in the current shooting scene is obtained to obtain a third parameter value; the parameter mapping relationship refers to a conversion relationship of hardware differences between the main camera and the normally-on camera under the same shooting conditions;

[0009] Determine the second parameter value or the third parameter value as a target parameter value for image post-processing of the preview image of the main camera.

[0010] Optionally, determining the second parameter value or the third parameter value as a target parameter value for performing image post-processing on the preview image of the main camera includes:

[0011] determining whether the second parameter value and the third parameter value are valid;

[0012] In response to the third parameter value being an invalid value, determining the second parameter value as a target parameter value for image post-processing of the preview image of the main camera; and / or

[0013] In response to the third parameter value being a valid value, determining the third parameter value as a target parameter value for image post-processing of the preview image of the main camera.

[0014] Optionally, determining whether the second parameter value and the third parameter value are valid includes:

[0015] Determining a shooting environment of the electronic device according to sensor data collected by a target sensor of the electronic device;

[0016] Obtaining a preset value range of a 3A parameter corresponding to the shooting environment;

[0017] In response to the third parameter value being outside the preset value range, determining that the third parameter value is an invalid value; and / or

[0018] In response to the second parameter value and the third parameter value being within the preset value range, the second parameter value and the third parameter value are determined to be valid values.

[0019] Optionally, the method further includes a step of acquiring the preset parameter mapping relationship, including:

[0020] Respectively acquiring images captured by the main camera and the normally-on camera under preset shooting conditions to obtain a first image and a second image;

[0021] Obtaining statistical data of the first image and the second image respectively to obtain first statistical data and second statistical data;

[0022] Adjusting the value of the 3A parameter of the main camera until the difference between the first statistical data and the second statistical data is less than or equal to a preset difference;

[0023] A mapping relationship between values ​​of the 3A parameters of the main camera after adjustment and values ​​before adjustment is obtained as the preset parameter mapping relationship.

[0024] Optionally, the method further comprises:

[0025] In response to the normally-on camera switching from the main camera to the auxiliary camera, the normally-on camera is switched from the normal power consumption working mode to the low power consumption working mode.

[0026] Optionally, switching the normally-on camera from a normal power consumption working mode to a low power consumption working mode includes:

[0027] The frame rate of the normally-on camera is reduced.

[0028] Optionally, reducing the frame rate of the normally-on camera includes:

[0029] The normally-on camera is controlled to send a data request at intervals of at least one frame of preview request; the preview request is sent by the main camera.

[0030] Optionally, reducing the frame rate of the normally-on camera includes:

[0031] Increase the time it takes for the image sensor in the normally-on camera to read each row of pixel data.

[0032] Optionally, reducing the frame rate of the normally-on camera includes:

[0033] Increase the interval time for the image sensor in the normally-on camera to read each frame of image data.

[0034] Optionally, reducing the frame rate of the normally-on camera includes:

[0035] Obtaining a shooting scene of the normally-on camera;

[0036] When the shooting scene is a moving scene, determining that the frame rate of the normally-on camera is greater than or equal to a first frame rate threshold; and / or

[0037] When the shooting scene is a stable scene, determining that the frame rate of the normally-on camera is less than or equal to a second frame rate threshold; the second frame rate threshold is less than the first frame rate threshold; and / or

[0038] When the shooting scene is a bright-dark scene, it is determined to dynamically adjust the frame rate of the normally-on camera based on an automatic exposure algorithm.

[0039] Optionally, switching the normally-on camera from a normal power consumption working mode to a low power consumption working mode further includes:

[0040] The real-time pipeline for image pre-processing of the normally-on camera in the normal working mode is reused.

[0041] Optionally, switching the normally-on camera from a normal power consumption working mode to a low power consumption working mode further includes:

[0042] The real-time data buffer area of ​​the normally-on camera is released, where the real-time data buffer area is used to store image data collected by the image sensor of the normally-on camera.

[0043] Optionally, switching the normally-on camera from a normal power consumption working mode to a low power consumption working mode further includes:

[0044] The optical image stabilization device of the normally-on camera is controlled to switch to a low power consumption mode.

[0045] Optionally, switching the normally-on camera from a normal power consumption working mode to a low power consumption working mode further includes:

[0046] At least one algorithm of the image pre-processing function of the normally-on camera is adjusted to a low-power operation mode.

[0047] Optionally, switching the normally-on camera from a normal power consumption working mode to a low power consumption working mode further includes:

[0048] The closing condition of the real-time image pre-processing pipeline in the normal working mode is adjusted so that the real-time image pre-processing pipeline remains in the open state when no request is issued; and the image sensor of the normally-on camera is controlled to keep working.

[0049] According to a second aspect of the present disclosure, a shooting control device is provided, which is applicable to an electronic device, wherein the electronic device includes at least two cameras, one of the at least two cameras is used as a normally-on camera, and the other at least one camera is used as a main camera, and the device includes:

[0050] A first parameter value acquisition module is used to acquire a 3A parameter value of the normally-on camera in a current shooting scene to obtain a first parameter value;

[0051] A second parameter value acquisition module is used to acquire the 3A parameter value of the main camera in the current shooting scene to obtain a second parameter value;

[0052] a third parameter value acquisition module, configured to acquire a predicted value of a 3A parameter of the main camera in a current shooting scene according to a preset parameter mapping relationship and the first parameter value, to obtain a third parameter value; the parameter mapping relationship refers to a conversion relationship of hardware differences between the main camera and the normally-on camera under the same shooting conditions;

[0053] The target parameter value acquisition module is used to determine the second parameter value or the third parameter value as the target parameter value for image post-processing of the preview image of the main camera.

[0054] Optionally, the target parameter value acquisition module includes:

[0055] A parameter value validity determination submodule, used to determine whether the second parameter value and the third parameter value are valid;

[0056] a target parameter value determination submodule, configured to determine, in response to the third parameter value being an invalid value, that the second parameter value is a target parameter value for image post-processing of a preview image of the main camera; and / or

[0057] The target parameter value determination submodule is further used to determine, in response to the third parameter value being a valid value, that the third parameter value is a target parameter value for image post-processing of the preview image of the main camera.

[0058] Optionally, the parameter value effective determination submodule includes:

[0059] A shooting environment determining unit, configured to determine a shooting environment of the electronic device according to sensor data collected by a target sensor of the electronic device;

[0060] A preset range acquisition unit, used to acquire a preset value range of a 3A parameter corresponding to the shooting environment;

[0061] an invalid value determining unit, configured to determine that the third parameter value is an invalid value in response to the third parameter value being outside the preset value range; and / or

[0062] The valid value determining unit is used to determine that the second parameter value and the third parameter value are valid values ​​in response to the second parameter value and the third parameter value being within the preset value range.

[0063] Optionally, the device further includes a mapping relationship acquisition module, and the mapping relationship acquisition module is used to obtain the preset parameter mapping relationship, including:

[0064] An image acquisition submodule, used to respectively acquire images captured by the main camera and the normally-on camera under preset shooting conditions to obtain a first image and a second image;

[0065] A data acquisition submodule, used to acquire statistical data of the first image and the second image respectively, to obtain first statistical data and second statistical data;

[0066] a parameter adjustment submodule, configured to adjust the value of the 3A parameter of the main camera until the difference between the first statistical data and the second statistical data is less than or equal to a preset difference;

[0067] The relationship acquisition submodule is used to obtain the mapping relationship between the values ​​of the 3A parameters of the main camera after adjustment and the values ​​before adjustment as the preset parameter mapping relationship.

[0068] Optionally, the device further comprises:

[0069] The working module switching module is used for switching the normally-on camera from a normal power consumption working mode to a low power consumption working mode in response to the normally-on camera switching from a main camera to a secondary camera.

[0070] Optionally, the working module switching module includes:

[0071] The frame rate reduction submodule is used to reduce the frame rate of the normally-on camera.

[0072] Optionally, the frame rate reduction submodule includes:

[0073] The normally-on camera is controlled to send a data request at intervals of at least one frame of preview request; the preview request is sent by the main camera.

[0074] Optionally, the frame rate reduction submodule includes:

[0075] The duration increasing unit is used to increase the duration for the image sensor in the normally-on camera to read each row of pixel data.

[0076] Optionally, the frame rate reduction submodule includes:

[0077] The interval increasing unit is used to increase the interval time for the image sensor in the normally-on camera to read each frame of image data.

[0078] Optionally, the frame rate reduction submodule includes:

[0079] A shooting scene acquisition unit, used to acquire the shooting scene of the normally-on camera;

[0080] A first frame rate determining unit, configured to determine, when the shooting scene is a moving scene, that the frame rate of the normally-on camera is greater than or equal to a first frame rate threshold; and / or

[0081] A second frame rate determination unit is configured to determine, when the shooting scene is a stable scene, that the frame rate of the normally-on camera is less than or equal to a second frame rate threshold; the second frame rate threshold is less than the first frame rate threshold; and / or

[0082] The third frame rate determination unit is used to determine the frame rate of the normally-on camera to be dynamically adjusted based on an automatic exposure algorithm when the shooting scene is a bright-dark scene.

[0083] Optionally, the working module switching module further includes:

[0084] The real-time pipeline for image pre-processing of the normally-on camera in the normal working mode is reused.

[0085] Optionally, the working module switching module further includes:

[0086] The cache release submodule is used to release the real-time data cache area of ​​the normally-on camera, and the real-time data cache area is used to store image data collected by the image sensor of the normally-on camera.

[0087] Optionally, the working module switching module further includes:

[0088] The optical device control submodule is used to control the optical image stabilization device of the normally-on camera to switch to a low power consumption mode.

[0089] Optionally, the working module switching module further includes:

[0090] The algorithm precision reduction submodule is used to adjust at least one algorithm of the image pre-processing function of the normally-on camera to a low-power operation mode.

[0091] Optionally, the working module switching module further includes:

[0092] The condition adjustment submodule is used to adjust the closing condition of the image pre-processing real-time pipeline in the normal working mode so that the image pre-processing real-time pipeline remains in the open state when no request is issued; and control the image sensor of the normally-on camera to keep working.

[0093] According to a third aspect of the present disclosure, there is provided an electronic device, including:

[0094] Processor and memory;

[0095] The memory is used to store a computer program executable by the processor;

[0096] The processor is configured to execute the computer program in the memory to implement the method as described in any one of the first aspects.

[0097] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, and when an executable computer program in the storage medium is executed by a processor, the method described in any one of the first aspects can be implemented.

[0098] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0099] The solution of this embodiment can obtain the 3A parameter value of the normally-on camera in the current shooting scene to obtain the first parameter value; obtain the 3A parameter value of the main camera in the current shooting scene to obtain the second parameter value; then, according to the preset parameter mapping relationship and the first parameter value, obtain the predicted value of the 3A parameter of the main camera in the current shooting scene to obtain the third parameter value; the parameter mapping relationship refers to the conversion relationship of the hardware difference between the main camera and the normally-on camera under the same shooting conditions; then, determine the second parameter value or the third parameter value as the target parameter value for image post-processing of the preview image of the main camera. In this way, this embodiment corrects the 3A parameter value of the main camera through the 3A parameter value of the normally-on camera, so that the 3A parameters of the normally-on camera and the main camera are consistent, and there will be no image jump when the main cameras are switched, so that the user does not perceive the camera switching, which is conducive to improving the user experience.

[0100] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0101] Figure 1 The present invention is a flowchart of a shooting control method according to an embodiment of the present invention.

[0102] Figure 2 The present invention is a flowchart of a shooting control method according to an embodiment of the present invention.

[0103] Figure 3 The present invention is a flowchart of obtaining a target parameter value according to an embodiment of the present invention.

[0104] Figure 4 The present invention is a flowchart of a shooting control method according to an embodiment of the present invention.

[0105] Figure 5 The present invention is a block diagram of a shooting control device according to an embodiment of the present invention.

[0106] Figure 6 The present invention is a block diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0107] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices consistent with some aspects of the present disclosure as detailed in the appended claims.

[0108] The embodiments of the present disclosure provide a shooting control method and device, an electronic device, and a storage medium. The shooting control method can be applied to an electronic device, which may include at least two cameras, and the at least two cameras may include a wide-angle camera and a telephoto camera. The wide-angle camera can shoot large-area objects with a large angle range and a short focal length, and the telephoto camera can shoot and magnify the object to shoot the object. During the shooting process, the wide-angle camera and the telephoto camera can be used as main cameras respectively, and the preview image shot by the main camera can be sent to the display of the electronic device for display.

[0109] In a multi-camera shooting scenario (hereinafter referred to as a multi-camera scenario), the electronic device will switch to each camera as the main camera in turn, and the preview image taken by the main camera can be sent to the display of the electronic device for display; and, other cameras in the multi-camera scenario continue to capture images as sub-cameras, but the images captured by the sub-cameras will not be sent to the display screen, that is, they will not be displayed.

[0110] See also Figure 1 , each camera (main camera and auxiliary camera) of the electronic device performs the same operation. Taking the main camera as an example, the main camera can send a preview request, and the multi-camera control module can send the preview request to the real-time pipeline of the image pre-processing of the main camera; the image sensor (sensor node) can output the image to the real-time pipeline of the image pre-processing of the main camera, and the real-time pipeline of the image pre-processing can perform image pre-processing on the image. After the image is pre-processed, the underlying processing module can obtain the pre-processed image and generate the values ​​of the 3A parameters corresponding to the pre-processed image.

[0111] It should be noted that the image pre-processing process of each secondary camera is the same as that of the main camera, that is, image pre-processing operations are performed on the images of their respective image sensors to obtain pre-processed images and their corresponding 3A parameter values. The difference is that the image post-processing offline pipeline of the main camera can perform image post-processing operations on the pre-processed image according to the value of the 3A parameter to obtain a preview image; finally, the preview image is transmitted to the display screen for display.

[0112] In the process of implementing the disclosed solution, the inventors found that when switching to each camera as the main camera in a multi-camera scene, each camera will sample its own 3A parameters for image post-processing operations. Since each camera has different hardware differences, the 3A parameters in the same shooting scene are different, resulting in different preview images. As a result, when switching the main camera, there will be jumps in the preview images, which are easily perceived by users, reducing the shooting experience.

[0113] In order to solve the above technical problems, the embodiments of the present disclosure provide a shooting control method, the inventive concept of which is that, in a multi-camera scenario, one of the at least two cameras of the electronic device is used as a normally-on camera, and the 3A parameters of the normally-on camera are used to correct the 3A parameters of the main camera, so that the 3A parameters of at least one main camera are consistent with the 3A parameters of the normally-on camera. In this way, no matter which camera is switched to as the main camera, the preview image will not have the problem of image jump, so that the user does not perceive the switching of the main camera, which is conducive to improving the shooting experience.

[0114] See also Figure 2A shooting control method can be applied to an electronic device, which includes at least two cameras, one of the at least two cameras is used as a normally-on camera, and at least one other camera is used as a main camera. The method includes steps 21 to 24.

[0115] In step 21, the 3A parameter value of the normally-on camera in the current shooting scene is obtained to obtain a first parameter value.

[0116] In this embodiment, the processor of the electronic device can determine whether the camera module is in a multi-camera scene, that is, a scene in which at least two or more cameras are in operation and any camera can be switched to be used as the main camera. When a multi-camera scene is detected, the processor can use one of the cameras as a normally-on camera, such as a wide-angle camera. For ease of description, subsequent embodiments may use a wide-angle camera as a normally-on camera when describing the solution.

[0117] In this embodiment, the processor can control the normally-on camera to capture images in the current shooting scene. The shooting process is as follows: Figure 1 The process shown includes: controlling the normally-on camera to send a preview request. After receiving the preview request, the realtime pipeline of the normally-on camera can perform image pre-processing, i.e., front-end image quality processing, on the original image output by the image sensor, such as auto focus processing AF, automatic exposure processing AE, automatic white balance processing AWB, etc., so as to obtain the value of the 3A parameter in the current shooting scene, which is subsequently referred to as the first parameter value.

[0118] In step 22, the 3A parameter value of the main camera in the current shooting scene is obtained to obtain a second parameter value.

[0119] In this step, the processor can control the main camera to capture images in the current shooting scene. The shooting process is as follows: Figure 1 The process shown includes: controlling the main camera to send a preview request. After receiving the preview request, the realtime pipeline of the main camera can perform image pre-processing, i.e., front-end image quality processing, on the original image output by the image sensor, such as auto focus processing AF, automatic exposure processing AE, automatic white balance processing AWB, etc., so as to obtain the value of the 3A parameter in the current shooting scene, which is subsequently referred to as the second parameter value.

[0120] It should be noted that step 21 may precede step 22, may follow step 22, or may be performed simultaneously, that is, the order of step 21 and step 22 is not limited.

[0121] In step 23, the predicted value of the 3A parameter of the main camera in the current shooting scene is obtained according to the preset parameter mapping relationship and the first parameter value to obtain the third parameter value; the parameter mapping relationship refers to the conversion relationship of the hardware difference between the main camera and the normally-on camera under the same shooting conditions.

[0122] In this step, the electronic device may store a preset parameter mapping relationship, including:

[0123] First, images captured by the main camera and the normally-on camera under preset shooting conditions can be respectively acquired to obtain a first image and a second image.

[0124] Then, statistical data of the first image and the second image may be obtained respectively to obtain first statistical data and second statistical data, wherein the statistical data may include but are not limited to brightness, color temperature, focal length, etc., and may be set according to specific scenes.

[0125] Afterwards, the value of the 3A parameter of the main camera may be adjusted until the difference between the first statistical data and the second statistical data is less than or equal to the preset difference;

[0126] Finally, a mapping relationship between the values ​​of the 3A parameters of the main camera after adjustment and the values ​​before adjustment may be obtained as the above-mentioned preset parameter mapping relationship.

[0127] It should be noted that the principle of obtaining the above parameter mapping relationship is:

[0128] Assuming that the hardware characteristics of the main camera and the always-on camera are the same, under the same shooting condition, i.e., the preset shooting condition, the two cameras can output the same preview image, ignoring the impact caused by the different installation positions of the two cameras. In actual applications, there will be hardware differences between the main camera and the always-on camera (such as workmanship, aging, etc.), resulting in differences in the images taken by the two; after adjusting the values ​​of the 3A parameters of the main camera, the images taken by the two can be made the same or similar. At this time, the parameter change of the main camera relative to the always-on camera can be regarded as caused by the hardware difference between the main camera and the always-on camera.

[0129] In other words, when the always-on camera is used as a reference object to calibrate the 3A parameters of at least one main camera, the preview images of each main camera can be regarded as captured by the hardware of the always-on camera, so switching the main camera will not cause the preview image to jump.

[0130] In this embodiment, the processor can obtain the above preset parameter mapping relationship; then, the processor can obtain the value of the 3A parameter of the main camera in the current shooting scene according to the preset parameter mapping relationship and the first parameter value, which is subsequently referred to as the third parameter value for distinction. It is understandable that the third parameter value is a predicted value.

[0131] In step 24, the second parameter value or the third parameter value is determined as a target parameter value for image post-processing of the preview image of the main camera.

[0132] In this step, the processor may determine the second parameter value or the third parameter value as the target parameter value for image post-processing of the preview image of the main camera, see Figure 3 , including step 31 and step 32.

[0133] In step 31, it is determined whether the second parameter value and the third parameter value are valid.

[0134] In one example, the processor can determine the shooting environment of the electronic device based on the sensor data collected by the target sensor of the electronic device, such as a light sensor, a distance sensor, an infrared sensor, etc., and can determine whether the shooting environment is a moving scene, a relatively stable scene, and a bright and dark scene. Among them, the moving scene refers to a scene in which the object is in a moving state and the focus is adjusted; the relatively stable scene refers to a scene in which the object is in a relatively static state and the brightness remains stable; the bright and dark scene refers to a scene in which a part of the shooting range is brighter and a part is darker, that is, the brightness difference is large (exceeding the brightness difference threshold).

[0135] In this example, the electronic device stores the preset value ranges of the 3A parameters corresponding to each shooting scene. After acquiring the shooting scene, the processor can obtain the preset value range of the 3A parameters corresponding to the above-mentioned shooting environment. Then, the processor can respectively compare the second parameter value and the preset value range and the size relationship between the third parameter value and the preset value range to obtain a comparison result, for example, the second parameter is within the preset value range, the second parameter is outside the preset value range, the third parameter is within the preset value range or the third parameter is outside the preset value range. Afterwards, when the third parameter value is outside the preset value range, the processor can determine that the third parameter value is an invalid value. When the second parameter value and the third parameter value are within the preset value range, the processor can determine that the second parameter value and the third parameter value are valid values.

[0136] In step 32, in response to the third parameter value being an invalid value, the second parameter value is determined to be a target parameter value for image post-processing of the preview image of the main camera; in response to the third parameter value being a valid value, the third parameter value is determined to be a target parameter value for image post-processing of the preview image of the main camera.

[0137] In this step, when the third parameter value is an invalid value, it means that the predicted value of the 3A parameter of the main camera is unreasonable. At this time, the second parameter value of the main camera itself is still determined as the target parameter value for image post-processing of the preview image of the main camera. When the third parameter value is a valid value, it means that this calibration is valid. Regardless of whether the second parameter value of the main camera is a valid value, the third parameter value can be determined as the target parameter value for image post-processing of the preview image of the main camera.

[0138] In this way, this embodiment corrects the 3A parameter value of the main camera through the 3A parameter value of the normally-on camera, so that the 3A parameters of the normally-on camera and the main camera are consistent, and there will be no image jump when the main cameras are switched, so that the user is unaware of the camera switching, which is conducive to improving the user experience.

[0139] In one embodiment, the normally-on camera can be used as the main camera. In this case, the normally-on camera and the main camera are the same camera, and no calibration is required. The image is directly processed according to the normal process, that is, the original image output by the image sensor is input into the real-time pipeline for image pre-processing to obtain the pre-processed image and its first parameter value; then, the pre-processed image and its first parameter value are input into the offline pipeline for image post-processing to obtain a preview image; then, the preview image is sent to the display for display. Of course, the processor of this embodiment can be used according to Figure 2 The steps shown perform a self-parameter calibration on the normally-on camera and then obtain a preview image, which can also implement the solution of the present disclosure.

[0140] In one embodiment, a shooting control method provided by the present disclosure also includes:

[0141] When the always-on camera switches from the main camera to the secondary camera, the processor can switch the always-on camera from the normal power consumption mode to the low power consumption mode, thereby reducing the power consumption of the electronic device. The normal power consumption mode refers to the power consumption used when the always-on camera is used as the main camera, and the low power consumption mode refers to a working mode in which the power consumption is less than that in the normal power consumption mode.

[0142] In this embodiment, the processor can reduce the power consumption of the electronic device by reducing the frame rate of the image captured by the always-on camera, that is, the frame rate of the always-on camera in the low power consumption working mode is lower than the frame rate in the normal power consumption mode.

[0143] In one example, the processor may increase the duration of the image sensor in the normally-on camera reading each row of pixel data. For example, the image sensor originally reads each row of pixel data for t1, and in this example, the duration of reading each row of pixel data is t2, where t2 is greater than t1. In this example, the image sensor may read pixel data in a period of time before t2 (t1) and align pixel data in a period of time after t2 (t2-t1).

[0144] In another example, the processor may increase the interval time for the image sensor in the normally-on camera to read each frame of image data. For example, the image sensor originally reads each frame of image for a time length of t3, an interval of Vblank1, and then reads the next frame of image; in this example, the time length for reading each frame of image is t3, an interval of Vblank2, and then reads the next frame of image. Vblank2 is greater than Vblank1.

[0145] In another example, the processor may control the main camera to send preview requests normally, and control the normally-on camera to send data requests at intervals of at least one preview request. For example, the number of preview requests is f1, the number of data requests is f2, and f2 is less than f1.

[0146] It should be noted that the processor can respectively control the always-on camera and the main camera to send preview requests respectively. Considering that the preview request when the always-on camera is used as a secondary camera is only used to obtain the first parameter value, and is not to output a preview image, for the convenience of description and understanding, the preview request of the always-on camera is referred to as a data request in each embodiment of the present disclosure; when the always-on camera is used as the main camera, it can be understood as the preview request of the main camera.

[0147] In this example, the processor can reduce the frame rate of the always-on camera, including:

[0148] In this example, the processor can obtain the shooting scene of the normally-on camera; the shooting scene includes a moving scene, a stable scene, and a bright and dark scene.

[0149] In one example, when the shooting scene is a moving scene, the processor can determine that the frame rate of the normally-on camera is greater than or equal to the first frame rate threshold; wherein the first frame rate threshold can be 10 to 20fps, and the value of the first frame rate threshold in this example is 15fps. In another example, when the shooting scene is a stable scene, the processor can determine that the frame rate of the normally-on camera is less than or equal to the second frame rate threshold; wherein the second frame rate threshold is less than the first frame rate threshold; wherein the second frame rate threshold can be 5 to 10fps, and the value of the second frame rate threshold in this example is 10fps. In another example, when the shooting scene is a bright or dark scene, the processor can determine to dynamically adjust the frame rate of the normally-on camera based on the automatic exposure algorithm. In this way, in this example, the processor reduces the power consumption of the normally-on camera by reducing the frame rate of the normally-on camera.

[0150] In an example, taking the always-on camera as the wide-angle camera wide and the main camera as the ultra-wide-angle camera UW as an example, the order of the preview request of UW and the data request of wide may be: UW->UW->UW+W->UW->UW->UW+W...;

[0151] That is, the wide preview request and the UW preview request are sent in such a manner that one frame of wide data request is sent every two frames of UW preview request.

[0152] In another example, assuming that the frame rate of the preview image output by the main camera is 30fps, the frame rate of the normally-on camera is dynamically controlled in the low-power working mode, including:

[0153] wide 15fps implementation: normal preview request, wide data request sent every other frame;

[0154] wide 10fps implementation: normal preview request, wide data request is sent every 2 frames;

[0155] wide 7.5fps implementation: normal preview request, wide data request is sent every 3 frames;

[0156] Wide 6fps implementation: normal preview request, wide data request is sent every 4 frames;

[0157] wide 5fps implementation: normal preview request, wide data request is sent every 5 frames;

[0158] …

[0159] wide 3fps implementation: normal preview request, wide data request is sent every 9 frames.

[0160] In one embodiment, the processor switches the normally-on camera from a normal power consumption working mode to a low power consumption working mode, and further includes: adjusting the closing condition of the image pre-processing real-time pipeline in the normal working mode so that the image pre-processing real-time pipeline remains in an open state when no data request is issued; and controlling the image sensor of the normally-on camera to remain in operation, for example, the image sensor hardware is not synchronized and is not powered off. In this way, this embodiment keeps the image pre-processing real-time pipeline of the normally-on camera in an open state when no data request is issued, which can ensure the normal operation of the normally-on camera.

[0161] When the normally-on camera works in the normal power consumption working mode, the real-time pipeline for image pre-processing in the normal working mode can be generated. When the normally-on camera works in the low power consumption working mode, the real-time pipeline for image pre-processing in the low power consumption working mode can be generated, and the real-time pipeline for image pre-processing in the normal working mode can be closed at the same time. Considering that switching the real-time pipeline for image pre-processing in the normal working mode to the real-time pipeline for image pre-processing in the low power consumption working mode in the related art will waste power consumption, in one embodiment, the processor can switch the normally-on camera from the normal power consumption working mode to the low power consumption working mode, including: the real-time pipeline for image pre-processing in the normal working mode of the normally-on camera can be reused, thereby reducing the power consumption of the electronic device.

[0162] In one example, the processor can obtain the name of the real-time pipeline for image pre-processing in the normal working mode, and use it as the value of the transfer function of the real-time pipeline creation function, so that the low-power working mode directly uses the real-time pipeline for image pre-processing in the normal working mode. In another example, the processor can obtain the configuration data of each camera in a multi-camera scenario. When the configuration data of the camera indicates that the camera is used as a normally-on camera, a real-time pipeline for image pre-processing can be configured to be created, and it is not affected by the normally-on camera working mode, thereby reducing the power consumption of the electronic device.

[0163] The realtime pipeline for image pre-processing of the normally-on camera performs image pre-processing on the original image output by the image sensor upon receiving a preview request, and stores the pre-processed image after image pre-processing in the real-time data buffer (realtime RDI buffer) for subsequent image post-processing. Among them, the real-time data buffer of the normally-on camera is used to store image data collected by the image sensor of the normally-on camera. Taking into account that the normally-on camera is used as a secondary camera and the images it captures do not need to be used for display preview, in one embodiment, when the normally-on camera is switched from a normal power consumption working mode to a low power consumption working mode, the processor can release the real-time data buffer realtime RDI buffer of the normally-on camera. In this way, by optimizing the memory of the normally-on camera in this embodiment, the memory load can be reduced, which is conducive to reducing the power consumption of electronic equipment.

[0164] The normally-on camera still needs to obtain a preview image when it is in the background working state. In order to obtain high-quality images, the optical image stabilization function of the normally-on camera maintains a normal working mode. In one embodiment, the processor switches the normally-on camera from a normal power consumption working mode to a low power consumption working mode, and also includes: controlling the optical image stabilization device (Optical Image Stabilizer, OIS) of the normally-on camera to switch to a low power consumption mode. For example, the optical image stabilization device OIS is controlled to maintain a preset magnification (such as 1X) unchanged, thereby reducing the power consumption of the OIS. In this way, in this embodiment, there is no need to store the pre-processed image output by the normally-on camera, but only the first parameter value corresponding to the pre-processed image is required, thereby further reducing the power consumption of the electronic device.

[0165] The normally-on camera still needs to obtain a preview image when it is in the background working state, and the image pre-processing function is in a normal working state, for example, each preset algorithm in the real-time pipeline (for example, AE, AF or AWB algorithm) is in a normal working state to obtain a higher quality pre-processed image. It is understandable that each preset algorithm is in a normal working state and requires higher power consumption. In one embodiment, the processor switches the normally-on camera from a normal power consumption working mode to a low power consumption working mode, and also includes: adjusting at least one algorithm of the image pre-processing function of the normally-on camera to a low power consumption working mode. For example, the processing accuracy of at least one algorithm of the image pre-processing function of the normally-on camera is reduced, thereby reducing the power consumption of the electronic device.

[0166] In one embodiment, when it is detected that the normally-on camera switches from the secondary camera to the main camera, the processor can control the normally-on camera to switch from a low power consumption working mode to a normal power consumption working mode to ensure a normal preview image.

[0167] Combine the following Figure 4 Describe the process of shooting control method, see Figure 4 ,include:

[0168] The processor can send a request in response to the user's shooting operation. In a multi-camera scenario, the multi-camera control module can control which cameras are activated in the current request, including the main camera and the normally-on camera, based on the current environment, distance, and digital zoom capability of the request.

[0169] The multi-camera control module can switch the normally-on camera from the normal power consumption working mode to the low power consumption working mode, such as reducing the frame rate, adjusting any algorithm in the image pre-processing function to the low power consumption working mode, releasing the RDI buffer, etc. The methods for reducing the power consumption of the normally-on camera can be found in the contents of the above embodiments and will not be repeated here.

[0170] After the data request is sent to the realtime pipeline of the image preprocessing of the normally-on camera, the realtime pipeline can obtain the preprocessed image and its 3A parameters, that is, the first parameter value. Similarly, after the preview request is sent to the realtime pipeline of the image preprocessing of the main camera, the realtime pipeline can obtain the preprocessed image and its 3A parameters, that is, the second parameter value.

[0171] The processor can use the preset parameter mapping relationship and the first parameter value to obtain the predicted value of the 3A parameter of the main camera in the current shooting scene, obtain the third parameter value, and determine the second parameter value or the third parameter value as the target parameter value for image post-processing of the preview image of the main camera.

[0172] When the normally-on camera is used as the main camera, it returns to the normal power consumption working mode. The specific working mode can refer to the content of the preview image output by the main camera in the above embodiments, which will not be repeated here. It should be noted that when the normally-on camera is used as the main camera, other secondary cameras may not be turned on.

[0173] In this way, the solution of this embodiment can adjust the shooting control method, that is, modify the software control logic, so that the 3A parameters of each camera in the multi-shooting mode remain consistent, thereby achieving the effect of switching the main camera without jumps in the preview image; and it can also reduce the power consumption of electronic equipment, and the solution is simple and easy to implement.

[0174] The present disclosure provides a shooting control method, and the present disclosure also provides a shooting control device, which is applicable to an electronic device, wherein the electronic device includes at least two cameras, one of the at least two cameras is used as a normally open camera, and the other at least one camera is used as a main camera. Figure 5 , the device comprises:

[0175] A first parameter value acquisition module 51 is used to acquire a 3A parameter value of the normally-on camera in a current shooting scene to obtain a first parameter value;

[0176] A second parameter value acquisition module 52 is used to acquire the 3A parameter value of the main camera in the current shooting scene to obtain a second parameter value;

[0177] A third parameter value acquisition module 53 is used to acquire a predicted value of the 3A parameter of the main camera in the current shooting scene according to a preset parameter mapping relationship and the first parameter value, so as to obtain a third parameter value; the parameter mapping relationship refers to a conversion relationship of the hardware difference between the main camera and the normally-on camera under the same shooting conditions;

[0178] The target parameter value acquisition module 54 is used to determine the second parameter value or the third parameter value as a target parameter value for image post-processing of the preview image of the main camera.

[0179] In one embodiment, the target parameter value acquisition module includes:

[0180] A parameter value validity determination submodule, used to determine whether the second parameter value and the third parameter value are valid;

[0181] a target parameter value determination submodule, configured to determine, in response to the third parameter value being an invalid value, that the second parameter value is a target parameter value for image post-processing of a preview image of the main camera; and / or

[0182] The target parameter value determination submodule is further used to determine, in response to the third parameter value being a valid value, that the third parameter value is a target parameter value for image post-processing of the preview image of the main camera.

[0183] In one embodiment, the parameter value effective determination submodule includes:

[0184] A shooting environment determining unit, configured to determine a shooting environment of the electronic device according to sensor data collected by a target sensor of the electronic device;

[0185] A preset range acquisition unit, used to acquire a preset value range of a 3A parameter corresponding to the shooting environment;

[0186] an invalid value determining unit, configured to determine that the third parameter value is an invalid value in response to the third parameter value being outside the preset value range; and / or

[0187] The valid value determining unit is used to determine that the second parameter value and the third parameter value are valid values ​​in response to the second parameter value and the third parameter value being within the preset value range.

[0188] In one embodiment, the device further includes a mapping relationship acquisition module, and the mapping relationship acquisition module is used to obtain the preset parameter mapping relationship, including:

[0189] An image acquisition submodule, used to respectively acquire images captured by the main camera and the normally-on camera under preset shooting conditions to obtain a first image and a second image;

[0190] A data acquisition submodule, used to acquire statistical data of the first image and the second image respectively, to obtain first statistical data and second statistical data;

[0191] a parameter adjustment submodule, configured to adjust the value of the 3A parameter of the main camera until the difference between the first statistical data and the second statistical data is less than or equal to a preset difference;

[0192] The relationship acquisition submodule is used to obtain the mapping relationship between the values ​​of the 3A parameters of the main camera after adjustment and the values ​​before adjustment as the preset parameter mapping relationship.

[0193] In one embodiment, the device further comprises:

[0194] The working module switching module is used for switching the normally-on camera from a normal power consumption working mode to a low power consumption working mode in response to the normally-on camera switching from a main camera to a secondary camera.

[0195] In one embodiment, the working module switching module includes:

[0196] The frame rate reduction submodule is used to reduce the frame rate of the normally-on camera.

[0197] In one embodiment, the frame rate reduction submodule includes:

[0198] The normally-on camera is controlled to send a data request at intervals of at least one frame of preview request; the preview request is sent by the main camera.

[0199] In one embodiment, the frame rate reduction submodule includes:

[0200] The duration increasing unit is used to increase the duration for the image sensor in the normally-on camera to read each row of pixel data.

[0201] In one embodiment, the frame rate reduction submodule includes:

[0202] The interval increasing unit is used to increase the interval time for the image sensor in the normally-on camera to read each frame of image data.

[0203] In one embodiment, the frame rate reduction submodule includes:

[0204] A shooting scene acquisition unit, used to acquire the shooting scene of the normally-on camera;

[0205] A first frame rate determining unit, configured to determine, when the shooting scene is a moving scene, that the frame rate of the normally-on camera is greater than or equal to a first frame rate threshold; and / or

[0206] A second frame rate determination unit is configured to determine, when the shooting scene is a stable scene, that the frame rate of the normally-on camera is less than or equal to a second frame rate threshold; the second frame rate threshold is less than the first frame rate threshold; and / or

[0207] The third frame rate determination unit is used to determine the frame rate of the normally-on camera to be dynamically adjusted based on an automatic exposure algorithm when the shooting scene is a bright-dark scene.

[0208] In one embodiment, the working module switching module further includes:

[0209] The real-time pipeline for image pre-processing of the normally-on camera in the normal working mode is reused.

[0210] In one embodiment, the working module switching module further includes:

[0211] The cache release submodule is used to release the real-time data cache area of ​​the normally-on camera, and the real-time data cache area is used to store image data collected by the image sensor of the normally-on camera.

[0212] In one embodiment, the working module switching module further includes:

[0213] The optical device control submodule is used to control the optical image stabilization device of the normally-on camera to switch to a low power consumption mode.

[0214] In one embodiment, the working module switching module further includes:

[0215] The algorithm precision reduction submodule is used to adjust at least one algorithm of the image pre-processing function of the normally-on camera to a low-power operation mode.

[0216] In one embodiment, the working module switching module further includes:

[0217] The condition adjustment submodule is used to adjust the closing condition of the image pre-processing real-time pipeline in the normal working mode so that the image pre-processing real-time pipeline remains in the open state when no request is issued; and control the image sensor of the normally-on camera to keep working.

[0218] It should be noted that the device embodiment shown in this embodiment matches the content of the above method embodiment, and the content of the above method embodiment can be referred to, which will not be repeated here.

[0219] Figure 6 6 is a block diagram of an electronic device according to an exemplary embodiment. For example, the electronic device 600 may be a smart phone, a computer, a digital broadcast terminal, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0220] Reference Figure 6 The electronic device 600 may include one or more of the following components: a processing component 602 , a memory 604 , a power component 606 , a multimedia component 608 , an audio component 610 , an input / output (I / O) interface 612 , a sensor component 614 , a communication component 616 , and an image acquisition component 618 .

[0221] The processing component 602 generally controls the overall operation of the electronic device 600, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute computer programs. In addition, the processing component 602 may include one or more modules to facilitate interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate interaction between the multimedia component 608 and the processing component 602. In an example, the processor 620 may implement the scheme of the above-mentioned power supply control method.

[0222] The memory 604 is configured to store various types of data to support operations on the electronic device 600. Examples of such data include computer programs for any application or method operating on the electronic device 600, contact data, phone book data, messages, pictures, videos, etc. The memory 604 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0223] The power supply component 606 provides power to various components of the electronic device 600. The power supply component 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 600. The power supply component 606 may include a power supply chip, and the controller may communicate with the power supply chip to control the power supply chip to turn on or off the first switch device, so that the battery supplies power to the mainboard circuit or does not supply power.

[0224] The multimedia component 608 includes a screen that provides an output interface between the electronic device 600 and the target object. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input information from the target object. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.

[0225] The audio component 610 is configured to output and / or input audio file information. For example, the audio component 610 includes a microphone (MIC), and when the electronic device 600 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive external audio file information. The received audio file information can be further stored in the memory 604 or sent via the communication component 616. In some embodiments, the audio component 610 also includes a speaker for outputting audio file information.

[0226] The I / O interface 612 provides an interface between the processing component 602 and a peripheral interface module, such as a keyboard, a click wheel, a button, etc.

[0227] The sensor component 614 includes one or more sensors for providing various aspects of status assessment for the electronic device 600. For example, the sensor component 614 can detect the open / closed state of the electronic device 600, the relative positioning of components, such as the display screen and keypad of the electronic device 600, and the sensor component 614 can also detect the position change of the electronic device 600 or a component, the presence or absence of contact between the target object and the electronic device 600, the orientation or acceleration / deceleration of the electronic device 600, and the temperature change of the electronic device 600. In this example, the sensor component 614 can include a magnetic sensor, a gyroscope, and a magnetic field sensor, and can also include an inertial sensor, an image sensor, etc., wherein the magnetic field sensor includes at least one of the following: a Hall sensor, a thin film magnetoresistive sensor, and a magnetic liquid acceleration sensor.

[0228] The communication component 616 is configured to facilitate wired or wireless communication between the electronic device 600 and other devices. The electronic device 600 can access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G, 5G, or a combination thereof. In an exemplary embodiment, the communication component 616 receives broadcast information or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0229] In an exemplary embodiment, the electronic device 600 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components.

[0230] In an exemplary embodiment, the present disclosure also provides a non-transitory computer-readable storage medium, and when an executable computer program in the storage medium is executed by a processor, the above-mentioned method can be implemented.

[0231] In an exemplary embodiment, a chip is also provided, the chip including a processor and an interface for reading a computer program through the interface to implement the above method. The chip may be a conventional CPU (central processing unit) chip, a GPU (graphics processing unit) chip, etc., or an acceleration chip dedicated to artificial intelligence technology, such as an AI (Artificial Intelligence) accelerator, etc.

[0232] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the disclosure disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0233] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A shooting control method, characterized in that: Applicable to an electronic device, the electronic device includes at least two cameras, one of the at least two cameras is used as a normally-on camera, and the other at least one camera is used as a main camera, the method includes: Obtain the 3A parameter value of the normally-on camera in the current shooting scene to obtain the first parameter value; Obtaining a 3A parameter value of the main camera in a current shooting scene to obtain a second parameter value; According to a preset parameter mapping relationship and the first parameter value, a predicted value of the 3A parameter of the main camera in the current shooting scene is obtained to obtain a third parameter value; the parameter mapping relationship refers to a conversion relationship of hardware differences between the main camera and the normally-on camera under the same shooting conditions; Determine the second parameter value or the third parameter value as a target parameter value for image post-processing of the preview image of the main camera.

2. The method according to claim 1, characterized in that: Determining the second parameter value or the third parameter value as a target parameter value for performing image post-processing on the preview image of the main camera includes: determining whether the second parameter value and the third parameter value are valid; In response to the third parameter value being an invalid value, determining the second parameter value as a target parameter value for image post-processing of the preview image of the main camera; and / or In response to the third parameter value being a valid value, determining the third parameter value as a target parameter value for image post-processing of the preview image of the main camera.

3. The method according to claim 2, characterized in that Determining whether the second parameter value and the third parameter value are valid includes: Determining a shooting environment of the electronic device according to sensor data collected by a target sensor of the electronic device; Obtaining a preset value range of a 3A parameter corresponding to the shooting environment; In response to the third parameter value being outside the preset value range, determining that the third parameter value is an invalid value; and / or In response to the second parameter value and the third parameter value being within the preset value range, the second parameter value and the third parameter value are determined to be valid values.

4. The method according to claim 1, characterized in that The method further includes a step of obtaining the preset parameter mapping relationship, including: Respectively acquiring images captured by the main camera and the normally-on camera under preset shooting conditions to obtain a first image and a second image; Obtaining statistical data of the first image and the second image respectively to obtain first statistical data and second statistical data; Adjusting the value of the 3A parameter of the main camera until the difference between the first statistical data and the second statistical data is less than or equal to a preset difference; A mapping relationship between values ​​of the 3A parameters of the main camera after adjustment and values ​​before adjustment is obtained as the preset parameter mapping relationship.

5. The method according to claim 1, characterized in that: The method further comprises: In response to the normally-on camera switching from the main camera to the auxiliary camera, the normally-on camera is switched from the normal power consumption working mode to the low power consumption working mode.

6. The method according to claim 5, characterized in that Switching the normally-on camera from a normal power consumption working mode to a low power consumption working mode includes: The frame rate of the normally-on camera is reduced.

7. The method according to claim 6, characterized in that Reducing the frame rate of the normally-on camera includes: The normally-on camera is controlled to send a data request at intervals of at least one frame of preview request; the preview request is sent by the main camera.

8. The method according to claim 6, characterized in that Reducing the frame rate of the normally-on camera includes: Increase the time it takes for the image sensor in the normally-on camera to read each row of pixel data.

9. The method according to claim 6, characterized in that Reducing the frame rate of the normally-on camera includes: Increase the interval time for the image sensor in the normally-on camera to read each frame of image data.

10. The method according to claim 6, characterized in that Reducing the frame rate of the normally-on camera includes: Obtaining a shooting scene of the normally-on camera; When the shooting scene is a moving scene, determining that the frame rate of the normally-on camera is greater than or equal to a first frame rate threshold; and / or When the shooting scene is a stable scene, determining that the frame rate of the normally-on camera is less than or equal to a second frame rate threshold; the second frame rate threshold is less than the first frame rate threshold; and / or When the shooting scene is a bright-dark scene, it is determined to dynamically adjust the frame rate of the normally-on camera based on an automatic exposure algorithm.

11. The method according to claim 6, characterized in that Switching the normally-on camera from a normal power consumption working mode to a low power consumption working mode also includes: The real-time pipeline for image pre-processing of the normally-on camera in the normal working mode is reused.

12. The method according to claim 6, characterized in that Switching the normally-on camera from a normal power consumption working mode to a low power consumption working mode also includes: The real-time data buffer area of ​​the normally-on camera is released, where the real-time data buffer area is used to store image data collected by the image sensor of the normally-on camera.

13. The method according to claim 6, characterized in that Switching the normally-on camera from a normal power consumption working mode to a low power consumption working mode also includes: The optical image stabilization device of the normally-on camera is controlled to switch to a low power consumption mode.

14. The method according to claim 6, characterized in that Switching the normally-on camera from a normal power consumption working mode to a low power consumption working mode also includes: At least one algorithm of the image pre-processing function of the normally-on camera is adjusted to a low-power operation mode.

15. The method according to claim 6, characterized in that Switching the normally-on camera from a normal power consumption working mode to a low power consumption working mode also includes: The closing condition of the real-time image pre-processing pipeline in the normal working mode is adjusted so that the real-time image pre-processing pipeline remains in the open state when no request is issued; and the image sensor of the normally-on camera is controlled to keep working.

16. A shooting control device, characterized in that: Applicable to an electronic device, the electronic device includes at least two cameras, one of the at least two cameras is used as a normally-on camera, and the other at least one camera is used as a main camera, the device includes: A first parameter value acquisition module is used to acquire a 3A parameter value of the normally-on camera in a current shooting scene to obtain a first parameter value; A second parameter value acquisition module is used to acquire the 3A parameter value of the main camera in the current shooting scene to obtain a second parameter value; a third parameter value acquisition module, configured to acquire a predicted value of a 3A parameter of the main camera in a current shooting scene according to a preset parameter mapping relationship and the first parameter value, to obtain a third parameter value; the parameter mapping relationship refers to a conversion relationship of hardware differences between the main camera and the normally-on camera under the same shooting conditions; The target parameter value acquisition module is used to determine the second parameter value or the third parameter value as the target parameter value for image post-processing of the preview image of the main camera.

17. An electronic device, characterized in that: include: Processor and memory; The memory is used to store a computer program executable by the processor; The processor is configured to execute the computer program in the memory to implement the method according to any one of claims 1 to 15.

18. A non-transitory computer-readable storage medium, characterized in that: When the executable computer program in the storage medium is executed by a processor, the method according to any one of claims 1 to 15 can be implemented.

Citation Information

Patent Citations

  • Shooting parameter setting method and mobile terminal

    CN107147837A

  • Shooting parameter adjustment method, terminal and computer readable storage medium

    CN108848294A

  • Shooting method and terminal equipment

    CN108924414A

  • Photographing method and device, electronic equipment and storage medium

    CN109495689A

  • Shooting parameter setting method, terminal and computer readable storage medium

    CN109951647A