CN115802155A - Shooting control method and device, electronic equipment and storage medium - Google Patents

Shooting control method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115802155A
CN115802155A CN202211369249.0A CN202211369249A CN115802155A CN 115802155 A CN115802155 A CN 115802155A CN 202211369249 A CN202211369249 A CN 202211369249A CN 115802155 A CN115802155 A CN 115802155A
Authority
CN
China
Prior art keywords
shooting
shooting mode
brightness level
target
environment brightness
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211369249.0A
Other languages
Chinese (zh)
Inventor
金潇枫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202211369249.0A priority Critical patent/CN115802155A/en
Publication of CN115802155A publication Critical patent/CN115802155A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Studio Devices (AREA)

Abstract

The application discloses a shooting control method, a shooting control device, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring an environment brightness parameter of a shooting scene; determining a target shooting mode according to the environment brightness parameters; wherein the target photographing mode includes at least one of: whether to call an automatic exposure module and the exposure times of the image sensor and whether to call an artificial intelligence module to process the image; and switching the shooting mode to the target shooting mode. Therefore, different shooting scenes are represented through the environment brightness parameters, whether the automatic exposure module and the exposure times of the image sensor are called or not is determined according to the environment brightness parameters, and whether the artificial intelligence module is called for image processing or not, the matched shooting modes are configured for the different shooting scenes, the switching speed of the camera device can be improved in the scene switching process, the image display effect is better and smooth, and the phenomenon of picture jumping cannot occur.

Description

Shooting control method and device, electronic equipment and storage medium
Technical Field
The present application relates to image processing technologies, and in particular, to a shooting control method and apparatus, an electronic device, and a storage medium.
Background
In the process of using the shooting device for shooting/recording, a single shooting/recording strategy cannot meet the frequently-changed use scene due to uncertainty of the use scene. A configuration of the shooting parameters or image processing parameters for different usage scenarios, called scene switching, is therefore introduced.
For the following scenario: when a user holds a shooting device for recording in a hand in the daytime, the user suddenly enters an indoor (dim light/dim light) without lighting from the outside (highlight/highlight), and the current general strategy is to increase the exposure time of an image sensor to control the brightness of a picture through an AE algorithm so that the brightness of the picture is kept in a relatively stable and ideal state, thereby obtaining ideal image quality.
But the convergence of the AE algorithm is time-consuming (typically at least 4 to 5 frames), while the image sensor also requires N +1 frames for the new configuration to take effect, i.e. at least 5 to 6 frames for a complete successful scene cut, which may take longer in some more complex scenes. When a scene with frequent and severe changes is encountered, the quality of an output image is poor, and the display effect is not ideal.
Disclosure of Invention
The embodiment of the application aims to provide a shooting control method, a shooting control device, electronic equipment and a storage medium.
The technical scheme of the application is realized as follows:
in a first aspect, a shooting control method is provided, including:
acquiring an ambient brightness parameter of a shooting scene;
determining a target shooting mode according to the environment brightness parameters; wherein the target photographing mode includes at least one of: whether to call an automatic exposure module, the exposure times of the image sensor and whether to call an artificial intelligence module to process the image;
and switching the shooting mode to the target shooting mode.
In a second aspect, there is provided a photographing control apparatus including:
the acquisition unit is used for acquiring the ambient brightness parameter of the shooting scene;
the determining unit is used for determining a target shooting mode according to the environment brightness parameters; wherein the target photographing mode includes at least one of: whether to call an automatic exposure module and the exposure times of the image sensor and whether to call an artificial intelligence module to process the image;
a control unit for switching a photographing mode to the target photographing mode.
In a third aspect, an electronic device is provided, including: a processor and a memory configured to store a computer program capable of running on the processor,
wherein the processor is configured to perform the steps of the aforementioned method when running the computer program.
In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the steps of the aforementioned method.
The embodiment of the application provides a shooting control method, a shooting control device, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring an ambient brightness parameter of a shooting scene; determining a target shooting mode according to the environment brightness parameters; wherein the target photographing mode includes at least one of: whether to call an automatic exposure module and the exposure times of the image sensor and whether to call an artificial intelligence module to process the image; and switching the shooting mode to the target shooting mode. Therefore, different shooting scenes are represented through the environment brightness parameters, whether the automatic exposure module and the exposure times of the image sensor are called or not is determined according to the environment brightness parameters, and whether the artificial intelligence module is called for image processing or not, the matched shooting modes are configured for the different shooting scenes, the switching speed can be improved in the scene switching process, the image display effect is better and smooth, and the phenomenon of picture jumping cannot occur.
Furthermore, a user adjusting channel can be configured, and a user can adjust the corresponding shooting mode in certain shooting scenes according to the self requirement, so that the quality of the shot image is matched with the requirement of the user, and the image quality is further improved.
Drawings
Fig. 1 is a first flowchart of a shooting control method in an embodiment of the present application;
fig. 2 is a second flowchart of the photographing control method according to the embodiment of the present application;
FIG. 3 is a schematic diagram of a change in a shooting scene in an embodiment of the present application;
fig. 4 is a third flowchart of the shooting control method in the embodiment of the present application;
FIG. 5 is a first schematic diagram of a display interface according to an embodiment of the present application;
FIG. 6 is a second schematic diagram of a display interface in an embodiment of the present application;
fig. 7 is a schematic structural diagram of a shooting control apparatus in an embodiment of the present application;
fig. 8 is a schematic structural diagram of an electronic device in an embodiment of the present application.
Detailed Description
So that the manner in which the above recited features and aspects of the present invention can be understood in detail, a more particular description of the embodiments of the invention, briefly summarized above, may be had by reference to the appended drawings, which are included to illustrate, but are not intended to limit the embodiments of the invention.
Fig. 1 is a first flowchart of a shooting control method in an embodiment of the present application, and as shown in fig. 1, the method may specifically include:
step 101: acquiring an ambient brightness parameter of a shooting scene;
here, the ambient brightness parameter is a parameter for representing brightness of the shooting environment. For example, the ambient brightness parameter may be the illuminance output by the ambient brightness sensor, which is expressed in Lux (Lux).
Step 102: determining a target shooting mode according to the environment brightness parameters; wherein the target photographing mode includes at least one of: whether to call an automatic exposure module, the exposure times of the image sensor and whether to call an artificial intelligence module to perform image processing;
different shooting scenes are represented through the environment brightness parameters, whether the automatic exposure module and the exposure times of the image sensor are called or not and whether the artificial intelligence module is called for image processing or not are determined according to the environment brightness parameters, the matched shooting modes are configured for the different shooting scenes, the switching speed can be improved in the scene switching process, the image display effect is better and smooth, and the phenomenon of picture jumping cannot occur.
For example, in some embodiments, the determining the target photographing mode according to the ambient brightness parameter includes: determining the target environment brightness level of the shooting scene according to the environment brightness parameters; and determining a target shooting mode corresponding to the target environment brightness level according to a preset corresponding relation between the environment brightness level and the shooting mode. In practical application, the ambient brightness of the shooting scene can be divided into different brightness levels, so that different shooting scenes can be distinguished, and matched shooting modes can be formulated for different brightness levels.
For example, the ambient brightness level may be roughly divided into the following intervals: [ >300Lux ], [300 Lux-200 Lux ], [200 Lux-100 Lux ], [100 Lux-50 Lux ], [50 Lux-10 Lux ], [10 Lux-5 Lux ], [ <5Lux ]. And determining the ambient brightness level according to the interval where the ambient brightness parameter is located.
Different shooting modes are configured for each brightness level in advance, and through the detailed brightness level division, the processing of each brightness level can achieve the optimal effect so as to balance the switching speed, the image quality and the power consumption.
The target photographing mode includes at least one of: whether to call an automatic exposure module, the exposure times of the image sensor and whether to call an artificial intelligence module to perform image processing;
the Automatic Exposure (AE) module is used to adjust the Exposure time of the image sensor (sensor), and control the brightness of the picture by reducing (increasing) the Exposure time, so that the brightness of the picture is kept in a relatively stable and ideal state, thereby obtaining ideal image quality.
When the exposure times of the image sensor are 1, performing one-time shooting on a scene comprises acquiring a frame of exposure image, and when the exposure times of the image sensor are more than 1, outputting multiple frames of images with different exposure times by a multi-frame technology, namely a Digital Overlay (DOL) exposure technology, and then performing image fusion to obtain a High Dynamic Range (HDR) image. One way of the HDR technology is to perform long exposure, medium exposure and short exposure on the same shooting scene respectively, acquire three exposure images, then fuse the three exposure images, and finally obtain one frame of HDR image. The HDR technology may also perform 2 exposures on the same shooting scene to obtain 2 frames of exposure images for fusion, or perform 4 exposures to obtain 2 frames of exposure images for fusion, and in the embodiment of the present application, the exposure times are flexibly selected according to the ambient brightness level of the shooting scene.
Illustratively, in some embodiments, the first ambient brightness level corresponds to a first number of exposures and the second ambient brightness level corresponds to a second number of exposures; wherein the first ambient brightness level is higher than the second ambient brightness level, and the first exposure number is less than or equal to the second exposure number;
it will be appreciated that, considering only the effect of the ambient brightness level on the number of exposures, the lower the ambient brightness level, the more the number of exposures, and the higher the ambient brightness level, the fewer the number of exposures. A higher ambient brightness level indicates a brighter scene being photographed, and a lower ambient brightness level indicates a darker scene being photographed. In a bright shooting scene, the exposure time needs to be reduced, and fewer exposure times are selected to ensure the image quality. In a darker shooting scene, the exposure time needs to be increased, and more exposure times are selected to ensure the image quality. The rule is as follows: exposure level
The third environment brightness level does not call the artificial intelligence module to perform image processing, and the fourth environment brightness level calls the artificial intelligence module to perform image processing; wherein the third ambient brightness level is higher than the fourth ambient brightness level.
It will be appreciated that the lower the ambient brightness level, the more the artificial intelligence module needs to be invoked to improve image quality, considering only the effect of the ambient brightness level on whether to invoke the artificial intelligence module.
Illustratively, in some embodiments, the artificial intelligence module comprises a first neural network model and a second neural network model; the artificial intelligence module carries out optimization processing on the image shot under a preset fifth environment brightness level based on the first neural network model; the artificial intelligence module carries out optimization processing on the image shot under a preset sixth environment brightness level on the basis of the second neural network model; wherein the fifth ambient brightness level and the sixth ambient brightness level are different ambient brightness levels of the fourth ambient brightness level.
It is understood that an Artificial Intelligence (AI) module performs image processing based on a neural network model to improve image quality. In order to ensure the image quality when the light condition of the shooting scene is poor, the AI module can be selected to be called to improve the image quality. Further, different neural network models can be trained for different brightness levels, the lower the ambient brightness level is, the darker the shooting scene is, the poorer the image quality acquired by the image sensor is, the higher the requirement on the neural network model is, otherwise, the lower the requirement is, and the balance between the image quality and the power consumption is realized by setting different neural network models.
Further, the method further comprises: acquiring a training sample image under a fifth environment brightness level; training a neural network model by using the training sample image under the fifth environment brightness level to obtain a first neural network model; acquiring a training sample image under a sixth environment brightness level; and training the neural network model by using the training sample image under the sixth environmental brightness level to obtain a second neural network model.
For example, in some embodiments, when considering the influence of the ambient brightness level on the exposure times and whether to invoke the artificial intelligence module, if the artificial intelligence module is not invoked, the rule that the lower the ambient brightness level, the more the exposure times, the higher the ambient brightness level, the less the exposure times is also followed, and if the artificial intelligence module is invoked, the exposure times can be first selected to be reduced, and then the rule that the lower the ambient brightness level, the more the exposure times, the higher the ambient brightness level, the less the exposure times is followed.
For example, the ambient brightness level may be roughly divided into the following intervals: [ >300Lux ], [300 Lux-200 Lux ], [200 Lux-100 Lux ], [100 Lux-50 Lux ], [50 Lux-10 Lux ], [10 Lux-5 Lux ], [ <5Lux ]. The correspondence between the ambient brightness level and the shooting mode is as follows:
a) 300Lux or more: the AI module is not called, the sensor adopts 1DOL, and only the AE module is called to switch scenes.
b) 300 Lux-200 Lux: and (4) the AI module is not called, DOL switching is carried out, 1DOL is switched to 2DOL, and the AE module is called in a matching manner to carry out scene switching. Under this scene, the sensor adopts 2DOL and cooperates and calls the AE module and carry out the scene switching, compares in the sensor and adopts 1DOL and cooperates and calls the AE module and carry out the scene switching, and the convergence time of AE algorithm is shorter, and scene switching speed is faster.
c) 200 Lux-100 Lux: and (4) switching DOL from 2DOL to 3DOL without calling an AI module, and switching scenes by matching with calling an AE module. Under this scene, the sensor adopts 3DOL and cooperates and calls the AE module to carry out scene switching, compare in the sensor adopt 2DOL and cooperate and call the AE module and carry out scene switching, the convergence time of AE algorithm is shorter, scene switching speed is faster. Wherein [ >300Lux ], [300 Lux-200 Lux ], and [200 Lux-100 Lux ] can be understood as a third ambient brightness level without calling the AI module, and the number of exposure times is selected to be more with the decrease of the ambient brightness level in the three ambient brightness levels.
d) 100 Lux-50 Lux: below the brightness environment, the ambient light is low, and the simple configuration sensor cannot complete switching in a short time, so that the AI module in the scene starts a Super Night (SN) model (a neural network model specially trained in a dim light scene) to perform image processing, and the seamless switching can be rapidly completed by adopting 1DOL and matching with the AE module. The AE module is used for only changing the image brightness, the image quality of details cannot be improved, and the AE module, the AI module and the DOL are switched and combined together, so that the switching speed can be improved, and the image quality can be effectively improved.
e) 50-10 Lux: and starting an SN model, switching the sensor to 2DOL, and then cooperatively calling an AE module to complete scene switching.
f) 10 Lux-5 Lux: the SN model is enabled, and the sensor is switched to 3DOL, and then the AE module is called to complete the scene switch. Wherein the SN model may be understood as a first neural network model, and the fifth ambient brightness level comprises: three environment brightness levels of [100 Lux-50 Lux ], [50 Lux-10 Lux ] and [10 Lux-5 Lux ].
g) 5Lux below: in this scenario, the ambient light is already weak, and most of the switching strategies cannot be completed quickly, so in this scenario, an Ultra Dark (UD) model (a neural network model specially trained for this Ultra dark scene) is enabled for the AI module, the sensor is switched to 2DOL, and then the AE module is called in a matching manner, so that the three strategies are combined together, and the switching of the scenes can be completed in a short time. Wherein the UD model can be a second neural network model, and the sixth ambient brightness level comprises: 5Lux or less.
For example, in some embodiments, when the ambient brightness level changes, the target shooting mode corresponding to the target ambient brightness level is determined according to a preset correspondence between the ambient brightness level and the shooting mode.
Step 104: and switching the shooting mode to the target shooting mode.
Illustratively, the operation of the object capture mode includes: calling an Automatic Exposure (AE) module to determine an Exposure time of the image sensor; controlling the image sensor to collect at least one frame of shot image based on the exposure time and the exposure times; calling an Image Signal Processor (ISP) to perform Image processing on the at least one frame of shot Image;
when the target shooting mode comprises calling an artificial intelligence module to perform image processing, switching the shooting mode to the target shooting mode further comprises: and calling an artificial intelligence module to perform image processing on the output image of the image signal processing module.
Illustratively, the flow of calling the AE module to determine the exposure time of the image sensor is as follows:
1. ISP calculates the brightness statistic value of each frame of image;
2. calling an AE module to calculate a possible exposure time according to the brightness statistic value and configuring the exposure time to a sensor;
3. the sensor applies the exposure time calculated in the previous step when acquiring the next frame of image;
4. and repeating the step 123 until the AE algorithm converges to obtain a stable exposure time, and acquiring an image by the sensor under the current shooting scene by using the exposure time.
When the shooting scene changes, that is, the ambient brightness level changes, the AE module for performing scene switching calls to repeat the above 1234 steps to obtain the exposure time in the new shooting scene.
Illustratively, the controlling the image sensor to capture at least one frame of captured image based on the exposure time and the number of exposures includes: when the exposure times are one time, controlling the image sensor to perform one-time exposure according to the exposure time to acquire one frame of image; when the exposure times are at least two times, obtaining the exposure time corresponding to the at least two exposures according to the exposure time; and controlling the image sensor to carry out at least two exposures according to the at least two exposure times so as to acquire at least two frames of images.
Illustratively, when the number of exposures is at least two, the ISP is called to fuse at least two frames of shot images to obtain the HDR image.
It should be noted that when the current shooting mode is different from the target shooting mode, the current shooting mode is switched to the target shooting mode. Illustratively, when a user carries out shooting by holding a mobile phone and enters a shooting scene of 300Lux to 200Lux from a shooting scene of more than 300Lux, the shooting mode is switched from 1DOL and calling of the AE module to 2DOL and calling of the AE module.
By adopting the technical scheme, the ambient brightness of the shooting scene is divided into different brightness levels, different shooting scenes are distinguished, and matched shooting modes are formulated for different levels.
To further illustrate the object of the present application on the basis of the above embodiments of the present application, as shown in fig. 2, the method specifically includes:
step 201: acquiring a first environment brightness parameter acquired by a first brightness sensor and a second environment brightness parameter acquired by a second brightness sensor; wherein the first and second luminance sensors are positioned in opposite directions;
here, the electronic device (e.g., a mobile phone, a tablet computer, a smart watch, etc.) includes a front camera and a rear camera, the first brightness sensor is located on the same side as the front camera, the brightness sensor as the front camera is used to implement shooting by the front camera, the second brightness sensor is located on the same side as the rear camera, and the brightness sensor as the rear camera is used to implement shooting by the rear camera. In practical applications, the image capturing device may be a front-facing image capturing device or a rear-facing image capturing device.
Fig. 3 is a schematic diagram of a change of a shooting scene in an embodiment of the present application, as shown in fig. 3, when a user holds an electronic device with a hand and shoots with a rear camera, in a normal case, the rear camera faces a shooting object, the front camera faces the user, and the collected ambient brightness parameters of the front and rear brightness sensors are different.
Step 202: calculating a difference value between the first ambient brightness parameter and the second ambient brightness parameter;
the difference Δ L = L1-L2 between the first ambient brightness parameter and the second ambient brightness parameter. In practical applications, Δ L may be an unsigned absolute value or a signed value.
As shown in fig. 3, when the difference Δ L is an unsigned absolute value, the user holds the electronic device from a bright scene to a dark scene, and becomes smaller and approaches 0 at Δ L, and the user holds the electronic device from a bright scene to a dark scene, and becomes smaller and approaches 0 at Δ L.
When the difference Δ L is a value that can have a sign, the user holds the electronic device to enter a dark scene from a bright scene, where Δ L decreases from large to small and tends to 0, and the user holds the electronic device to enter a dark scene from a bright scene, where Δ L decreases from small to large and tends to 0.
Step 203: when the difference value is larger than a first threshold value and the difference value is continuously reduced, switching the shooting mode to a preset first shooting mode;
illustratively, the first shooting mode includes invoking an automatic exposure module, the number of exposures of the image sensor is 2, and the artificial intelligence module is not invoked for image processing.
It can be understood that switching to the first shooting mode can be understood as an advanced switching operation, if a shooting scene changes drastically, but the shooting mode does not meet a switching condition, the shooting mode can be switched to the first shooting mode first, when the shooting scene is stable, the target ambient brightness level is determined according to the ambient brightness parameter, and then the shooting mode is switched from the first shooting mode to the target shooting mode, so that the image display effect is better and smooth, and no image jump occurs.
The first photographing mode may also be understood as an intermediate photographing mode between the current photographing mode and the target photographing mode. If the brightness difference obtained by the front and rear light brightness sensors is large and the brightness difference is continuously decreasing (including changing from bright to dark and from dark to bright), it indicates that the current scene may be a scene with a drastic change. The front and rear brightness sensors are used for collecting the ambient brightness parameters, scenes with severe changes can be detected, and for the scenes, the shooting mode is switched to the first shooting mode firstly and then to the target shooting mode, so that the problem of unsmooth image brightness abrupt change display effect caused by direct switching to the target shooting mode is solved.
Step 204: when the difference value is smaller than a second threshold value, determining the target environment brightness level according to the first environment brightness parameter and/or the second environment brightness parameter;
wherein the first threshold is greater than the second threshold. In practical application, the first threshold is far larger than the second threshold, the first threshold is used for judging whether the shooting scene changes violently, the second threshold is used for judging whether the shooting scene tends to be stable, when the difference value is smaller than the second threshold, the shooting scene tends to be stable, the target environment brightness level of the shooting scene can be determined, and then the shooting mode is switched to the target shooting mode matched with the shooting scene.
Illustratively, the first threshold is 300lux,500lux,700lux, etc., and the second threshold is 50Lux, 30Lux, etc.
Illustratively, in some embodiments, when the front camera device is started to shoot, the target ambient brightness level is determined according to the first ambient brightness parameter; when the rear camera device is started to shoot, determining the target environment brightness level according to the second environment brightness parameter; calculating the average value of the first ambient brightness parameter and the second ambient brightness parameter, and determining the target ambient brightness level according to the tie value; or, calculating the weighted value of the first ambient brightness parameter and the second ambient brightness parameter, and determining the target ambient brightness level according to the weighted value.
Step 205: determining a target shooting mode corresponding to the target environment brightness level according to a preset corresponding relation between the environment brightness level and the shooting mode;
wherein the photographing mode includes: calling an automatic exposure module, the exposure times of the image sensor and whether an artificial intelligence module is called for image processing;
step 206: and switching the shooting mode to the target shooting mode.
To further illustrate the object of the present application on the basis of the foregoing embodiments of the present application, as shown in fig. 4, the method specifically includes:
step 401: determining the target environment brightness level of the shooting scene according to the environment brightness parameters of the shooting scene;
step 402: determining a target shooting mode corresponding to the target environment brightness level according to a preset corresponding relation between the environment brightness level and the shooting mode;
wherein the target photographing mode includes at least one of: whether to call the automatic exposure module, the exposure times of the image sensor and whether to call the artificial intelligence module to process the image.
Step 403: switching a shooting mode to the target shooting mode, and controlling a display device to display a first image generated in the target shooting mode;
step 404: controlling the display device to display a second image generated in a second photographing mode;
the target shooting mode is a shooting mode matched according to the ambient brightness level of the shooting scene, the second shooting mode can be understood as a shooting mode different from the target shooting mode, the first image generated in the target shooting mode and the second image generated in other shooting modes can be displayed on the display interface, a user can modify the shooting mode corresponding to the brightness level according to own preference, and the user can participate in the scene switching process, so that the image effect in the current shooting scene is matched with the user requirement.
In practical application, the display interface may display images generated in one shooting mode, or may display images generated in multiple shooting modes.
For example, in some embodiments, the controlling the display device to display the second image generated in the second photographing mode includes: controlling the display device to display an adjustment icon for adjusting a photographing mode; and when the adjustment operation of the user for the adjustment icon is acquired, the second shooting mode is obtained, and the display device is controlled to display a second image generated in the second shooting mode.
That is, for convenience of adjusting the photographing mode, different photographing modes may be displayed as images, and the user selects the photographing mode of the scope by switching the photographing mode by operating the adjustment icon.
Fig. 5 is a schematic view of a display interface in an embodiment of the present application, as shown in fig. 5, a slider is displayed on the display interface of the display device, a user switches a shooting mode by dragging the slider, corresponding images in the shooting mode are synchronously displayed on the corresponding display interface, and the user selects whether to modify the corresponding shooting mode at the current level according to an image display effect.
The corresponding images in the multiple shooting modes can be displayed on the display interface at the same time, and the display effect comparison is carried out, so that the user can be helped to select the shooting mode of the heart instrument. Fig. 6 is a second schematic diagram of a display interface in the embodiment of the present application, and as shown in fig. 6, images generated by the current shooting scene in 6 shooting modes at the same time are displayed on the display interface of the display device.
Step 405: and when the user confirms the second shooting mode, taking the second shooting mode as the shooting mode corresponding to the target environment brightness level in the corresponding relation.
It should be noted that the adjustment of the user to the shooting mode is not limited to the process of taking a picture or recording a video, and when the user adjusts the picture or the video through the album, the adjustment operation of the user to the shooting mode can be recorded and stored in the same way, and the user can make a personalized shooting mode for the user with reference to the previous user selection in the subsequent shooting and recording.
The shooting control method provided in the embodiment of the present application is applied to an electronic device with a shooting function, and the electronic device may include a mobile phone, a tablet computer, a notebook computer, a palm computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a wearable device, a camera, and the like.
In summary, the shooting control method provided by the embodiment of the application has the following advantages:
1. the switching time is short, and the DOL is switched to be matched with the calling of the AE module, so that the scene switching speed can be accelerated.
2. The image quality is higher, the AE algorithm is used for only changing the image brightness, the image quality of details cannot be improved, and the AE module is combined with the AI module and the DOL module in a switching mode, so that the switching speed can be increased, and the image quality can be effectively improved. Meanwhile, a UI interface which can be selected by a user is added, so that the image is more in line with the preference of the user.
3. And power consumption is optimized, and the traditional single strategy has overlarge power consumption in some scenes. According to the embodiment of the application, different shooting modes are selected for different brightness levels, and the function of each shooting mode is played to the greatest extent, so that the switching speed, the image quality and the power consumption are balanced.
4. The scene transition is smoother, the scene switching is divided into different brightness levels, the difference of the shooting modes used between the brightness levels is small, and compared with a scheme of switching between the shooting modes with large difference, seamless switching is achieved through multiple levels, so that the whole scene switching process is smoother.
In order to implement the method according to the embodiment of the present application, based on the same inventive concept, an embodiment of the present application further provides a shooting control apparatus, as shown in fig. 7, where the shooting control apparatus 70 includes:
an obtaining unit 701, configured to obtain an ambient brightness parameter of a shooting scene;
a determining unit 702, configured to determine a target shooting mode according to the ambient brightness parameter; wherein the target shooting mode includes at least one of: whether to call an automatic exposure module and the exposure times of the image sensor and whether to call an artificial intelligence module to process the image;
a control unit 703 for switching the shooting mode to the target shooting mode.
In some embodiments, the determining unit 702 is configured to determine a target ambient brightness level of the shooting scene according to the ambient brightness parameter; and determining a target shooting mode corresponding to the target environment brightness level according to a preset corresponding relation between the environment brightness level and the shooting mode.
In some embodiments, the first ambient brightness level corresponds to a first number of exposures and the second ambient brightness level corresponds to a second number of exposures; wherein the first ambient brightness level is higher than the second ambient brightness level, and the first exposure number is less than or equal to the second exposure number;
the artificial intelligence module is not called for image processing correspondingly to the third environment brightness level, and the artificial intelligence module is called for image processing correspondingly to the fourth environment brightness level; wherein the third ambient brightness level is higher than the fourth ambient brightness level.
In some embodiments, the artificial intelligence module comprises a first neural network model and a second neural network model;
the artificial intelligence module carries out optimization processing on the image shot under a preset fifth environment brightness level on the basis of the first neural network model;
the artificial intelligence module carries out optimization processing on the image shot under a preset sixth environment brightness level on the basis of the second neural network model;
wherein the fifth ambient brightness level and the sixth ambient brightness level are different ambient brightness levels of the fourth ambient brightness level.
In some embodiments, the obtaining unit 701 is configured to obtain a first ambient brightness parameter collected by a first brightness sensor, and a second ambient brightness parameter collected by a second brightness sensor; wherein the first and second luminance sensors are positioned in opposite directions;
a determining unit 702, configured to trigger the control unit 703 to switch the shooting mode to a preset first shooting mode when a difference between the first ambient brightness parameter and the second ambient brightness parameter is greater than a first threshold and the difference continuously decreases;
a determining unit 702, configured to determine the target ambient brightness level according to the first ambient brightness parameter and/or the second ambient brightness parameter when a difference between the first ambient brightness parameter and the second ambient brightness parameter is smaller than a second threshold, where the first threshold is greater than the second threshold.
In some embodiments, the first photographing mode includes invoking an automatic exposure module, the number of exposures of the image sensor is 2, and the artificial intelligence module is not invoked for image processing.
In some embodiments, the control unit 703 is further configured to control the display device to display the first image generated in the target shooting mode; controlling the display device to display a second image generated in a second photographing mode; and when the user confirms the second shooting mode, taking the second shooting mode as the shooting mode corresponding to the target environment brightness level in the corresponding relation.
In some embodiments, a control unit 703 for controlling the display device to display an adjustment icon for adjusting a photographing mode; and when the adjustment operation of the user for the adjustment icon is acquired, the second shooting mode is obtained, and the display device is controlled to display a second image generated in the second shooting mode.
Based on the hardware implementation of each unit in the shooting control apparatus, an embodiment of the present application further provides an electronic device, as shown in fig. 8, where the electronic device 80 includes: a processor 801 and a memory 802 configured to store a computer program capable of running on the processor;
wherein the processor 801 is configured to execute the method steps in the previous embodiments when running the computer program.
Of course, in actual practice, the various components in the electronic device are coupled together by a bus system 803, as shown in FIG. 8. It is understood that the bus system 803 is used to enable communications among the components. The bus system 803 includes a power bus, a control bus, and a status signal bus in addition to the data bus. But for clarity of illustration the various buses are labeled in the figure as the bus system 803.
In practical applications, the processor may be at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a controller, a microcontroller, and a microprocessor. It is understood that the electronic device for implementing the above processor function may be other electronic devices, and the embodiments of the present application are not limited in particular.
The Memory may be a volatile Memory (volatile Memory), such as a Random-Access Memory (RAM); or a non-volatile Memory (non-volatile Memory), such as a Read-Only Memory (ROM), a flash Memory (flash Memory), a Hard Disk (HDD), or a Solid-State Drive (SSD); or a combination of the above types of memories and provides instructions and data to the processor.
In practical applications, the apparatus may be an electronic device, or may be a chip applied to an electronic device. In this application, the apparatus may implement the functions of the units by means of either software, hardware, or a combination of software and hardware, so that the apparatus can execute the shooting control method provided in any of the above embodiments. And the technical effects of the technical schemes of the device can refer to the technical effects of the corresponding technical schemes in the shooting control method, which is not described in detail herein.
In an exemplary embodiment, the present application further provides a computer readable storage medium, for example, a memory including a computer program, which is executable by a processor of an electronic device to perform the steps of the foregoing method.
Embodiments of the present application also provide a computer program product, including computer program instructions.
Optionally, the computer program product may be applied to the electronic device in the embodiment of the present application, and the computer program instructions enable the computer to execute a corresponding process implemented by the electronic device in each method in the embodiment of the present application, which is not described herein again for brevity.
The embodiment of the application also provides a computer program.
Optionally, the computer program may be applied to the electronic device in the embodiment of the present application, and when the computer program runs on a computer, the computer is enabled to execute corresponding processes implemented by the electronic device in the methods in the embodiment of the present application, and for brevity, details are not described here again.
It should be understood that, in the embodiments of the present application, data related to user information and the like need to be approved or approved by a user when the embodiments of the present application are applied to specific products or technologies, and collection, use and processing of the related data need to comply with relevant laws and regulations and standards of relevant countries and regions.
It is to be understood that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items. The expressions "having", "may have", "include" and "contain", or "may include" and "may contain" in this application may be used to indicate the presence of corresponding features (e.g. elements such as values, functions, operations or components) but does not exclude the presence of additional features.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another, and are not necessarily used to describe a particular order or sequence. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present invention.
The technical solutions described in the embodiments of the present application may be arbitrarily combined without conflict.
In the several embodiments provided in the present application, it should be understood that the disclosed method, apparatus, and device may be implemented in other ways. The above-described embodiments are merely illustrative, and for example, the division of a unit is only one logical function division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or in other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application.

Claims (12)

1. A shooting control method, characterized by comprising:
acquiring an environment brightness parameter of a shooting scene;
determining a target shooting mode according to the environment brightness parameters; wherein the target photographing mode includes at least one of: whether to call an automatic exposure module, the exposure times of the image sensor and whether to call an artificial intelligence module to process the image;
and switching the shooting mode to the target shooting mode.
2. The method of claim 1, wherein determining a target capture mode based on the ambient brightness parameter comprises:
determining the target environment brightness level of the shooting scene according to the environment brightness parameter;
and determining a target shooting mode corresponding to the target environment brightness level according to a preset corresponding relation between the environment brightness level and the shooting mode.
3. The method of claim 2,
the first environment brightness level corresponds to a first exposure time, and the second environment brightness level corresponds to a second exposure time; wherein the first ambient brightness level is higher than the second ambient brightness level, and the first exposure time is less than or equal to the second exposure time.
4. The method of claim 2,
the artificial intelligence module is not called for image processing correspondingly to the third environment brightness level, and the artificial intelligence module is called for image processing correspondingly to the fourth environment brightness level; wherein the third ambient brightness level is higher than the fourth ambient brightness level.
5. The method of claim 4,
the artificial intelligence module comprises a first neural network model and a second neural network model;
the artificial intelligence module carries out optimization processing on the image shot under a preset fifth environment brightness level on the basis of the first neural network model;
the artificial intelligence module carries out optimization processing on the image shot under a preset sixth environment brightness level on the basis of the second neural network model;
wherein the fifth ambient brightness level and the sixth ambient brightness level are different ambient brightness levels of the fourth ambient brightness level.
6. The method of claim 2, wherein the obtaining the ambient brightness parameter of the shooting scene comprises:
acquiring a first environment brightness parameter acquired by a first brightness sensor and a second environment brightness parameter acquired by a second brightness sensor; wherein the first and second luminance sensors are positioned in opposite directions;
the determining of the target shooting mode according to the environment brightness parameters further comprises:
when the difference value between the first ambient brightness parameter and the second ambient brightness parameter is larger than a first threshold value and the difference value is continuously reduced, switching a shooting mode to a preset first shooting mode;
when the difference value between the first environment brightness parameter and the second environment brightness parameter is smaller than a second threshold value, determining the target environment brightness level according to the first environment brightness parameter and/or the second environment brightness parameter; wherein the first threshold is greater than the second threshold.
7. The method of claim 6,
the first photographing mode includes: and calling the automatic exposure module, wherein the exposure times of the image sensor are 2 times, and the artificial intelligence module is not called for image processing.
8. The method of claim 2, further comprising:
controlling a display device to display a first image generated in the target photographing mode;
controlling the display device to display a second image generated in a second photographing mode;
and when the confirmation operation of the user for the second shooting mode is acquired, taking the second shooting mode as the shooting mode corresponding to the target environment brightness level in the corresponding relation.
9. The method according to claim 8, wherein the controlling the display device to display the second image generated in the second photographing mode includes:
controlling the display device to display an adjustment icon for adjusting a photographing mode;
and when the adjustment operation of the user for the adjustment icon is acquired, the second shooting mode is obtained, and the display device is controlled to display a second image generated in the second shooting mode.
10. A shooting control apparatus, characterized in that the apparatus comprises:
the device comprises an acquisition unit, a processing unit and a display unit, wherein the acquisition unit is used for acquiring an ambient brightness parameter of a shooting scene;
the determining unit is used for determining a target shooting mode according to the environment brightness parameters; wherein the target photographing mode includes at least one of: whether to call an automatic exposure module, the exposure times of the image sensor and whether to call an artificial intelligence module to process the image;
and the control unit is used for switching the shooting mode to the target shooting mode.
11. An electronic device, characterized in that the electronic device comprises: a processor and a memory configured to store a computer program capable of running on the processor,
wherein the processor is configured to perform the steps of the method of any one of claims 1 to 9 when running the computer program.
12. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 9.
CN202211369249.0A 2022-11-03 2022-11-03 Shooting control method and device, electronic equipment and storage medium Pending CN115802155A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211369249.0A CN115802155A (en) 2022-11-03 2022-11-03 Shooting control method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211369249.0A CN115802155A (en) 2022-11-03 2022-11-03 Shooting control method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115802155A true CN115802155A (en) 2023-03-14

Family

ID=85435248

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211369249.0A Pending CN115802155A (en) 2022-11-03 2022-11-03 Shooting control method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115802155A (en)

Similar Documents

Publication Publication Date Title
CN110351490B (en) Exposure method, exposure device and image pickup equipment
CN110505411B (en) Image shooting method and device, storage medium and electronic equipment
US9961273B2 (en) Mobile terminal and shooting method thereof
US9407831B2 (en) Intelligent auto-exposure bracketing
US8896625B2 (en) Method and system for fusing images
CN110445989B (en) Image processing method, image processing device, storage medium and electronic equipment
US10225486B2 (en) Shooting apparatus and method for controlling shooting apparatus
US9838609B2 (en) Image capturing apparatus, control apparatus and control method for controlling zooming function
US11153504B2 (en) Flash control for video capture
US10609265B2 (en) Methods and apparatus for synchronizing camera flash and sensor blanking
US20030214600A1 (en) Digital camera
CN116055897B (en) Photographing method and related equipment thereof
CN108040204B (en) Image shooting method and device based on multiple cameras and storage medium
CN105306806A (en) Mobile terminal and photographing method thereof
CN110290325B (en) Image processing method, image processing device, storage medium and electronic equipment
WO2023160496A1 (en) Photographing method, photographing apparatus, electronic device and readable storage medium
EP3836532A1 (en) Control method and apparatus, electronic device, and computer readable storage medium
CN110868547A (en) Photographing control method, photographing control device, electronic equipment and storage medium
CN110581957B (en) Image processing method, image processing device, storage medium and electronic equipment
CN106851099B (en) A kind of method and mobile terminal of shooting
CN110278386B (en) Image processing method, image processing device, storage medium and electronic equipment
CN115802155A (en) Shooting control method and device, electronic equipment and storage medium
CN111263079B (en) Image processing method, image processing device, storage medium and electronic equipment
JP2015019416A (en) Imaging apparatus, control method of the same, and program
CN116600209B (en) Image quality optimization method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination