Electronic device control method and electronic device
By providing multiple shutter controls in the camera application of electronic devices and adjusting their positions according to user operations, the problem of inconvenient operation of fixed shutters in special scenes is solved and the user experience is improved.
Patent Information
- Application Number
- CN202111679966.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-31
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-12-31
AI Technical Summary
In some special scenarios, the fixed shutter position of the electronic device is inconvenient for users to operate and affects the user experience.
By providing multiple shutter controls in the camera app and adjusting their position according to user operations, ensure that there are touch-friendly shutter controls at different rotation angles.
It improves the user's operational convenience and experience when shooting, ensuring that no matter how the device is rotated, it can provide a convenient shooting method.
Smart Images

Figure CN116437193B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal technology, and in particular to a control method of an electronic device and the electronic device. Background Art
[0002] The camera function is a common function of electronic devices. Usually, the camera has a fixed shutter in the shooting interface, and the user can take photos or videos by triggering the fixed shutter. However, in some special scenarios, the position of the fixed shutter is not convenient for the user to operate, thereby affecting the user experience. Summary of the invention
[0003] The present application provides a control method of an electronic device and an electronic device, which can provide multiple shutters at different positions in the interface of a camera application according to user operations, thereby improving the user experience when shooting.
[0004] In order to achieve the above objectives, this application adopts the following technical solutions:
[0005] In a first aspect, an embodiment of the present application provides a control method for an electronic device, the method comprising: the electronic device displays a first interface of a first application, the first interface comprising: an image captured in real time by a camera of the electronic device and a first control displayed at a first position, wherein a first angle is provided between the first side of the electronic device and the direction of gravity; the electronic device can continuously detect the user's operation, and when a first operation of the user on the first control is detected, the electronic device captures a first image through the camera; the electronic device receives a second operation of the user on the electronic device, so that a second angle is provided between the first side of the electronic device and the direction of gravity, and the second angle is different from the first angle; the electronic device responds to the second operation, the electronic device displays a second interface, the second interface comprising: an image captured in real time by the camera of the electronic device and a second control displayed at a second position, and the second position is different from the first position; the electronic device may also capture a second image through the camera when a third operation of the user on the second control is detected.
[0006] That is to say, when the first side of the electronic device has a first angle with the direction of gravity, the electronic device includes a first control in the interface of the first application; when the user rotates the electronic device so that the first side of the electronic device has a second angle with the direction of gravity, the electronic device includes, in addition to the first control, a second control with the same function as the first control in the interface of the first application.
[0007] It can be seen that in the above embodiment, after the user performs the second operation on the electronic device, the electronic device can display two controls with different positions but the same functions in the interface of the first application, and the user can choose any one of them to perform the operation, thereby facilitating user use and providing a better user experience.
[0008] In a possible implementation manner, the second interface may also include the first control.
[0009] In one possible implementation, the first application runs in a photo taking mode; a third operation of the user on the third control is detected; in response to the third operation, the electronic device switches the first application to a video recording mode; in the video recording mode, the electronic device detects a fourth operation of the user on the first control, the electronic device captures a first video through the camera, and displays a third interface, the third interface comprising: a fourth control and a fifth control, the position of the fourth control is the same as that of the first control, and the position of the fifth control is the same as that of the second control; the electronic device detects a fifth operation of the user on the sixth control, the electronic device stops capturing the first video, and displays a fourth interface, the fourth interface comprising: the first control displayed at the first position and the second control displayed at the second position.
[0010] In a possible implementation manner, a difference between the second angle and the first angle may be 90°.
[0011] In a possible implementation, after the electronic device displays the second interface in response to the second operation, the electronic device may also detect a fourth operation of the user on the second control; in response to the fourth operation, the second control is displayed at a third position, wherein the third position is different from the first position and the second position.
[0012] In a possible implementation, after the second control is displayed at the third position in response to the fourth operation, the electronic device may also receive a fifth operation, and after receiving the fifth operation of the user on the electronic device, the first side of the electronic device has a first angle with the direction of gravity; in response to the fifth operation, the electronic device displays a fifth interface, and the fifth interface includes: an image captured in real time by the camera of the electronic device and the first control displayed at the first position; the electronic device may also receive a sixth operation, and after receiving the sixth operation of the user on the electronic device, the first side of the electronic device has a second angle with the direction of gravity; in response to the sixth operation, the electronic device displays a sixth interface, and the sixth interface includes: an image captured in real time by the camera of the electronic device and the second control displayed at the third position.
[0013] In a possible implementation, after the second control is displayed at the third position in response to the fourth operation, the electronic device may also exit the first application, and in response to the user's seventh operation, the electronic device displays a seventh interface, which does not belong to the first application; the electronic device may also re-enter the first application, and in response to the user's eighth operation, the electronic device displays an eighth interface of the first application, the eighth interface comprising: an image captured in real time by the camera of the electronic device and the first control displayed at the first position, wherein there is a first angle between the first side of the electronic device and the direction of gravity; in response to the user's ninth operation, the electronic device displays a ninth interface, and the ninth interface comprises: an image captured in real time by the camera of the electronic device and the second control displayed at the third position.
[0014] In a possible implementation, the electronic device may also, in response to a tenth operation on the first interface, display a tenth interface, the tenth interface including a first option and a second option, the first option being selected; in response to an eleventh operation on the tenth interface, select the second option; when the second option is selected, the electronic device displays an eleventh interface of the first application, the eleventh interface including: an image captured in real time by a camera of the electronic device, a first control displayed at the first position, and a second control displayed at the fourth position, wherein a first angle is formed between the first side of the electronic device and the direction of gravity; after receiving a twelfth operation of the user on the electronic device, a second angle is formed between the first side of the electronic device and the direction of gravity, and the electronic device displays a twelfth interface, the twelfth interface including: an image captured in real time by the camera of the electronic device, a first control displayed at the first position, and a second control displayed at the fourth position.
[0015] In a possible implementation, the electronic device is a folding screen electronic device, which is in an unfolded state, and after receiving a thirteenth operation on the electronic device by the user, the electronic device changes from the unfolded state to a folded state; the electronic device displays a thirteenth interface of the first application in the folded state, and the thirteenth interface includes: an image captured in real time by a camera of the electronic device and a first control displayed at the first position, wherein a first angle is formed between the first side of the electronic device and the direction of gravity; after receiving a fourteenth operation on the electronic device by the user, a second angle is formed between the first side of the electronic device and the direction of gravity, and the electronic device displays a fourteenth interface, and the fourteenth interface includes: an image captured in real time by the camera of the electronic device and the first control displayed at the first position.
[0016] In a possible implementation manner, the second control may have the same style as the first control.
[0017] In a possible implementation manner, the second control may be smaller than the first control.
[0018] In a possible implementation manner, the transparency of the second control may be greater than 0.
[0019] In a possible implementation, after detecting a first operation of the user on the first control, the second control and the first control may display the same animation; and after detecting a third operation of the user on the second control, the second control and the first control may display the same animation.
[0020] In a second aspect, an embodiment of the present application provides an electronic device, comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein when the computer program instructions are executed by the processor, the electronic device is triggered to execute a control method for an electronic device as described in any one of the first aspects.
[0021] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, which includes a stored program, wherein when the program is running, the device where the computer-readable storage medium is located is controlled to execute the control method of the electronic device as described in any one of the first aspects.
[0022] In a fourth aspect, an embodiment of the present application provides a computer program product, which includes executable instructions. When the executable instructions are executed on a computer, the computer executes the control method of an electronic device as described in any one of the first aspects.
[0023] It can be understood that the electronic device described in the second aspect, the computer-readable storage medium described in the third aspect, and the computer program product described in the fourth aspect are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 A schematic diagram of an application scenario provided for an embodiment of the present application;
[0025] Figure 2 A schematic diagram of the structure of a mobile phone provided in an embodiment of the present application;
[0026] Figure 3 A schematic diagram of a foldable electronic device in an unfolded state provided by an embodiment of the present application;
[0027] Figure 4a A schematic diagram of a graphical user interface of a first electronic device provided in an embodiment of the present application;
[0028] Figure 4b A schematic diagram of a graphical user interface of a second electronic device provided in an embodiment of the present application;
[0029] Figure 5 A schematic diagram of a graphical user interface of a third electronic device provided in an embodiment of the present application;
[0030] Figure 6a A schematic diagram of a graphical user interface of a fourth electronic device provided in an embodiment of the present application;
[0031] Figure 6b A schematic diagram of a graphical user interface of a fifth electronic device provided in an embodiment of the present application;
[0032] Figure 6c A schematic diagram of a graphical user interface of a sixth electronic device provided in an embodiment of the present application;
[0033] Figure 6d A schematic diagram of a graphical user interface of a seventh electronic device provided in an embodiment of the present application;
[0034] Figure 7a A schematic diagram of a graphical user interface of an eighth electronic device provided in an embodiment of the present application;
[0035] Figure 7b A schematic diagram of a graphical user interface of a ninth electronic device provided in an embodiment of the present application;
[0036] Figure 7c A schematic diagram of a graphical user interface of a tenth electronic device provided in an embodiment of the present application;
[0037] Figure 7d A schematic diagram of a graphical user interface of an eleventh electronic device provided in an embodiment of the present application;
[0038] Figure 7e A schematic diagram of a graphical user interface of a twelfth electronic device provided in an embodiment of the present application;
[0039] Figure 7f A schematic diagram of a graphical user interface of a thirteenth electronic device provided in an embodiment of the present application;
[0040] Figure 7g A schematic diagram of a graphical user interface of a fourteenth electronic device provided in an embodiment of the present application;
[0041] Figure 7hA schematic diagram of a graphical user interface of a fifteenth electronic device provided in an embodiment of the present application;
[0042] Figure 8a A schematic diagram of a graphical user interface of a sixteenth electronic device provided in an embodiment of the present application;
[0043] Figure 8b A schematic diagram of a graphical user interface of a seventeenth electronic device provided in an embodiment of the present application;
[0044] Figure 8c A schematic diagram of a graphical user interface of an eighteenth electronic device provided in an embodiment of the present application;
[0045] Fig. 9 A schematic diagram of a graphical user interface of a nineteenth electronic device provided in an embodiment of the present application;
[0046] Fig.10 A flowchart of a control method of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0047] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.
[0048] In the following, the terms "first", "second", and "third" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first", "second", and "third" may explicitly or implicitly include one or more of the features.
[0049] The shooting method provided in the embodiments of the present application can be applied to terminal devices such as mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (AR) / virtual reality (VR) devices, laptop computers, ultra-mobile personal computers (UMPC), netbooks, personal digital assistants (PDA), etc. The embodiments of the present application do not impose any restrictions on the specific types of terminal devices.
[0050] For example, Figure 1 1 is a schematic diagram of the structure of an example of a terminal device 100 provided in an embodiment of the present application. The terminal device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0051] It is understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0052] The software system of the terminal device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The present application embodiment takes the Android system of the layered architecture as an example to exemplify the software structure of the terminal device 100.
[0053] Figure 2 1 is a software structure diagram of the terminal device 100 of the embodiment of the present application. The layered architecture divides the software into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, namely, the application layer, the application framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer. The application layer can include a series of application packages.
[0054] like Figure 2As shown, the application package may include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.
[0055] The application framework layer provides application programming interface (API) and programming framework for the applications in the application layer. The application framework layer includes some predefined functions. Figure 2 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
[0056] Android runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.
[0057] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.
[0058] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0059] The system library may include multiple functional modules, such as surface manager, media libraries, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0060] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
[0061] The hardware layer can include various types of sensors, such as Figure 1 The various types of sensors introduced in the present application include acceleration sensors, gravity sensors, touch sensors, etc.
[0062] Combined with the above Figure 1 and Figure 2The electronic device introduced, in the embodiment of the present application, the physical components involved in the electronic device 100 mainly include hardware components such as sensors, decision support systems (DSS) display chips, touch screens, fingerprint recognition modules, etc.; as well as kernel software layers such as screen management modules, display drivers, fingerprint drivers, and anti-mistouch; application framework layer functions such as anti-mistouch input, screen control, always on display (AOD) services, power management, etc.; as well as application layer services such as special adaptation applications (camera), third-party applications, system sleep, and AOD.
[0063] The following is an exemplary description of the workflow of the software and hardware of the electronic device 100 in conjunction with the shooting method of the embodiment of the present application. The shooting method provided in the embodiment of the present application is mainly implemented by the mutual cooperation between the touch panel (TP) module and the above-mentioned one or more physical components and the various layers of the software architecture layer of the electronic device 100.
[0064] Among them, the TP module receives the user's touch operation on the touch display screen, and transmits the user's touch operation to the physical state recognition module of the system library, which is monitored by the physical state monitoring module to identify the user's touch operation, etc. The physical state monitoring module transmits the user's touch operation to the state machine management module of the electronic device, and controls the window management system of the FWK layer through the state machine management module, thereby controlling a series of actions and displays of the electronic device.
[0065] In addition, the implementation of the entire process also requires the collaborative participation of multiple other modules and sensors, such as the skin module of the application layer, which is used to control the touch screen display interface, etc., which will not be repeated in this application.
[0066] For ease of understanding, the following embodiments of the present application will be described in detail with Figure 1 and Figure 2 Taking the electronic device with the structure shown as an example, the shooting method provided in this application is specifically described in combination with the accompanying drawings and application scenarios.
[0067] First, the four interface layouts of 0°, 90°, 180° and 270° mentioned in the following embodiments are explained. When a user holds an electronic device, there is also an actual rotation angle, which is used to describe the rotation angle of the electronic device in the clockwise direction. The electronic device can collect the actual rotation angle through a gravity sensor and determine the current interface layout based on the collected actual rotation angle. As an example, there can be a direct mapping relationship between the interface layout and the actual rotation angle, as shown in Table 1 below.
[0068] Table 1
[0069] Interface layout Actual rotation angle 0° 345° to 0° and 0° to 75° 90° 75° to 165° 180° 165° to 255° 270° 255° to 345°
[0070] In the example of Table 1, regardless of whether the electronic device rotates clockwise or counterclockwise, when the actual rotation angle of the electronic device is between 345° and 0° or between 0° and 75°, the interface layout of the electronic device is 0°. Similarly, when the actual rotation angle of the electronic device is between 75° and 165°, the interface layout of the electronic device is 90°; when the actual rotation angle of the electronic device is between 165° and 255°, the interface layout of the electronic device is 180°; when the actual rotation angle of the electronic device is between 255° and 345°, the interface layout of the electronic device is 270°. It should be noted that the mapping relationship between the interface layout and the actual rotation angle shown in Table 1 is only for example. For different sensors or different electronic devices, the corresponding relationship between the interface layout and the actual rotation angle may be different, which will not be repeated here.
[0071] As another example, there may be an indirect mapping relationship between the interface layout and the actual rotation angle, as shown in Table 2 below.
[0072] Table 2
[0073] Interface layout Rotation Status Actual rotation angle 0° First State 345° to 0° and 0° to 75° 90° Second State 75° to 165° 180° The third state 165° to 255° 270° Fourth State 255° to 345°
[0074] In the example of Table 2, there is a certain mapping relationship between the actual rotation angle and the rotation state. Each rotation state corresponds to an interface layout. The gravity sensor detects the rotation state of the electronic device, and then the current interface layout of the electronic device can be found.
[0075] Figure 3 A schematic diagram of a foldable electronic device in an unfolded state is shown, the foldable electronic device may include a first screen 303 and a second screen 304, the foldable electronic device may be folded along dotted lines 301 and 302, when the folding angle of the foldable electronic device is less than a preset angle, that is, when the electronic device is in a folded state, the first screen 303 or the second screen 304 may be displayed as a screen alone, when the folding angle of the foldable electronic device is greater than a preset angle, that is, when the electronic device is in an unfolded state, the first screen 303 and the second screen 304 may be displayed together as a screen, wherein the first screen 303 and the second screen 304 may be two independent screens in physical structure, or may be two parts of the same screen. The application scenarios in the following embodiments are described by taking a foldable electronic device as an example.
[0076] As an optional implementation, the control options corresponding to the floating shutter may include “off”, “standard” and “smart”. Figure 4a It is a schematic diagram of the setting interface of an electronic device in a camera application, combined with Figure 4aAs shown, the setting interface includes the control options of the floating shutter. Click the control options of the floating shutter to enter the following Figure 4b The control interface of the floating shutter is shown. The control interface provides three options: off option, smart option and standard option.
[0077] Optionally, the user selects the "off" option for the control option of the floating shutter, and the shooting interface includes a fixed shutter, and the floating shutter does not appear.
[0078] For example, Figure 5 As shown, the electronic device has currently started the camera application and displays the shooting interface 500. The shooting interface 500 displays a shooting preview area 501, a setting control 502, a fixed shutter 503, and a hole-shaped area for matching with the camera 504. The shooting preview area 501 can be used to preview the image collected by the camera of the electronic device. The current camera application is in movie mode, and the shooting preview area 501 is displayed in a size of 16:9 in the movie mode. The shooting preview area 501 is not blocked. When the camera application is in other modes, the shooting preview area 501 may be blocked by other areas. The setting control 502 can be used to adjust the camera parameters and / or image display parameters during shooting, such as: camera zoom parameters, filter parameters for image display, etc.; the fixed shutter 503 is set close to the x edge in the shooting interface 500a, and can be used to trigger the electronic device to shoot. The fixed shutter 503 can be triggered by a single-point touch or other methods, or by other preset methods.
[0079] When the electronic device is rotated to other states, the shooting interface still includes a fixed shutter, and the floating shutter does not appear, which will not be described here.
[0080] exist Figure 5 In this example, the user holds the electronic device in the posture shown in the figure (for easy viewing, the hand does not block the shooting interface 500a), the interface layout of the electronic device is 0°, the fixed shutter 503 is set close to the x side, and the camera 505 is also set close to the x side and is above the fixed shutter 503. When the user needs to shoot, just trigger the fixed shutter 503. The posture is convenient and it is not easy to block the camera. However, if the user rotates the electronic device, there may be problems such as inconvenience in shooting and blocking the camera. Therefore, the user can choose "standard" or "smart" according to needs.
[0081] Optionally, the user selects the control option of the floating shutter as the "standard" option. Under the "standard" option, the floating shutter can be effective for non-foldable electronic devices or electronic devices with curved screens, and can also be effective in both the unfolded state and the folded state of the folding screen electronic device.
[0082] The user starts the camera application, and the electronic device displays Figure 6a In the interface 600a shown, the user follows Figure 6a The shooting interface 600a at least includes a shooting preview area 601, a fixed shutter 602, a hole-shaped area matching the camera 603, and a floating shutter 604.
[0083] Figure 6a The floating shutter 604 in the can be displayed floating on the shooting interface 600a, that is, the floating shutter 604 is displayed on the upper layer of the shooting interface 600a. In terms of plane position, the floating shutter 604 is displayed on the lower side close to the x side in the current shooting interface 600a, that is, two shutters in different positions are provided in the shooting interface 600a, so that the user can select any one of the two shutters according to the operation requirements to trigger the camera application to execute the corresponding instruction. The above position can be used to indicate the relative position of the shutter relative to the hardware of the electronic device, and can also be used to indicate the position of the shutter in the coordinate system of the screen of the electronic device.
[0084] The style of the floating shutter 604 provided in the above embodiment can be the same as that of the fixed shutter 602, and the size can be slightly smaller than the fixed shutter 602, and have a preset transparency (for example, 80% transparency, not shown in the figure), so that it is not only easy for the user to recognize that the floating shutter 604 has the same function as the fixed shutter 602, but also the occlusion of the shooting preview area 601 by the floating shutter 604 is reduced as much as possible.
[0085] The floating shutter 604 may be displayed directly, or may appear with a preset motion effect, for example, popping up from the border of the shooting interface, appearing with a transparency of 0-80%, etc. Figure 6a The style and properties (including parameters such as size and transparency) of the floating shutter 604 shown can be used as the default style and properties of the floating shutter 604, and other styles and properties can also be set as the default style and properties of the floating shutter 604. Furthermore, the style and properties of the floating shutter 604 can also be set or modified by the user in the settings, and this application does not impose any restrictions here.
[0086] Optional, in Figure 6a Based on the above, the user rotates the electronic device to any angle corresponding to the interface layout of 90°, and the shooting interface of the electronic device is as follows Figure 6b As shown, Figure 6b The shooting interface 600b shown still includes a shooting preview area 601, a fixed shutter 602, a hole-shaped area for matching with a camera 603, and a floating shutter 604. In this example, the position of the floating shutter 604 in the shooting interface 600b is the same as that in the shooting interface 600a.
[0087] Under the "Standard" option, when the electronic device is rotated to other angles (180° or 270), the position of the floating shutter 604 in the shooting interface remains unchanged and will not be repeated here. That is, in the standard mode, the floating shutter 604 is not related to the rotation of the electronic device.
[0088] In the "standard" mode, the floating shutter 604 can be dragged, and Figure 6c For example, the position of the floating shutter 604 in the shooting interface 600b is adjusted, combined with Figure 6c As shown, after the user touches the floating shutter 604 through a touch medium (finger, etc.), the floating shutter 604 is dragged along the dotted line direction, and the floating shutter 604 is moved upward from the first position to the second position, which is more in line with the user's usage habits.
[0089] Optionally, in addition to lightly touching and dragging, the way to move the floating shutter 604 can also be long pressing and dragging, or multiple clicking at the position where the floating shutter 604 is required to appear, or other operation methods, which are not limited in this application. The floating shutter 604 can also have a preset dynamic effect during the dragging process.
[0090] exist Figure 6c In the example, the user moves the floating shutter 604 from the first position in the shooting interface 600c to the second position in the shooting interface 600c. It should be noted that the electronic device can store the second position, and when the electronic device starts the camera application next time, if the control option of the floating shutter is the "standard" option, the electronic device can display the floating shutter 604 according to the stored second position, that is, the second virtual control 604 will be displayed in the second position instead of the first position.
[0091] Optionally, the user selects the control option of the floating shutter as the "smart" option. Figure 3 Taking the folding screen electronic device shown in the figure as an example, the camera application is started on the electronic device. The folding screen electronic device has two different states, namely the folded state and the unfolded state. The electronic device can detect its own folding angle in various ways such as detecting the folding angle, which is not limited here. When the electronic device is in the folded state, the first screen 303 or the second screen 304 displayed as a separate screen can display the following Figure 6d The shooting interface 600d shown includes at least a shooting preview interface 605 and a fixed shutter 606. The floating shutter is not displayed when the electronic device is rotated to any angle.
[0092] Exemplarily, when it is detected that the folding angle of the electronic device is greater than a preset angle, the electronic device is in an unfolded state, and the electronic device displays the following Figure 7aThe shooting interface 700a shown in FIG. Figure 7a The user holds the electronic device in the posture shown in the figure, and defines the interface layout of the electronic device in the current posture as 0°. The user enters the camera application by performing a preset operation on the electronic device, and the display is as follows Figure 7a The shooting interface 700 a shown in the figure at least includes a shooting preview area 701 , a fixed shutter 702 , and a hole-shaped area for matching with a camera 703 .
[0093] exist Figure 7a Based on the interface layout of the electronic device, after the user rotates the electronic device to 90°, the shooting interface of the electronic device is as follows Figure 7b As shown, Figure 7b The shooting interface 700b shown still includes a shooting preview area 701, a fixed shutter 702, a hole-shaped area for matching with a camera 703, and a floating shutter 704. The floating shutter 704 is described below.
[0094] Figure 7b The floating shutter 704 in the image capture interface 700b can be displayed floating on the image capture interface 700b, that is, the floating shutter 704 is displayed on the upper layer of the image capture interface 700b. In terms of the plane position, the floating shutter 704 is displayed in the middle of the left side of the current image capture interface 700b. When the user rotates the electronic device to 90°, when the user touches the floating shutter 704, it is not only easy to operate, but also difficult to block the camera 703 of the electronic device. Figure 7b The provided floating shutter 704 greatly facilitates the shooting operation of the electronic device after rotation.
[0095] exist Figure 7b In the example, the style of the floating shutter 704 is the same as that of the fixed shutter 702, but is slightly smaller than the fixed shutter 702 and has a transparency of 80% (not shown in the figure), so that not only can the user recognize that the floating shutter 704 has the same function as the fixed shutter 702, but also the impact of the floating shutter 704 on the shooting preview area 701 is minimized.
[0096] The floating shutter 704 may be displayed directly, or may appear with a preset motion effect, for example, popping up from the border of the shooting interface 700b, appearing with a transparency of 0-80%, etc. Figure 7b The style and properties (including parameters such as size and transparency) of the floating shutter 704 shown can be used as the default style and properties of the floating shutter 704, and other styles and properties can also be set as the default style and properties of the floating shutter 704. Furthermore, the style and properties of the floating shutter 704 can also be set or modified by the user in the settings, and this application does not impose any restrictions here.
[0097] In the above embodiment, the floating shutter may be generated after the electronic device is rotated to a preset state. It should be noted that: Figure 7b The example is an example of a user using the floating shutter for the first time in the 90° state. The position of the floating shutter display can be a pre-set position, that is, a default position at the rotation angle. The default position is a position that is convenient for the user to operate in the shooting interface after the electronic device is rotated, or conforms to the user's operating habits, so that the user can not only touch the floating shutter in a comfortable posture, but also it is difficult to block the camera. This position can be determined according to the user's operating habits and the position of the camera in the hardware structure of the electronic device.
[0098] User in Figure 7b On the basis of, continue to rotate the electronic device 90° clockwise, or Figure 7a The electronic device shown in the figure can be rotated 180° clockwise or 180° counterclockwise from the unrotated state to rotate the electronic device to the state of 180°, and the following is obtained: Figure 7c The schematic diagram of the shooting interface 700c shown in FIG. Figure 7c The shooting interface 700c shown still includes the shooting preview area 701, the fixed shutter 702, the hole-shaped area for matching with the camera 703, and the floating shutter 704. The floating shutter control 704 still exists, but its position has changed. At this time, the position of the floating shutter 704 is in a position where the current rotation angle meets the user's operation and is not easy to block the camera. It should be noted that Figure 7c The example is the first time that an electronic device displays a floating shutter in a 180° state.
[0099] User in Figure 7c On the basis of, continue to rotate the electronic device 90° clockwise, or Figure 7a The electronic device shown in the figure can be rotated directly from the unrotated state by 270° clockwise or 90° counterclockwise to the state of 270°, and the result is as follows: Figure 7d The schematic diagram of the shooting interface 500d in the 270° state is shown. Figure 7d The shooting interface 700d shown still includes the shooting preview area 701, the fixed shutter 702, the hole-shaped area for matching with the camera 703, and the floating shutter 70. The floating shutter 704 still exists, but its position has changed. At this time, the position of the floating shutter 704 is in a state of 270°, which is suitable for user operation and is not easy to block the camera. It should be noted that Figure 7d The example is the first time that an electronic device displays a floating shutter in a 270° state.
[0100] It should be noted that if the user rotates the electronic device back to Figure 7aThe floating shutter 704 disappears and the shooting interface returns to the state shown in FIG. Figure 7a The shooting interface 700a is shown.
[0101] In the above embodiment, a floating shutter is generated after the user rotates the electronic device to a preset state. Specifically, it can be generated when the electronic device detects that the electronic device is rotated to a preset angle, and in the different interface layouts of 90°, 180°, and 270°, a default floating shutter position is intelligently recommended to facilitate user operation at each rotation angle. Optionally, the electronic device can implement the above solution by storing a preset configuration file, and the configuration file can record different interface layouts and the default position of the floating shutter in different interface layouts.
[0102] However, in some practical situations, different users have different hand sizes and different operating habits for electronic devices, so it is difficult to make the above default position meet the needs of each user. In order to further improve the user's operating experience when using the camera application, based on the solution provided by the above "Smart" option, a further solution is provided. Figure 7b The following is an explanation based on .
[0103] User Figure 7b The suspended shutter 704 in the image is moved, and the image is obtained. Figure 7e In the shooting interface 700e, the floating shutter 704 moves from the first position to the second position in the shooting interface 700e. It should be noted that the electronic device can store the second position, and when the electronic device is rotated to 90° again, the electronic device can display the floating shutter 704 according to the stored second position, that is, the second virtual control 704 will be displayed at the second position instead of the first position.
[0104] If in Figure 7e Continue to drag the floating shutter 704 in the shooting interface 700e to obtain the following Figure 7f As shown in the shooting interface 700f, in the shooting interface 700f, the floating shutter 704 is moved from the second position to the third position, and the electronic device can store the third position. Optionally, the electronic device can use the position information of the third position to overwrite the position information of the second position, so that the next time the electronic device is rotated to 90°, the floating shutter 704 can be displayed at the third position.
[0105] The above is based on Figure 7e and Figure 7fThe scheme of dragging the floating shutter 704 when the electronic device is rotated to 90° is explained. Similarly, when the electronic device is in the state of 180° or 270°, after the floating shutter is dragged, the electronic device can still store the last position of the floating shutter 704 when the electronic device is switched to the state of 180° or 270°, and when the electronic device is rotated to various angles again, the floating shutter is restored to the stored position.
[0106] It should be noted that the actual rotation angle of the user when rotating the electronic device is random. Figure 7g As shown, the current actual rotation angle h of the electronic device is the angle difference between the current orientation d of the electronic device and the gravity direction g, and in this example h = 20°. Based on Table 1 or Table 2, it can be seen that the interface layout corresponding to the current actual rotation angle is 0°, that is, the interface layout detected by the gravity sensor of the electronic device is 0° at this time, and the floating shutter does not appear at this time, and the electronic device still displays interface 700a.
[0107] The shooting method proposed in the above embodiment can generate another floating shutter different from the fixed shutter after the electronic device is rotated to a preset angle, so as to provide the user with another floating shutter that is easy to touch when the fixed shutter originally provided in the shooting interface is no longer convenient for the user to operate as the electronic device rotates, so that no matter how the electronic device is rotated, it can provide the user with easy-to-operate shutter controls, thereby allowing the user to conveniently shoot at various rotation angles of the electronic device. Furthermore, after the electronic device is rotated, the user can also drag the floating shutter generated by the rotation of the electronic device to move it to the position indicated by the user, thereby meeting the different needs of different users.
[0108] Optionally, when the control option of the floating shutter of the electronic device is selected as "smart", when the electronic device is rotated to 90°, 180°, or 270° for the first time, guidance information may be displayed, for example, Figure 7b , Figure 7c and Figure 7d As shown, the guidance information "When the phone is rotated, the floating shutter position is intelligently recommended, and it can be pushed and placed at will" can be displayed in the form of a bubble dialog box.
[0109] As another optional embodiment, in Figure 7a Based on the interface layout of the electronic device, after the user rotates the electronic device to 90°, the shooting interface of the electronic device can also be Figure 7h As shown, Figure 7h The shooting interface 700h shown still includes a shooting preview area 701 and a hole-shaped area for matching with a camera 703, and also includes a floating shutter 704. The floating shutter 704 in this example is Figure 7bThe floating shutter 704 is the same as that in the example, and in this example, after the electronic device is rotated to an interface layout of 180° or 270°, the shooting interface also includes the floating shutter 704, and the fixed shutter 702 is not displayed, which will not be repeated here.
[0110] As an optional solution, the floating shutter and the fixed shutter can not only have the same style and function, but also have the same animation effect. The following describes the animation effects of the floating shutter and the fixed shutter in the camera application's photo function, delayed shooting function, and video recording function.
[0111] First, let's explain the animation of the floating shutter in the camera app's photo function. Figure 7b On the basis of the above, the user triggers the fixed shutter 702 to take a photo. When the fixed shutter 702 is triggered, the inner circle of the ring shrinks. At the same time, the inner circle of the ring of the floating shutter 704 also shows the same shrinking effect. Figure 8a When the user triggers the floating shutter 704 to take a photo, the inner circle of the floating shutter 704 shrinks when triggered, and at the same time, the inner circle of the fixed shutter 702 also shrinks. That is, in the photo taking function, the animations of the fixed shutter 702 and the floating shutter 704 remain consistent.
[0112] Let's explain the dynamic effect of the floating shutter under the delayed shooting function of the camera application. Figure 7b Under the corresponding interface layout, the electronic device is controlled to enter the delayed camera mode, and the following is obtained: Figure 8b The delayed shooting interface 800b shown in FIG. 8 is shown in FIG. 8 . The style of the fixed shutter 702 or the floating shutter 704 in the interface is still the same. The user triggers the fixed shutter 702 or the floating shutter 704 to perform delayed shooting, and obtains the following Figure 8c In the shooting interface 800c shown after the delayed shooting is started, the fixed shutter 702 becomes the first stop control 801, and the floating shutter 704 becomes the second stop control 802, and the first stop control 801 and the second stop control 802 can display the same animation. The user can stop the delayed shooting by triggering the first stop control 801 or the second stop control 802. After the user triggers the first stop control 801 or the second stop control 802 to stop the delayed shooting, the first stop control 801 changes back to the fixed shutter 702, and the second stop control 802 changes back to the floating shutter 704.
[0113] Let's explain the dynamic effect of the floating shutter in the video recording function of the camera application. When the electronic device is recording, the fixed shutter can be changed to a pause and stop control, and a "photographing while recording" control can be added. Figure 7b In the corresponding interface layout, the camera application enters the video recording mode, and the user starts recording by triggering the fixed shutter 702 or the floating shutter 704, and obtains the following Fig. 9In the shooting interface 900 shown in the example, the fixed shutter is changed into a control set, which includes: pause control 901, stop control 902 and photo control 903 during video recording. Pause control 901 is used to pause the current video recording, stop control 902 is used to end the current operation, and photo control 903 is used to take photos during video recording. In this case, if the floating shutter and the fixed shutter are also changed into the above-mentioned control set, the area occupied on the shooting preview area 904 is larger, thereby affecting the preview of the video content. Therefore, the floating shutter is only displayed as the more commonly used stop control 905. The stop control 905 can also be displayed in a floating manner and is movable. Similarly, during the video recording process, at other rotation angles, the floating shutter and Fig. 9 The floating shutter shown is the same, with the only change being the stop control.
[0114] See also Fig.10 , is a flow chart of a control method of an electronic device provided in an embodiment of the present application. The method can be applied to Figure 1 The electronic equipment shown, such as Fig.10 As shown, it mainly includes the following steps.
[0115] S101, displaying a first interface of a first application, wherein the first interface includes: an image acquired in real time by a camera of an electronic device and a first control displayed at a first position, wherein a first angle is formed between a first side of the electronic device and a direction of gravity.
[0116] The first application may be a camera application of the electronic device. The first interface may be as follows Figure 7a As shown in the interface 700a, the image collected in real time by the camera of the electronic device can be displayed in 701, and the first control is a fixed shutter 702. The first side can be the x side of the electronic device, and the first angle can be 0°, or any angle corresponding to the interface layout of 0° in Table 1 or Table 2.
[0117] by Figure 7g Take the first angle as an example to illustrate the above. Figure 7g In the example, the direction of the first side of the electronic device is d, the direction of gravity is g, and the first angle is an angle h between d and g.
[0118] The first position may be a relative position of the first control relative to a certain hardware of the electronic device, or may be coordinate information of the first control in a coordinate system of the screen of the electronic device.
[0119] S102: Detecting a first operation of the user on the first control, the electronic device captures a first image through the camera.
[0120] The first operation of the user on the first control may be a click operation. Figure 7a As shown, the user clicks the fixed shutter 702, and the electronic device takes a photo through the camera.
[0121] S103: After receiving a second operation of the user on the electronic device, a second angle is formed between the first side of the electronic device and the gravity direction, and the second angle is different from the first angle.
[0122] The second operation of the user on the electronic device may be a rotation operation of the electronic device. The second angle may be 90°, or any angle corresponding to the interface layout of 90° in Table 1 or Table 2.
[0123] S104, in response to the second operation, the electronic device displays a second interface, the second interface including: an image captured in real time by a camera of the electronic device and a second control displayed at a second position, the second position being different from the first position.
[0124] The second interface can be Figure 7b As shown in the interface 700b, the image collected in real time by the camera of the electronic device can be displayed in 701, and the second control is a floating shutter 704, and the position of the floating shutter 704 is different from that of the fixed shutter 702.
[0125] The second interface can also be Figure 7h As shown in the interface 700h, the image collected in real time by the camera of the electronic device can be displayed in 701, and the second control is the floating shutter 704. In this example, the interface 700h does not include the fixed shutter 702, and the position of the floating shutter 704 is different from the previous position of the fixed shutter 702.
[0126] S105: A third operation of the user on the second control is detected, and the electronic device captures a second image through the camera.
[0127] The second operation of the user on the second control may be a click operation, still combined with Figure 7b As shown, the user clicks the floating shutter 704, and the electronic device takes a photo through the camera.
[0128] In one implementation, in S104, the second interface also includes the first control. Figure 7b As shown in interface 700b.
[0129] In one implementation, the second interface also includes a third control, and the method also includes: the first application is running in a photo taking mode; a third operation of the user on the third control is detected; in response to the third operation, the first application is switched to a video recording mode; a fourth operation of the user on the first control is detected, the electronic device shoots a first video through the camera, and displays a third interface, the third interface including: a fourth control and a fifth control, the position of the fourth control is the same as the position of the first control, and the position of the fifth control is the same as the position of the second control; a fifth operation of the user on the sixth control is detected, the electronic device stops shooting the first video, and displays a fourth interface, the fourth interface including: the first control displayed at the first position and the second control displayed at the second position.
[0130] In the above solution, the third control may be a control for changing the shooting mode in the first application. Figure 7b For example, the third control may be a "record" control, and the third operation may be a sliding operation on the "record" control. The user slides the "record" control up to the position where the current "movie" control is located, and the first application is switched to the recording mode.
[0131] The position of the fourth control is the same as that of the first control. The positions of the fourth control and the first control may be completely the same, or the positions of the fourth control and the first control may be relatively close.
[0132] After the first application is switched to the video recording mode, the functions of the fixed shutter 702 and the floating shutter 704 are changed, and the styles may also be changed. The user clicks the fixed shutter 702 to perform the fourth operation or clicks the floating shutter 704, and the electronic device starts to shoot the first video through the camera. Fig. 9 In the interface 900 shown, the fourth control may be a stop control 902, and the fifth control may be a stop control 905. In this example, the third interface also includes a sixth control, which may be a pause control 901, and the center position of the control set consisting of the fourth control and the sixth control may be the same as the center position of the first control. In the interface 900, the user clicks the fourth control (i.e., the stop control 902) or the fifth control (i.e., the stop control 905), and the electronic device stops shooting the first video, the pause control 901 and the stop control 902 change to the fixed shutter 702, and the stop control 905 changes to the floating shutter 704. The user clicks the pause control 901, and the electronic device pauses shooting the first video.
[0133] In one implementation, a difference between the second angle and the first angle is 90°.
[0134] In the above solution, the first angle may be 0°, and the second angle may be 90°.
[0135] In one implementation, after the electronic device displays a second interface in response to the second operation, the method further includes: detecting a fourth operation of the user on the second control; in response to the fourth operation, the second control is displayed at a third position, wherein the third position is different from the first position and the second position.
[0136] The fourth operation may be a drag operation, such as Figure 7e As shown, in interface 700e, the user drags the floating shutter 704 to move the floating shutter 704 from the second position to the third position. In some other examples, the fourth operation can also be other types of operations, and the second control can be directly moved to the third position by the fourth operation without displaying the track of the second control being moved.
[0137] In one implementation, after the second control is displayed at the third position in response to the fourth operation, the method further includes: after receiving the fifth operation of the electronic device by the user, a first angle is formed between the first side of the electronic device and the direction of gravity; in response to the fifth operation, the electronic device displays a fifth interface, and the fifth interface includes: an image captured in real time by the camera of the electronic device and the first control displayed at the first position; after receiving the sixth operation of the electronic device by the user, a second angle is formed between the first side of the electronic device and the direction of gravity; in response to the sixth operation, the electronic device displays a sixth interface, and the sixth interface includes: an image captured in real time by the camera of the electronic device and the second control displayed at the third position.
[0138] After the second control is moved to the third position, the electronic device may store the third position. When the electronic device is rotated to another angle and then rotated to the second angle again, the second control may be displayed according to the recorded third position.
[0139] In one implementation, after the second control is displayed at the third position in response to the fourth operation, the electronic device displays a seventh interface in response to a seventh operation of the user, and the seventh interface does not belong to the first application; in response to an eighth operation of the user, the electronic device displays an eighth interface of the first application, and the eighth interface includes: an image captured in real time by a camera of the electronic device and a first control displayed at a first position, wherein there is a first angle between the first side of the electronic device and the direction of gravity; in response to a ninth operation of the user, the electronic device displays a ninth interface, and the ninth interface includes: an image captured in real time by a camera of the electronic device and the second control displayed at the third position.
[0140] The seventh operation may be an operation for exiting the first application. After the second control is moved to the third position, the electronic device may store the third position. After the electronic device exits the first application, when the electronic device re-enters the first application, when the electronic device is rotated to the second angle, the second control will be displayed at the stored third position.
[0141] In one implementation, the method further includes: in response to a tenth operation on the first interface, displaying a tenth interface, the tenth interface including a first option and a second option, the first option being selected; in response to an eleventh operation on the tenth interface, selecting the second option; displaying an eleventh interface of the first application, the eleventh interface including: an image captured in real time by a camera of the electronic device, a first control displayed at the first position, and a second control displayed at the fourth position, wherein a first angle is formed between the first side of the electronic device and the direction of gravity; after receiving a twelfth operation of the user on the electronic device, a second angle is formed between the first side of the electronic device and the direction of gravity, and the electronic device displays a twelfth interface, the twelfth interface including: an image captured in real time by the camera of the electronic device, a first control displayed at the first position, and a second control displayed at the fourth position.
[0142] Combination Figure 6a As shown, the tenth operation may be an operation in which the user clicks the setting control 607. The user clicks the setting control 607, and the electronic device displays Figure 4a In the setting interface shown in the figure, the user clicks the control option of the floating shutter key in the setting interface, and the following is displayed: Figure 4b The first window shown. The first option in the first window may be a "smart" option, and the second option may be a "standard" option.
[0143] When the floating shutter button is set to "Standard" option, Figure 6a-6b As shown, the eleventh interface may be interface 600a, the twelfth interface may be interface 600b, the first control may be a fixed shutter 602, and the second control may be a floating shutter 604. In the 0° interface layout, the fixed shutter 602 and the floating shutter 604 are included; in the 90° interface layout, the fixed shutter 602 and the floating shutter 604 are still included, and the positions of the fixed shutter 602 and the floating shutter 604 are not changed.
[0144] In one implementation, the electronic device is a folding screen electronic device, and the folding screen electronic device is in an unfolded state. The above method also includes: after receiving a thirteenth operation of the user on the electronic device, the electronic device changes from the unfolded state to the folded state; displaying a thirteenth interface of the first application, the thirteenth interface including: an image captured in real time by a camera of the electronic device and a first control displayed at the first position, wherein a first angle is formed between the first side of the electronic device and the direction of gravity; after receiving a fourteenth operation of the user on the electronic device, a second angle is formed between the first side of the electronic device and the direction of gravity, and the electronic device displays a fourteenth interface, and the fourteenth interface includes: an image captured in real time by the camera of the electronic device and the first control displayed at the first position.
[0145] The thirteenth operation may be an operation of folding the unfolded folding screen electronic device. After the user performs the thirteenth operation on the electronic device, the "smart" option becomes invalid, that is, the electronic device no longer displays the second control. Figure 6d As shown, when the electronic device is in the folded state, the first screen 303 or the second screen 304 displayed as a single screen may display the following: Figure 6d The shooting interface 600d shown includes at least a shooting preview interface 605 and a fixed shutter 606. The floating shutter is not displayed when the electronic device is rotated to any angle.
[0146] In one implementation, the second control may have the same style as the first control.
[0147] In one implementation, the second control may be smaller than the first control.
[0148] In one implementation, the transparency of the second control may be greater than 0.
[0149] In one implementation, the method further includes: after detecting a first operation of the user on the first control, the second control and the first control display the same animation; and after detecting a third operation of the user on the second control, the second control and the first control display the same animation.
[0150] by Figure 8a For example, when the user triggers the floating shutter 704 to take a photo, the inner circle of the floating shutter 704 shrinks when it is triggered, and at the same time, the inner circle of the fixed shutter 702 also shows the same shrinking effect. That is, in the photo taking function, the animation effects of the fixed shutter 702 and the floating shutter 704 remain consistent.
[0151] An embodiment of the present application also provides an electronic device, comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein when the computer program instructions are executed by the processor, the electronic device is triggered to execute the above-mentioned related method steps to implement the method in the above-mentioned embodiment.
[0152] An embodiment of the present application also provides a computer-readable storage medium, in which computer instructions are stored. When the computer instructions are executed on a terminal device, the terminal device executes the above-mentioned related method steps to implement the method in the above-mentioned embodiment.
[0153] The embodiments of the present application also provide a computer program product. When the computer program product is run on a computer, the computer is enabled to execute the above-mentioned related steps to implement the method in the above-mentioned embodiments.
[0154] In addition, an embodiment of the present application also provides a device, which can specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer-executable instructions, and when the device is running, the processor can execute the computer-executable instructions stored in the memory so that the chip executes the methods in the above-mentioned method embodiments.
[0155] Among them, the terminal device, computer storage medium, computer program product or chip provided in the embodiments of the present application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.
[0156] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0157] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another device, or some features can be discarded or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0158] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0159] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0160] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
[0161] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A control method for an electronic device, characterized in that: Applied to foldable screen devices, including: Displaying a control interface of a first application, the control interface including control options of a floating shutter, the control options including: an off option, a smart option, and a standard option; when the standard option is selected for the first application, the position of the floating shutter in the shooting interface is allowed to change based on a drag operation, and the standard option is effective when the folding screen device is in an unfolded state and a folded state; when the smart option is selected for the first application, the position of the floating shutter in the shooting interface changes with the change of the rotation angle of the electronic device, and the smart option is effective only when the folding screen is in an unfolded state, and is not effective when the folding screen device is in a folded state; After receiving an operation of selecting the smart option by the user, displaying a first shooting interface of the first application, the first shooting interface comprising: an image collected in real time by a camera of the electronic device and a fixed shutter displayed at a first position, wherein a first angle is formed between a first side of the electronic device and a gravity direction; Upon detecting a first operation of the user on the fixed shutter, the electronic device captures a first image through the camera; After receiving a second operation of the user on the electronic device, a second angle is formed between the first side of the electronic device and the gravity direction, and the second angle is different from the first angle; In response to the second operation, the electronic device displays a second shooting interface, the second shooting interface including: an image captured in real time by a camera of the electronic device and a floating shutter displayed at a second position, the second position being different from the first position; in response to an operation of the user moving the floating shutter from the second position to a sixth position, the sixth position is stored, and when the electronic device receives the second operation again, the floating shutter is displayed according to the sixth position; Upon detecting a third operation of the user on the floating shutter, the electronic device captures a second image through the camera; After receiving the fifteenth operation of the user on the electronic device, a third angle is formed between the first side of the electronic device and the gravity direction, and the third angle is different from the first angle; In response to the fifteenth operation, the electronic device displays a fifteenth shooting interface, the fifteenth shooting interface including: an image collected in real time by a camera of the electronic device and a seventh control displayed at a fifth position, the first shooting interface, the second shooting interface, and the fifteenth shooting interface correspond to different interface layouts, different interface layouts correspond to different rotation angle intervals of the electronic device, and the fifth position is different from the first position and the second position; When a sixteenth operation of the user on the seventh control is detected, the electronic device captures a third image through the camera.
2. The control method according to claim 1, characterized in that: The second shooting interface also includes the fixed shutter.
3. The control method according to claim 1, characterized in that: The second shooting interface further includes a third control, and the method further includes: The first application runs in a camera mode; detecting a third operation of the user on the third control; In response to the third operation, the first application is switched to a recording mode; Upon detecting a fourth operation of the user on the fixed shutter, the electronic device shoots a first video through the camera and displays a third interface, wherein the third interface includes: a fourth control and a fifth control, wherein the position of the fourth control is the same as that of the fixed shutter, and the position of the fifth control is the same as that of the floating shutter; When a fifth operation of the user on the sixth control is detected, the electronic device stops shooting the first video and displays a fourth interface, where the fourth interface includes: the fixed shutter displayed at the first position and the floating shutter displayed at the second position.
4. The control method according to claim 1, characterized in that: The difference between the second angle and the first angle is 90°.
5. The control method according to claim 1, characterized in that: After the electronic device displays a second shooting interface in response to the second operation, the method further includes: Detecting a fourth operation of the user on the floating shutter; In response to the fourth operation, the floating shutter is displayed at a third position, wherein the third position is different from the first position and the second position.
6. The control method according to claim 5, characterized in that: After the floating shutter is displayed at a third position in response to the fourth operation, the method further includes: After receiving a fifth operation of the user on the electronic device, a first angle is formed between the first side of the electronic device and the gravity direction; In response to the fifth operation, the electronic device displays a fifth interface, wherein the fifth interface includes: an image collected in real time by a camera of the electronic device and a fixed shutter displayed at a first position; After receiving a sixth operation of the user on the electronic device, a second angle is formed between the first side of the electronic device and the gravity direction; In response to the sixth operation, the electronic device displays a sixth interface, and the sixth interface includes: an image collected in real time by the camera of the electronic device and a floating shutter displayed at the third position.
7. The control method according to claim 5, characterized in that: After the floating shutter is displayed at a third position in response to the fourth operation, the method further includes: In response to a seventh operation of the user, the electronic device displays a seventh interface, where the seventh interface does not belong to the first application; In response to an eighth operation of the user, the electronic device displays an eighth interface of the first application, the eighth interface comprising: an image collected in real time by a camera of the electronic device and a fixed shutter displayed at a first position, wherein a first angle exists between the first side of the electronic device and the direction of gravity; In response to a ninth operation of the user, the electronic device displays a ninth interface, where the ninth interface includes: an image captured in real time by the camera of the electronic device and a floating shutter displayed at the third position.
8. The control method according to claim 1, characterized in that: The method further comprises: In response to a tenth operation on the first shooting interface, displaying a tenth interface, the tenth interface including a first option and a second option, the first option being selected; In response to an eleventh operation on the tenth interface, selecting the second option; displaying an eleventh interface of the first application, the eleventh interface comprising: an image captured in real time by a camera of the electronic device, a fixed shutter displayed at the first position, and a floating shutter displayed at a fourth position, wherein a first angle exists between the first side of the electronic device and the direction of gravity; After receiving the twelfth operation of the user on the electronic device, the first side of the electronic device has a second angle with the gravity direction, and the electronic device displays a twelfth interface, which includes: an image collected in real time by the camera of the electronic device, a fixed shutter displayed at the first position, and a floating shutter displayed at the fourth position.
9. The control method according to claim 1, characterized in that: The electronic device is a folding screen electronic device, and the folding screen electronic device is in an unfolded state. The method further includes: After receiving a thirteenth operation of the user on the electronic device, the electronic device changes from the unfolded state to the folded state; Displaying a thirteenth interface of the first application, the thirteenth interface comprising: an image collected in real time by a camera of the electronic device and a fixed shutter displayed at the first position, wherein a first angle exists between the first side of the electronic device and the direction of gravity; After receiving the fourteenth operation of the user on the electronic device, the first side of the electronic device has a second angle with the gravity direction, and the electronic device displays a fourteenth interface, which includes: an image collected in real time by the camera of the electronic device and a fixed shutter displayed at the first position.
10. The control method according to claim 1, characterized in that: The floating shutter has the same style as the fixed shutter.
11. The control method according to claim 1, characterized in that: The floating shutter is smaller than the fixed shutter.
12. The control method according to claim 1, characterized in that: The transparency of the floating shutter is greater than 0.
13. The control method according to claim 1, characterized in that: The method further comprises: After detecting a first operation of the user on the fixed shutter, the floating shutter and the fixed shutter display the same motion effect; and After detecting a third operation of the user on the floating shutter, the floating shutter and the fixed shutter display the same motion effect.
14. An electronic device, characterized in that: It comprises a memory for storing computer program instructions and a processor for executing the program instructions, wherein when the computer program instructions are executed by the processor, the electronic device is triggered to execute the method according to any one of claims 1 to 13.
15. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the method according to any one of claims 1 to 13.
16. A computer program product, characterized in that The computer program product comprises executable instructions, and when the executable instructions are executed on a computer, the computer is caused to perform the method according to any one of claims 1 to 13.
Citation Information
Patent Citations
Photographing method, mobile terminal and computer readable memory medium
CN107509028A
Movable user interface shutter button for camera
CN109155821A
Shooting method and electronic equipment
CN112449101A
Cited By
Control method for electronic device, and electronic device
WO2023124259A1
