Camera widget control method and device and electronic equipment
By providing a camera widget control method on the smart terminal, directly switching to a viewing interface smaller than the full screen and shooting, the problem of cumbersome and time-consuming operation in the existing technology is solved, and rapid start-up and simplified operation are achieved, and shooting efficiency and convenience are improved.
Patent Information
- Application Number
- CN202410170855.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-06
- Publication Date
- 2025-08-08
AI Technical Summary
The existing smart terminal camera application requires full screen to enter a separate camera control interface before it can be used, which is cumbersome and time-consuming, which may miss the opportunity to capture when it is necessary.
A camera widget control method is provided, which displays the graphical user interface of the camera widget entrance through a touch display screen, directly switches to a view framing interface smaller than the full screen in response to user instructions, displays camera images, and generates shooting control instructions based on user operations for shooting.
It realizes rapid start and simplify operations, reduces waiting time, improves shooting efficiency and convenience, and is suitable for snapping scenes that require quick response.
Smart Images

Figure CN120455836A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of mobile device cameras, and in particular to a method and device for controlling a camera widget, and an electronic device. Background Art
[0002] With the rapid development of science and technology, camera applications of smart terminals are widely used in people's work and life, and have improved work efficiency and life experience. However, the camera applications of existing smart terminals all need to enter a separate camera control interface in full screen after startup before they can be used, and the camera widget of traditional mobile devices is only the entrance for users to enter the camera, similar to a shortcut. Therefore, after users operate the camera application on the smart terminal, they usually open a separate camera control interface displayed in full screen, and then operate on the camera control interface before they can take pictures. The above process requires multiple steps and a long waiting time. When you need to take a snapshot, by the time all the above operations are completed and the interface where you can take a photo is displayed, the opportunity to take the snapshot may have been missed. Summary of the Invention
[0003] To this end, the present application provides a camera widget control method, device, and electronic device that can be operated quickly and can capture photos quickly to solve the above technical problems.
[0004] A first aspect of the present application provides a method for controlling a camera widget, the method being applied to an electronic device including a touch screen and a camera, the method comprising:
[0005] The touch screen displays an initial display interface, and a graphical user interface that displays a camera widget entrance on the display interface;
[0006] In response to a camera wake-up instruction for the graphical user interface, only the graphical user interface in the display interface is switched to a viewfinder interface; wherein the viewfinder interface is smaller than the display interface, and a display area of the display interface other than the graphical user interface is a second display interface, and the second display interface is displayed according to the content of the initial display interface;
[0007] Presenting the image acquired by the camera through the viewfinder interface;
[0008] Generate shooting control instructions based on user operations;
[0009] In response to the shooting control instruction, the image currently in the viewfinder interface is shot and saved.
[0010] A second aspect of the present application provides a control device for a camera widget, comprising:
[0011] A display control module, configured to control the touch screen to display an initial display interface, and to display a graphical user interface of a camera widget entrance on the display interface;
[0012] an interface switching control module, configured to, in response to a camera wake-up instruction for the graphical user interface, switch only the graphical user interface in the display interface to a viewfinder interface; wherein the viewfinder interface is smaller than the display interface, and a display area in the display interface other than the graphical user interface is a second display interface, and the second display interface is displayed according to the content of the initial display interface;
[0013] A preview control module, configured to present the image captured by the camera through the viewfinder interface;
[0014] The shooting control module is used to shoot and save the image in the current viewfinder interface in response to the shooting control instruction.
[0015] A third aspect of the present application provides an electronic device, comprising: a processor, a memory, a touch screen display, and a camera, wherein the memory, the touch screen display, and the camera are respectively connected to the processor, the memory stores a camera widget application, and the processor runs the camera widget application to execute the above-mentioned camera widget control method.
[0016] A fourth aspect of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program is invoked by a processor to execute the above-mentioned camera widget control method.
[0017] The present application provides a control method, device and electronic device for a camera widget. The control method is applied to an electronic device, which includes a touch screen and a camera. The control method includes the touch screen displaying an initial display interface, and displaying a graphical user interface of a camera widget entrance on the display interface. In response to a camera wake-up command for the graphical user interface, only the graphical user interface in the display interface is switched to a viewfinder interface. The size of the viewfinder interface is smaller than the size of the display interface. The second display interface is displayed according to the content of the initial display interface. The image captured by the camera is presented through the viewfinder interface. A shooting control command is generated based on the user's operation. In response to the shooting control command, the image currently in the viewfinder interface is shot and saved. The camera widget of the present application can respond to the command to directly switch the graphical user interface to the viewfinder interface and reduce the size of the viewfinder interface to quickly start and take pictures, thereby improving the efficiency and convenience of shooting. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solution of the present application, the following is a brief introduction to the drawings required for use in the implementation. Obviously, the drawings described below are some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0019] Figure 1 This is a structural block diagram of the electronic device provided in an embodiment of the present application.
[0020] Figure 2 This is a structural block diagram of the control device of the camera widget provided in an embodiment of the present application.
[0021] Figure 3 A schematic diagram of a display interface provided in accordance with an embodiment of the present application.
[0022] Figure 4 A schematic diagram of a viewfinder interface provided in accordance with an embodiment of the present application.
[0023] Figure 5 A schematic diagram of a sleep state interface provided in an embodiment of the present application.
[0024] Figure 6 A schematic diagram of a sleep state interface provided in accordance with another embodiment of the present application.
[0025] Figure 7 A schematic diagram of an image display interface provided in accordance with an embodiment of the present application.
[0026] Figure 8 This is a flowchart of a method for controlling a camera widget provided in one embodiment of the present application.
[0027] Figure 9 This is a flowchart of a method for controlling a camera widget provided in another embodiment of the present application.
[0028] Figure 10 Another embodiment of the present application provides Figure 8 Sub-flowchart of step S12 in .
[0029] Figure 11 Another embodiment of the present application provides Figure 8 Sub-flowchart of step S15 in .
[0030] Figure 12 This is a flowchart of a method for controlling a camera widget provided in another embodiment of the present application.
[0031] Figure Number:
[0032] Electronic device 100; processor 101; memory 102; touch screen 103; camera 104; display interface 105; second display interface 106; other applications 107;
[0033] Camera widget control device-200; display control module-201; interface switching control module-202; preview control module-203; shooting control module-204;
[0034] Graphical user interface 300; viewfinder interface 301; sleep state interface 302; image display interface 303. DETAILED DESCRIPTION
[0035] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0036] See also Figure 1 , Figure 1 This is a block diagram of the structure of an electronic device 100 provided in an embodiment of the present application. The electronic device 100 includes a processor 101, a memory 102, a touch screen display 103, and a camera 104. The memory 102, the touch screen display 103, and the camera 104 are respectively connected to the processor 101. The memory 102 stores a camera widget application. The processor 101 runs the camera widget application to execute the camera widget control method.
[0037] Thus, the electronic device 100 can execute the control method for the camera widget and store the data of the camera widget, so as to make the camera widget more intelligent and respond to the user's operation instructions more accurately, thereby improving the user's experience.
[0038] In some embodiments, the memory 102 stores a camera application and a camera widget application, and the processor 101 controls the touch screen display 103 to display a camera icon and a camera widget icon. The similarities between the camera application and the camera widget application are that the camera application is used to control the camera to capture images, and the camera widget application is also used to control the camera to capture images. The difference between the camera application and the camera widget application is that the operations before the camera application controls the camera to capture images are relatively cumbersome. When the camera application control is started, the entire display interface needs to be switched to the camera capture interface, which increases the operating burden of the processor 101 and results in a longer waiting time for entering the capture mode. The operations before the camera widget application controls the camera to capture images are simple, the display area of the camera widget is smaller, and when entering the capture mode, the operating burden of the processor 101 is reduced, power consumption is reduced, and the capture mode can be quickly entered with less waiting time, making it suitable for scenes such as snapshots.
[0039] The difference between the camera application and the camera widget application is that the camera application has more functional modules, which can make more precise adjustments to the camera shooting parameters, and the quality of the captured images is relatively higher; the functional modules in the camera widget application are greatly streamlined, reducing the amount of data processing required to start the camera, and if the camera widget can display images, the displayed images may not have high pixels, so as to reduce the burden on the processor 101 during operation, reduce power consumption, and enable quick startup and photo taking.
[0040] In some embodiments, the electronic device 100 may be applied to a method for controlling a camera widget, and the steps in the method for controlling a camera widget may be executed by the processor 101 , the memory 102 , the touch screen 103 , and the camera 104 in the electronic device 100 .
[0041] Furthermore, the processor 101 may be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, an off-the-shelf programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component. The processor may implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present invention. The processor may be an image processor, a microprocessor, or any conventional processor. The steps of the methods disclosed in conjunction with the embodiments of the present invention may be directly implemented and executed by a hardware decoding processor, or by a combination of hardware and software modules within the decoding processor. The software modules may be located in a storage medium well-known in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or registers. The storage medium is located in the memory; for example, the processor 101 may read applications, computer instructions, or data in the memory and, in conjunction with its hardware, complete the steps of the method performed by the camera widget.
[0042] Furthermore, based on the operating principle and information transmission medium of the touch screen 103, the touch screen 103 can be a resistive, capacitive, infrared, or surface acoustic wave touch screen. Based on the installation method of the touch screen 103, the touch screen 103 can be an external, built-in, or integrated touch screen. Based on the technical principle of the touch screen 103, the touch screen 103 can be a vector pressure sensing touch screen, a resistive touch screen, a capacitive touch screen, an infrared touch screen, or a surface acoustic wave touch screen. Furthermore, the camera 104 can be a digital camera or an analog camera.
[0043] Please also refer to Figure 2 and Figure 3 , Figure 2 This is a structural block diagram of the camera widget control device 200 provided in an embodiment of the present application. Figure 3This is a schematic diagram of a display interface 105 provided in accordance with an embodiment of the present application. The control device 200 of the camera widget includes a display control module 201, an interface switching control module 202, a preview control module 203, and a shooting control module 204. The display control module 201 is used to control the touch screen 103 to display an initial display interface 105, and to display a graphical user interface 300 for the camera widget entrance on the display interface 105. The interface switching control module 202 is used to switch only the graphical user interface 300 in the display interface 105 to a viewfinder interface in response to a camera wake-up command on the graphical user interface 300. The viewfinder interface is smaller than the size of the display interface 105, and the display area of the display interface 105 other than the graphical user interface 300 is a second display interface 106, which is displayed based on the content of the initial display interface 105. The preview control module 203 is used to present an image captured by the camera 104 through the viewfinder interface 301. The shooting control module 204 is used to capture and save the image currently in the viewfinder interface in response to the shooting control command.
[0044] Thus, the control device 200 of the camera widget is modularized, and each module implements different functions, so that the control device 200 of the camera widget can better implement the control method of the camera widget, more accurately implement corresponding functions according to user operations, make the control device 200 of the camera widget more intelligent, and improve the user experience; and the size of the viewfinder interface is smaller than the size of the display interface 105, which can simplify the function of the control device 200 of the camera widget, and the second display interface 106 maintains the content of the initial display interface 105, which can reduce the workload burden of the processor 101 during operation, so as to quickly open the camera widget to the shooting mode, save power consumption, reduce waiting time, and better achieve snapshot.
[0045] In some embodiments, the control device 200 of the camera widget can be applied to the control method of the camera widget, and the steps in the control method of the camera widget can be executed by the display control module 201, the interface switching control module 202, the preview control module 203 and the shooting control module 204 in the control device 200 of the camera widget.
[0046] In some embodiments, such as Figure 3As shown, the display interface 105 includes a graphical user interface 300, a second display interface 106 and other applications 107. The graphical user interface 300 is an entrance to the camera widget, that is, the view display of the camera widget in the display interface 105. The graphical user interface 300 can display any photo and / or video taken by the camera widget, and the middle vertical line part can be indicated as the displayed photo and / or video.
[0047] Please also refer to Figure 4-Figure 7 , Figure 4 This is a schematic diagram of a viewfinder interface 301 provided in an embodiment of the present application. Figure 5 This is a schematic diagram of a sleep state interface 302 provided in an embodiment of the present application. Figure 6 This is a schematic diagram of a sleep state interface 302 provided in another embodiment of the present application. Figure 7 This is a schematic diagram of an image display interface 303 provided in an embodiment of the present application.
[0048] In some embodiments, such as Figure 4 As shown, the viewfinder interface 301 displays the image captured by the camera 104, wherein the middle vertical line portion indicates the image captured by the camera 104. The user can switch the graphical user interface 300 to the viewfinder interface 301 by clicking or voice control to start fast shooting.
[0049] In some embodiments, such as Figure 5 and Figure 6 As shown, when the user does not operate the viewfinder interface 301 within a preset time range, the viewfinder interface 301 enters a sleep state. The user can wake up the camera widget through any operation instruction such as clicking, so that the camera widget is restored from the sleep state interface 302 to the viewfinder interface 301. The appearance of the sleep state interface 302 can be set according to user needs.
[0050] In some embodiments, such as Figure 7 As shown, the image display interface 303 is the interface switched by the user through sliding or other control instructions after entering the viewfinder interface 301, and is used to display the image saved after the shooting; and the image display interface 303 can also be the interface entered by the user through sliding or other touch instructions at the graphical user interface 300. When the camera widget has shot and saved the shot pictures and / or videos, the image display interface 303 shows the saved pictures and / or videos, and the user can view the pictures or videos by sliding left and right; when the camera widget has not shot or the electronic device 100 has not saved the shot pictures and / or videos, the image display interface 303 is in a black screen state or displays a text prompt.
[0051] In some embodiments, the viewfinder interface 301 may be provided with operation instructions to guide the user to use the camera widget.
[0052] See also Figure 8 , Figure 8 This is a flow chart of a method for controlling a camera widget provided by an embodiment of the present application. Figure 8 As shown, the control method of the camera widget is applied to an electronic device 100, and the electronic device 100 includes a touch screen 103 and a camera 104. The control method includes:
[0053] S11: the touch screen displays an initial display interface, and displays a graphical user interface of a camera widget entrance on the display interface;
[0054] S12: In response to a camera wake-up instruction for the graphical user interface, switching only the graphical user interface in the display interface to a viewfinder interface; wherein a size of the viewfinder interface is smaller than a size of the display interface, and a display area of the display interface other than the graphical user interface is a second display interface, and the second display interface is displayed according to the content of the initial display interface;
[0055] S13: Presenting the image acquired by the camera through the viewfinder interface;
[0056] S14: generating a shooting control instruction based on the user's operation;
[0057] S15: In response to the shooting control instruction, shoot and save the image currently in the viewfinder interface.
[0058] Thus, the camera widget can be displayed on the touch display screen and respond to the wake-up command to directly switch the entry interface of the camera widget to the viewfinder interface 301 to quickly start the camera widget application without entering a separate application window, and the user can directly respond to the shooting control command in the viewfinder interface 301 switched from the entry interface to shoot, thereby improving shooting efficiency and user convenience; and the function of the camera widget is simpler than that of the camera application, and the viewfinder interface 301 is also reduced and the second display interface 106 still displays the content of the initial display interface 105. When the camera widget enters the shooting mode, only the camera widget entry area is switched to the viewfinder interface 301, and the remaining interfaces are not changed, thereby reducing the workload burden of the processor 101, saving power consumption, and reducing waiting time, so as to better realize the quick startup and snapshot functions, which is suitable for shooting scenes that require quick response and enhances the user's snapshot experience.
[0059] The display control module 201 controls the touch screen to display the graphical user interface 300 on the display interface 105. The graphical user interface 300 is the entrance for the camera widget to enter the shooting mode. The interface switching control module 202 responds to the wake-up instruction of the graphical user interface 300 and switches the graphical user interface 300 to the viewfinder interface 301 to enter the shooting mode. The viewfinder interface 301 can capture an image through the camera under the control of the preview control module 203 and present it in the viewfinder interface 301. The shooting control module 204 responds to the shooting control instruction to shoot the image determined on the viewfinder interface 301 and save the captured image.
[0060] Among them, widgets are small spaces created by system-supported applications and displayed on the desktop. They are miniature application views that can be embedded in applications such as the home screen and receive regular updates. These miniature application views are called widgets in the interface.
[0061] See also Figure 9 , Figure 9 This is a flowchart of a method for controlling a camera widget provided in another embodiment of the present application. In some embodiments, the viewfinder interface 301 includes a preview interface and a function button, wherein the function button is a shutter button located on a side of the preview interface or suspended above the preview interface. Presenting the image captured by the camera through the viewfinder interface includes:
[0062] S23: Presenting the image to be captured acquired by the camera through the preview interface.
[0063] The step of photographing and saving the image currently in the viewfinder interface in response to the photographing control instruction includes:
[0064] S21: The touch screen displays an initial display interface, and displays a graphical user interface of a camera widget entrance on the display interface;
[0065] S22: In response to a camera wake-up instruction for the graphical user interface, switching only the graphical user interface in the display interface to a viewfinder interface; wherein a size of the viewfinder interface is smaller than a size of the display interface, and a display area of the display interface other than the graphical user interface is a second display interface, and the second display interface is displayed according to the content of the initial display interface;
[0066] S23: Presenting the image to be captured acquired by the camera through the preview interface;
[0067] S24: generating a shooting control instruction based on the user's operation;
[0068] S25: In response to the operation instruction of the shutter button, capture and save an image, display the captured image on the graphical user interface, and use the area currently displaying the captured image as an entrance to the camera widget.
[0069] Therefore, function buttons are set to better and more accurately control the viewfinder interface 301. The preview interface presents the image to be captured, allowing the user to preview the shooting effect so that the user can make adjustments based on the preview interface, thereby improving the user experience of using the camera widget. The shutter button is used to control the camera 104 to capture images to obtain a finished film, thereby better and more intuitively realizing the control of the shooting function of the camera widget. In addition, the camera widget simplifies the shooting operation to a click operation of the shutter button to achieve shooting, thereby improving the user experience when using it.
[0070] Moreover, the saved images after shooting are displayed on the graphical user interface 300, which makes it easy for users to view the saved images on the camera widget. The camera widget can be regarded as an integration of camera and album functions, making the camera widget functionally diversified to meet the diverse needs of users.
[0071] Among them, S21, S22 and S24 are Figure 8 The steps S11, S12 and S14 correspond to each other. For details, please refer to Figure 8 S23 is the relevant description of Figure 8 The specific method steps of S13, S25 are Figure 8 The specific method steps of S15 in .
[0072] The interface switching control module 202 enters the shooting mode after switching the graphical user interface 300 to the viewfinder interface 301. At this time, the viewfinder interface 301 includes the preview interface and the function button. The camera 104 is turned on to enter the shooting mode when switching to the viewfinder interface 301. The image captured by the camera 104 is displayed in the preview interface. The user adjusts the camera angle according to the image effect in the preview interface to adjust the shooting range and shooting effect; and the function button is set to a shutter button. The user sends a shooting control instruction to the shooting control module 204 by clicking the shutter button. The shooting control module 204 responds to the shooting control instruction of the shutter button to make the camera widget shoot and save the image currently in the viewfinder interface 301 in the camera widget.
[0073] It can be understood that the shooting control instruction can be but is not limited to operations such as single-clicking or long pressing, and can also be voice control instructions, etc. In addition, the user can perform single-clicking or long pressing operations in the viewfinder interface 301 to control the camera widget to shoot, and the user can also perform single-clicking or long pressing operations outside the viewfinder interface 301 to control the shooting control module 204 to shoot. It can be set according to actual needs and is not limited here.
[0074] In some other embodiments, the user may control the graphical user interface 300 to display desired images as an album through a sliding operation, wherein the sliding operation is a touch operation of swiping left and right to control the display of the images.
[0075] In some other embodiments, the graphical user interface 300 may also display photos taken and saved by the camera software of the electronic device 100 .
[0076] In some embodiments, the viewfinder interface 301 receives and responds to a touch command, where the touch command is a shutter command. In response to the shooting control command, shooting and saving the image currently in the viewfinder interface 301 includes:
[0077] In response to the shutter command, the image currently in the viewfinder interface is photographed and saved.
[0078] Therefore, the shutter command is generated through the touch operation without restricting the implementation method of the shooting function, which makes it convenient for users to use the camera widget to quickly capture photos, thereby improving the capture efficiency and applicability in environments where capture is required.
[0079] It is understandable that the shutter command may be generated by, but not limited to, a single-click touch operation, and may be set according to actual needs, which is not limited here.
[0080] In some embodiments, the electronic device 100 is provided with a plurality of cameras 104, the camera widget is preset with camera parameters, and the control method further includes:
[0081] In response to a camera wake-up instruction on the graphical user interface, the camera widget calls some shooting mode functions related to the camera parameters to call the corresponding camera to enter shooting mode, and presents an image captured by the camera through the viewfinder interface; wherein at least some of the preset camera parameters are fixed parameters when the camera widget is in shooting mode.
[0082] Thus, the camera widget has preset camera parameters before entering the shooting mode, so that when entering the shooting mode, there is no need to call and adjust camera parameters unrelated to the current shooting. The camera widget shoots with a fixed camera 104 and camera parameters, which can simplify the startup procedure of the camera widget, thereby reducing the workload of the processor 101 during operation, saving power consumption, and enabling the camera widget to quickly respond to camera wake-up commands, reducing waiting time, and entering the shooting mode more quickly to capture photos.
[0083] In some embodiments, the camera parameters of the camera widget cannot be modified after entering the shooting mode. If they need to be modified, it is necessary to exit the shooting mode and modify them in the settings function of the electronic device 100 to reduce the workload of the processor 101 when running the camera widget program.
[0084] In some embodiments, the preset camera parameters include the size ratio of the viewfinder interface 301. Before the camera widget enters the shooting mode, the user needs to set the size ratio of the viewfinder interface 301 in the settings, or maintain the default setting state. After the camera widget enters the shooting mode, the graphical user interface 300 switches to the viewfinder interface 301 with the preset size ratio to enter the shooting state and shoot. At this time, the size ratio of the viewfinder interface 301 cannot be modified through touch operations or other operations on the display interface 105, and can only be reset by exiting the shooting mode and entering the settings.
[0085] In some embodiments, the preset camera parameters include a filter style of the viewfinder interface 301. Before the camera widget enters the shooting mode, the user needs to set the filter style of the viewfinder interface 301 in the settings, or maintain the default setting state. After the camera widget enters the shooting mode, the graphical user interface 300 switches to the viewfinder interface 301 with the preset filter style to enter the shooting state and shoot. At this time, the filter style of the viewfinder interface 301 cannot be modified through touch operations or other operations on the display interface 105, and can only be reset by exiting the shooting mode and entering the settings.
[0086] In other embodiments, the user sets some of the preset camera parameters in the settings before the camera widget enters the shooting mode, or maintains the default settings. However, when the camera widget enters the shooting mode, some of the camera parameters can call the corresponding algorithm according to the light of the image received by the camera to adjust certain light and shadow effects so as to enter the shooting state and take pictures.
[0087] It is understandable that the preset camera parameters are not limited to size ratio, filter style, etc., and the camera parameters can be increased or decreased as needed, which is not limited here.
[0088] In some embodiments, the camera widget is preset with camera parameters, and the control method further includes:
[0089] In response to the shooting control instruction, after entering the shooting mode, only some of the multiple shooting modes are called for user selection, and / or only some of the multiple camera parameter adjustment controls are formed for user selection.
[0090] Thus, the camera widget has preset camera parameters before entering the shooting mode, so that there is no need to call and adjust irrelevant shooting modes when shooting. The camera widget shoots with partial shooting parameters, which can simplify the shooting procedure after the camera widget is started, thereby reducing the workload of the processor 101 during operation, saving power consumption, and enabling the camera widget to quickly respond to shooting control instructions, reducing the shooting time, and taking snapshots faster.
[0091] In some embodiments, the camera parameters of the camera widget cannot be modified when taking pictures in response to the shooting control instruction. If they need to be modified, it is necessary to exit the camera widget and modify them in the settings function of the electronic device 100 to reduce the workload of the processor 101 when running the camera widget program.
[0092] In some embodiments, the preset camera parameters include magnification. Before the camera widget enters shooting mode, the user must set the magnification of the camera 104 during shooting, or maintain the default setting. After entering shooting mode, the camera widget responds to the shooting control command to shoot, and the resulting image is an image with the preset magnification. The graphical user interface 300 switches to a viewfinder interface 301 with a preset size ratio to enter the shooting state and shoot. At this time, the size ratio of the viewfinder interface 301 cannot be modified through touch operations or other operations on the display interface 105. It can only be reset by exiting the shooting mode and entering the settings.
[0093] In other embodiments, the multiple can be called and adjusted according to actual needs when in shooting mode, but is limited to adjustment within integer multiples and a certain range, such as 1 times, 2 times, 3 times, etc.
[0094] In other embodiments, the preset camera parameters do not have a document correction mode, and the position and clarity of the film cannot be corrected during shooting, which simplifies the function of the camera widget, reduces power consumption, and improves response speed to better achieve snapshots.
[0095] In other embodiments, the preset camera parameters do not have a professional mode, and there is no need to call too many parameter functions when shooting. Only some camera shooting functions related to the camera parameters are called to shoot and form a film, which simplifies the function of the camera widget, reduces power consumption, and improves response speed to better achieve snapshot.
[0096] It is understandable that the preset camera parameters are not limited to magnifications, etc., and the camera parameters can be increased or decreased as needed, which is not limited here.
[0097] In some other embodiments, the camera parameters may also be configured to save at least some of the photos and / or videos taken by the camera widget:
[0098] Save photos and / or videos taken by the camera widget within a preset time period, and / or
[0099] Save the photos and / or videos taken by the camera widget within a preset number of shots, and / or
[0100] Save the photos and / or videos taken by the camera widget within a preset shooting time, and / or
[0101] Save photos and / or videos taken by the camera widget within a preset storage capacity, wherein, when the camera widget takes a new photo or video and the storage capacity is full, delete the oldest photo or video in the storage capacity to free up storage space for storing the currently newly taken photo or video.
[0102] Thus, the electronic device 100 can save photos and / or videos taken by the camera widget under certain conditions as needed to better meet user needs, and can limit the photos and / or videos taken by the camera widget saved by the electronic device 100 under certain conditions to reduce the storage capacity occupied by photos and / or videos, improve the user experience, and enhance practicality in various environments.
[0103] In some embodiments, after responding to the shooting control instruction and shooting and saving the image currently in the viewfinder interface 301, the method further includes:
[0104] In response to a photo viewing instruction of the camera widget, display at least one photo currently taken and saved;
[0105] The camera widget presets a switching frequency, and the displaying of at least one photo currently taken and saved includes:
[0106] When the number of images is greater than one, the photos are displayed and switched according to a preset switching frequency.
[0107] Thus, the camera widget can display the images saved after shooting on the image display interface 303, that is, it has an album function, making the functions of the camera widget more diverse; and the image can be switched according to a preset switching frequency, which is convenient for users to view images, thereby improving the intelligence of the camera widget.
[0108] In some embodiments, when the shooting control instruction is generated by a click operation, the photo viewing instruction is set to be generated by a swiping operation to distinguish between the shooting control instruction and the photo viewing instruction. After the shooting is completed, in response to the photo viewing instruction generated by the user by swiping up, the viewfinder interface 301 is switched to the image display interface 303, and the user browses the photos saved by this shooting by swiping left and right.
[0109] It is understandable that the generation of the photo viewing instruction can be set according to actual needs and is not limited here.
[0110] Please also refer to Figure 10 , Figure 10 Another embodiment of the present application provides Figure 8 In some embodiments, the camera wake-up instruction includes an image capture mode instruction and a video capture mode instruction, and the step of switching the graphical user interface in the display interface to the viewfinder interface in response to the camera wake-up instruction on the graphical user interface includes:
[0111] S31: Determine whether the camera wake-up instruction is an image capture mode instruction;
[0112] S32: In response to the image capture mode instruction generated by the first touch operation on the graphical user interface, switching the graphical user interface to an image viewfinder interface to enter an image capture mode; or,
[0113] S33: In response to the video shooting mode instruction generated by the second touch operation on the graphical user interface, the graphical user interface is switched to a video viewfinder interface to enter a video shooting mode.
[0114] Thus, the camera widget can not only take photos but also take videos. The wake-up command is divided into the image shooting control command and the video shooting control command. Different viewfinder interfaces 301 can be entered according to different camera wake-up commands to enter different shooting modes, thereby improving the functional diversity of the camera widget, making the camera widget function no longer single, and improving the user experience. In addition, the shooting mode command is a command generated by a touch operation, that is, the camera widget can be quickly started through a simple operation.
[0115] In some embodiments, the first touch operation is a single click, and the second touch operation is a long press.
[0116] It is understandable that the first touch operation and the second touch operation can be set according to actual needs and are not limited thereto.
[0117] Please also refer to Figure 11 , Figure 11 Another embodiment of the present application provides Figure 8 In some embodiments, as shown in FIG. Figure 11 As shown, the electronic device 100 includes a photo mode and a video mode. In response to the shooting control instruction, shooting and saving the image currently in the viewfinder interface 301 includes:
[0118] S41: Determine whether the instruction to the camera widget is generated by a single-click operation;
[0119] S42: In response to the instruction generated by the single-click operation, taking and saving the photo in the current viewfinder interface; or,
[0120] S43: In response to the instruction generated by the long press operation, the video in the current viewfinder interface is recorded and saved.
[0121] Therefore, in order to distinguish the shooting control instruction from the video shooting control instruction, the image shooting control instruction is set as an instruction generated by a single-click operation, and the video shooting control instruction is set as an instruction generated by a long-press operation. The user can choose to shoot a video or a photo according to different shooting control instructions, thereby improving the functional diversity of the camera widget, enabling the camera widget to respond to user operations more accurately, and improving the user experience.
[0122] It is understandable that the shooting control instructions can be set according to actual needs and are not limited thereto.
[0123] In some embodiments, the display interface 105 includes a lock screen interface and a desktop, and in response to a camera wake-up instruction on the graphical user interface, switching only the graphical user interface in the display interface to the viewfinder interface includes:
[0124] The camera widget entrance is set on the lock screen interface. In the lock screen state, in response to the camera wake-up command of the graphical user interface, the graphical user interface on the lock screen interface is switched to the viewfinder interface for shooting. The area on the lock screen interface other than the viewfinder interface is the second lock screen interface, and the second lock screen interface remains in the lock screen state.
[0125] Therefore, when the camera widget is set on the lock screen interface, the user can use the camera widget and enter the shooting mode without unlocking the device, which improves the user's shooting efficiency and convenience, can achieve better and faster snapshots, and enhances the user's experience.
[0126] In some embodiments, when the lock screen interface is off, the camera widget entrance set on the lock screen interface can still be displayed on the lock screen interface, but the second lock screen interface is in the off state.
[0127] When the camera widget entrance is set on the interface and the graphical user interface 300 switches to the viewfinder interface 301, the area other than the viewfinder interface 301 on the interface still displays the original content, and only the viewfinder interface 301 area can be operated.
[0128] It is understandable that the user can place the camera widget on any interface according to his or her own preferences and habits, and there is no limitation here.
[0129] In some embodiments, the method for controlling the camera widget includes:
[0130] In response to the graphical user interface and / or the viewfinder interface adjustment instruction received at any position of the desktop and / or the lock screen interface, the position and / or size of the graphical user interface and / or the viewfinder interface are adjusted.
[0131] Thus, the user can freely choose to adjust the position and / or size of the graphical user interface 300 and / or the viewfinder interface 301 as needed to meet the user's own preferences, and avoid affecting the user's operations on the desktop and / or the lock screen interface due to the position and / or size, thereby improving the user's experience.
[0132] Moreover, the generation of operation instructions for the camera widget does not need to be limited to buttons and fixed positions. Single-clicking or long-pressing operations can be performed at any position on the desktop and / or the lock screen interface to generate corresponding operation instructions to control the camera widget to perform corresponding operations, making the camera widget more intelligent, so as to achieve better and faster snapshots and enhance the user experience.
[0133] In some embodiments, after switching the graphical user interface in the display interface to the viewfinder interface, the control method further includes:
[0134] When a control interface of another application other than the viewfinder interface of the camera widget is opened on the display interface, the viewfinder interface is suspended above the other application, and in response to an operation instruction of the camera widget, the current screen / currently displayed photo or video is transferred to the other currently opened application.
[0135] Therefore, the viewfinder interface 301 is suspended at the top to prevent the viewfinder interface 301 from blocking the control interface of other applications 107, so that the camera widget can be used to shoot without affecting the user's operation of the control interface of other applications 107, and there is no need to switch interfaces, making the camera widget more intelligent and improving the user's experience; and the user can quickly share the saved photos or videos to other applications 107, making the camera widget more intelligent and facilitating the user to view the photos or videos taken and saved by the camera widget through other applications 107.
[0136] When multiple control interfaces are opened and the viewfinder interface 301 is suspended at the top, the user can only operate within the interface of the camera widget to generate control instructions to control the camera widget.
[0137] In some embodiments, after switching the graphical user interface in the display interface to the viewfinder interface, the control method further includes:
[0138] The display area of the viewfinder interface is determined, and only the screen refresh rate of the viewfinder interface is increased, while the display brightness of the display area of the viewfinder interface is maintained.
[0139] Therefore, increasing the screen refresh rate of the viewfinder interface 301 can improve the stability of the displayed image, reduce freezes when shooting videos, make the shooting picture smoother, improve the quality of the captured photos and / or videos, and enhance the user experience.
[0140] In other embodiments, after the graphical user interface 300 in the display interface is switched to the viewfinder interface 301 , while maintaining the display brightness of the display area of the viewfinder interface 301 , the display brightness of the second display interface 106 is reduced to highlight the viewfinder interface 301 .
[0141] Please also refer to Figure 12 , Figure 12 This is a flowchart of a method for controlling a camera widget according to another embodiment of the present application. In some embodiments, the control method further includes:
[0142] S51: Acquire the state of the electronic device, wherein the electronic device further includes a camera widget;
[0143] S52: When the electronic device is in motion and / or in an outdoor environment, and a change in the electronic device status information is received, the camera widget is started, and only the graphical user interface in the display interface is switched to a viewfinder interface, and the image obtained by the camera is presented on the viewfinder interface.
[0144] Therefore, whether a snapshot is required is determined based on the monitored state of the electronic device 100. If the electronic device 100 is in motion and / or is located in an outdoor environment and a change in information is received, a snapshot is required, and the camera widget is started to take a snapshot, thereby improving the user experience.
[0145] It is understandable that the change of the status information of the electronic device 100 may be taking the electronic device 100 out of a pocket or lifting the electronic device 100, etc., which is not limited here.
[0146] It is understandable that the camera widget can be started automatically to switch the graphical user interface 300 to the viewfinder interface 301, or the graphical user interface 300 can be switched to the viewfinder interface 301 according to a camera wake-up instruction generated by a user's click or other operation. The startup method of the camera widget can be set according to actual needs and is not limited here.
[0147] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program is invoked by the processor 101 to execute the control method of the camera widget.
[0148] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable memory, which may include: a flash drive, a read-only memory, a random access memory, a magnetic disk or an optical disk, etc.
[0149] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0150] In the description of this application, unless otherwise specified or limited, the term "connection" should be understood in a broad sense. For example, it can mean a fixed connection, a detachable connection, or an integral connection; it can mean a direct connection, an indirect connection through an intermediate medium, or internal communication between two components; it can mean a communication connection; or it can mean an electrical connection. Those skilled in the art will understand the specific meanings of the above terms in this application based on the specific circumstances.
[0151] Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute an independent or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0152] In the several embodiments provided in this application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the modules described above is only a logical function division. In actual implementation, there may be other division methods, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or modules can be electrical or other forms.
[0153] The modules described above as separate components may or may not be physically separate, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed across multiple network elements. Some or all of the modules may be selected based on actual needs to achieve the purpose of this embodiment.
[0154] In addition, the functional modules in the various embodiments of the present application may be integrated into a processing module, or each module may exist physically separately, or two or more modules may be integrated into a single module. The above-mentioned integrated modules may be implemented in the form of hardware or software functional modules.
[0155] If the above-mentioned integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution 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, and the computer software product is stored in a memory, including a number of instructions for enabling a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the above-mentioned methods of each embodiment of the present application. The aforementioned memory includes: various media that can store program codes, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0156] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program. The program can be stored in a computer-readable memory, and the memory can include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0157] The above is an implementation method of the embodiment of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the embodiment of the present application. These improvements and modifications are also considered to be within the scope of protection of the present application.
Claims
1. A method for controlling a camera widget, characterized in that: The control method is applied to an electronic device, wherein the electronic device includes a touch screen and a camera, and the control method includes: The touch screen displays an initial display interface, and a graphical user interface that displays a camera widget entrance on the display interface; In response to a camera wake-up instruction for the graphical user interface, only the graphical user interface in the display interface is switched to a viewfinder interface; wherein the viewfinder interface is smaller than the display interface, and a display area of the display interface other than the graphical user interface is a second display interface, and the second display interface is displayed according to the content of the initial display interface; Presenting the image acquired by the camera through the viewfinder interface; Generate shooting control instructions based on user operations; In response to the shooting control instruction, the image currently in the viewfinder interface is shot and saved.
2. The control method according to claim 1, characterized in that: The framing interface includes a preview interface and a function button, wherein the function button is a shutter button, and the shutter button is located on a side of the preview interface or suspended on the preview interface; Presenting the image acquired by the camera through the viewfinder interface includes: Presenting the image to be captured acquired by the camera through the preview interface; The step of photographing and saving the image currently in the viewfinder interface in response to the photographing control instruction includes: In response to an operation instruction on the shutter button, an image is captured and saved, the captured image is displayed on the graphical user interface, and the area currently displaying the captured image is used as an entry for a camera widget.
3. The control method according to claim 1, wherein: The viewfinder interface receives and responds to a touch command, wherein the touch command is a shutter command; The step of photographing and saving the image currently in the viewfinder interface in response to the photographing control instruction includes: In response to the shutter command, the image currently in the viewfinder interface is photographed and saved.
4. The control method according to claim 1, wherein: The electronic device is provided with a plurality of cameras, the camera widget is preset with camera parameters, and the control method further comprises: In response to a camera wake-up instruction on the graphical user interface, the camera widget calls some shooting mode functions related to the camera parameters to call the corresponding camera to enter shooting mode, and presents an image captured by the camera through the viewfinder interface; wherein at least some of the preset camera parameters are fixed parameters when the camera widget is in shooting mode.
5. The control method according to claim 1, characterized in that: The camera widget is preset with camera parameters, and the control method further includes: In response to the shooting control instruction, after entering the shooting mode, only some of the multiple shooting modes are called for user selection, and / or only some of the multiple camera parameter adjustment controls are formed for user selection.
6. The control method according to claim 1, characterized in that: After photographing and saving the image currently in the viewfinder interface in response to the photographing control instruction, the method further includes: In response to a photo viewing instruction of the camera widget, display at least one photo currently taken and saved; The camera widget presets a switching frequency, and the displaying of at least one photo currently taken and saved includes: When the number of images is greater than one, the photos are displayed and switched according to a preset switching frequency.
7. The control method according to claim 1, characterized in that: The camera wake-up instruction includes an image capture mode instruction and a video capture mode instruction, and the step of switching the graphical user interface in the display interface to a viewfinder interface in response to the camera wake-up instruction on the graphical user interface includes: Determining whether the camera wake-up instruction is an image capture mode instruction; In response to the image capture mode instruction generated by the first touch operation on the graphical user interface, switching the graphical user interface to an image viewfinder interface to enter an image capture mode; or, In response to the video shooting mode instruction generated by the second touch operation on the graphical user interface, the graphical user interface is switched to a video viewfinder interface to enter the video shooting mode.
8. The control method according to claim 1, characterized in that: The display interface includes a lock screen interface and a desktop; and in response to a camera wake-up instruction of the graphical user interface, switching only the graphical user interface in the display interface to the viewfinder interface includes: The camera widget entrance is set on the lock screen interface. In the lock screen state, in response to the camera wake-up command of the graphical user interface, the graphical user interface on the lock screen interface is switched to the viewfinder interface for shooting. The area on the lock screen interface other than the viewfinder interface is the second lock screen interface, and the second lock screen interface remains in the lock screen state.
9. The control method according to claim 8, characterized in that: The control method of the camera widget includes: In response to the graphical user interface and / or the viewfinder interface adjustment instruction received at any position of the desktop and / or the lock screen interface, the position and / or size of the graphical user interface and / or the viewfinder interface are adjusted.
10. The control method according to claim 1, characterized in that: After the graphical user interface in the display interface is switched to the viewfinder interface, the control method further includes: When a control interface of another application other than the viewfinder interface of the camera widget is opened on the display interface, the viewfinder interface is suspended above the other application, and in response to an operation instruction of the camera widget, the current screen / currently displayed photo or video is transferred to the other currently opened application.
11. The control method according to claim 1, characterized in that: After the graphical user interface in the display interface is switched to the viewfinder interface, the control method further includes: The display area of the viewfinder interface is determined, and only the screen refresh rate of the viewfinder interface is increased, while the display brightness of the display area of the viewfinder interface is maintained.
12. The control method according to claim 1, characterized in that: The control method further includes: Acquiring a state of the electronic device, wherein the electronic device further includes a camera widget; When the electronic device is in motion and / or in an outdoor environment, and a change in electronic device status information is received, the camera widget is activated, only the graphical user interface in the display interface is switched to a viewfinder interface, and the image captured by the camera is presented on the viewfinder interface.
13. A camera widget control device, characterized in that: include: A display control module, configured to control the touch screen to display an initial display interface, and to display a graphical user interface of a camera widget entrance on the display interface; an interface switching control module, configured to, in response to a camera wake-up instruction for the graphical user interface, switch only the graphical user interface in the display interface to a viewfinder interface; wherein the viewfinder interface is smaller than the display interface, and a display area in the display interface other than the graphical user interface is a second display interface, and the second display interface is displayed according to the content of the initial display interface; A preview control module, configured to present the image captured by the camera through the viewfinder interface; The shooting control module is used to shoot and save the image in the current viewfinder interface in response to the shooting control instruction.
14. An electronic device, characterized in that: include: A processor, a memory, a touch screen display, and a camera, wherein the memory, the touch screen display, and the camera are respectively connected to the processor, the memory stores a camera widget application, and the processor runs the camera widget application to execute the camera widget control method according to any one of claims 1 to 12.
15. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and the computer program is called by a processor to execute the camera widget control method according to any one of claims 1 to 12.