CN117119291A - Picture mode switching method and electronic equipment - Google Patents

Picture mode switching method and electronic equipment Download PDF

Info

Publication number
CN117119291A
CN117119291A CN202310127613.0A CN202310127613A CN117119291A CN 117119291 A CN117119291 A CN 117119291A CN 202310127613 A CN202310127613 A CN 202310127613A CN 117119291 A CN117119291 A CN 117119291A
Authority
CN
China
Prior art keywords
high dynamic
scene
time
electronic device
mode
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
CN202310127613.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.)
Honor Device Co Ltd
Original Assignee
Honor Device Co 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202310127613.0A priority Critical patent/CN117119291A/en
Publication of CN117119291A publication Critical patent/CN117119291A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons

Abstract

The application provides a graph mode switching method and electronic equipment. In the method, the electronic equipment can intelligently judge whether the current shooting scene is a high-dynamic scene in the preview process, and if the current shooting scene is the high-dynamic scene, a high-dynamic indication icon can be displayed to prompt a user that the current scene is the high-dynamic scene. And the user can set whether to start the high dynamic video recording mode or not through the high dynamic indication icon. After the high-dynamic video recording mode is started and video recording is started, in the video recording process, the electronic device can also determine a picture mode again based on whether the shooting scene is the high-dynamic scene, and use an iDCG mode picture for the high-dynamic scene and use a binning mode picture based on the non-high-dynamic scene.

Description

Picture mode switching method and electronic equipment
Technical Field
The present application relates to the field of terminals and video technologies, and in particular, to a method for switching a graphic mode and an electronic device.
Background
In the process of recording video, the shooting scene of the electronic device can be one or more of a high dynamic scene or a low dynamic scene (non-high dynamic scene). Reasons for the occurrence of highly dynamic scenes include: the light of the shooting scene may not always be normal light, and usually bright light or dark light may occur, and a situation that part of the shooting area is bright light and part of the shooting area is dark light may occur, for example, when a portrait is shot by backlight, a situation that a portrait area is dark light and other areas are bright light may occur. When the shooting area is provided with a dark light area and a bright light area, and the contrast of the brightness of the shooting area is strong, the shooting scene is a high dynamic scene. Correspondingly, the reasons for the occurrence of the low dynamic scene include: when the contrast of the brightness of the shooting area is small or no contrast of the brightness exists, the shooting scene is a non-high dynamic scene, for example, a low dynamic scene.
The electronic equipment can record video in a high-dynamic video mode in a high-dynamic scene, when the high-dynamic video mode is started, the picture mode of the electronic equipment is different from the picture mode when the high-dynamic video mode is closed, and in the video recording process, how to determine the picture mode of the electronic equipment is worth discussing.
Disclosure of Invention
The application provides a graph mode switching method and electronic equipment, wherein a user can switch a graph mode of a camera through a high dynamic indication icon displayed by the electronic equipment.
In a first aspect, the present application provides a graph mode switching method, including: the electronic device starts a camera; the electronic equipment displays a high dynamic indication icon in a first state; the high dynamic indication icon in the first state is used for indicating that the shooting scene is a high dynamic scene and is also used for indicating that the electronic equipment starts a high dynamic video recording mode; the high dynamic video recording mode is started and used for indicating the electronic equipment to acquire images based on the first image mode; in response to an operation of the high dynamic indication icon for the first state, the electronic device changes the high dynamic indication icon for the first state to a high dynamic indicator for the second state; the high dynamic indication icon in the second state is used for indicating that the shooting scene is a high dynamic scene and is also used for indicating that the electronic equipment closes the high dynamic video recording mode; the closed high-dynamic video recording mode is used for indicating the electronic equipment to acquire images based on a second image mode; the second pattern of drawings is different from the first pattern of drawings; the first and second modes are used to indicate the way the camera outputs an image.
In the above embodiment, the first state may be state 1 referred to in the embodiment, the second state may be state 2 referred to in the embodiment, the first pattern may be an iDCG pattern referred to in the embodiment, and the second pattern may be a binding pattern referred to in the embodiment.
Therefore, the electronic equipment can intelligently judge whether the current shooting scene is a high-dynamic scene or not in the preview process, and if the current shooting scene is the high-dynamic scene, a high-dynamic indication icon can be displayed to prompt a user that the current scene is the high-dynamic scene. And the user can set whether to start the high dynamic video recording mode or not through the high dynamic indication icon. After the high-dynamic video recording mode is started and video recording is started, in the video recording process, the electronic device can also determine a picture mode again based on whether the shooting scene is the high-dynamic scene, and use an iDCG mode picture for the high-dynamic scene and use a binning mode picture based on the non-high-dynamic scene.
With reference to the first aspect, in some embodiments, the method further includes: after the electronic equipment starts the camera, in a preset time after the high dynamic indication icon in the first state is displayed for the first time, the electronic equipment also displays prompt information, and the prompt information is used for prompting the shooting scene to be a high dynamic scene.
In the above embodiment, the preset time may be the preset time a referred to in the embodiment. The prompt may be the prompt 322 in the embodiment: "high dynamic video recording". The aim of displaying the prompt information is to prompt the user that the current shooting scene is a high dynamic scene. The electronic device starts timing after displaying the high dynamic indication icon (for example, indication icon 221) for the first time in the preview process, and after reaching the preset time a, the electronic device does not display the prompt information corresponding to the high dynamic indication icon any more. The display interface can be more concise.
With reference to the first aspect, in some embodiments, the method further includes: in the case of displaying the high dynamic indication icon of the second state, the electronic device also displays a first control, and in response to operation of the first control, the electronic device begins recording video.
With reference to the first aspect, in some embodiments, before the electronic device displays the high dynamic indicator of the first state, the method further includes: in response to an operation of the high dynamic indication icon for the second state, the electronic device changes a display state of the high dynamic indication icon for the second state to the first state.
In the above embodiment, the high dynamic indication icon in the second state is used to indicate that the shooting scene is a high dynamic scene, but the user turns off the high dynamic video recording mode through the electronic device, so that the high dynamic video recording mode can be turned on based on the high dynamic indication icon in the second state.
With reference to the first aspect, in some embodiments, after the electronic device starts recording the video, the method further includes: the electronic device acquires an image based on the second graph mode; the electronic device generates a video using the image acquired based on the second pattern of drawings.
In the above embodiment, after the electronic device starts recording the video, the electronic device may record the video based on the recording mode set by the user.
With reference to the first aspect, in some embodiments, the method further includes: the electronic equipment acquires the first N frames of images after video recording starts based on the second graph mode; the electronic equipment determines a graph mode corresponding to a subsequent image based on whether the current shooting scene is a high dynamic scene or not; the subsequent image is an image after an N-th frame acquired after video recording is started; under the condition that the shooting scene is determined to be a high dynamic scene, the electronic equipment acquires the subsequent image based on the first graph mode; in the case that the shooting scene is determined to be a non-high dynamic scene, the electronic device acquires the subsequent image based on the first image pattern.
In the above embodiment, after the electronic device starts recording the video, the image capturing manner may be determined based on whether the shooting environment is a highly dynamic scene. In this way, the quality of the recorded video can be improved.
With reference to the first aspect, in some embodiments, the electronic device displays a high dynamic indicator of the first state, specifically including: the electronic equipment determines that a shooting scene corresponding to first time is a high-dynamic scene based on exposure parameters corresponding to the first time; the first time is a time before the electronic device displays the high dynamic indicator icon of the first state.
In the above embodiment, the first time may be time a referred to in the following embodiment.
With reference to the first aspect, in some embodiments, the exposure parameter includes an ambient light level corresponding to the first time, the ambient light level being used to indicate an illumination intensity within a field angle range of the electronic device at the first time; the exposure parameters also comprise an automatic dynamic compression range corresponding to the first time and dark area brightness corresponding to the first time; the automatic dynamic compression range is used for indicating the brightness difference value between a target bright area and a target dark area in the image acquired at the first time, wherein the target bright area comprises pixels with the largest sum of continuous T color channel values in the image acquired at the first time; the target dark light region comprises pixels with minimum sum of continuous T color channel values in the image acquired at the first time; the dark area brightness is used for indicating the average brightness value of all pixel colors in the image acquired at the first time, wherein the average brightness value is smaller than a preset color channel value.
With reference to the first aspect, in some embodiments, the determining, by the electronic device, that the shooting scene corresponding to the first time is a high dynamic scene based on the exposure parameter corresponding to the first time specifically includes: determining that the ambient light brightness corresponding to the first time is greater than or equal to a preset value of a judicial instrument, and determining that the shooting scene corresponding to the first time is a high dynamic scene by the electronic equipment under the condition that the automatic dynamic compression range corresponding to the first time is greater than or equal to a second preset value; or alternatively; and under the condition that the ambient light brightness corresponding to the first time is larger than or equal to a first preset value and the dark area brightness corresponding to the first time is larger than or equal to a third preset value, the electronic equipment determines that the shooting scene corresponding to the first time is a high dynamic scene.
In the above embodiment, the first preset value may be the preset value A1 related to the embodiment, the second preset value may be the preset value B1 related to the embodiment, and the third preset value may be the preset value C1 related to the embodiment.
Except that it may be determined whether the photographed scene is a high dynamic scene based on the ambient light level and the automatic dynamic compression range. It is also possible to determine whether the photographed scene is a highly dynamic scene based on the ambient light level and the dark area luminance. The reference parameters are more diversified, and the determination result can be made more ready.
With reference to the first aspect, in some embodiments, the determining, by the electronic device, that the shooting scene corresponding to the first time is a high dynamic scene based on the exposure parameter corresponding to the first time specifically includes: when the shooting scene corresponding to the first time is determined to be a non-high dynamic scene based on the ambient light brightness corresponding to the first time and the automatic dynamic compression range corresponding to the first time, the electronic equipment determines that the shooting scene corresponding to the first time is a high dynamic scene based on the condition that the ambient light brightness corresponding to the first time is greater than or equal to a first preset value and the dark area brightness corresponding to the first time is greater than or equal to a third preset value.
In the above embodiment, compared with the manner of determining whether the shooting scene is a high dynamic scene based on the ambient light level and the automatic dynamic compression range. The application also provides a mode for determining whether the shooting scene corresponding to the time A is a high dynamic scene or not based on the ambient light brightness, the automatic dynamic compression range and the dark area brightness. And the determination results of the environment light brightness and the automatic dynamic compression range are corrected through the parameter of the dark area brightness, so that the accuracy of determining whether the shooting scene is a high dynamic scene is improved.
With reference to the first aspect, in some embodiments, determining, based on the ambient light level corresponding to the first time and the automatic dynamic compression range corresponding to the first time, that the shooting scene corresponding to the first time is a non-high dynamic scene specifically includes: determining that the shooting scene corresponding to the first time is a non-high dynamic scene by the electronic equipment under the condition that the ambient light brightness corresponding to the first time is smaller than the fourth preset value or the automatic dynamic compression range corresponding to the first time is smaller than the fifth preset value; the fourth preset value is smaller than the first preset value, or the fifth preset value is smaller than the second preset value.
With reference to the first aspect, in some embodiments, the method further includes: the electronic equipment obtains an image based on the first graph mode, and the first electronic device is in an on state; the first image pattern capturing an image using the first electronic device; the electronic device is in an off state when acquiring an image based on the second image pattern.
In the above embodiment, the first electronic device may be an iDCG electronic device referred to in the embodiment. In the recording process and the previewing process, when the shooting scene is a non-high dynamic scene, the picture can be switched to a binding mode picture, and compared with the picture in the high dynamic video mode, the picture in the non-high dynamic scene can not be switched to a binding mode picture scheme (such as the schemes of fig. 1, 2A and 2B) in time, and the power consumption can be saved.
In a second aspect, the present application provides an electronic device comprising: one or more processors and memory; the memory is coupled to the one or more processors, the memory for storing computer program code comprising computer instructions that the one or more processors call to cause the electronic device to perform the method as described in the first aspect or any implementation of the first aspect.
In the above embodiment, the first state may be state 1 referred to in the embodiment, the second state may be state 2 referred to in the embodiment, the first pattern may be an iDCG pattern referred to in the embodiment, and the second pattern may be a binding pattern referred to in the embodiment.
Therefore, the electronic equipment can intelligently judge whether the current shooting scene is a high-dynamic scene or not in the preview process, and if the current shooting scene is the high-dynamic scene, a high-dynamic indication icon can be displayed to prompt a user that the current scene is the high-dynamic scene. And the user can set whether to start the high dynamic video recording mode or not through the high dynamic indication icon. After the high-dynamic video recording mode is started and video recording is started, in the video recording process, the electronic device can also determine a picture mode again based on whether the shooting scene is the high-dynamic scene, and use an iDCG mode picture for the high-dynamic scene and use a binning mode picture based on the non-high-dynamic scene.
In a third aspect, embodiments of the present application provide a chip system for application to an electronic device, the chip system comprising one or more processors configured to invoke computer instructions to cause the electronic device to perform a method as described in the first aspect or any implementation of the first aspect.
In the above embodiment, the first state may be state 1 referred to in the embodiment, the second state may be state 2 referred to in the embodiment, the first pattern may be an iDCG pattern referred to in the embodiment, and the second pattern may be a binding pattern referred to in the embodiment.
Therefore, the electronic equipment can intelligently judge whether the current shooting scene is a high-dynamic scene or not in the preview process, and if the current shooting scene is the high-dynamic scene, a high-dynamic indication icon can be displayed to prompt a user that the current scene is the high-dynamic scene. And the user can set whether to start the high dynamic video recording mode or not through the high dynamic indication icon. After the high-dynamic video recording mode is started and video recording is started, in the video recording process, the electronic device can also determine a picture mode again based on whether the shooting scene is the high-dynamic scene, and use an iDCG mode picture for the high-dynamic scene and use a binning mode picture based on the non-high-dynamic scene.
In a fourth aspect, embodiments of the present application provide a computer program product comprising instructions which, when run on an electronic device, cause the electronic device to perform a method as described in the first aspect or any implementation of the first aspect.
In the above embodiment, the electronic device may intelligently determine whether the current shooting scene is a high dynamic scene in the preview process, and if so, may display a high dynamic indication icon to prompt the user that the current scene is a high dynamic scene. And the user can set whether to start the high dynamic video recording mode or not through the high dynamic indication icon. After the high-dynamic video recording mode is started and video recording is started, in the video recording process, the electronic device can also determine a picture mode again based on whether the shooting scene is the high-dynamic scene, and use an iDCG mode picture for the high-dynamic scene and use a binning mode picture based on the non-high-dynamic scene.
In a fifth aspect, embodiments of the present application provide a computer readable storage medium comprising instructions which, when run on an electronic device, cause the electronic device to perform a method as described in the first aspect or any implementation of the first aspect.
In the above embodiment, the electronic device may intelligently determine whether the current shooting scene is a high dynamic scene in the preview process, and if so, may display a high dynamic indication icon to prompt the user that the current scene is a high dynamic scene. And the user can set whether to start the high dynamic video recording mode or not through the high dynamic indication icon. After the high-dynamic video recording mode is started and video recording is started, in the video recording process, the electronic device can also determine a picture mode again based on whether the shooting scene is the high-dynamic scene, and use an iDCG mode picture for the high-dynamic scene and use a binning mode picture based on the non-high-dynamic scene.
Drawings
FIG. 1 shows a schematic diagram of an electronic device entering a high dynamic video recording mode;
FIG. 2A and FIG. 2B are schematic diagrams showing an electronic device entering a high dynamic video recording mode;
3A-3C illustrate an exemplary set of user interfaces for an electronic device to switch a graphical mode in an embodiment of the application;
FIG. 4 illustrates a set of user interfaces involved in an electronic device beginning to record video when a high dynamic video recording mode is turned on during a preview process;
FIG. 5 illustrates an exemplary set of user interfaces for setting whether to turn on a high dynamic video recording mode based on a high dynamic indication icon;
FIG. 6 shows a schematic software architecture diagram of an electronic device involved in a graph mode switching method;
fig. 7 shows an example diagram involved in the portioning phase;
FIG. 8 shows an example diagram involved in an image processing stage;
FIG. 9 illustrates an exemplary flow chart of a graph mode switching method in an embodiment of the application;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The terminology used in the following embodiments of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," "the," and "the" are intended to include the plural forms as well, unless the context clearly indicates to the contrary. It should also be understood that the term "and/or" as used in this disclosure refers to and encompasses any or all possible combinations of one or more of the listed items.
The terms "first," "second," and the like, are used below for descriptive purposes only and are not to be construed as implying or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature, and in the description of embodiments of the application, unless otherwise indicated, the meaning of "a plurality" is two or more.
In one approach, the electronic device sets a separate recording mode for the high dynamic scene, which may be referred to as high dynamic recording. When the user determines that the shooting scene is a high dynamic scene, the electronic equipment can enter a high dynamic video recording mode to shoot the video.
Fig. 1 shows a schematic diagram of an electronic device entering a high dynamic video recording mode.
As shown in fig. 1 (1), the user interface 11 is an exemplary desktop of the electronic device. The user interface 11 has a camera application icon 111 displayed therein. The electronic device may detect an operation (e.g., a click operation) by the user on the camera application icon 111, in response to which the electronic device activates the camera and may display the user interface 12 as shown in fig. 1 (2).
As shown in fig. 1 (2), the user interface 12 is one exemplary user interface for the electronic device when shooting. At this time, the electronic device enters a video recording mode, and can record video. When the user determines that the shooting scene is a high dynamic scene, the electronic equipment can enter a high dynamic video recording mode to shoot the video. An exemplary description of one of the entry into the high dynamic video recording mode may be referred to below.
In response to the operation for the more controls 121a, the electronic device may display more shooting modes, including the high dynamic video recording mode. For example, referring to the user interface 13 shown in (3) of fig. 1, the user interface 13 may be an exemplary user interface displayed after responding to the operation for the more controls 121 a. In response to an operation (e.g., a click operation) for the high dynamic video control 131, the electronic device may switch the shooting mode to the high dynamic video mode. Subsequently, in response to an operation (e.g., a click operation) for start video control 132, the electronic device may capture video in a high dynamic video mode. User interface 14, shown in fig. 1 (4), is one exemplary user interface that may be involved in capturing video in a high dynamic video mode of an electronic device.
Subsequently, the electronic device may record video in a high dynamic video recording mode. But in the whole video recording process, the high dynamic video recording mode is adopted. The picture mode can not be switched to other picture modes in the preview process and the video recording process, and the picture modes are all picture modes in the high-dynamic video recording mode. Even for non-highly dynamic scenes that occur during the preview process and during the video recording process, it is not possible to switch to other modes of graphics.
And whether the shooting environment is a high dynamic scene is judged by a user, and the judgment of the high dynamic scene has certain difficulty for the user. A situation may occur in which the judgment is erroneous, that is, the process of judging whether the shooting environment is a highly dynamic scene is not intelligent enough.
It should be understood herein that the preview process includes a scene in which the electronic device begins displaying the captured image but does not begin recording video. The video recording process includes affecting the operation of a start video control (e.g., start video control 132) that the electronic device begins displaying based on the acquired image and deriving a scene of the video based on the acquired image.
In another possible manner, during the preview process, the electronic device may identify whether the current shooting scene is a high dynamic scene, and if so, may display a high dynamic indication icon to prompt the user that the current scene is a high dynamic scene. In this manner, the high dynamic indication icon corresponds to a shortcut portal, and in response to the operation for the high dynamic indication icon, the electronic device may record video in the high dynamic recording mode.
Fig. 2A and 2B show another schematic diagram of the electronic device entering the high dynamic video recording mode.
As shown in (1) in fig. 2A, referring to the user interface 11, in response to an operation (e.g., a click operation) for the camera application icon 111, the electronic device starts the camera and may display the user interface 21 as shown in (2) in fig. 2A.
The user interface 21 is an exemplary user interface that is involved in entering a video recording mode of the electronic device. After entering the video mode, the electronic device may turn on the scene detection function. For example, referring to the user interface 21, the smart detection indicator 211 may be displayed in the user interface 21, and in the case where the scene detection function is on, the state of the smart detection indicator 211 is state a, for example, the state in the user interface 21 may be state a. When the scene detection function is turned off, the state of the smart detection indicator 211 is a state B, which is different from the state a described above.
Under the condition that the scene detection function is started, the electronic equipment can identify whether the current shooting scene is a high-dynamic scene or not, and if the current shooting scene is the high-dynamic scene, a high-dynamic indication icon can be displayed to prompt a user that the current scene is the high-dynamic scene. At this time, one exemplary user interface for the electronic device to display the high dynamic indication icon may refer to the user interface 22 shown in (3) of fig. 2A described below.
As shown in fig. 2A (3), the user interface 22 is an exemplary user interface involved in displaying a high dynamic indication icon in the case where the electronic device determines that the current shooting scene is a high dynamic scene. The high dynamic indication icon may be an indication icon 221 shown in the user interface 22. After entering the video mode each time, the electronic device may further display a prompt corresponding to the high dynamic indication icon within a preset time a after the high dynamic indication icon (for example, indication icon 221) is displayed for the first time in the preview process, for example, the prompt may be displayed around the high dynamic indication icon. The prompt information is used for prompting that the current shooting scene is a high dynamic scene, and a user can start the high dynamic video through the electronic equipment. The preset time a may be a duration of 1s-5s, for example, 2s, or may be other times, which is not limited in the embodiment of the present application. As shown in the user interface 22, the prompt may be text 222: "high dynamic video recording".
In the preview process, the time counting starts after the high dynamic indication icon (for example, indication icon 221) is displayed for the first time, and after the preset time a is reached, the electronic device does not display the prompt information corresponding to the high dynamic indication icon any more. Such as user interface 23 shown in fig. 2A (4), which is a user interface involved when the preset time a is exceeded after the high dynamic indication icon is displayed. At this point, the indication icon 221 may still be included in the user interface 23.
In response to operation of the indicator icon 221, the electronic device may enter a high dynamic video recording mode to begin recording video. One exemplary user interface referred to at this time may be referred to as user interface 24 shown in FIG. 2B, described below.
In this way, in the preview process, the electronic device can intelligently judge whether the current shooting scene is a high-dynamic scene or not, and provide a shortcut entry of a high-dynamic video recording mode.
However, in this manner, in the preview mode and in the high dynamic scenario, the user cannot switch the drawing mode of the electronic device to another drawing mode through the electronic device, and the switching of the drawing mode is still not flexible enough.
The embodiment of the application provides a graph mode switching method. In the method, the electronic equipment can intelligently judge whether the current shooting scene is a high-dynamic scene in the preview process, and if the current shooting scene is the high-dynamic scene, a high-dynamic indication icon can be displayed to prompt a user that the current scene is the high-dynamic scene. And the user can set whether to start the high dynamic video recording mode or not through the high dynamic indication icon. After the high-dynamic video recording mode is started and video recording starts, the electronic device may also determine a mapping mode based on whether the photographed scene is a high-dynamic scene again, map the high-dynamic scene using an optimal two-way conversion gain (ideal dual conversion gain, iDCG) mode, and map the non-high-dynamic scene using a pixel merging (binning) mode.
The binding mode and the iDCG mode indicate the way the camera outputs an image. Reference may be made in particular to the following description.
When the photographed scene is a non-high dynamic scene, the electronic device may acquire an image using a binning (binning) mode and obtain a video based on the acquired image. The binding mode is to add charges induced by adjacent pixels of an original image together and read out the image in a one-pixel mode. That is, the camera adds the charges induced by adjacent pixels of the original image together, reads out the charges in a one-pixel mode, and outputs the image.
When the shooting scene is a high dynamic scene, the electronic device can use high dynamic range (highdynamic range, HDR) processing to enable the image acquired by the electronic device to be a high dynamic range image, so that the image quality is higher, and the shooting object can be reflected more truly. During the HDR process, the electronic device may acquire an image (map) using an optimal two-way conversion gain (ideal dual conversion gain, iDCG) mode. The process of obtaining the high dynamic range image by the electronic device in the iDCG mode comprises the following steps: compared with the binding mode, the electronic device additionally turns on a two-way conversion gain (dual conversion gain, DCG) electronic device in the camera sensor, the original image acquired by the camera sensor is divided into a low conversion gain (Low conversion gain, LCG) image and a high conversion gain (high conversion gain, HCG) image by the DCG electronic device to be processed, and finally, the images are fused to obtain a frame of image with high dynamic range. That is, the camera divides the original image into a low conversion gain (Low conversion gain, LCG) image and a high conversion gain (high conversion gain, HCG) image, processes the images, and finally fuses the images to obtain a frame of image with a high dynamic range, and then outputs the image with the high dynamic range.
The LCG image may be adjusted to the bright areas such that the bright areas are not overexposed. The HCG image may adjust the dark regions so that the dark regions are clear.
Fig. 3A-3C illustrate an exemplary set of user interfaces for an electronic device to switch a graphical mode in an embodiment of the application.
As shown in (1) in fig. 3A, referring to the user interface 11, in response to an operation (e.g., a click operation) for the camera application icon 111, the electronic device starts the camera and may display the user interface 31 as shown in (2) in fig. 3A.
The user interface 31 is another exemplary user interface that is involved in entering a video recording mode of the electronic device. After entering the video mode, the electronic device may turn on the scene detection function. For example, referring to the user interface 31, the smart detection indicator 211 may be displayed in the user interface 31. The description of the smart detection indicator 211 may be referred to the foregoing and will not be repeated here.
Under the condition that the scene detection function is started, the electronic equipment can identify whether the current shooting scene is a high-dynamic scene or not, and if the current shooting scene is the high-dynamic scene, a high-dynamic indication icon can be displayed to prompt a user that the current scene is the high-dynamic scene. At this time, one exemplary user interface for the electronic device to display the high dynamic indication icon may refer to the user interface 32 shown in (3) of fig. 3A described below.
As shown in (3) of fig. 3A, the user interface 22 is an exemplary user interface involved in displaying a high dynamic indication icon in the case where the electronic device determines that the current shooting scene is a high dynamic scene. The high dynamic indication icon may be an indication icon 321 shown in the user interface 22. After each video recording mode is entered, the electronic device may further display a prompt corresponding to the high dynamic indication icon within a preset time a after the high dynamic indication icon (for example, indication icon 221) is displayed for the first time in the preview process, for example, the prompt may be prompt 322: "high dynamic video recording". The related description related to the preset room a and the display mode of the prompt message may refer to the related description related to (3) in fig. 2A, which is not repeated herein.
In some possible cases, the electronic device may start timing after displaying the high dynamic indication icon (for example, indication icon 221) for the first time in the preview process, and after reaching the preset time a, the electronic device may no longer display the prompt information corresponding to the high dynamic indication icon. For example, referring to the user interface 33 shown in (4) of fig. 3A, the user interface is referred to when the preset time a is exceeded after the high dynamic indication icon is displayed. At this time, the indication icon 321 may still be included in the user interface 33, but the prompt information 322 corresponding to the indication icon 321 is not displayed.
In some possible cases, the condition that the electronic device displays the high dynamic indication icon after determining that the shooting scene is the high dynamic scene may further include: the corresponding focal length is larger than or equal to the preset focal length when video is recorded. The preset focal length may be a focal length corresponding to a 1x zoom magnification, or may be other values, for example, a focal length corresponding to a 1.5x zoom magnification, which is not limited in the embodiment of the present application.
The electronic equipment can set the corresponding zoom magnification when recording video through the zoom magnification control, so that the focal length is changed. Here, a preset focal length is described as an example of a focal length corresponding to a 1x zoom magnification. Reference is made to the user interface 33 shown in fig. 3A (4). As shown in user interface 33, one exemplary illustration of a zoom magnification control may be zoom magnification control 331. The zoom magnification control 331 may be configured to receive an instruction to change the zoom magnification and prompt the user of what the current zoom magnification is. The zoom magnification control 331 may further include indicators corresponding to different zoom magnifications, where the indicators corresponding to the different zoom magnifications are used to indicate different zoom magnifications.
In response to the indicator 331a corresponding to the 0.5x zoom magnification in the zoom magnification control 331, the electronic device may set the zoom magnification to 0.5x. At this time, the focal length of the electronic device is a focal length corresponding to a 0.5x zoom magnification and is smaller than a focal length corresponding to a 1x zoom magnification. The electronic device no longer displays a high dynamic indication icon (e.g., indication icon 321). An exemplary user interface that is referred to when the indication icon 321 is not displayed may refer to the user interface 34 shown in (1) of fig. 3B.
Referring to the user interface 34 shown in (1) in fig. 3B, in response to the indicator 331B corresponding to the 2x zoom magnification in the zoom magnification control 331, the electronic device may set the zoom magnification to 2x. At this time, the focal length of the electronic device is a focal length corresponding to 2x zoom magnification and is greater than a focal length corresponding to 1x zoom magnification. After the electronic device determines that the shooting scene is a high dynamic scene, a high dynamic indication icon (e.g., indication icon 321) may be displayed. At this time, one exemplary user interface to which the electronic device relates may refer to the user interface 35 shown in (2) of fig. 3B.
In some possible cases, after the electronic device determines that the shooting scene is a high dynamic scene, in the case of displaying a high dynamic indication image, the user may also set whether to turn on the high dynamic video recording mode through the high dynamic indication icon. One possible implementation includes: after entering the video mode each time, the state of displaying the high dynamic indication icon for the first time in the preview process is recorded as a state 1, and the high dynamic indication icon in the state 1 can prompt the user that the current scene is the high dynamic scene. The electronic device may also be instructed to turn on the high dynamic video recording mode. The high dynamic indication icon in this state 1 may also be used to set the off high dynamic video recording mode. When the high dynamic video mode is turned off, the state of the high dynamic indication icon can be switched from the state 1 to the state 2. Correspondingly, the high dynamic indication icon in the state 2 not only can prompt the user that the current scene is a high dynamic scene. The electronic device may also be instructed to turn off the high dynamic video recording mode. The high dynamic indication icon in this state 2 can also be used to set the high dynamic recording mode on. When the high dynamic video recording mode is started, the state of the high dynamic indication icon can be switched from the state 2 to the state 1.
Referring to fig. 3B, (2), the indication icon 321 displayed in the user interface 35 is a high dynamic indication icon in an exemplary state 1. In response to an operation (e.g., a click operation) for the indication icon 321 in this state 1, the electronic device may change the display state of the indication icon 321 to change it to the indication icon 321 in state 2. At this time, the electronic device may display the user interface 36 shown in (1) in fig. 3C.
Referring to the user interface 36 shown in fig. 3C (1), the electronic device may change the color of the indication icon 321 to indicate that the current electronic device has turned off the high dynamic video recording mode. For example, from gray as shown in user interface 35 to white as shown in user interface 36.
It should be understood that, in the foregoing, the state 1 is color 1 (e.g. gray), and the state 2 is color 2 (e.g. white), which is taken as an example, and in practical situations, the state 1 is different from the state 2, which is not limited in the embodiment of the present application. For example, the shape of the state 1 may be different from the shape of the state 2.
When the high dynamic indicator is in the state 2, the electronic device is indicated to close the high dynamic video recording mode in the preview process, and the drawing mode of the electronic device can be set to be a binding mode. In response to an operation (e.g., a click operation) for a start video control (e.g., start video control 132), the electronic device may set a mapping mode corresponding to the first N frames of images to a binding mode during the start of video recording. At this time, one exemplary user interface that the electronic device may display is user interface 37a shown in fig. 3C (2). Where N is a positive integer greater than or equal to 1, for example N is equal to 1.
In the process of starting to record video, the electronic device uses the image mode corresponding to the subsequent image (the image after the nth frame) to include, but is not limited to, the following cases:
case 11: the graph modes corresponding to the subsequent images can be set to a binding mode. One implementation of this case 11 includes: during video recording, the picture mode (binding mode) used during the preview is kept unchanged.
Case 12: the pattern of the subsequent image may be set by the electronic device according to whether the current shooting scene (e.g., time 11) is a high dynamic scene. If the shooting scene is a high dynamic scene at time 11, the image pattern corresponding to the image acquired at time 11 is an iDCG pattern. If the shooting scene is a non-high dynamic scene at time 11, the image pattern corresponding to the image acquired at time 11 is a binding pattern. The time 11 may be a time or a time period.
In case 11 and case 12, the user interface displayed by the electronic device during the video recording process may refer to the user interface 37a shown in (2) of fig. 3C described above.
Case 13: the graph mode corresponding to the subsequent image may be determined by the electronic device according to whether the current shooting scene (e.g., time 11) is a high dynamic scene, in combination with the user setting. If the shooting scene is a high dynamic scene at time 11 and the user sets to start the high dynamic video recording mode, the image corresponding to the image acquired at time 11 is in the iDCG mode. If the shooting scene is a non-high dynamic scene at time 11, or if the shooting scene is a high dynamic scene but the user sets to close the high dynamic video recording mode, the image corresponding to the image acquired at time 11 is a binding mode.
This case 13 can be referred to the description of (1) in fig. 3C and (3) in fig. 3C. As shown in fig. 3C (1), in response to operation of start video control 132, the electronic device starts recording video. After starting recording the video, one exemplary user interface displayed by the electronic device may be user interface 37b shown in fig. 3C (3). The user interface 37b may include a video mode indication icon (e.g., indication icon 371). The recording mode indication icon 371 may be used to indicate whether the high dynamic recording mode is turned on.
The state of the indication icon 371 is state 3 when the first N frames of images of the video are recorded. The state 3 indicates that the icon 371 is used to indicate that the high dynamic recording mode is not on (off). Subsequently, the electronic device changes the state of the indication icon 371 according to whether the current shooting scene is a high dynamic scene or not, or according to whether the current shooting scene is a high dynamic scene or not and the user setting. For example, when the current shooting scene is a high dynamic scene and the high dynamic video mode is turned on, the electronic device changes the state of the indication icon 371 to a state 4 to indicate that the high dynamic video mode is turned on, and the state 4 is different from the state 3. An exemplary description about this state 4 may refer to the indication icon 371 shown in (3) in fig. 4 below. And will not be described in detail herein. For another example, in the case where the current photographing scene is a high dynamic scene, the indication icon 371 of the state 4 is displayed by default to indicate that the high dynamic video recording mode is turned on. In response to a user operation of the indication icon 371 for state 4, the electronic device may change the state of the indication icon 371 from state 4 to state 3 to indicate that the high dynamic video recording mode is turned off. Subsequently, in the case that the shooting scene is a high dynamic scene, the user can start the high dynamic video recording mode through the indication icon 371.
Fig. 3C illustrates the related content related to the electronic device starting to record video in response to the operation of the start recording control when the high dynamic recording mode is turned off in the preview process.
FIG. 4 illustrates a set of user interfaces involved in an electronic device beginning to record video when a high dynamic video recording mode is turned on during a preview process.
In response to an operation for starting the video recording control in the case of starting the high dynamic video recording mode in the preview process, the following description of fig. 4 may be referred to for related content related to starting video recording by the electronic device.
When the high dynamic indicator is in a state 1, the electronic equipment is indicated to start a high dynamic video recording mode in the preview process, and the picture mode of the electronic equipment can be set to be an iDCG mode. As shown in fig. 4 (1), in the user interface 41, in response to an operation (e.g., a clicking operation) for a start video control (e.g., a start video control 132), the electronic device may set an icon corresponding to the previous N frames of images in the process of starting video recording to be in the iDCG mode. At this point, one exemplary user interface that the electronic device may display is user interface 42a shown in fig. 4 (2). Where N is a positive integer greater than or equal to 1, for example N is equal to 1.
The electronic device starts the process of recording video, and the image pattern corresponding to the subsequent image (the image after the nth frame) includes, but is not limited to, the following cases:
case 21: the graph modes corresponding to the subsequent images may be all set to the iDCG mode. One implementation of this case 21 includes: during video recording, the graphic mode (iDCG mode) used during the preview is kept unchanged.
Case 22: the pattern of the subsequent image may be set by the electronic device according to whether the current shooting scene (e.g., time 21) is a high dynamic scene. If the photographing scene is a high dynamic scene at time 21, the image pattern corresponding to the image acquired at time 21 is an iDCG pattern. If the shooting scene is a non-high dynamic scene at time 21, the image pattern corresponding to the image acquired at time 21 is a binding pattern. The time 21 may be time or a time period.
In case 21 and case 22, the user interface displayed by the electronic device during the video recording process may refer to the user interface 42a shown in (2) of fig. 4.
Case 23: the pattern of the subsequent image may be determined by the electronic device in connection with the user setting according to whether the current shooting scene (e.g., time 21) is a high dynamic scene. If the shooting scene is a high dynamic scene at time 21 and the user sets to start the high dynamic video recording mode, the image corresponding to the image acquired at time 21 is in the iDCG mode. If the shooting scene is a non-high dynamic scene at the time 21, or if the shooting scene is a high dynamic scene but the user sets to close the high dynamic video recording mode, the image corresponding to the image acquired at the time 21 is a binding mode.
This case 13 can be referred to the description of (1) in fig. 4 and (3) in fig. 4. As shown in fig. 4 (1), in response to operation of start video control 132, the electronic device starts recording video. One exemplary user interface displayed by the electronic device after the video recording has begun may be user interface 42b shown in fig. 4 (3). The user interface 42b may include a video mode indication icon (e.g., indication icon 371). The recording mode indication icon 371 may be used to indicate whether the high dynamic recording mode is turned on.
The state of the indication icon 371 is state 4 when the first N frames of images of the video are recorded. The state 4 indicates that the icon 371 is used to indicate that the high dynamic recording mode is on. Subsequently, the electronic device changes the state of the indication icon 371 according to whether the current shooting scene is a high dynamic scene or not, or according to whether the current shooting scene is a high dynamic scene or not and the user setting. The description of this process may refer to the foregoing related content, and will not be repeated here.
It should be understood that, when the electronic device displays the high dynamic indication icon and further displays the prompt information corresponding to the high dynamic indication icon, the electronic device may still receive the operation of the user on the high dynamic indication icon to set whether to start the high dynamic video recording mode.
FIG. 5 illustrates an exemplary set of user interfaces for setting whether to turn on a high dynamic video recording mode based on a high dynamic indication icon.
As in the user interface 51 shown in fig. 5 (1), when a high dynamic indication icon (e.g., indication icon 321) is displayed, a corresponding prompt, such as prompt 322, is also displayed. At this time, the state of the high dynamic indication icon (e.g., indication icon 321) is state 1 (e.g., gray), which indicates that the electronic device has turned on the high dynamic video recording mode, and the drawing mode at this time is the IDCG mode. In response to an operation (e.g., a clicking operation) of the indication icon 321 for the state 1, the electronic device may change the state of the indication icon 321 to a state 2 (e.g., white in color), which indicates that the electronic device has turned off the high dynamic video recording mode, and the drawing mode at this time is a binding mode. An exemplary user interface displayed by the electronic device at this point may be referred to as user interface 52 shown in fig. 5 (2).
It should be appreciated here that using the iDCG mode diagram may result in an increase in power consumption of the electronic device compared to the binding mode. The reason for the increase in power consumption is that: the iDCG mode turns on one DCG electronic device more than the binning mode, and the process of obtaining an image based on an original image is more complicated, thus increasing power consumption. For the relevant description of the two modes, reference is made to the foregoing background art, and details are not repeated here.
In the recording process and the previewing process, the picture can be switched to the binding mode when the shooting scene is a non-high dynamic scene, and compared with the picture in the binding mode after entering the high dynamic video recording mode, the picture in the non-high dynamic scene can not be switched to the binding mode (such as the schemes of fig. 1, 2A and 2B) in time, so that the power consumption can be saved.
Based on the above, according to the method according to the embodiment of the present application, the electronic device may intelligently determine whether the current shooting scene is a high dynamic scene in the preview process, provide a shortcut entry for the high dynamic video recording mode, and enable the high dynamic video recording mode through the electronic device. In addition, in the video recording process, the electronic equipment can also determine the graph mode again based on whether the shooting scene is a high-dynamic scene, the graph mode can be flexibly switched, the graph of the iDCG mode with higher power consumption can not be used in the whole recording process, and the power consumption of the electronic equipment can be saved.
A schematic software architecture diagram involved in the graph mode switching method in an electronic device is shown in fig. 6.
The layered architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the system is divided into four layers, from top to bottom, an application layer, an application framework layer, a hardware abstraction layer, and a hardware layer, respectively.
The application layer may include a series of application packages, among other things. The application package may include a camera application. Other applications may be included in addition to camera applications, such as gallery applications and the like (which may also be referred to as applications).
A video mode may be included in the camera application. The video mode may be used to determine whether to turn on the scene detection function. After the recording mode is turned on, the camera application may interact with other layers in the recording mode.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for application programs of the application layer. The application framework layer includes a number of predefined functions.
As shown in fig. 6, a camera framework layer may be included in the application framework layer that may provide APIs and programming frameworks for the camera application so that the camera application may interact with other layers.
The hardware abstraction layer is an interface layer located between the kernel layer (not shown) and the hardware layer, which aims at abstracting the hardware and providing a virtual hardware platform for the operating system.
The hardware abstraction layer may include abstraction layers of different hardware. For example, the abstraction layer of a camera. The hardware abstraction layer of the camera may include a front-end Image processing engine (IFE), an automatic exposure control (Auto Exposure Control, AEC) module, an intelligent scene detection algorithm (aivideo camera), a decision engine (multi camera), a pattern selection module (selectable sensor), and decision rule data related to the operation of the decision engine.
The intelligent scene detection algorithm is used for receiving an instruction for starting a scene detection function or an instruction for closing the scene detection function, which is sent in a video recording mode. When receiving an instruction for starting a scene detection function, the intelligent scene detection algorithm can determine whether a shooting scene is a high dynamic scene or not based on an exposure parameter (AE parameter) transmitted by an automatic exposure control module described below. The details of determining whether the shooting scene is a high dynamic scene based on the exposure parameter by the intelligent scene detection algorithm may refer to the following description of step S102, which is not repeated herein.
In some possible cases, the camera application may be notified to display a high dynamic indication icon in the event that the intelligent scene detection algorithm determines that the shooting scene is a high dynamic scene.
In other possible cases, the camera application may be notified to display the high dynamic indication icon if the intelligent scene detection algorithm determines that the shooting scene is a high dynamic scene and the preset display condition is satisfied. The preset display conditions include, but are not limited to, one or more of the following display conditions:
display condition 1: the zoom range meets the preset requirements. For example, the corresponding focal length when recording video is greater than or equal to the preset focal length. The preset focal length may be a focal length corresponding to a 1x zoom magnification, or may be other values, for example, a focal length corresponding to a 1.5x zoom magnification, which is not limited in the embodiment of the present application.
Display condition 2: the information of the camera module meets the preset requirement. The preset requirements may include that the camera that captures the image includes a main camera.
The intelligent scene detection algorithm may also be used to inform the decision engine if the shooting scene is a high dynamic scene.
In some possible cases, the intelligent scene detection algorithm may detect whether a shot scene is a high dynamic scene within a preset period. The preset period may be a time required to acquire an X frame image, and X may be an integer greater than or equal to 1. The processing capability of the electronic device may be specifically determined, which is not limited by the embodiment of the present application.
The front-end image processing engine can process the image output by the camera sensor to obtain a processed image, and the processed image is transmitted to the automatic exposure control module.
The front-end image processing engine may also be referred to as a front-end image processing engine, where possible.
The automatic exposure control module may determine exposure parameters based on the processed image and transmit the exposure parameters to an intelligent scene detection algorithm.
The decision engine may determine the pattern of the graph based on whether the captured scene is a highly dynamic scene or not and the decision rule data. In the case where it is determined that the photographed scene is a high dynamic scene and the high dynamic video mode may be turned on, the decision engine may determine that the graph mode is an iDCG mode. In the case where the shooting scene is determined to be a non-high dynamic scene, or where the shooting scene is determined to be a high dynamic scene and the high dynamic video mode may not be on, the decision engine may determine that the graph mode is a binding mode.
In some possible cases, the decision rule may be written in a configuration form in a config.xml file, which is placed at the hardware abstraction layer as decision rule data.
Wherein, the conditions for determining that the high dynamic video recording mode can be started include, but are not limited to, the following starting conditions:
opening condition 1: the zoom range meets the preset requirements. The opening condition 1 is the same as the display condition 1 described above, and reference is made to the description related to the foregoing, and details are not repeated here.
Opening condition 2: the information of the camera module meets the preset requirement. The opening condition 2 is the same as the display condition 2 described above, and reference is made to the description related to the foregoing, which is not repeated here.
Opening condition 3: the state of the high dynamic indication icon is state 1, and the high dynamic indication icon in state 1 indicates that a user starts a high dynamic video recording mode through the electronic equipment.
Other modules may be included in the abstraction layer of the camera, such as a multi-shot fusion engine (SAT), an image-processing engine engine (IPE), and an encoding (video) module. These modules may be used for the electronic device to process the acquired images to obtain video.
The pattern selection module may be configured to receive a pattern output by the decision engine during an image processing phase (request phase). And determining whether to switch the image pattern of the camera sensor based on the image pattern. When the graph mode received by the graph mode selection module is the same as the graph mode used by the current camera sensor, the graph mode of the camera sensor is not switched. And when the graph mode received by the graph mode selection module is different from the graph mode used by the current camera sensor, switching the graph mode of the camera sensor.
In some possible cases, the graph mode selection module may store the graph mode in metadata from which a driver corresponding to a subsequent camera sensor may acquire the graph mode.
In some possible cases, the join in marriage current phase diagram mode selection module has not yet received the diagram mode of decision engine output in the time that the camera just started. The picture mode of the picture mode selection module may default to a video mode, which is a binding mode.
The hardware layers may include different hardware. For example, may include a camera sensor.
The camera sensor may include therein a binding mode map module and an iDCG mode map module.
The binding mode image module processes the acquired image based on the binding mode to obtain a video. The iDCG mode map module processes the acquired images based on the iDCG mode to obtain video.
Fig. 7 shows an example diagram involved in the portioning phase.
Fig. 8 shows an example diagram involved in the image processing stage.
An exemplary process flow of the graph mode switching method will be specifically described with reference to fig. 6 to 8.
It should be understood here that steps 1-5 describe an exemplary procedure for switching the graph mode from the binding mode to the iDCG mode. The graph mode of the electronic device may be repeatedly switched, and other scenarios may refer to the following descriptions, which are not repeated here. After the electronic equipment is in the flow distribution, the electronic equipment can go from the flow distribution stage to the image processing stage without stopping flow and restarting flow.
Step 1, after the camera application enters a video recording mode, an intelligent scene detection algorithm is started to determine whether a shooting scene is a high dynamic scene. In addition, as shown in fig. 7, in the streaming phase, the picture mode selection module is set in the video mode to drive the camera sensor to process the acquired image based on the default on binding mode.
Step 1 is shown as gray circle mark (1) in fig. 6 and 7.
And step 2, after the intelligent scene detection algorithm is started, entering an image processing stage. The front-end image processing engine obtains a processed image based on the image output by the camera sensor and transmits the processed image to the automatic exposure control module. As shown in fig. 8, the automatic exposure control module determines an exposure parameter based on the processed image and transmits the exposure parameter to the automatic exposure control module. The intelligent scene detection algorithm identifies whether the photographed scene is a highly dynamic scene based on the exposure parameters.
Step 2 is shown as gray circle mark (2) in fig. 6 and 8.
Step 3, as shown in fig. 8, in the case that the intelligent scene detection algorithm determines that the shooting scene is a high dynamic scene, the camera application is notified to display a high dynamic indication icon.
Step 3 is shown as gray circle mark (3) in fig. 6 and 8.
Step 4, as shown in fig. 8, the decision engine may determine that the graph mode is the iDCG mode based on the shooting scene being a high dynamic scene and the decision rule data.
Step 4 is shown as a gray circle in fig. 6 and 8 (4).
Step 5, as shown in fig. 8, the decision engine sends an instruction that the graph mode is the iDCG mode to the graph mode selection module, which switches the graph mode to the iDCG mode. And driving the camera sensor to process the acquired image based on the iDCG mode graph module to obtain a video.
Step 5 is shown as gray circle mark (5) in fig. 6 and 8.
Fig. 9 shows an exemplary flowchart of a graph mode switching method in an embodiment of the present application.
For details of the graph mode switching method in the embodiment of the present application, reference may be made to the following description of step S101 to step S110.
S101, the electronic equipment enters a video recording mode, and a scene detection function is started in the preview process.
After the electronic device turns on the scene detection function, the following step S102 may be executed to determine whether the shooting scene is a high dynamic scene.
The electronic device enters a video recording mode and one exemplary user interface involved in turning on the scene detection function during the preview process may be the user interface 31 described above in relation to (2) of fig. 3A. The smart detection indicator 211 (the display state is state B) displayed by the user interface 31 may indicate that the electronic device turns on the scene detection function.
It should be appreciated that the user may turn the scene detection function off or on via the smart detection indicator 211.
The manner in which the electronic device turns on the scene detection function includes, but is not limited to, one of the following.
Mode 1: the scene detection function is turned on by default.
Mode 2: the user may turn on the scene detection function via the electronic device.
Mode 3: and under the condition that the main camera is opened, starting the scene detection function.
S102, the electronic equipment acquires exposure parameters corresponding to the time A, and determines whether a shooting scene corresponding to the time A is a high dynamic scene or not based on the exposure parameters.
In some possible cases, the exposure parameters may include one or more of the following: ambient light intensity, automatic dynamic compression range (adrcGain), and dark area brightness (dark) corresponding to field of view (FOV) of an electronic device.
The time a may be understood as the time before the electronic device displays a high dynamic indicator icon (e.g., a high dynamic indicator icon of state 1).
The illumination intensity corresponding to the field angle is used for indicating the illumination intensity in the field angle range of the electronic equipment.
The automatic dynamic compression range may be used to indicate a difference in brightness between a target bright area and a target dark area in an image acquired by the electronic device. The automatic dynamic compression range may describe a contrast relationship between the brightest region and the darkest region in one frame of image. The target bright area may include pixels in the image where the sum of consecutive T color channel values (RGB values) is maximum. The target dim light zone may include a pixel in the image where the sum of consecutive T color channel values (RGB values) is minimum.
The dark region brightness may be used to indicate the brightness value corresponding to the darker pixel in a frame of image. Which may be expressed as an average luminance value of all pixel colors smaller than a preset color channel value (RGB value) in one frame image. In the case where the RGB values take on values of 0 to 255, the preset RGB values may be set to 40 to 60 or the like, for example, 50.
Wherein the units corresponding to the luminance involved in the different parameters may be lux.
The exposure parameters corresponding to the time a are described herein as examples including the ambient light brightness corresponding to the time a, the automatic dynamic compression range corresponding to the time a, and the dark area brightness corresponding to the time a. When the ambient light brightness corresponding to the time A comprises the time A, the illumination intensity in the field angle range of the electronic equipment. The automatic dynamic compression range corresponding to the time A comprises a brightness difference value between the target bright area and the target dark area in the image acquired by the electronic equipment at the time A. The dark area brightness corresponding to the time A comprises the average brightness value of all pixel colors in the image acquired by the time A, which is smaller than the preset color channel value (RGB value). The time a may be a time or a period of time.
In some possible cases, the rule for the electronic device to determine whether the shooting scene corresponding to the time a is a high dynamic scene based on the exposure parameter corresponding to the time a includes, but is not limited to, one or more of the following rules.
Determining rule 1: the electronic device may determine whether the shooting scene corresponding to the time a is a high dynamic scene based on the ambient light level corresponding to the time a and the automatic dynamic compression range corresponding to the time a.
Specifically, when the electronic device determines that the ambient light brightness corresponding to the time a is greater than or equal to the preset value A1 (for example, 15×w11), and the automatic dynamic compression range corresponding to the time a is greater than or equal to the preset value B1 (for example, 3×w21), the electronic device determines that the shooting scene corresponding to the time a is a high dynamic scene.
When the electronic device determines that the ambient light brightness corresponding to the time a is greater than or equal to the preset value A1 and the automatic dynamic compression range corresponding to the time a is smaller than the preset value B2 (for example, 3×w22), the electronic device determines that the shooting scene corresponding to the time a is a non-high dynamic scene.
In some possible cases, when the ambient light level is represented in the range of 0-100, the preset value A1 and the preset value A2 may be represented as 15×w11.
Wherein, the values of w1, w21, w22, w31 and w32 can be close to 1 or equal to 1, and w21 is larger than or equal to w22, and w31 is larger than or equal to w 32. The values of w21 and w31 may be greater than 1, for example, 1.1 and 1.2. The values of w22 and w32 may be less than 1, for example, 0.9, 0.8, etc. The values of w1, w21, and w31 may be different or the same (e.g., 1). The values of w1, w22 and w32 may be different or the same (e.g., 1). The embodiment of the present application is not limited thereto.
In the determination rule 1, the preset value A1 is greater than or equal to the preset value A2. The preset value B1 is greater than or equal to the preset value B2, and the preset value C1 is greater than or equal to the preset value C2. When one of the preset value A1, the preset value B1 and the preset value C1 is greater than the preset value A2, the preset value B2 and the preset value C2, the "strict entering and wide exiting" is indicated. For example, when the preset value C1 is greater than the preset value C2 and/or the preset value B1 is greater than the preset value B2, the "strict in and wide out" is indicated, that is, after the high dynamic scene is determined, the non-high dynamic scene is not cut in quickly. Or, after being determined as a non-high dynamic scene, the high dynamic scene is not cut in quickly. The problem of switching back and forth between high dynamic scenes and non-high dynamic scenes is avoided.
Determining rule 2: the electronic device may determine whether the shooting scene corresponding to the time a is a high dynamic scene based on the ambient light brightness corresponding to the time a and the dark area brightness corresponding to the time a.
Specifically, when the electronic device determines that the ambient light brightness corresponding to the time a is greater than or equal to the preset value A1 (for example, 15×w11), and the dark area brightness corresponding to the time a is greater than or equal to the preset value C1 (for example, 30×w31), the electronic device determines that the shooting scene corresponding to the time a is a high dynamic scene.
When the electronic device determines that the ambient light brightness corresponding to the time a is greater than or equal to the preset value A1 and the automatic dynamic compression range corresponding to the time a is smaller than the preset value C2 (for example, 30×w32), the electronic device determines that the shooting scene corresponding to the time a is a non-high dynamic scene.
Determining rule 3: and under the condition that the ambient light brightness corresponding to the electronic equipment determining time A is smaller than a preset value A2 (for example, 15 x w 11), the electronic equipment determining time A corresponds to a shooting scene which is a non-high dynamic scene. The preset value A2 is greater than or equal to the preset value A1.
Determining rule 4: under the condition that the electronic device determines that the shooting scene corresponding to the time A is a non-high dynamic scene based on the ambient light brightness corresponding to the time A and/or the automatic dynamic compression range corresponding to the time A, the electronic device can determine whether the shooting scene corresponding to the time A is a high dynamic scene or not based on the ambient light brightness corresponding to the time A and the dark area brightness corresponding to the time A again. The procedure is the same as the determination rule 2, and will not be described here again.
The process of determining that the shooting scene corresponding to the time a is a non-high dynamic scene based on the ambient light brightness corresponding to the time a and/or the automatic dynamic compression range corresponding to the time a by the electronic device may refer to the description of the determination rule 1-the determination rule 3, which is not repeated herein. Other determining methods may be used, for example, when it is determined that the ambient light brightness corresponding to the time a is less than the preset value A2, or the automatic dynamic compression range corresponding to the time a is less than the preset value C2, the electronic device determines that the shooting scene corresponding to the time a is a non-high dynamic scene. Then, the electronic device may determine whether the shooting scene corresponding to the time a is a high dynamic scene based on the ambient light brightness corresponding to the time a and the dark area brightness corresponding to the time a again. For example, specifically, when the electronic device determines that the ambient light intensity corresponding to the time a is greater than or equal to the preset value A1 (for example, 10×w11), and the dark area brightness corresponding to the time a is greater than or equal to the preset value C1 (for example, 30×w31), the electronic device determines that the shooting scene corresponding to the time a is a high dynamic scene.
It should be understood that the foregoing references 15, 3, and 30 are all illustrative, and in practical cases, other values may be used, which are not limited by the embodiment of the present application.
It should be understood here that in step S102, determination of rule 2 may be regarded as correction of determination rule 1. In the case of a decision rule 1 misjudgment, correction may be made based on a decision rule 2. For example, in a case where the photographing scene is a high dynamic scene but it is determined that the photographing scene is a non-high dynamic scene based on the determination rule 1, it may be determined that the photographing scene is a high dynamic scene again based on the determination rule 2.
This step S102 may be implemented based on the intelligent scene detection algorithm and its related modules as previously described. For specific description, reference may be made to the foregoing, for example, reference is made to the foregoing description of step 2, and details are not repeated here.
In the case where the electronic device determines that the shooting scene corresponding to the time a is a high dynamic scene, the following step S103 may be executed, where a high dynamic indication icon in the state 1 is displayed to prompt the user that the shooting scene is a high dynamic scene.
In the case where the electronic apparatus determines that the shooting scene corresponding to the time a is a non-highly dynamic scene, the following step S109 may be performed. At this time, the electronic device does not display the high dynamic indication icon in state 1.
S103, the electronic equipment displays the high dynamic indication icon in the state 1 in the user interface A, and acquires the image A.
The user interface a may be the user interface 32 shown in (3) of fig. 3A described above, or the user interface 33 shown in (4) of fig. 3A.
The high dynamic indication icon in state 1 may be the indication icon 321 shown in the user interface 32 or the user interface 33.
The high dynamic indication icon in the state 1 not only can prompt the user that the current shooting scene is a high dynamic scene. The electronic device may also be instructed to turn on the high dynamic video recording mode. The high dynamic indication icon in this state 1 may also be used to set the off high dynamic video recording mode.
S104, the electronic equipment processes the image A based on the iDCG mode, so that the image A presents a state A, wherein the state A comprises clear dark areas and normal exposure of bright areas.
And under the condition that the display state of the high dynamic indication icon is state 1, the electronic equipment can be indicated to start the high dynamic video recording mode. At this time, the electronic device may process the image a based on the iDCG mode. So that image a is a high dynamic range image.
S105a. in response to an operation for control a, the electronic device begins recording a video and processes a first N frames of images of the video based on the iDCG mode.
The control a may be the start video control referred to above.
In the event that the electronic device has turned on the high dynamic video recording mode, the electronic device may begin recording video in response to an operation (e.g., a click operation) for control a. Exemplary user interfaces involved in the electronic device at this time may be the user interface 41 shown in fig. 4 (1) and the user interface 42a shown in fig. 4 (2) described above.
Processing the first N frame images of the video based on the iDCG mode includes: in the process of starting to record the video, the electronic device may set an image mode corresponding to the previous N frame images acquired by the camera to an iDCG mode, that is, the electronic device may acquire the previous N frame images based on the iDCG mode. Then, a video is generated based on the previous N frame images acquired in the iDCG mode.
And S106a, determining a picture mode corresponding to other frame images of the video based on whether the shooting scene is a high dynamic scene, wherein the picture mode comprises iDCG mode processing and a binding mode.
The other frame image of the video may be the second frame image and subsequent images (subsequent images) related to the foregoing.
In some possible cases, the pattern of the map corresponding to the other frame image may be set by the electronic device according to whether the current shooting scene (e.g., time 11) is a high dynamic scene. If the shooting scene is a high dynamic scene at time 11, the image pattern corresponding to the image acquired at time 11 is an iDCG pattern. If the shooting scene is a non-high dynamic scene at time 11, the image pattern corresponding to the image acquired at time 11 is a binding pattern. The time 11 may be a time or a time period. The user interface displayed by the electronic device during the recording of the video may be referred to as user interface 37a shown in fig. 3C (2) described above.
Here, it should be understood that, in addition to the method involved in step S106a, the manner in which the electronic device sets the drawing mode corresponding to the other frame image of the video may also include other manners. For example: the graph mode corresponding to the other frame image may be determined by the electronic device according to whether the current shooting scene (e.g., time 11) is a high dynamic scene, in combination with the user setting. The process may refer to the description of case 13 as described above, and also to the description of (1) in fig. 3C and (3) in fig. 3C.
The high dynamic indication icon in the display state 1 of the electronic device can be used for prompting the user that the current scene is a high dynamic scene, and can be used for indicating the electronic device to start a high dynamic video recording mode. In the case of turning on the high dynamic video recording mode, the graphic mode of the electronic device may be set to the iDCG mode.
The subsequent user can set whether to start the high dynamic video recording mode through the high dynamic indication icon. The implementation of this process may refer to the description of the foregoing related content, and will not be repeated here. One case in which the high dynamic video recording mode is set to be turned off by the high dynamic indication icon may refer to the following description of step S105 b.
S105b. in response to the operation for the high dynamic indication icon in this state 1, the electronic device changes the display state of the high dynamic indication icon, and acquires the image B.
In response to an operation (e.g., a click operation) for the high dynamic indication icon in this state 1, the electronic device may change the display state of the high dynamic indication icon, at which point the electronic device may display the high dynamic indication icon in state 2.
The high dynamic indication icon in state 2 may be used to prompt the user that the current scene is a non-high dynamic scene, and may be used to indicate that the electronic device does not turn on (off) the high dynamic video recording mode. In the case of turning off the high dynamic video recording mode, the picture mode of the electronic device may be set to a binding mode.
An exemplary description of this step S105B may refer to the content and related description shown in (2) of fig. 3B and (1) of fig. 3C.
And S106B, the electronic equipment processes the image B based on the binding mode, so that the image B presents a state B, and the state B is different from the state A.
And under the condition that the display state of the high dynamic indication icon is state 2, the electronic equipment can be indicated to be closed in the high dynamic video recording mode. At this time, the electronic device may process the image B based on the binding mode.
It should be understood herein that, subsequently, in a case where the electronic device determines that the shooting scene is a high dynamic scene, the electronic device may turn on the high dynamic video recording mode again in response to an operation for the high dynamic indication icon in this state 2.
S107, in response to the operation of the control A, the electronic device starts recording the video, and processes the first N frames of images of the video based on the binding mode.
The control a may be the start video control referred to above.
In the event that the electronic device has turned off the high dynamic video recording mode, the electronic device may begin recording video in response to an operation (e.g., a click operation) for control a. Exemplary user interfaces involved in the electronic device at this time may be the user interface 36 shown in fig. 3C (1) and the user interface 37a shown in fig. 3C (2) described above. Alternatively, the user interface 36 shown in fig. 3C (1) and the user interface 37b shown in fig. 3C (3) may be mentioned.
Processing the first N frames of images of the video based on the binding mode includes: in the process of starting to record the video, the electronic device may set a mapping mode corresponding to the previous N frame images acquired by the camera to a binding mode, that is, the electronic device may acquire the previous N frame images based on the binding mode. Then, a video is generated based on the previous N frame images acquired in the binding mode.
S108, determining a picture mode corresponding to other frame images of the video based on whether the shooting scene is a high dynamic scene or not, wherein the picture mode comprises iDCG mode processing and a binding mode.
This step S108 is the same as the above step S106a, and reference is made to the above description of step S106a, which is not repeated here.
S109, the electronic equipment does not display the high dynamic indication icon in the user interface A, and acquires an image C.
And under the condition that the electronic equipment determines that the shooting scene corresponding to the time A is a non-high dynamic scene, the electronic equipment does not display the high dynamic indication icon in the user interface A.
S110, the electronic equipment processes the image C based on the binding mode.
And under the condition that the high dynamic indication icon is not displayed, the electronic equipment can be indicated to close the high dynamic video recording mode. At this time, the electronic device may process the image C based on the binding mode.
The subsequent electronic device may perform step S107 and subsequent steps to generate a video.
In the embodiment of the application, compared with the mode for switching from the video recording mode to the high-dynamic video recording mode through the electronic equipment, the method and the device can automatically switch from the video recording mode to the high-dynamic video recording mode based on whether the shooting scene is the high-dynamic scene or not.
After entering the high dynamic video mode, the electronic device may display a high dynamic indication icon of state 1. The user can set whether to turn on the high dynamic video recording mode based on the dynamic indication icon.
The accuracy of determining whether the shooting scene is a high dynamic scene is improved: specifically, compared to a manner of determining whether a shooting scene is a high dynamic scene based on the ambient light level and the automatic dynamic compression range. The application also provides a mode for determining whether the shooting scene corresponding to the time A is a high dynamic scene or not based on the ambient light brightness, the automatic dynamic compression range and the dark area brightness. And correcting the determination result of the automatic dynamic compression range by the parameter of the brightness of the dark area.
An exemplary electronic device provided by an embodiment of the present application is described below.
Fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
The embodiment will be specifically described below with reference to an electronic device as an example. It should be understood that an electronic device may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The electronic device may include: processor 110, external memory interface 120, internal memory 121, universal serial bus (universal serial bus, USB) interface 130, charge management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headset interface 170D, sensor module 180, keys 190, motor 191, indicator 192, camera 193, display 194, and subscriber identity module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It should be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device. In other embodiments of the application, the electronic device may include more or less components than illustrated, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller can be a neural center and a command center of the electronic device. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, and the like.
It should be understood that the connection relationship between the modules illustrated in the embodiments of the present application is only illustrative, and does not limit the structure of the electronic device. In other embodiments of the present application, the electronic device may also use different interfacing manners, or a combination of multiple interfacing manners in the foregoing embodiments.
The charge management module 140 is configured to receive a charge input from a charger.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110.
The wireless communication function of the electronic device may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals.
The mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G, etc. applied on an electronic device.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area networks (wireless local area networks, WLAN), such as wireless fidelity (wireless fidelity, wi-Fi) networks, bluetooth (BT), etc., as applied to electronic devices.
In some embodiments, the antenna 1 and the mobile communication module 150 of the electronic device are coupled, and the antenna 2 and the wireless communication module 160 are coupled, so that the electronic device can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include the global system for mobile communications (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), etc.
The electronic device implements display functions via a GPU, a display screen 194, an application processor, and the like.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel.
The electronic device may implement shooting functions through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
The ISP is used to process data fed back by the camera 193. For example, when photographing, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electric signal, and the camera photosensitive element transmits the electric signal to the ISP for processing and is converted into an image visible to naked eyes. ISP can also optimize the noise, brightness and color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in the camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a Complementary Metal Oxide Semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transferred to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV, or the like format. In some embodiments, the electronic device may include 1 or N cameras 193, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. For example, when the electronic device selects a frequency bin, the digital signal processor is used to fourier transform the frequency bin energy, and so on.
Video codecs are used to compress or decompress digital video.
The NPU is a neural-network (NN) computing processor, and can rapidly process input information by referencing a biological neural network structure, for example, referencing a transmission mode between human brain neurons, and can also continuously perform self-learning.
The internal memory 121 may include one or more random access memories (random access memory, RAM) and one or more non-volatile memories (NVM).
The electronic device may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playing, recording, etc.
The proximity light sensor 180G may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device emits infrared light outwards through the light emitting diode. The electronic device uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it may be determined that an object is in the vicinity of the electronic device. When insufficient reflected light is detected, the electronic device may determine that there is no object in the vicinity of the electronic device. The electronic device may detect that the user holds the electronic device near the ear to talk using the proximity light sensor 180G, so as to automatically extinguish the screen for power saving purposes. The proximity light sensor 180G may also be used in holster mode, pocket mode to automatically unlock and lock the screen.
The ambient light sensor 180L is used to sense the ambient light level (the illumination intensity of the photographing environment). The electronic device can adaptively adjust the brightness of the display 194 based on the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust white balance when taking a photograph. Ambient light sensor 180L may also cooperate with proximity light sensor 180G to detect if the electronic device is in a pocket to prevent false touches.
The touch sensor 180K, also referred to as a "touch panel". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is for detecting a touch operation acting thereon or thereabout. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display 194. In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device at a different location than the display 194.
The keys 190 include a power-on key, a volume key, etc. The keys 190 may be mechanical keys. Or may be a touch key. The electronic device may receive key inputs, generating key signal inputs related to user settings and function controls of the electronic device.
The motor 191 may generate a vibration cue.
The indicator 192 may be an indicator light, may be used to indicate a state of charge, a change in charge, a message indicating a missed call, a notification, etc.
In the embodiment of the present application, the processor 110 may invoke the computer instructions stored in the internal memory 121, so that the electronic device executes the graph mode switching method in the embodiment of the present application.
The above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the application.
As used in the above embodiments, the term "when …" may be interpreted to mean "if …" or "after …" or "in response to determination …" or "in response to detection …" depending on the context. Similarly, the phrase "at the time of determination …" or "if detected (a stated condition or event)" may be interpreted to mean "if determined …" or "in response to determination …" or "at the time of detection (a stated condition or event)" or "in response to detection (a stated condition or event)" depending on the context.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk), etc.
Those of ordinary skill in the art will appreciate that implementing all or part of the above-described method embodiments may be accomplished by a computer program to instruct related hardware, the program may be stored in a computer readable storage medium, and the program may include the above-described method embodiments when executed. And the aforementioned storage medium includes: ROM or random access memory RAM, magnetic or optical disk, etc.

Claims (14)

1. A graph mode switching method, the method comprising:
the electronic device starts a camera;
the electronic equipment displays a high dynamic indication icon in a first state; the high dynamic indication icon in the first state is used for indicating that the shooting scene is a high dynamic scene and is also used for indicating that the electronic equipment starts a high dynamic video recording mode; the high dynamic video recording mode is started and used for indicating the electronic equipment to acquire images based on a first image mode;
in response to an operation of the high dynamic indication icon for the first state, the electronic device changes the high dynamic indication icon for the first state to a high dynamic indicator for a second state; the high dynamic indication icon in the second state is used for indicating that the shooting scene is a high dynamic scene and is also used for indicating that the electronic equipment closes the high dynamic video recording mode; the closed high-dynamic video recording mode is used for indicating the electronic equipment to acquire images based on a second image drawing mode; the second pattern of drawings is different from the first pattern of drawings; the first and second modes of drawing are used to indicate the manner in which the camera outputs an image.
2. The method according to claim 1, wherein the method further comprises:
and after the electronic equipment starts the camera, in a preset time after the high dynamic indication icon in the first state is displayed for the first time, the electronic equipment further displays prompt information, and the prompt information is used for prompting that the shooting scene is the high dynamic scene.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
in the case of displaying the high dynamic indication icon in the second state, the electronic device further displays a first control;
responsive to operation of the first control, the electronic device begins recording video.
4. A method according to any of claims 1-3, wherein before the electronic device displays the high dynamic indicator of the first state, the method further comprises:
in response to an operation of the high dynamic indication icon for the second state, the electronic device changes a display state of the high dynamic indication icon for the second state to a first state.
5. The method of any of claims 1-4, wherein after the electronic device begins recording video, the method further comprises:
The electronic device acquires an image based on the second graph mode;
the electronic device generates a video using the image acquired based on the second pattern of drawings.
6. The method according to any one of claims 1-5, further comprising:
the electronic equipment acquires the first N frames of images after video recording starts based on the second graph mode;
the electronic equipment determines a graph mode corresponding to a subsequent image based on whether the current shooting scene is a high dynamic scene or not; the subsequent image is an image after an N-th frame acquired after video recording is started;
under the condition that the shooting scene is determined to be a high dynamic scene, the electronic equipment acquires the subsequent image based on the first graph mode;
and under the condition that the shooting scene is determined to be a non-high dynamic scene, the electronic equipment acquires the subsequent image based on the first graph mode.
7. The method according to any of claims 1-6, wherein the electronic device displays a high dynamic indicator of a first state, in particular comprising:
the electronic equipment determines that a shooting scene corresponding to first time is a high dynamic scene based on exposure parameters corresponding to the first time; the first time is a time before the electronic device displays a high dynamic indicator icon of the first state.
8. The method of claim 7, wherein the exposure parameters include an ambient light level corresponding to the first time, the ambient light level being indicative of an illumination intensity within a field angle range of the electronic device at the first time; the exposure parameters further comprise an automatic dynamic compression range corresponding to the first time and dark area brightness corresponding to the first time; the automatic dynamic compression range is used for indicating the brightness difference value between a target bright area and a target dark area in the image acquired at the first time, wherein the target bright area comprises pixels with the largest sum of continuous T color channel values in the image acquired at the first time; the target dim light area comprises pixels with minimum sum of continuous T color channel values in the image acquired at the first time; the dark area brightness is used for indicating the average brightness value of all pixel colors in the image acquired at the first time, wherein the average brightness value is smaller than a preset color channel value.
9. The method of claim 8, wherein the electronic device determines, based on the exposure parameter corresponding to the first time, that the shooting scene corresponding to the first time is a high dynamic scene, specifically comprising:
Determining that the ambient light brightness corresponding to the first time is greater than or equal to a first preset value, and determining that a shooting scene corresponding to the first time is a high dynamic scene by the electronic equipment under the condition that the automatic dynamic compression range corresponding to the first time is greater than or equal to a second preset value; or alternatively;
and under the condition that the ambient light brightness corresponding to the first time is larger than or equal to a first preset value and the dark area brightness corresponding to the first time is larger than or equal to a third preset value, the electronic equipment determines that the shooting scene corresponding to the first time is a high dynamic scene.
10. The method of claim 8, wherein the electronic device determines, based on the exposure parameter corresponding to the first time, that the shooting scene corresponding to the first time is a high dynamic scene, specifically comprising:
when the shooting scene corresponding to the first time is determined to be a non-high dynamic scene based on the ambient light brightness corresponding to the first time and the automatic dynamic compression range corresponding to the first time, the electronic equipment determines that the shooting scene corresponding to the first time is a high dynamic scene based on the condition that the ambient light brightness corresponding to the first time is greater than or equal to a first preset value and the dark area brightness corresponding to the first time is greater than or equal to a third preset value.
11. The method of claim 10, wherein determining that the first time-corresponding captured scene is a non-highly dynamic scene based on the first time-corresponding ambient light level and the first time-corresponding automatic dynamic compression range, specifically comprises:
determining that the shooting scene corresponding to the first time is a non-high dynamic scene by the electronic equipment under the condition that the ambient light brightness corresponding to the first time is smaller than the fourth preset value or the automatic dynamic compression range corresponding to the first time is smaller than a fifth preset value; the fourth preset value is smaller than the first preset value, or the fifth preset value is smaller than the second preset value.
12. The method according to any one of claims 1-11, further comprising:
the electronic equipment obtains an image based on the first graph mode, and a first electronic device is in an on state; the first image pattern acquires an image by using the first electronic device;
the electronic device is in a closed state when acquiring an image based on the second graph mode.
13. An electronic device, comprising: one or more processors and memory; the memory is coupled with the one or more processors, the memory for storing computer program code comprising computer instructions that the one or more processors invoke to cause the electronic device to perform the method of any of claims 1-12.
14. A computer readable storage medium comprising instructions which, when run on an electronic device, cause the electronic device to perform the method of any one of claims 1-12.
CN202310127613.0A 2023-02-06 2023-02-06 Picture mode switching method and electronic equipment Pending CN117119291A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310127613.0A CN117119291A (en) 2023-02-06 2023-02-06 Picture mode switching method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310127613.0A CN117119291A (en) 2023-02-06 2023-02-06 Picture mode switching method and electronic equipment

Publications (1)

Publication Number Publication Date
CN117119291A true CN117119291A (en) 2023-11-24

Family

ID=88793550

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310127613.0A Pending CN117119291A (en) 2023-02-06 2023-02-06 Picture mode switching method and electronic equipment

Country Status (1)

Country Link
CN (1) CN117119291A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117472316A (en) * 2023-12-13 2024-01-30 荣耀终端有限公司 Display control method, electronic equipment, storage medium and chip system

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150070570A1 (en) * 2013-09-09 2015-03-12 Apple Inc. Adaptive Auto Exposure and Dynamic Range Compensation
CN106550190A (en) * 2016-10-31 2017-03-29 努比亚技术有限公司 A kind of camera control method and device
WO2018130596A1 (en) * 2017-01-12 2018-07-19 Connaught Electronics Ltd. Method for operating a camera in dependency on a current state of an environmental region of the camera, camera, and motor vehicle
US20180284979A1 (en) * 2017-03-28 2018-10-04 Samsung Electronics Co., Ltd. Electronic device and control method thereof
CN109639996A (en) * 2019-01-23 2019-04-16 努比亚技术有限公司 High dynamic scene imaging method, mobile terminal and computer readable storage medium
US20190230273A1 (en) * 2016-09-05 2019-07-25 Lg Electronics Inc. Hdr image capturing device and control method therefor
WO2020063179A1 (en) * 2018-09-30 2020-04-02 Oppo广东移动通信有限公司 Data processing method and apparatus, and electronic device and storage medium
CN111263079A (en) * 2020-02-18 2020-06-09 Oppo广东移动通信有限公司 Image processing method, image processing device, storage medium and electronic equipment
WO2020125410A1 (en) * 2018-12-17 2020-06-25 华为技术有限公司 Image processing method and electronic device
CN111815804A (en) * 2020-06-30 2020-10-23 中国第一汽车股份有限公司 Control method, device, equipment and storage medium
CN112532857A (en) * 2019-09-18 2021-03-19 华为技术有限公司 Shooting method and equipment for delayed photography
WO2021052292A1 (en) * 2019-09-18 2021-03-25 华为技术有限公司 Video acquisition method and electronic device
CN113645408A (en) * 2021-08-12 2021-11-12 荣耀终端有限公司 Photographing method, photographing apparatus, storage medium, and computer program product
WO2022148446A1 (en) * 2021-01-08 2022-07-14 华为技术有限公司 Image processing method and apparatus, device, and storage medium
CN115526787A (en) * 2022-02-28 2022-12-27 荣耀终端有限公司 Video processing method and device
CN115550541A (en) * 2022-04-22 2022-12-30 荣耀终端有限公司 Camera parameter configuration method and electronic equipment
CN115564659A (en) * 2022-02-28 2023-01-03 荣耀终端有限公司 Video processing method and device

Patent Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150070570A1 (en) * 2013-09-09 2015-03-12 Apple Inc. Adaptive Auto Exposure and Dynamic Range Compensation
US20190230273A1 (en) * 2016-09-05 2019-07-25 Lg Electronics Inc. Hdr image capturing device and control method therefor
CN106550190A (en) * 2016-10-31 2017-03-29 努比亚技术有限公司 A kind of camera control method and device
WO2018130596A1 (en) * 2017-01-12 2018-07-19 Connaught Electronics Ltd. Method for operating a camera in dependency on a current state of an environmental region of the camera, camera, and motor vehicle
US20180284979A1 (en) * 2017-03-28 2018-10-04 Samsung Electronics Co., Ltd. Electronic device and control method thereof
WO2020063179A1 (en) * 2018-09-30 2020-04-02 Oppo广东移动通信有限公司 Data processing method and apparatus, and electronic device and storage medium
WO2020125410A1 (en) * 2018-12-17 2020-06-25 华为技术有限公司 Image processing method and electronic device
CN109639996A (en) * 2019-01-23 2019-04-16 努比亚技术有限公司 High dynamic scene imaging method, mobile terminal and computer readable storage medium
CN112532857A (en) * 2019-09-18 2021-03-19 华为技术有限公司 Shooting method and equipment for delayed photography
WO2021052292A1 (en) * 2019-09-18 2021-03-25 华为技术有限公司 Video acquisition method and electronic device
US20220247929A1 (en) * 2019-09-18 2022-08-04 Huawei Technologies Co., Ltd. Time-lapse shooting method and device
CN111263079A (en) * 2020-02-18 2020-06-09 Oppo广东移动通信有限公司 Image processing method, image processing device, storage medium and electronic equipment
CN111815804A (en) * 2020-06-30 2020-10-23 中国第一汽车股份有限公司 Control method, device, equipment and storage medium
WO2022148446A1 (en) * 2021-01-08 2022-07-14 华为技术有限公司 Image processing method and apparatus, device, and storage medium
CN113645408A (en) * 2021-08-12 2021-11-12 荣耀终端有限公司 Photographing method, photographing apparatus, storage medium, and computer program product
CN115526787A (en) * 2022-02-28 2022-12-27 荣耀终端有限公司 Video processing method and device
CN115564659A (en) * 2022-02-28 2023-01-03 荣耀终端有限公司 Video processing method and device
CN115550541A (en) * 2022-04-22 2022-12-30 荣耀终端有限公司 Camera parameter configuration method and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117472316A (en) * 2023-12-13 2024-01-30 荣耀终端有限公司 Display control method, electronic equipment, storage medium and chip system

Similar Documents

Publication Publication Date Title
EP3893491A1 (en) Method for photographing the moon and electronic device
US9357127B2 (en) System for auto-HDR capture decision making
CN113630558B (en) Camera exposure method and electronic equipment
CN108040204B (en) Image shooting method and device based on multiple cameras and storage medium
CN115604572B (en) Image acquisition method, electronic device and computer readable storage medium
EP4280586A1 (en) Point light source image detection method and electronic device
CN115526787B (en) Video processing method and device
CN116055897B (en) Photographing method and related equipment thereof
CN116320771B (en) Shooting method and electronic equipment
CN116074634B (en) Exposure parameter determination method and device
CN117119291A (en) Picture mode switching method and electronic equipment
WO2024032033A1 (en) Video processing method and electronic device
CN115426449B (en) Photographing method and terminal
WO2022267608A1 (en) Exposure intensity adjusting method and related apparatus
CN115631250B (en) Image processing method and electronic equipment
CN115705663B (en) Image processing method and electronic equipment
CN115526786B (en) Image processing method and related device
CN116048323B (en) Image processing method and electronic equipment
CN117119295B (en) Camera control method and electronic device
CN116095476B (en) Camera switching method and device, electronic equipment and storage medium
WO2023160220A1 (en) Image processing method and electronic device
CN116029914B (en) Image processing method and electronic equipment
CN116095509B (en) Method, device, electronic equipment and storage medium for generating video frame
WO2023077938A1 (en) Video frame generation method and apparatus, electronic device, and storage medium
EP4344241A1 (en) Image processing method and electronic device

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