Equipment control method and device, display equipment, storage medium and electronic equipment
By displaying specific images on the target screen set on the same plane of the camera for filling light, the problem of uneven filling light of the existing flash is solved, and better light distribution and shooting effects are achieved.
Patent Information
- Application Number
- CN202410045452.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-11
- Publication Date
- 2025-07-11
AI Technical Summary
The existing flash-dependent fill light method is difficult to meet the user's shooting needs, resulting in too strong or uneven light, loss of image details, and unable to provide an ideal fill light effect.
The pre-specified target image is displayed on the target screen set on the camera and the same plane. The target image emits a specific style of light for filling light, and the filling light effect is improved using the larger display size and adjustable light style of the target screen.
Through the fill light solution of the target screen, a uniform light source can be provided for more areas, meeting users' shooting needs, and increasing the fun of the image and photo effects.
Smart Images

Figure CN120302162A_ABST
Abstract
Description
Technical Field
[0001] The technical solution of the present disclosure relates to the technical field of mobile devices, and in particular, to a device control method, apparatus, display device, storage medium, and electronic device. Background Art
[0002] Many current electronic devices are equipped with cameras for taking pictures, such as cameras in devices like mobile phones and tablets. When using these cameras to take pictures, in order to provide better shooting light for users, a flash is usually set around the camera to supplement light during the image acquisition process.
[0003] However, the existing light supplement method relying on the flash often fails to fully meet the needs of users. Therefore, a better light supplement solution needs to be provided for users. Summary of the Invention
[0004] In view of this, the present disclosure provides a device control method, apparatus, display device, storage medium, and electronic device to provide a better light supplement effect.
[0005] According to the first aspect of the embodiments of the present disclosure, a device control method is provided, including:
[0006] When the electronic device is in a preset shooting mode, start the target screen of the electronic device; the preset shooting mode is used to start the target camera for image acquisition; the target screen and the target camera are arranged on the same plane;
[0007] Display a pre-specified target image on the target screen; the target screen emits light of a specific pattern through the target image.
[0008] According to the second aspect of the embodiments of the present disclosure, a device control apparatus is provided, the apparatus including:
[0009] A start module, configured to start the target screen of the electronic device when the electronic device is in a preset shooting mode; the preset shooting mode is used to start the target camera for image acquisition; the target screen and the target camera are arranged on the same plane;
[0010] A display module, configured to display a pre-specified target image on the target screen; the target screen emits light of a specific pattern through the target image.
[0011] According to the third aspect of the embodiments of the present disclosure, a display device is provided, the display device including:
[0012] A target camera, configured to perform image acquisition when the electronic device is in a preset shooting mode;
[0013] A target screen disposed on the same plane as the target camera, configured to display a pre-specified target image, so as to emit light of a specific pattern through the target image.
[0014] According to a fourth aspect of the embodiments of the present disclosure, an electronic device is provided, including:
[0015] A processor;
[0016] A memory for storing instructions executable by the processor;
[0017] Wherein, the processor is configured to implement the steps of any of the device control methods in the first aspect by running the executable instructions.
[0018] According to a fifth aspect of the embodiments of the present disclosure, a non-transitory computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the steps of any of the device control methods in the first aspect are implemented.
[0019] The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:
[0020] When the electronic device is in a preset shooting mode, the target camera of the electronic device performs image acquisition. At this time, by starting the target screen disposed on one side of the target camera, the position where the target camera shoots can be filled with light.
[0021] Furthermore, by displaying a pre-specified target image on the target screen, light of a specific pattern can be emitted according to the pattern and the color of the pattern in the target image.
[0022] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present disclosure, and are used together with the specification to explain the principles of the present disclosure.
[0024] Figure 1 is a schematic diagram of a device control method shown according to an exemplary embodiment of the present disclosure;
[0025] Figure 2 is a schematic diagram of another device control method shown according to an exemplary embodiment of the present disclosure;
[0026] Figure 3 is a flowchart of a device control method shown according to an exemplary embodiment of the present disclosure;
[0027] Figure 4 It is an architecture diagram of another device control method shown according to an exemplary embodiment of the present disclosure;
[0028] Figure 5 It is a schematic diagram of another device control method shown according to an exemplary embodiment of the present disclosure;
[0029] Figure 6 It is a schematic diagram of another device control method shown according to an exemplary embodiment of the present disclosure;
[0030] Figure 7 It is a flowchart of another device control method shown according to an exemplary embodiment of the present disclosure;
[0031] Figure 8a It is a flowchart of another device control method shown according to an exemplary embodiment of the present disclosure;
[0032] Figure 8b It is a flowchart of another device control method shown according to an exemplary embodiment of the present disclosure;
[0033] Figure 9 It is a flowchart of another device control method shown according to an exemplary embodiment of the present disclosure;
[0034] Figure 10 It is a schematic structural diagram of a device control device shown according to an exemplary embodiment of the present disclosure;
[0035] Figure 11 It is a schematic structural diagram of an electronic device shown according to an exemplary embodiment of the present disclosure. Detailed Embodiments
[0036] Here, the exemplary embodiments will be described in detail, and the examples are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0037] The terms used in the present disclosure are only for the purpose of describing specific embodiments and are not intended to limit the present disclosure. The singular forms "a", "the", and "said" used in the present disclosure and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more of the associated listed items.
[0038] It should be understood that although the terms first, second, third, etc. may be used in this disclosure to describe various information, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from each other. For example, without departing from the scope of this disclosure, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "when" or "while" or "in response to a determination".
[0039] As the usage scenarios of electronic devices such as mobile phones by users gradually increase, many electronic devices usually have a screen on one side of the camera. For example Figure 1 The shown foldable screen mobile phone (which can also be replaced with a straight phone), has a screen 101 (inner screen) on the front and a screen 102 (outer screen, also known as the auxiliary screen) on the back.
[0040] After folding the foldable screen mobile phone, the back of the foldable screen mobile phone is as Figure 2 shown, it can be seen that a camera 103 (rear camera) is provided in the screen 102, and the screen 102 and the camera 103 (rear camera) are in the same plane. Here, the back of the foldable screen mobile phone (the screen 101 can be ignored) is mainly used for schematic illustration.
[0041] When the user wants to take a photo through the camera in the mobile phone, there may be a situation where the light is too dim. To solve this problem, a flash is usually provided near the camera, and the flash is turned on while the camera is turned on to supplement the light at the shooting position.
[0042] Through practice, it is found that flash light supplementation usually has the following disadvantages:
[0043] The light of the flash is too strong, which may cause problems such as overexposure or too heavy shadows, thus losing the details of the image. Moreover, the light of the flash is not uniform enough, which may result in a situation where part of the shooting area is brighter and part of the shooting area is darker.
[0044] Therefore, the images obtained by the user in the scenario of flash light supplementation are usually not ideal.
[0045] Based on this, the present disclosure provides a device control method. When the electronic device is in a preset shooting mode, it is considered that the user wants to start the target camera for image acquisition. At this time, the target screen in the same plane as the target camera is started together, so that the target image can be displayed on the target screen to supplement the light at the shooting position of the target camera.
[0046] On the one hand, compared with the flash, the target screen has a larger display size, so it can provide light sources for more areas and improve the fill light effect. On the other hand, the target image displayed on the target screen is pre-specified, so specific styles of light can be emitted according to the user's needs. For example, when the target image is a red picture, the target screen can emit a red light source, making the captured image more festive. For another example, if there is a specific pattern (such as a starry sky pattern) in the target image, the captured image will be more dreamy, which can increase the fun of taking pictures and meet the user's shooting needs.
[0047] The following is a detailed introduction:
[0048] Figure 3 is a flowchart of a device control method shown by the present disclosure according to an exemplary embodiment. As Figure 3 shown, the method includes:
[0049] Step 301, when the electronic device is in a preset shooting mode, start the target screen of the electronic device; the preset shooting mode is used to start the target camera for image acquisition; the target screen and the target camera are arranged on the same plane.
[0050] The preset shooting mode at least includes: starting the target camera of the electronic device for image acquisition, the target camera and the target screen are arranged on the same plane. At this time, by starting the target screen, the area captured by the target camera can be filled with light through the target screen.
[0051] When the electronic device is Figure 2 such a folding screen mobile phone as shown, the preset shooting mode is to start the camera 103 (target camera) for image acquisition. At this time, it is also necessary to start the screen 102 as the target screen for fill light.
[0052] In the embodiment of the present disclosure, the target camera is started after the user starts the shooting software. At this time, the electronic device obtains the application information of the shooting software (instructions for starting the target camera, etc.) through the frameworks layer (framework layer, Frameworks Layer), and the frameworks layer can also obtain the information detected by the sensors in the electronic device. Then, the frameworks layer will write this information into the HAL layer (hardware abstraction layer, Hardware Abstraction Layer).
[0053] Among them, the HAL layer is a software layer that provides an interface between the operating system or application and the hardware. Its main purpose is to hide the complexity and differences of the underlying hardware and provide a unified, stable and easy-to-use interface for the upper-layer software.
[0054] Here, the HAL layer mainly forwards the status or instructions written by the Frameworks layer to the Kernel layer, enabling the Kernel layer to control the startup or shutdown of the physical layer (the target screen).
[0055] Figure 4 It is an architecture diagram of another device control method shown by the present disclosure according to an exemplary embodiment, which can be combined with Figure 4 to understand the relationships among the above layers. Among them, the labels in the figure correspond to the following contents:
[0056] 401 is the Frameworks layer, 402 is the HAL layer, 403 is the Kernel layer, and 404 is the physical layer. Among them, the target screen of the physical layer 404 can be a CMD screen.
[0057] It can be seen that after determining whether the electronic device is in the preset shooting mode, the Frameworks layer writes the status of the preset shooting mode or the status of the non-preset shooting mode into the interface or node provided by the HAL layer. Then the HAL layer further forwards it to the Kernel layer, enabling the Kelnel layer to control the target screen to display (or turn off) the target image and to turn on or off the screen. The operations of controlling the target screen to enter the low-power mode and turning off at least one screen will be described in detail in subsequent embodiments, and here it can be understood as the startup and shutdown of the screen.
[0058] Step 302, display a pre-specified target image on the target screen; the target screen emits light of a specific style through the target image.
[0059] The target image here is at least one pre-determined image. For example, it can be an image with a specific pattern (such as a starry sky image) specified by the user, or a solid-color image of a specific color (such as a pure white image, a pure red image); it can also be a fill light image automatically determined by the system according to the automatically recognized (or user-selected) shooting scene. For example, when the system recognizes that a person is currently being photographed (in the scene of photographing a person), the determined fill light image is a pure white image; it can also be a set of images (including images added by the user to the image group and / or default images provided by the system) provided to the user after determining a specific shooting scene, allowing the user to select the target image.
[0060] Here, after determining the target image, the Frameworks layer will draw this target image as follows: adjust this icon image according to the interface size used to display this target image on the target screen and perform corresponding detail supplementation, so as to obtain a target image with higher accuracy and better adaptation to the interface size used to display this target image on the target screen.
[0061] After that, the frameworks layer will send the drawn image to the HAL layer, enabling the Kernel layer to read the drawn target image from the HAL layer and control the target screen to display the drawn target image.
[0062] By displaying a pre-specified target image on the target screen, it can help users customize and adjust the fill light style and fill light pattern, enhancing the fun of taking pictures.
[0063] As the scenarios of users using electronic devices such as mobile phones gradually increase, many manufacturers have started to produce electronic devices with multiple screens. Such electronic devices are usually configured with multiple screens, and these screens can provide interactive functions for users in different scenarios in turn.
[0064] Take this type of foldable screen mobile phone that folds up and down ( Figure 1 the mobile phone shown) as an example. When the mobile phone is not folded, the user mainly interacts through the inner screen. After folding the inner screen of the mobile phone up and down, the inner screen is folded up. At this time, the user interacts through the outer screen.
[0065] However, in the above solution, when one screen is activated, the other screen is always in an idle state, which results in a problem of low utilization rate of multiple screens.
[0066] Therefore, in an optional embodiment, for such an electronic device with multiple display screens, when the electronic device is in a preset shooting mode, it includes:
[0067] An image captured by the target camera is displayed in the viewfinder of the electronic device, and the viewfinder and the target screen are disposed on different planes.
[0068] For an electronic device with multiple display screens, the viewfinder is one of the display screens. For example, the inner screen of a foldable screen mobile phone (or the front screen of a non-foldable straight mobile phone) can be used as the viewfinder, and the outer screen of a foldable screen mobile phone (or the screen on other planes with a camera of a non-foldable straight mobile phone) can be used as the target screen.
[0069] Take Figure 1 as an example. When capturing an image through a camera (target camera) on the same plane as screen 102, usually the image captured in real time by the target camera will be displayed on the inner screen (screen 101) of the mobile phone, thereby helping the user adjust the shooting angle, shooting object, magnification, and so on.
[0070] Normally, since the user will watch screen 101 and not watch screen 102, screen 102 will not be activated. However, the present disclosure can provide a better fill light solution by using screen 102 as the target screen to display the target image.
[0071] Optionally, when the electronic device is a foldable screen device, the viewfinder is the foldable screen of the electronic device;
[0072] When the electronic device is in a preset shooting mode, it further includes:
[0073] The foldable screen is folded into a preset posture.
[0074] At this time, the electronic device needs to meet two conditions to be considered in the preset shooting mode. That is, Condition 1: The foldable screen is folded into a preset posture (assuming the included angle between the foldable screens is 90°); Condition 2: The target camera is activated for shooting (the viewfinder displays the image collected by the target camera).
[0075] Figure 5 It is a schematic diagram of another device control method shown by the present disclosure according to an exemplary embodiment. Figure 5 The shown foldable screen device can be considered to be folded into a preset posture. At this time, the foldable screen (inner screen) of the foldable screen device 100 is folded into two screens (screen 1011 and screen 1012) in different planes, and the outer screen (screen 102) is not affected by the folding.
[0076] When the electronic device 100 executes according to the preset shooting mode, the user can execute shooting in the Figure 6 way. It can be seen that in this preset shooting mode, the user actually uses the foldable screen device as a DV for shooting. At this time, the camera 103 activates the image acquisition function, the screen 102 displays the target image, the user views the image collected by the camera 103 in real time on the screen 1012 and the screen 1011 (not shown in the figure), and can change the shooting parameters (such as the magnification factor, field of view, etc., and can also be to change the target image displayed on the screen 102) through the controls displayed on the screen 1011 or the screen 1012.
[0077] Figure 7 It is a flowchart of another device control method shown by the present disclosure according to an exemplary embodiment. As Figure 7 shown, when performing step 302 to display a pre-specified target image on the target screen, it includes the following steps:
[0078] Step 701, display the target image on the target screen.
[0079] Step 702, in response to receiving a low-power operation instruction, control the target screen to enter the low-power mode.
[0080] The low-power mode is set to reduce the operating power consumption of the target screen. During the process of image acquisition by the target camera, if the target screen is always kept running, a relatively high operating power is required. Therefore, the target screen can be set to operate in the low-power mode. For example, some functions (such as the communication function) can be turned off, or the target image can be displayed in a low-power manner.
[0081] For example, the low-power mode can be the first low-power mode or the second low-power mode, and the first low-power mode and the second low-power mode are respectively used to turn off at least some functions.
[0082] Exemplarily, controlling the target screen to enter the low-power mode includes the following two methods:
[0083] Method 1: In response to determining that the electronic device is still in the preset shooting mode, control the target screen to enter the first low-power mode. The target screen is the screen in the command mode, and the screen in the command mode is configured with a storage space for storing the target image. The target screen starts the first function and turns off the second function in the first low-power mode. The first function includes the function of continuously displaying the target image pre-stored in the storage space, and the second function includes the function of obtaining the target image to be updated.
[0084] After the target image is displayed on the target screen of the electronic device, in order to save the power of the electronic device (especially the power consumed by the target screen to display the target image), control the target screen to turn off at least some functions.
[0085] In the present disclosure, taking the target screen as the screen in the command mode (also called the Command screen) as an example for introduction:
[0086] Among them, in the CMD (Command) screen or a similar text mode interface, images are not directly displayed in a pixel-by-pixel manner as in the graphical user interface (GUI). Instead, they are usually simulated by text characters and ANSI control sequences (a standard for outputting formatted text in the console), or pictures cannot be directly displayed at all. When the target image is to be displayed on the CMD screen, there is usually a program responsible for reading the image file and converting it into a format that can be displayed in the text mode, such as ASCII or other character combinations. This process requires software instructions to drive.
[0087] Once the picture is converted and displayed on the CMD screen, as long as the power supply of the CMD screen hardware is not interrupted, even if other layers (the frameworks layer, the HAL layer, and the Kernel layer) stop sending new pictures or update commands, the content already displayed on the screen (such as the text representation of the last target image) usually remains unchanged. This is because the screen content in text mode is static unless there are new instructions to change it.
[0088] Therefore, even if other layers (the frameworks layer, the HAL layer, and the Kernel layer) stop sending new pictures or update commands, as long as the CMD screen remains powered and no other program overwrites or refreshes the displayed content, the last target image (actually its text simulation form) will continue to stay on the screen.
[0089] Therefore, the functions of the CMD screen are divided into the following two functions:
[0090] The first function: the function of continuously displaying the acquired target image (that is, the function of continuously displaying the target image pre-stored in the storage space).
[0091] The second function: the function of communicating with other layers and acquiring a new target image (the function for acquiring the target image to be updated).
[0092] Based on this principle, when the target screen of the present disclosure is the CMD screen, after the target screen receives the target image, the communication between the target screen and other layers can be cut off (that is, the second function is turned off), and only the first function is started. In this way, it can not only ensure that the target screen can always display the target image, but also reduce the power consumption of the target screen. At this time, it is considered that the target screen enters the first low-power mode.
[0093] Or in the second method, in response to determining that the electronic device exits the preset shooting mode, control the target screen to enter the second low-power mode; the target screen turns off all functions in the second low-power mode.
[0094] After the target screen displays the target image, without switching the mode of the electronic device, it will always operate in the first low-power mode as described above.
[0095] However, in some unexpected situations, even if the electronic device is indeed in the preset shooting mode, the HAL layer may misidentify the mode of the electronic device (mistakenly thinking that it has not entered the preset shooting mode). For example, the background program personnel directly set the status used by the HAL layer to indicate whether it is in the preset shooting mode to: non-preset shooting mode.
[0096] At this time, although the frameworks layer detects that the electronic device is in the preset shooting mode, the state of the "preset shooting mode" detected by the frameworks layer cannot be successfully written to the HAL layer. Therefore, the state of the "non-preset shooting mode" in the HAL layer cannot be changed. At this time, the HAL layer and the Kernel layer will still continue to execute in the state of the "non-preset shooting mode".
[0097] Therefore, the Kernel layer will determine that the electronic device exits the preset shooting mode and control the target screen to enter the second low-power mode.
[0098] In the present disclosure, in order to prevent the target screen from operating incorrectly in the above unexpected situation, the second low-power mode is set to a mode in which all functions of the target screen are turned off.
[0099] The target screen here can be a CMD screen or other screens. Regardless of the type of the target screen, it has the functions of receiving the target image and continuously displaying the target image. At this time, all functions can be directly turned off.
[0100] Suppose the target screen is a CMD screen, then the first function (the function of continuously displaying the target image through the characteristics of the CMD screen itself) and the second function (the function of communicating with other layers to update the target image) can be turned off.
[0101] Figure 8a is a flowchart of another device control method shown according to an exemplary embodiment of the present disclosure. As Figure 8a shown, when the frameworks layer (401) detects that the electronic device is in the preset shooting mode, it will generate a first instruction, a second instruction, and a third instruction. Usually, the first instruction and the second instruction are generated first, and then the third instruction is generated. That is, the third instruction is later in time than the first instruction and the second instruction.
[0102] And write the first instruction, the second instruction, the third instruction, and the state of the preset shooting mode to the HAL layer (402). The HAL layer (402) forwards the first instruction, the second instruction, the third instruction, and the state of the preset shooting mode to the Kernel layer (403). When the Kernel layer receives the state of the preset shooting mode, it will control the target screen of the physical layer (404) to display the target image according to the received first instruction and second instruction.
[0103] Subsequently, after the Kernel layer receives the third instruction, since it is still in the state of the preset shooting mode at this time, the first low-power mode will be started.
[0104] Figure 8b is a flowchart of another device control method shown according to an exemplary embodiment of the present disclosure. AsFigure 8b As shown, although the frameworks layer detects that the electronic device is still in the preset shooting mode at this time, the state cannot be changed to: the preset shooting mode (for example, the developer always sets the state to: non-preset shooting mode). At this time, when the Kernel layer receives the third instruction, it will control the target screen to start the second low-power mode.
[0105] Optionally, when the electronic device is a foldable screen device, the method further includes the following steps:
[0106] When it is determined that the electronic device exits the preset shooting mode, at least one screen is turned off.
[0107] Since the preset shooting mode needs to meet two conditions: being in a preset posture and the target camera performing image acquisition. Therefore, there are two ways to exit the preset shooting mode:
[0108] Way 1: The electronic device stops performing image acquisition.
[0109] For example, when it is determined that the viewfinder exits the image acquisition interface and the foldable screen is still in the preset posture, the target screen is turned off.
[0110] That is, in the case where the user closes the camera software, the viewfinder will exit the image acquisition interface. Since the user does not change the folding angle of the foldable product, the foldable screen is still in the preset posture. That is, in the form of the electronic device as shown in Figure 5 However, the target camera of the electronic device does not perform image acquisition. At this time, only user interaction will be performed through the inner screen (screen 1011 and screen 1012). Therefore, screen 102 (the outer screen, the target screen in the present disclosure) will be turned off.
[0111] The shutdown here means that the screen enters the second low-power mode (turning off all functions).
[0112] Way 2: When the foldable screen is folded into a posture different from the preset posture, it is determined to exit the preset shooting mode.
[0113] At this time, the user changes the posture of the foldable screen device, and the foldable screen device will be adjusted to a posture different from the preset posture (for example, the first posture or the second posture).
[0114] Since the two conditions for the preset shooting mode are: being adjusted to the preset posture and the target camera performing image acquisition.
[0115] Therefore, regardless of whether the user exits the camera software or not, since the posture of the electronic device no longer meets the preset posture in the preset shooting conditions, the electronic device will exit the preset shooting mode.
[0116] At this time, it is not necessary to start both screens (the target screen and the folding screen where the viewfinder is located), and only one of the screens needs to be started.
[0117] Therefore, according to the differences between the first state and the second state, different screens can be turned off according to the following two situations:
[0118] Situation 1: When it is determined that the folding screen is folded into the first posture, turn off the target screen.
[0119] The first posture is the posture shown in Figure 1 (the posture when the folding screen device is unfolded, also called the unfolded state), and the second posture is the posture shown in Figure 2 (the posture when the folding screen device is completely folded, also called the folded state).
[0120] When the folding screen is folded into the first posture, it is considered that the user wants to use the folding screen of the mobile phone (the user views the inner screen, that is, the usage direction shown in Figure 1 ). At this time, the target screen (the outer screen, Figure 1 screen 102 in) can be directly turned off.
[0121] Situation 2: When it is determined that the folding screen is folded into the second posture, turn off the folding screen; when the target screen is in the low-power mode, control the target screen to enter the normal operation mode.
[0122] The target screen entering the normal operation mode means starting all functions of the target screen. It should be noted that the second posture here is different from the aforementioned first posture.
[0123] When the folding screen is folded into the second posture shown in Figure 2 , the inner screen has been folded inside (to a position where it cannot be viewed). At this time, it is impossible to interact with the user through the inner screen. Therefore, it is necessary to turn off the inner screen (the folding screen), and set the target screen (the outer screen, Figure 1 and Figure 2 screen 102 in) to operate normally.
[0124] In Situation 2, since the target screen is controlled to enter the low-power mode in step 702, when the target screen operates normally, the target screen may enter the first low-power mode or the second low-power mode. Therefore, two different solutions are also required here to restore the normal operation of the target screen (exit the low-power mode) to start different functions, specifically as follows:
[0125] Method 1: When the target screen is in the first low-power mode, start the second function of the target screen; the second function includes the function of obtaining the target image to be updated.
[0126] In the first low-power mode, only the second function of the target screen is turned off. Therefore, the second function can be directly started at this time, and the target screen can start all functions (the first function and the second function).
[0127] Or in the second method, when the target screen is in the second low-power mode, start the first function and the second function of the target screen; the target screen is the screen in the command mode, and the screen in the command mode is configured with a storage space for storing the target image, and the first function includes the function of continuously displaying the target image pre-stored in the storage space.
[0128] In the second low-power mode, the target screen not only turns off the second function but also the first function. Therefore, it is necessary to start the first function and the second function of the target screen to make the target screen enter the normal operation mode.
[0129] Figure 9 It is a flowchart of another device control method shown by the present disclosure according to an exemplary embodiment. As Figure 9 shown, when the frameworks layer detects that the electronic device is in a non-preset shooting mode, it will write the state of the non-preset shooting mode to the HAL layer. At this time, the frameworks layer will also detect the device posture. When it is determined that the device posture is the first posture (expanded state), the user will interact with the screen on the viewfinder side. Therefore, the target screen can be turned off, and at this time, a fourth instruction to turn off the target screen is generated.
[0130] When the device posture is the second posture (folded state), the user cannot see the screen on the viewfinder side and can only interact through the target screen. Therefore, a fifth instruction to turn off the viewfinder and a sixth instruction to make the target screen operate normally are generated.
[0131] Write the fourth instruction, the fifth instruction, and the sixth instruction to the HAL layer. The HAL layer forwards them to the Kernel layer. After receiving the fourth instruction, the Kernel layer directly turns off the target screen.
[0132] After receiving the fifth instruction and the sixth instruction, the Kernel layer turns off the viewfinder (inner screen), and then controls the target screen to operate normally.
[0133] The normal operation here means exiting the low-power mode and starting all functions of the target screen. Therefore, different functions need to be started according to different low-power modes, which have been described in detail in the foregoing embodiments and will not be elaborated here.
[0134] For the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations. However, those skilled in the art should know that the present disclosure is not limited by the described action sequence, because according to the present disclosure, certain steps can be performed in other sequences or simultaneously.
[0135] Secondly, those skilled in the art should also know that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily essential to the present disclosure.
[0136] Corresponding to the foregoing method embodiments for implementing application functions, the present disclosure also provides an embodiment of a device control device and a corresponding terminal.
[0137] Figure 10 is a schematic structural diagram of a device control device shown according to an exemplary embodiment of the present disclosure, as Figure 10 shown, the device control device includes:
[0138] A start module 1001, configured to start a target screen of the electronic device when the electronic device is in a preset shooting mode; the preset shooting mode is used to start a target camera for image acquisition; the target screen and the target camera are disposed on the same plane.
[0139] A display module 1002, configured to display a pre-specified target image on the target screen; the target screen emits light of a specific style through the target image.
[0140] Optionally, the electronic device being in the preset shooting mode includes:
[0141] An image captured by the target camera is displayed in a viewfinder of the electronic device, and the viewfinder and the target screen are disposed on different planes.
[0142] Optionally, the viewfinder is a folding screen of the electronic device.
[0143] The electronic device being in the preset shooting mode further includes:
[0144] The folding screen is folded into a preset posture.
[0145] Optionally, when the display module 1002 is configured to display a pre-specified target image on the target screen, it is configured to:
[0146] Display a target image on the target screen.
[0147] In response to receiving a low-power operation instruction, control the target screen to enter a low-power mode.
[0148] Optionally, when the display module 1002 is used to control the target screen to enter the low-power mode, it is configured to:
[0149] In response to determining that the electronic device is still in the preset shooting mode, control the target screen to enter the first low-power mode. The target screen is the screen in the command mode, and the screen in the command mode is configured with a storage space for storing the target image. The target screen starts the first function and closes the second function in the first low-power mode. The first function includes the function of continuously displaying the target image pre-stored in the storage space, and the second function includes the function of obtaining the target image to be updated.
[0150] Optionally, when the display module 1002 is used to control the target screen to enter the low-power mode, it is configured to:
[0151] In response to determining that the electronic device exits the preset shooting mode, control the target screen to enter the second low-power mode; the target screen closes all functions in the second low-power mode.
[0152] Optionally, the device further includes:
[0153] A closing module, configured to close at least one screen when it is determined that the electronic device exits the preset shooting mode.
[0154] Optionally, when the closing module is used to close at least one screen when it is determined that the electronic device exits the preset shooting mode, it is configured to:
[0155] When the folding screen is folded into a posture different from the preset posture, it is determined that the preset shooting mode is exited.
[0156] Optionally, when the closing module is used to close at least one screen, it is configured to:
[0157] When it is determined that the folding screen is folded into the first posture, close the target screen.
[0158] Optionally, when the closing module is used to close at least one screen, it is configured to:
[0159] When it is determined that the folding screen is folded into the second posture, close the folding screen.
[0160] When the target screen is in the low-power mode, control the target screen to enter the normal operation mode.
[0161] Optionally, when the closing module is used to control the target screen to enter the normal operation mode when the target screen is in the low-power mode, it is configured to:
[0162] When the target screen is in the first low-power mode, start the second function of the target screen; the second function includes the function of obtaining the target image to be updated.
[0163] Alternatively, when the target screen is in the second low-power mode, start the first function and the second function of the target screen; the target screen is a screen in the command mode, and the screen in the command mode is configured with a storage space for storing the target image, and the first function includes the function of continuously displaying the target image pre-stored in the storage space.
[0164] Optionally, when the closing module is used to close at least one screen when it is determined that the electronic device exits the preset shooting mode, it is used for:
[0165] When it is determined that the viewfinder exits the image acquisition interface and the folding screen is still in the preset posture, close the target screen.
[0166] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can be referred to the partial description of the method embodiment. The device embodiments described above are only illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the present disclosure solution. Those of ordinary skill in the art can understand and implement it without creative work.
[0167] Optionally, the embodiments of the present disclosure provide a display device, and the display device includes:
[0168] A target camera for image acquisition when the electronic device is in the preset shooting mode.
[0169] A target screen arranged on the same plane as the target camera, for displaying a pre-specified target image to emit specific-style light through the target image.
[0170] Exemplarily, the above display device may be as Figure 2 shown.
[0171] Optionally, the display device further includes:
[0172] A folding screen arranged on a different plane from the target screen, for displaying the image acquired by the target camera; the folding screen is folded into a preset posture in the preset shooting mode.
[0173] That is, at this time Figure 2 it isFigure 1 The device after the folding screen device shown is folded.
[0174] Correspondingly, an embodiment of the present disclosure provides an electronic device, including: a processor; a memory for storing instructions executable by the processor; wherein, the processor is configured to implement the steps of any of the above device control methods by running the executable instructions.
[0175] Figure 11 It is a schematic structural diagram of an electronic device shown by the present disclosure according to an exemplary embodiment. For example, the electronic device 1100 may be a user device, and may specifically be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, a wearable device such as a smart watch, smart glasses, a smart bracelet, smart running shoes, etc.
[0176] Referring to Figure 11 , the electronic device 1100 may include one or more of the following components: a processing component 1102, a memory 1104, a power supply component 1106, a multimedia component 1108, an audio component 1110, an input / output (I / O) interface 1112, a sensor component 1114, and a communication component 1116.
[0177] The processing component 1102 generally controls the overall operation of the electronic device 1100, such as operations associated with display, telephone calls, data communication, camera operations, and recording operations. The processing component 1102 may include one or more processors 1120 to execute instructions to complete all or part of the steps of the above method. In addition, the processing component 1102 may include one or more modules to facilitate the interaction between the processing component 1102 and other components. For example, the processing component 1102 may include a multimedia module to facilitate the interaction between the multimedia component 1108 and the processing component 1102.
[0178] The memory 1104 is configured to store various types of data to support the operation of the device 1100. Examples of these data include instructions for any application or method operating on the electronic device 1100, contact data, phone book data, messages, pictures, videos, etc. The memory 1104 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, a magnetic disk, or an optical disk.
[0179] The power supply component 1106 provides power for various components of the electronic device 1100. The power supply component 1106 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 1100.
[0180] The multimedia component 1108 includes a screen that provides an output interface between the above-mentioned electronic device 1100 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The above-mentioned touch sensors can not only sense the boundaries of touch or swipe actions, but also detect the duration and pressure associated with the above-mentioned touch or swipe operations. In some embodiments, the multimedia component 1108 includes a front camera and / or a rear camera. When the electronic device 1100 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera can be a fixed optical lens system or have a focal length and optical zoom capabilities.
[0181] The audio component 1110 is configured to output and / or input audio signals. For example, the audio component 1110 includes a microphone (MIC) that is configured to receive external audio signals when the electronic device 1100 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the memory 1104 or transmitted via the communication component 1116. In some embodiments, the audio component 1110 further includes a speaker for outputting audio signals.
[0182] The I / O interface 1112 provides an interface between the processing component 1102 and the peripheral interface module, and the above-mentioned peripheral interface module can be a keyboard, a click wheel, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
[0183] The sensor assembly 1114 includes one or more sensors for providing status assessment of various aspects for the electronic device 1100. For example, the sensor assembly 1114 can detect the on / off state of the electronic device 1100, the relative positioning of components, such as the display and keypad of the electronic device 1100 mentioned above. The sensor assembly 1114 can also detect a change in the position of the electronic device 1100 or a component of the electronic device 1100, the presence or absence of user contact with the electronic device 1100, the orientation or acceleration / deceleration of the electronic device 1100, and the temperature change of the electronic device 1100. The sensor assembly 1114 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 1114 can also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1114 can also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0184] The communication component 1116 is configured to facilitate communication between the electronic device 1100 and other devices in a wired or wireless manner. The electronic device 1100 can access a wireless network based on communication standards, such as WiFi, 4G or 5G, 4G LTE, 5G NR, or a combination thereof. In an exemplary embodiment, the communication component 1116 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1116 further includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0185] In an exemplary embodiment, the electronic device 1100 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above methods.
[0186] In an exemplary embodiment, a non-transitory computer-readable storage medium is also provided, such as a memory 1104 including instructions, which, when executed by the processor 1120 of the electronic device 1100, enable the electronic device 1100 to perform any of the above device control methods.
[0187] The non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0188] Other embodiments of the present disclosure will be readily apparent to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include known or customary technical means in the art not disclosed herein. The specification and examples are only to be considered as exemplary, and the true scope and spirit of the present disclosure are pointed out by the following claims.
[0189] It should be understood that the present disclosure is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present disclosure is only limited by the appended claims.
Claims
1. A device control method, characterized in that, Including: When the electronic device is in a preset shooting mode, start the target screen of the electronic device; The preset shooting mode is used to start the target camera for image acquisition; The target screen and the target camera are arranged on the same plane; Display a pre-specified target image on the target screen; The target screen emits light of a specific style through the target image.
2. The method according to claim 1, characterized in that, The electronic device being in the preset shooting mode includes: An image captured by the target camera is displayed in the viewfinder of the electronic device, and the viewfinder and the target screen are arranged on different planes.
3. The method according to claim 2, wherein The viewfinder is a foldable screen of the electronic device; When the electronic device is in the preset shooting mode, it further includes: The foldable screen is folded into a preset posture.
4. The method according to claim 1, wherein The displaying a pre-specified target image on the target screen includes: Display a target image on the target screen; In response to receiving a low-power operation instruction, control the target screen to enter a low-power mode.
5. The method according to claim 4, wherein The controlling the target screen to enter the low-power mode includes: In response to determining that the electronic device is still in the preset shooting mode, control the target screen to enter a first low-power mode. The target screen is a screen in the command mode, and the screen in the command mode is configured with a storage space for storing the target image. The target screen starts a first function and closes a second function in the first low-power mode. The first function includes the function of continuously displaying the target image pre-stored in the storage space, and the second function includes the function of obtaining the target image to be updated.
6. The method according to claim 4, characterized in that The controlling the target screen to enter the low-power mode includes: In response to determining that the electronic device exits the preset shooting mode, control the target screen to enter a second low-power mode; the target screen closes all functions in the second low-power mode.
7. The method according to claim 3, wherein The method further includes: When it is determined that the electronic device exits the preset shooting mode, turn off at least one screen.
8. The method according to claim 7, characterized in that, The determining that the electronic device exits the preset shooting mode includes: When the foldable screen is folded into a posture different from the preset posture, determine to exit the preset shooting mode.
9. The method according to claim 8, wherein The turning off at least one screen includes: When it is determined that the foldable screen is folded into a first posture, turn off the target screen.
10. The method according to claim 8, wherein The turning off at least one screen includes: When it is determined that the foldable screen is folded into a second posture, turn off the foldable screen; When the target screen is in the low-power mode, control the target screen to enter the normal operation mode.
11. The method according to claim 10, wherein The controlling the target screen to enter the normal operation mode when the target screen is in the low-power mode includes: When the target screen is in the first low-power mode, start the second function of the target screen; the second function includes the function of obtaining the target image to be updated; Alternatively, when the target screen is in the second low-power mode, the first function and the second function of the target screen are started; the target screen is a screen in the command mode, and the screen in the command mode is configured with a storage space for storing the target image, and the first function includes the function of continuously displaying the target image pre-stored in the storage space.
12. The method according to claim 7, characterized in that When it is determined that the electronic device exits the preset shooting mode, turning off at least one screen includes: When it is determined that the viewfinder exits the image acquisition interface and the folding screen is still in the preset posture, turning off the target screen.
13. A device control device, characterized in that, The device includes: A start module, configured to start the target screen of the electronic device when the electronic device is in the preset shooting mode; the preset shooting mode is used to start the target camera for image acquisition; the target screen and the target camera are arranged on the same plane; A display module, configured to display a pre-specified target image on the target screen; the target screen emits light of a specific style through the target image.
14. A display device, characterized in that, The display device includes: A target camera, configured to perform image acquisition when the electronic device is in the preset shooting mode; A target screen arranged on the same plane as the target camera, configured to display a pre-specified target image to emit light of a specific style through the target image.
15. The display device according to claim 14, wherein It further includes: A folding screen arranged on a different plane from the target screen, configured to display the image acquired by the target camera; The folding screen is folded into a preset posture in the preset shooting mode.
16. An electronic device, characterized in that, It includes: A processor; A memory for storing processor-executable instructions; Wherein, the processor is configured to implement the steps of the method according to any one of claims 1 to 12 by running the executable instructions.
17. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, the steps of the method according to any one of claims 1 to 12 are implemented.