Camera function control method, electronic equipment and storage medium
By associating the sliding direction with function labels, the camera function control method solves the problem of inconvenient camera function control in the prior art, realizes the flexibility and convenience of user operation, supports quick control of multiple camera functions, and improves the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-22
- Publication Date
- 2026-03-13
AI Technical Summary
The existing camera control methods are not convenient enough, affecting the user's speed and experience. Especially when it is necessary to quickly capture or record video, it is easy to make mistakes due to forgetting the wrong sliding direction.
By redefining the camera function control operation, the sliding direction is associated with the position of the function label. Users only need to slide towards the target function label to trigger the camera function, and a text prompt of the camera function will be displayed after the slide, ensuring the accuracy and convenience of operation.
It enhances the flexibility and convenience of user operation, reduces the need to remember the sliding direction, supports quick control of various camera functions, and improves the user experience.
Smart Images

Figure CN121665093A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of photography technology, and more particularly to a camera function control method, electronic device, and storage medium. This application is a divisional application of patent application 2022111578700, filed on September 22, 2022, entitled "Camera Function Control Method, Electronic Device, and Storage Medium". Background Technology
[0002] More and more electronic devices are equipped with cameras, allowing users to take photos or videos anytime, anywhere. To enhance user experience, these devices offer various camera functions, such as portrait mode, night mode, video recording, and movie mode. However, using the camera typically involves: opening the camera app -> selecting a camera function -> operating the camera to take a photo or record video. When capturing fleeting moments, this process slows down the user experience.
[0003] To improve camera usage speed, existing technologies have introduced shortcut operations for continuous photo taking or video recording. For example, after opening the camera app, the user can use the shutter button as a starting point to swipe left for quick continuous photo taking, and swipe right for quick video recording. While this method improves camera usage speed to some extent, users need to memorize the camera function corresponding to each swipe direction before use. Failure to memorize or misremembering the function may lead to operational errors and prevent the desired rapid operation from being achieved. Summary of the Invention
[0004] The main purpose of this application is to provide a method for controlling camera functions, an electronic device, and a storage medium, aiming to solve the technical problem that existing methods for controlling camera functions are not convenient enough and affect user speed and experience.
[0005] To achieve the above technical objectives, this application adopts the following technical solution: In a first aspect, this application provides a camera function control method. This method is applied to an electronic device that includes multiple camera functions. A first interface corresponding to each camera function includes a first area and a second area. The first area is the camera's shooting button, and the second area is the area excluding the shooting button. The second area includes multiple function labels for identifying camera functions. The method includes: displaying the first interface of the first camera function of the electronic device; receiving a first operation from a user on the first interface of the first camera function, the first operation including a swipe operation; on the first interface of the first camera function, when the swipe operation moves from the first area to the second area, determining whether the swipe direction points to a first function label; if the swipe direction points to a first function label, switching to displaying the second interface of the second camera function identified by the first function label, the second interface including text representing the second camera function, the text being displayed at the same position as the first function label; and on the second interface of the second camera function, responding to the swipe operation by continuing to swipe along the location of the text of the second camera function, controlling the operation of the second camera function.
[0006] In the method described above in this application, a new camera function control operation mode is redefined. This operation mode associates the sliding direction with the position of the function label. The user only needs to slide towards the location of the target function label to trigger the camera function corresponding to that function label. Furthermore, after the user slides towards the function label, the second interface is displayed, showing text indicating the second camera function. This prompts the user to understand the function the camera will be using after the operation, preventing accidental operation. Moreover, the display position of the text indicating the second camera function is the same as the display position of the first function label, guiding the user to continue sliding to trigger the second camera function.
[0007] Therefore, the user operation is more flexible. The camera function is triggered by the swipe pointing to it, allowing for quick control based on any selected camera function. For example, swiping in different directions can control multiple different camera functions. Furthermore, users don't need to memorize the correspondence between swipe directions and camera functions; simply swiping towards a function label will activate the corresponding camera function, enhancing the flexibility and user experience of camera operation.
[0008] In one possible design of the first aspect, the second area comprises multiple non-overlapping partitions, each partition covering a function label. The division of the partitions is related to the relative positions of the shooting button and the function labels. In the above design, based on the relative positions of the shooting button and the function labels, the area outside the shooting button is divided into multiple non-overlapping partitions, ensuring that each partition corresponds to a function label, thus facilitating user swipe operations. When a user swipes from the shooting button towards a function label, as long as the user swipes within the same partition, the camera function indicated by the function label covered by that partition will be triggered, thereby both facilitating user swipe operations and improving operational convenience.
[0009] In one possible design of the first aspect, on the first interface of the first camera function, when a swipe operation moves from the first area to the second area, determining whether the swipe direction corresponding to the swipe operation points to the first function label includes: on the first interface of the first camera function, when a swipe operation moves from the first area to the second area, determining whether the swipe operation enters the target partition of the second area; if the swipe operation enters the target partition of the second area, then determining that the function label covered by the target partition is the first function label pointed to by the swipe direction corresponding to the swipe operation. In the above design, the partitioning of the second area conforms to the characteristics of user swipe operations, ensuring accurate pointing to the function label even if the user's swipe operation has a certain offset, thereby facilitating user operation and improving the flexibility of camera control.
[0010] In one possible design of the first aspect, the second area corresponds to multiple non-overlapping angle ranges, each angle range covering a function label. The division of each angle range is related to the relative position between the shooting button and each function label. In the above design, based on the relative position between the shooting button and each function label, the area outside the shooting button is divided into multiple non-overlapping angle ranges, ensuring that each angle range corresponds to a function label, thus facilitating user swipe operations. When the user swipes from the shooting button towards a function label, as long as the user swipes within the same angle range, the camera function indicated by the function label covered by that section will be triggered, thus both facilitating user swipe operations and improving operational convenience.
[0011] In one possible design of the first aspect, on the first interface of the first camera function, when a sliding operation moves from the first area to the second area, determining whether the sliding direction corresponding to the sliding operation points to the first function label includes: on the first interface of the first camera function, when a sliding operation moves from the first area to the second area, calculating the angle between the sliding direction corresponding to the sliding operation and a preset reference direction; if the angle range includes the angle, then determining the function label covered by the angle range including the angle as the first function label pointed to by the sliding direction corresponding to the sliding operation. In the above design, the angle range division of the second area conforms to the characteristics of user sliding operations, ensuring accurate pointing to the function label even if the user's sliding operation has a certain offset, thereby facilitating user operation and improving the flexibility of camera control.
[0012] In one possible design of the first aspect, the camera function control method further includes: when switching to a second interface displaying a second camera function identified by a first function label, hiding the relevant controls displayed on the first interface of the first camera function, wherein the relevant controls include all function labels displayed on the first interface of the first camera function. In the above design, since both the first and second interfaces contain a viewfinder and a shooting button, hiding the relevant controls on the first interface allows the user to intuitively perceive the interface change when displaying the second interface, while also letting the user know that the swipe operation has triggered a camera shortcut control function, thereby improving the user experience. Furthermore, displaying the corresponding text for the triggered camera function at the original function label position allows the user to know the camera function triggered by the current swipe operation, thereby improving the user experience.
[0013] In one possible design of the first aspect, the first operation also includes a long-press operation. The camera function control method further includes: on the first interface of the first camera function, when a long-press operation exists in the first area, determining whether the long-press duration of the long-press operation reaches a preset duration threshold; if the long-press duration of the long-press operation reaches the preset duration threshold, switching to display the second interface of the recording function; on the second interface of the recording function, when the long-press duration of the long-press operation exceeds the duration threshold, controlling the recording function to run. In the above design, compared with the photo function which has multiple shooting modes, the recording function is relatively simple. Therefore, an additional user operation method different from the photo function is provided for the recording function. This method is simple to operate, easy for users to remember, and can quickly open the recording function.
[0014] In one possible design of the first aspect, the camera function control method further includes: on the second interface of the recording function, when the long-press operation becomes invalid, stopping the recording function and restoring the first interface of the first camera function. In the above design, when the user raises their hand, the long-press operation becomes invalid, thereby ending the recording. Simultaneously, to reduce user operations and facilitate continued use of shortcut functions, the recording function opened through this application can automatically restore the operation interface before it started when the recording ends, improving the user experience.
[0015] In one possible design of the first aspect, the function labels are swiped. When a user swipes any function label on the first interface of the first camera function, the display position of all function labels changes. In the above design, swiping the function labels allows the user to operate more camera functions on the same interface. Since the partitioning or angle range division in this application is not fixedly bound to a certain function label, that is, in different application scenarios, swiping towards the same partition or angle range can trigger different camera functions. Therefore, the camera control method of this application can adapt to various application scenarios and improve the convenience of user operation.
[0016] In one possible design of the first aspect, the camera function control method further includes: obtaining a second function label selected by the user through sliding function labels on a first interface of a first camera function; and switching to display the first interface of a third camera function identified by the second function label. In the above design, sliding function labels can display operation interfaces corresponding to different function labels. That is, regardless of which camera function's operation interface is being used, the sliding operation method of this application can be used to control the camera function, thereby facilitating quick operation of the camera function in various application scenarios.
[0017] In one possible design of the first aspect, the second camera function includes a burst shooting function, the first function label includes a photo shooting function label, and the second interface of the second camera function includes text indicating the burst shooting function. On the second interface of the second camera function, in response to a continued swipe along the location of the text indicating the burst shooting function, controlling the operation of the second camera function includes: controlling the burst shooting function to continuously capture photos while the swipe continues along the location of the text indicating the burst shooting function on the second interface of the burst shooting function. In the above design, the burst shooting function specifically includes a photo shooting function that takes continuous photos or a portrait function that takes continuous photos. By allowing the user to swipe, the photo shooting function or portrait function can take continuous photos, thus forming a new burst shooting function, reducing the user's photo taking operations and improving the user experience.
[0018] The camera function control method also includes: when the swipe operation fails or the number of consecutively taken photos reaches a preset threshold, stopping the continuous shooting function and restoring the first interface of the first camera function. The number of consecutively taken photos is related to the duration of the swipe operation, which includes the swipe duration and dwell time on the second interface of the continuous shooting function. The above design provides the conditions for exiting the camera function: first, the swipe operation fails, such as when the user lifts their finger; second, the number of consecutively taken photos reaches the maximum. Simultaneously, the interface before the start is automatically restored after the operation ends, thereby reducing user operations and allowing the user to continue using the shortcut functions.
[0019] In one possible design of the first aspect, the second camera function includes a portrait function, and the first function label includes a portrait function label. On the second interface of the second camera function, responding to a swipe operation by continuing to swipe along the location of the text for the second camera function, controlling the operation of the second camera function includes: on the second interface of the portrait function, responding to a swipe operation by continuing to swipe along the location of the text for the portrait function, controlling the portrait function to take a picture; calling an image processing program adapted to the portrait function to process the generated photo and save the processed image. In the above design, the swipe operation not only allows for quick triggering of the camera function but also enables continuous shooting, thereby reducing user operations. Furthermore, the above design can further process the generated photos, such as using the algorithm corresponding to the night scene function to process the image after taking the picture and then saving it, or using the algorithm corresponding to the portrait function to perform background blurring, portrait beautification (skin smoothing, face slimming), etc., before saving the image, or adding filters in movie mode during video recording, thereby saving user operations and improving the user experience.
[0020] In one possible design of the first aspect, the second camera function includes a video recording function, and the first function label includes a video recording function label. On the second interface of the second camera function, responding to a sliding operation by continuing to slide along the location of the text for the second camera function, controlling the operation of the second camera function includes: on the second interface of the video recording function, responding to a sliding operation by continuing to slide along the location of the text for the video recording function, controlling the video recording function to start recording; when the sliding operation fails, switching to the third interface of the video recording function, and continuing to keep the video recording function running. In the above design, the user can control the video recording function by sliding from the shutter button towards the location of the video recording function label, improving the convenience of using the video recording function. Furthermore, considering that the video recording function has a longer runtime than the photo taking function, and that the video recording function also supports pausing recording, therefore, when the sliding operation fails, such as when the user lifts their finger, the interface is not restored, but the complete video recording function operation interface is switched to display, and the video recording function continues to run, allowing the user to control the recording process at any time.
[0021] In one possible design of the first aspect, the camera function control method further includes: on the third interface of the recording function, when a user-triggered stop recording command is received, the recording function is stopped, and the first interface of the first camera function is restored. In the above design, the second interface of the recording function displays recording progress buttons, such as a recording control button and a pause button. When the user manually clicks the recording control button to trigger a stop recording command, it is determined that the user's true intention is to exit recording. Therefore, while stopping the recording function, the interface before the start is restored, thereby facilitating subsequent user operations and improving the user experience.
[0022] In a second aspect, this application also provides an electronic device, including a processor and a memory, wherein the processor is configured to invoke a computer program in the memory to execute a camera function control method as provided in the first aspect or any of the designs in the first aspect.
[0023] Thirdly, this application also provides a computer-readable storage medium storing computer instructions that, when executed on an electronic device, cause the electronic device to perform a camera function control method as provided in the first aspect or any of the designs in the first aspect.
[0024] Fourthly, this application also provides a computer program product, the computer program product including computer instructions, which, when executed on an electronic device, cause the electronic device to perform the method described above.
[0025] The descriptions of the effects of the second, third, and fourth aspects mentioned above can be referenced from the description of the effects of the first aspect, and will not be repeated here. Attached Figure Description
[0026] Figure 1 A schematic diagram of the camera function interface of a mobile phone provided in an embodiment of this application; Figure 2 This is a schematic diagram of a user operation flow for an existing camera function control method. Figure 3 This is a schematic diagram of another user operation flow for existing camera function control methods; Figure 4 A schematic diagram of the user operation flow of the camera function control method provided in the embodiments of this application; Figure 5 This is a schematic diagram illustrating the division of the camera function interface provided in an embodiment of this application; Figure 6 This is a schematic diagram illustrating a user's sliding operation in a first area and a second area, provided as an embodiment of this application. Figure 7This is a schematic diagram of a user performing a sliding operation within either partition of the first area or the second area, provided in an embodiment of this application. Figure 8 This is a schematic diagram of a user performing a sliding operation within any angle range of the first and second regions, provided in an embodiment of this application. Figure 9 A flowchart illustrating the camera function control method provided in an embodiment of this application; Figure 10 A schematic diagram of an interface for users to continuously take photos by swiping, provided as an embodiment of this application; Figure 11 A schematic diagram of another user interface for continuous shooting by swiping, provided as an embodiment of this application; Figure 12 A schematic diagram of an interface for users to perform continuous portrait shooting by swiping, provided as an embodiment of this application; Figure 13 A schematic diagram of another user interface for taking continuous portrait photos by swiping, provided in an embodiment of this application; Figure 14 A schematic diagram of an interface for users to swipe and take portrait photos, provided as an embodiment of this application; Figure 15 A schematic diagram of the video recording interface of a mobile phone provided in an embodiment of this application; Figure 16 A schematic diagram of a user interface for recording video by swiping, provided in an embodiment of this application; Figure 17 A schematic diagram of the user interface for long-pressing to record video, provided in an embodiment of this application; Figure 18 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0027] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described below in conjunction with the accompanying drawings.
[0028] The terms "first" and "second," etc., used in the specification, claims, and drawings of this application are used only to distinguish different objects and not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or apparatuses.
[0029] The term "embodiment" as used in this application means that a specific feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described in this application can be combined with other embodiments.
[0030] In this application, "at least one (item)" refers to one or more, "more than one" refers to two or more, "at least two (items)" refers to two or three or more, and "and / or" is used to describe the relationship between related objects, indicating that there can be three relationships. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the related objects before and after are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items. For example, at least one (item) of a, b, or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c". In the embodiments of this application, the electronic device has one or more cameras and is equipped with a camera application, which can realize functions such as taking pictures and recording videos. It is understood that the electronic device can be a mobile phone, wearable device, tablet computer, computer with wireless transceiver function, virtual reality (VR) terminal device, augmented reality (AR) terminal device, etc. The following section uses a mobile phone as an example to illustrate electronic devices.
[0031] Figure 1 This is a schematic diagram of a camera function interface displayed on a mobile phone according to an embodiment of this application. The mobile phone supports multiple camera functions, such as photo taking, portrait mode, night mode, and video recording, and each camera function corresponds to a separate camera function interface. For example, if the user selects the photo taking function, the phone displays the photo taking interface, and if the user selects the video recording function, the phone displays the video recording interface. It should be noted that when a user opens the phone's camera application, a function interface is usually displayed by default, such as the photo taking interface. If the user wants to use other camera functions, such as the portrait mode, the user needs to manually select the portrait mode first, and then the phone will automatically switch to display the corresponding portrait mode interface.
[0032] like Figure 1 As shown, the layout of the camera's function interface mainly includes: viewfinder 101, function labels 102, and shooting button 103.
[0033] The viewfinder 101 is used to display images captured in real time by the camera.
[0034] Function labels 102 are used to indicate different camera functions for the user to select. Each function label 102 corresponds to a specific camera function, such as a photo function label, a portrait function label, a night scene function label, and a video recording function label. Some or all of the function labels can be displayed on the same camera function interface. Function labels 102 can be displayed on either side of the viewfinder 101, and can be arranged horizontally, vertically, or in a ring around the shutter button 103. When a function label 102 is triggered, the phone automatically displays the interface for the camera function corresponding to the triggered label. For example, if the photo function label is triggered, the photo function interface will be displayed.
[0035] The shutter button 103 is used to execute the corresponding camera function, which is determined by the current camera function interface displayed on the phone. For example, if the phone is currently displaying the camera function interface, when the user touches the shutter button 103, the phone will automatically take a picture of the image in the current viewfinder 101 and save the photo.
[0036] It should be noted that, based on the actual design requirements of camera applications, the layout of the camera function interface may also include: gallery thumbnails 104, front and rear camera switching buttons 105, camera focus adjustment controls 106, smart vision controls 107, AI photography controls 108, flash controls 109, filter shooting mode controls 110, settings buttons 111, etc. Among them, clicking the gallery thumbnail 104 displays the most recently saved photo or video in the album; swiping left or right allows you to view other pictures or videos in the album; clicking the front / rear camera switch button 105 allows you to switch between the front and rear cameras; sliding the camera focus adjustment control 106 allows you to adjust the camera focus; clicking the smart vision control 107 opens preset application functions, such as object recognition and text recognition; opening the AI photography control 108 allows you to automatically recognize different shooting environments such as portraits and night scenes, and automatically adjust shooting parameters; clicking the flash control 109 allows you to control the flash to be turned on or off; clicking the filter shooting mode control 110 allows you to select different shooting modes and add different filters to the captured images, such as original mode, youth filter mode, impression filter mode, etc.; the settings button 111 opens the settings menu to adjust camera parameters. Generally, different camera functions will have different camera function interfaces. For example, the function interface for taking photos will differ from that for portrait mode and video recording. The specific differences are reflected in the layout of the camera function interface, which is designed according to the actual needs of the camera application. We will not go into too much detail here.
[0037] Figure 2This is a user operation flowchart illustrating an existing camera function control method. Taking the portrait function as an example, as shown in 2a, the user first clicks the camera application icon on the phone's home screen to launch the camera application (assuming a time of 1 second); as shown in 2b, after the camera application is launched, the phone displays the default camera function interface (such as the photo-taking function interface). In the interface shown in 2b, the user finds the portrait function tab among the horizontally arranged function tabs and clicks it. The phone switches from the photo-taking function interface to display the portrait function interface (assuming a time of 2 seconds), as shown in 2c; as shown in 2d, the user first aligns the camera with the subject and then clicks the shutter button. The phone automatically runs the photo-taking function and generates the corresponding photo (assuming a time of 1 second).
[0038] Depend on Figure 2 It is known that the existing camera function control method requires three steps in sequence: opening the camera application, selecting a camera function, and operating the camera function to take a photo or record a video. This takes about 4 seconds. If the user needs to capture some wonderful moments, the user needs to go through the above steps in sequence to take a photo or record a video. Due to the many steps and the increased time consumption, the speed of taking photos or recording videos is reduced, thus missing wonderful moments.
[0039] Figure 3 This is a schematic diagram of another user operation flow for existing camera function control methods. As shown in 3a, the user first clicks the camera application icon on the phone's home screen to launch the camera application; as shown in 3b, after the camera application is launched, the phone displays the default camera function interface (such as the photo-taking function interface); as shown in 3c and 3d, the user first aims at the subject, and then, using the shutter button as the starting point, slides left to trigger the camera's photo-taking function to quickly and continuously take photos and save the corresponding images; slides right to trigger the camera's video-recording function to record video and generate the corresponding video. Figure 3 It can be seen that, compared to Figure 2 This camera function control method uses a fixed shortcut operation mode to quickly take photos and record videos, reducing the number of steps involved in taking photos or recording videos, thereby speeding up the user's operation. Although this method improves the speed of using the camera to a certain extent, users need to remember the camera function corresponding to each sliding direction before use. If they do not remember or remember it incorrectly, it may lead to operation errors and affect the user experience.
[0040] To address the problems of existing camera function control methods, this application provides a new camera function control method. This novel interaction method combines camera function selection and camera function control operations, thereby reducing the number of steps involved in taking photos or recording videos, accelerating user operation, eliminating the need for users to memorize swipe directions, and supporting more camera functions, thus improving the user experience. Specifically, the camera function selection operation refers to selecting a camera function, such as clicking "Portrait" or "Video" on the "Photo" interface. The camera function control operation refers to clicking the shutter button, in response to which the electronic device uses the camera to take a photo or record video. This method combines these processes, allowing users to quickly use different shooting modes, facilitating memorization, and improving the user experience.
[0041] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. The specific embodiments below can be implemented independently or in combination with each other. The same or similar concepts or processes may not be described again in some embodiments.
[0042] Figure 4 This is a schematic diagram of the user operation flow of the camera function control method provided in this application embodiment. The following uses portrait function control as an example to illustrate the operation steps of a user taking portrait photos using a mobile phone's camera application, as detailed below: Step 1: The user opens the camera application. For example, such as Figure 4 As shown in 4a, the user opens their phone's home screen, finds the camera icon, and then taps it to open the camera app. This method of opening the camera app is quite common; users can open their phone's home screen, find the camera icon, and then open the camera app.
[0043] In one alternative embodiment, the camera application can be opened using a keyboard shortcut or a quick operation. For example, when the phone is locked, the user can find the camera icon on the lock screen, tap it, and swipe up to open the camera application, thus saving the user time in opening the camera application.
[0044] Step 2: The user selects the portrait function and takes a photo. For example, as shown in 4b, after the camera application is opened, the phone displays the default photo-taking function operation interface; as shown in 4c, the user aims at the subject and slides from the shooting button toward the portrait function label on the current photo-taking function operation interface (the black arrow in 4c points in the direction of the slide); as shown in 4d, after the phone detects the slide operation, it determines that the camera function triggered by the current slide operation is the portrait function, captures an image in response to the slide operation, processes the image using a portrait processing algorithm, and saves it.
[0045] compared to Figure 2 This application combines the last two steps of existing camera function control methods into one, facilitating quick switching between different shooting modes and improving user experience. If the camera function is controlled while the camera application is already running, the user only needs a single swipe to simultaneously select and control the camera function, significantly increasing user operation speed. Compared to... Figure 3 Existing camera function control methods employ fixed shortcuts for camera function control; for example, swiping left only triggers the photo function, while swiping right only triggers the video recording function. This application redefines a new camera function control method that associates the swipe direction with the position of the function label. Users simply swipe towards the target function label to trigger the corresponding camera function. Therefore, the user operation is more flexible; the swipe triggers the specific camera function, allowing for quick control based on any selected camera function. For instance, swiping in different directions can control multiple different camera functions; even swiping in the same direction can trigger different camera functions in different application scenarios, or the same camera function can be triggered in different application scenarios regardless of the swipe direction. Thus, this application's camera function control method is more flexible and can be adjusted based on the user's application scenario. Furthermore, users do not need to memorize the correspondence between swipe direction and camera function; simply swiping towards a function label triggers the corresponding camera function. Due to the more flexible operation method, quick control of all camera functions can be achieved.
[0046] In another embodiment of this application, such as Figure 4 As shown in Figure 4b, in the interface shown, the user performs a swipe operation from the shooting button to the "Take Photo" tab. The phone responds to the user's swipe operation by taking continuous photos and saving multiple pictures.
[0047] In one possible implementation, after the user slides from the shutter button to the "take a picture" tab, and continues to slide upwards a certain distance until their finger remains on the phone screen, the phone responds to the user's action of keeping their finger on the screen by continuously taking pictures and saving them. The number of pictures taken and saved can be related to the length of time the user's finger remains on the screen. When the user lifts their finger off the screen, the phone responds to the lift action and can stop taking pictures.
[0048] In one possible implementation, the phone has a default maximum number of consecutive shots, or the user can preset the maximum number of consecutive shots. In this way, if the phone responds to the user's action of keeping their finger on the screen and continues to take and save images, it can stop taking pictures when the maximum number of consecutive shots is reached, even if the phone detects that the user's finger is still on the screen and no finger is being lifted off the screen.
[0049] In another embodiment of this application, such as Figure 4 As shown in Figure 4b, in the interface shown, the user performs a swipe operation from the shutter button to the "Video" tab. The phone responds to the user's swipe operation, executes the video recording function, and saves the recorded video. The specific process will be explained in detail below.
[0050] It should be noted that users can also perform a swipe operation from the shooting button to other tabs, such as "Movie" and "Night Scene". In response to the user's swipe, the phone can execute the camera function corresponding to the tab. For example, after taking a picture, it can process the image using the algorithm corresponding to the night scene function before saving it, or add filters in movie mode during video recording, and so on. Furthermore, although the above embodiments use a mobile phone as an example to describe the shooting method of this application, this application is not limited to this. The subject executing the shooting method of this application can also be an electronic device such as a tablet computer or a foldable screen device.
[0051] The following section further explains how users can use the swipe gesture to select and operate camera functions.
[0052] For example, such as Figure 5 As shown, the camera function interface includes a first area 501 and a second area 502. The first area 501 is the control area for camera functions, preferably a shooting button, and the second area 502 is an area surrounding the first area 501. The following explanation uses the first area 501 as an example of a shooting button.
[0053] In this embodiment, based on the first region 501 and the intersection angle when sliding from the first region 501 to the second region 502 and passing the edge of the first region 501, control conditions associated with the sliding operation are set. The mobile phone can determine the camera function selected by the sliding operation according to the control conditions, and then the mobile phone controls the camera function selected by the sliding operation to run. For the user, the user only needs to perform one sliding operation to select the camera function and trigger the camera function to run.
[0054] In this embodiment, the control condition is preferably set so that the sliding operation needs to pass through both the first area 501 and the second area 502. The sliding direction of the sliding operation can be from the first area 501 to the second area 502, or from the second area 502 to the first area 501. Specifically, the sliding operation passing through the first area 501 (the shutter button) confirms that the user wants to take a photo or record a video. When the sliding operation passes through the first area 501 and enters the second area 402, it confirms the camera function selected by the user. In other words, the user can simultaneously select and control the camera function with a single sliding operation. Based on the interface layout of the shutter button in existing camera applications (the button is located at the bottom center of the interface) and the button area size (the button area is relatively small), it is preferable to use the first area 501 as the starting area of the sliding operation and the second area 502 as the ending area of the sliding operation. That is, the sliding direction of the sliding operation is preferably from the first area 501 to the second area 502.
[0055] For example, such as Figure 6 As shown, when the user's swipe operation (the black arrow indicates the swipe direction) moves from the first area 501 (the area of the shooting button) to the second area 502 (the area outside the area of the shooting button), and passes the edge of the first area 501, it is determined that the current swipe operation realizes the camera function selection and triggers the camera function to run.
[0056] This application provides two control conditions combined with a sliding operation to achieve the sliding operation camera selection function, including but not limited to the following two methods: Method 1: Slide operation + partitioning For example, such as Figure 7 As shown, Figure 6 The second area 502 is divided into multiple partitions with different orientations. Each partition is unique, and each partition corresponds to a function label location. For example, Figure 7In this diagram, partition 701 corresponds to the portrait function label, partition 702 corresponds to the photo function label, and partition 703 corresponds to the video recording function label. When a sliding operation (the black arrow indicates the sliding direction) moves from the shooting button area into partition 701, the sliding operation triggers the portrait function; when the sliding operation moves from the shooting button area into partition 702, the sliding operation triggers the continuous shooting function; and when the sliding operation moves from the shooting button area into partition 703, the sliding operation triggers the video recording function. This embodiment does not limit the number or division method of partitions. The continuous shooting function can be considered as a photo function that enables continuous shooting.
[0057] For example, to facilitate quick user operation, the second region 502 above the first region 501 is preferably divided into multiple non-overlapping partitions, each partition covering a camera function label. The number of partitions and the corresponding camera function labels can be preset by the mobile phone manufacturer or manually configured by the user.
[0058] The camera function corresponding to each section is determined based on the currently displayed camera function. For example, if the phone is currently displaying the photo function, and the left side of the photo function label is the portrait function label and the right side is the video function label, then the middle section 702 corresponds to the burst shooting function, the left section 701 corresponds to the portrait function, and the right section 703 corresponds to the video function. If the phone is currently displaying the portrait function, and the left side of the portrait function label is the night scene function label and the right side is the photo function label, then the middle section 702 corresponds to the portrait function, the left section 701 corresponds to the night scene function, and the right section 703 corresponds to the burst shooting function.
[0059] In one embodiment, it is preferable that each partition covers the text range of the function label, and each partition corresponds to the camera function of the function label it covers. This ensures that when a user performs a swipe operation, they only need to swipe towards the corresponding function label to trigger the camera function corresponding to that function label. For example, if the user swipes towards the portrait function label, the portrait function is triggered when the swipe operation passes through the first area 501 and enters the second area 502; if the user swipes towards the video recording function label, the video recording function is triggered when the swipe operation passes through the first area 501 and enters the second area 502.
[0060] In addition, to speed up the response of control condition judgment, it is preferable that one side boundary of each partition intersects one side boundary of the first area 501. When the user's sliding operation leaves the first area 501 and enters the second area 502, it is ensured that the sliding operation can enter a partition of the second area 502 at the instant it leaves the first area 501, so that the camera function triggered by the sliding operation can be quickly determined.
[0061] Method 2: Slide operation + angle range For example, such as Figure 8 As shown, Figure 6 The second region 502 is divided into multiple angular ranges with different orientations. Each angular range is non-overlapping, and each angular range corresponds to a function label position. For example, Figure 8 In this embodiment, angle range A corresponds to the portrait function, angle range B corresponds to the burst shooting function, and angle range C corresponds to the video recording function. When a sliding operation moves from the shooting button area into the second area 502, and the sliding direction corresponds to angle range A, the sliding operation triggers the portrait function; when a sliding operation (indicated by the black arrow) moves from the shooting button area into the second area 502, and the sliding direction corresponds to angle range B, the sliding operation triggers the burst shooting function; and when a sliding operation moves from the shooting button area into the second area 502, and the sliding direction corresponds to angle range C, the sliding operation triggers the video recording function. This embodiment does not limit the number or division of angle ranges.
[0062] For example, to facilitate quick user operation, assuming the positive x-axis is used as the reference direction for angle division, the first region 501 corresponding to 0-180° is divided into multiple angle ranges, with each angle range covering a function label. The number of angle ranges and the numerical ranges of each angle range can be preset by the mobile phone manufacturer or manually configured by the user.
[0063] The specific camera function corresponding to each angle range is determined based on the currently displayed camera function. For example, if the phone is currently displaying the photo function, and the left side of the photo function label is the portrait function label, and the right side is the video function label, then the middle angle range B (60-120°) corresponds to the burst shooting function, the left angle range A (120-180°) corresponds to the portrait function, and the right angle range C (0-60°) corresponds to the video function. If the phone is currently displaying the portrait function, and the left side of the portrait function label is the night scene function label, and the right side is the photo function label, then the middle angle range B (60-120°) corresponds to the portrait function, the left angle range A (120-180°) corresponds to the night scene function, and the right angle range C (0-60°) corresponds to the burst shooting function.
[0064] In one embodiment, each angle covers the text range of the function label, and each angle range corresponds to the camera function corresponding to the function label it covers. This ensures that when a user performs a swipe operation, they only need to swipe towards the corresponding function label to trigger the camera function corresponding to that function label. For example, if the user swipes towards the portrait function label, the portrait function is triggered when the swipe operation passes through the first area 501 and enters the second area 502; if the user swipes towards the video recording function label, the video recording function is triggered when the swipe operation passes through the first area 501 and enters the second area 502.
[0065] It is understandable that either of the above two methods can be pre-configured by the phone manufacturer, or the phone manufacturer can pre-configure both methods and then the user manually selects one. In both methods, the partitioning and angle division methods can be pre-set by the phone manufacturer or manually configured by the user. Furthermore, the partitioning or angle range division can be set based on the swipe direction, or the swipe direction can be determined based on the partitioning or angle division method. It should be noted that the swipe direction is related to the partitioning and angle range division; therefore, the swipe direction must match the partitioning and angle division methods.
[0066] In this application, the division of zones and angle ranges is specifically related to the relative positions of the shooting button and each function label. To facilitate users in accurately triggering the corresponding camera functions through swipe operations, both the zone range and angle range need to cover the text corresponding to each function label. The text corresponding to each function label can be used to indicate the direction of the user's swipe operation, so that users can accurately trigger the corresponding camera functions without having to consciously remember the direction of the swipe operation.
[0067] In existing camera function control methods, users need to memorize the camera function corresponding to each swipe direction before use. Failure to memorize or misremembering may lead to operational errors. Furthermore, existing camera function control methods only offer two swipe directions (left and right), limiting users to only two camera functions. This application, however, associates the swipe direction with the function label position. Users simply swipe in the direction of each function label to trigger the corresponding camera function. Since the function label positions are variable, even swiping in the same direction may trigger different camera functions. Compared to existing camera function control methods, this application's method eliminates the need to memorize swipe directions and supports multi-directional swipes, making operation more convenient and allowing the use of multiple camera functions, thus enhancing the user experience for capturing memorable moments.
[0068] The following discussion uses a mobile phone as the electronic device and the camera function as the photo-taking function to describe the above. Figure 7 , 8 The implementation process of the corresponding camera control method is explained.
[0069] Figure 9 This is a flowchart illustrating a camera function control method provided in an embodiment of this application. The steps of the camera function control method are described below, including: S901, the mobile phone displays the first interface of the first camera function, which is the interface for the user to operate the camera function; Here, camera function can refer to the camera's shooting modes. A mobile phone camera can include multiple different shooting modes, meaning it can include multiple different camera functions. For example, as mentioned above, a mobile phone camera can include different camera functions such as still mode, portrait mode, video mode, night mode, and movie mode.
[0070] The first interface can be any shooting mode interface. The first interface may include a viewfinder, a shooting button, and other controls for setting shooting parameters. The viewfinder can be used to display the image captured in real time by the phone's camera, that is, the viewfinder is used to preview the image captured by the camera in real time. The shooting button is used to control shooting and saving images or videos. Users can click or slide the shooting button, and the phone responds to the user's operation of the shooting button to shoot or save images or videos. Other controls for setting shooting parameters may include the gallery thumbnails, front and rear camera switching buttons, camera focus adjustment controls, smart vision controls, AI photography controls, flash controls, filter shooting mode controls, settings buttons, etc., as mentioned above. Among the features, clicking the gallery thumbnail displays the most recently saved photo or video in the album; clicking the front / rear camera switch button allows switching between the front and rear cameras; sliding the camera focus adjustment control adjusts the camera focus; clicking the smart vision control opens preset application functions, such as object recognition and text recognition; opening the AI photography control allows automatic recognition of different shooting environments, such as portraits and night scenes, and automatically adjusts shooting parameters; the flash control turns the flash on or off; clicking the filter shooting mode control allows you to select different shooting modes and add different filters to the captured images, such as original mode, youth filter mode, and impression filter mode; the settings button opens the settings menu to adjust camera parameters.
[0071] For example, in response to a user's trigger action on the desktop camera app icon, the phone opens the camera app and displays the first interface. It is understood that after the camera app is opened, the first interface displayed on the phone can be the default camera function interface, such as... Figure 2 As shown in Figure 2b. Further, it can be understood that after the camera app is opened, users can also change the currently displayed camera interface by clicking other function tabs on the first screen. For example, if a user clicks the portrait function tab, the phone switches to displaying the portrait function interface. Figure 2 As shown in 2c.
[0072] In this embodiment, the first interface displayed on the mobile phone can be the default camera function interface displayed when the camera application is launched, or it can be the camera function interface corresponding to the function tab selected by the user. That is, the camera function control method of this application can be implemented in any camera function interface.
[0073] S902, the mobile phone detects whether there is a user's swiping operation on the first screen, which includes a first area and a second area; For example, such as Figure 5 As shown, the first interface includes a first area 501 and a second area 502. The first area 501 is the control area for camera functions, preferably a shooting button, and the second area 502 is an area surrounding the first area 501.
[0074] After the phone launches the camera app and displays the first screen, it will continue to detect whether there is a swipe operation by the user on the phone screen. The swipe operation can be any swipe direction and any swipe path. When the swipe operation meets the preset control conditions, the phone responds to the swipe operation and controls the camera function.
[0075] S903, if a user's swipe operation on the first screen is detected, the phone determines whether the swipe operation has moved from the first area to the second area based on the movement trajectory of the touch point corresponding to the swipe operation. In this embodiment, when the mobile phone detects a user's swipe operation on the first interface, the mobile phone obtains the movement trajectory of the touch point on the screen and determines whether to trigger camera function control based on the movement trajectory.
[0076] For example, such as Figure 6 As shown, when the movement trajectory of the touch point on the screen is from the first area 501 to the second area 502, the mobile phone further determines whether the sliding direction formed by the movement trajectory of the touch point points to a certain function label. If so, it is determined that the current sliding operation can realize the selection of camera function and trigger the operation of camera function.
[0077] The following section explains in detail how control conditions combined with sliding operations can be used to control camera function selection. These control conditions combined with sliding operations include, but are not limited to, the following two methods: Method 1: Slide operation + partitioning. The second area includes multiple non-overlapping partitions, each corresponding to a function label. The specific implementation steps of this method are as follows: S904A, if the swipe operation moves from the first area to the second area, then when the swipe operation enters the target partition of the second area, the mobile phone determines that the camera function corresponding to the target partition is the camera function triggered by the swipe operation. like Figure 7 As shown, the second region 502 is divided into multiple partitions with different orientations. Each partition is unique, and each partition corresponds to a function label, for example, Figure 7In the diagram, section 701 corresponds to the portrait function label, section 702 corresponds to the photo function label, and section 703 corresponds to the video recording function label. When a sliding operation moves from the shutter button area to section 701, the sliding operation triggers the portrait function; when a sliding operation moves from the shutter button area to section 702, the sliding operation triggers the continuous shooting function; and when a sliding operation moves from the shutter button area to section 703, the sliding operation triggers the video recording function.
[0078] S904B, the phone starts the camera function triggered by the swipe operation and adjusts the layout of the first screen currently displayed on the phone to display the second screen corresponding to the camera function triggered by the swipe operation. This second screen is the screen corresponding to the camera function when it is running. During the user's swipe operation on the first screen, the phone automatically determines the camera function triggered by the swipe operation, then activates the camera function. During the activation process, the layout of the first screen currently displayed on the phone is adjusted, such as hiding function labels, flash icon, settings menu icon, etc., or simultaneously displaying interface elements that were not previously displayed on the first screen, such as displaying the recording control button and recording time when the recording function is triggered.
[0079] It should be further clarified that activating the camera function and displaying the corresponding second interface can occur simultaneously, or the camera function can be activated to take photos or record videos after the second interface is displayed. Furthermore, the camera function can be activated either when the user slides their finger out of the shutter button and enters the second area, or when the user's finger swipes over the corresponding function label.
[0080] In the S904C, if the camera function triggered by the swipe operation is the burst shooting function, then on the second interface corresponding to the burst shooting function, the phone controls the burst shooting function to take continuous photos based on the swipe operation.
[0081] In this embodiment, after the camera function is triggered, the mobile phone can further control the operation of the camera function based on the swipe operation. For example, after the user swipes from the shooting button to the "take a picture" tab, and continues to swipe up a certain distance, the finger stays on the screen of the mobile phone. The mobile phone responds to the user's operation of staying on the screen of the mobile phone, continues to take pictures continuously and save the pictures. The number of pictures taken and saved continuously can be related to the length of time the user's finger stays on the screen. When the user's finger is lifted off the screen, the mobile phone responds to the lift operation and can stop taking pictures.
[0082] The camera function triggered by the swipe gesture enables continuous shooting, specifically including either the regular photo function or the portrait function. By swiping, users can use either the regular photo or portrait function to take consecutive photos, reducing the need to manually select a single camera function for continuous shooting and improving the user experience.
[0083] In one possible implementation, the phone has a default maximum number of consecutive shots, or the user can preset the maximum number of consecutive shots. In this way, if the phone responds to the user's action of keeping their finger on the screen and continues to take and save images, it can stop taking pictures when the maximum number of consecutive shots is reached, even if the phone detects that the user's finger is still on the screen and no finger is being lifted off the screen.
[0084] The control conditions in this embodiment, combined with the implementation of the sliding operation, divide the second area into partitions, thereby associating multiple function labels with each partition. This allows users to access each partition through sliding operations and control various camera functions through each partition. Compared with existing camera function control methods, the camera function control method of this application does not require users to remember the direction of the sliding operation and supports multi-directional sliding. This not only makes it convenient for users to operate but also allows for the use of multiple camera functions, improving the user experience of capturing wonderful moments.
[0085] Method 2: Slide operation + angle. The second area corresponds to multiple non-overlapping angle ranges, and each angle range corresponds to a function label. The specific implementation steps of this method are as follows: S905A, if the swipe operation moves from the first area to the second area, the phone calculates the angle between the swipe direction corresponding to the swipe operation and the preset reference direction when the swipe operation moves to the second area. like Figure 8 As shown, Figure 6 The second region 502 is divided into multiple angular ranges with different orientations. Each angular range is non-overlapping, and each angular range corresponds to a functional label. For example, Figure 8 In the diagram, angle range A corresponds to the portrait function label, angle range B corresponds to the photo function label, and angle range C corresponds to the video function label. When a sliding operation moves from the shooting button area into the second area 502, and the sliding direction corresponds to angle range A, the sliding operation triggers the portrait function; when the sliding operation moves from the shooting button area into the second area 502, and the sliding direction corresponds to angle range B, the sliding operation triggers the photo function; and when the sliding operation moves from the shooting button area into the second area 502, and the sliding direction corresponds to angle range C, the sliding operation triggers the video function.
[0086] Assuming the positive x-axis is used as the reference direction for angle division, when a sliding operation moves from the first region to the second region, the angle between the sliding direction corresponding to the sliding operation and the preset reference direction is calculated. This angle is used to determine the camera function triggered by the sliding operation.
[0087] S905B, the phone determines that the camera function corresponding to the angle range including the included angle is the camera function triggered by the swipe operation; like Figure 8 As shown, assuming angle range C (0-60°) corresponds to the video recording function label, angle range B (60-120°) corresponds to the photo taking function label, and angle range A (120-180°) corresponds to the portrait function label; if the calculated angle is 30°, which is within the 0-60° angle range, the sliding operation triggers the video recording function; if the calculated angle is 90°, which is within the 60-120° angle range, the sliding operation triggers the continuous shooting function; if the calculated angle is 150°, which is within the 120-180° angle range, the sliding operation triggers the portrait function.
[0088] S905C: The phone activates the camera function triggered by a swipe operation and adjusts the layout of the first screen currently displayed on the phone to display the second screen corresponding to the camera function triggered by the swipe operation. This second screen is the screen corresponding to the camera function when it is running. In the S905D, if the camera function triggered by the swipe operation is the burst shooting function, then on the second interface corresponding to the burst shooting function, the phone controls the burst shooting function to take continuous photos based on the swipe operation.
[0089] The steps S906C and S906D described above are the same as steps S905B and S905C, respectively, so they will not be repeated here.
[0090] For example, such as Figure 10The diagram illustrates a sliding camera interface, as shown in 10a. After the phone responds to the user's action and opens the camera app, it displays the first interface corresponding to the camera function tab by default. The user does not select any other function tab but directly performs a sliding operation on the first interface corresponding to the current camera function tab (the black arrow in 10a indicates the sliding direction). As shown in 10b, when the sliding operation moves outward from the inner area of the shutter button and passes the edge of the shutter button, the phone determines the current sliding direction as pointing to the camera function tab based on the movement trajectory of the touch point on the screen. It hides interface elements unrelated to the current shooting action, such as various function tabs, flash icons, and settings menu icons, and displays the viewfinder, gallery thumbnails, and the shutter button (i.e., the second interface). It also displays the word "Bulk Shooting" in the original camera function tab position, and displays a number in the middle of the shutter button, representing the current cumulative number of photos taken (initially 0). As shown in 10c, when the sliding operation continues along the text of the camera function ("Bulk Shooting")... When the user slides into the second area 502 and passes the word "Bulk Shooting," a line connecting the touch point of the slide operation and the edge of the shooting button is displayed. This line indicates the sliding direction corresponding to the slide operation. As shown in 10d, when the slide operation continues along the current sliding direction, the number displayed in the middle of the shooting button begins to increase. At the same time, as the number of photos taken in the burst increases, the thumbnail preview photos displayed in the gallery are also refreshed accordingly. As shown in 10e, when the slide operation stops but the touch point does not disappear (the user's finger is still on the current second interface), the number displayed in the middle of the shooting button continues to increase. It should be further noted that when the number of photos taken continuously reaches the maximum burst shooting threshold, the phone ends the burst shooting and restores the third interface corresponding to the shooting function label. As shown in 10f, when the touch point corresponding to the slide operation disappears (the user's finger leaves the current second interface), the phone ends the burst shooting and restores the third interface corresponding to the shooting function label before the burst shooting started, and refreshes the display content of the gallery thumbnails. The third interface and the first interface are both operation interfaces for camera functions. The difference between the two lies in the content displayed in the gallery thumbnails and the content displayed in the viewfinder in real time. Since the content displayed in the gallery thumbnails and the content displayed in the viewfinder in real time are both dynamically changing, the third interface can be regarded as the first interface at different times to a certain extent.
[0091] For example, such as Figure 11The diagram illustrates another sliding camera interface. As shown in 11a, after the phone responds to the user's action to open the camera application, the phone displays the first interface corresponding to the camera function tab by default. As shown in 11b, the user selects the first interface corresponding to other camera function tabs, such as the portrait function tab, and the phone displays the first interface corresponding to the portrait function tab. The user then performs a sliding operation on the first interface corresponding to the current portrait function tab (the black arrow in 11b indicates the sliding direction). As shown in 11c, when the sliding operation moves outward from the inner area of the shutter button and passes the edge of the shutter button, the phone determines the current sliding direction to the camera function tab based on the movement trajectory of the touch point on the screen. It hides interface elements unrelated to the current shooting, such as various function tabs, flash icons, settings menu icons, etc., and only displays the viewfinder, gallery thumbnails, and shutter button (i.e., the second interface). The word "Buzz Shooting" is displayed in the original position of the camera function tab, and a number is displayed in the middle of the shutter button, which represents the current cumulative number of photos taken (initial value is 0). As shown in 11d, when the user slides... As the user continues to slide along the location of the text "Bulk Shooting" in the camera function area into the second area 502 and passes the "Bulk Shooting" text, a line connecting the touch point of the slide operation and the edge of the shooting button is displayed. This line indicates the sliding direction corresponding to the slide operation. As shown in 11e, when the slide operation continues to slide along the current sliding direction, the number displayed in the middle of the shooting button begins to increase. At the same time, as the number of photos taken in the burst increases, the thumbnail preview photos displayed in the gallery are also refreshed accordingly. As shown in 11f, when the slide operation stops but the touch point does not disappear (the user's finger is still on the current second interface), the number displayed in the middle of the shooting button continues to increase. It should be further noted that when the number of photos taken consecutively reaches the maximum burst shooting threshold, the phone ends the burst shooting and restores the display of the first interface corresponding to the portrait function label. As shown in 11g, when the touch point corresponding to the slide operation disappears (the user's finger leaves the current second interface), the phone ends the burst shooting and restores the display of the third interface corresponding to the portrait function label before the burst shooting started, and refreshes the display content of the gallery thumbnails. The third interface and the first interface are both operation interfaces for camera functions. The difference between the two is that the content displayed in the gallery thumbnails is different, and the content displayed in the viewfinder in real time is different.
[0092] For example, such as Figure 12The diagram illustrates a sliding portrait burst shooting interface, as shown in 12a. After the phone responds to the user's action and opens the camera app, it displays the first interface corresponding to the current shooting function tab by default. The user does not select any other function tab but directly performs a sliding operation on the first interface corresponding to the current shooting function tab (the black arrow in 12a indicates the sliding direction). As shown in 12b, when the sliding operation moves outward from the inner area of the shooting button and passes the edge of the shooting button, the phone determines the current sliding direction as pointing to the portrait function tab based on the movement trajectory of the touch point on the screen. It hides interface elements unrelated to the current shooting action, such as various function tabs, flash icons, and settings menu icons, displaying only the viewfinder, gallery thumbnails, and the shooting button (i.e., the second interface). The words "Portrait Burst Shooting" are displayed in the original portrait function tab position, and a number is displayed in the middle of the shooting button, representing the current cumulative number of photos taken (initially 0). As shown in 12c, when the sliding operation continues along the portrait function text ("Portrait Burst Shooting")... When the user slides into the second area 502 and passes the "Portrait Burst" text, a line connecting the touch point of the slide operation and the edge of the shooting button is displayed. This line indicates the sliding direction corresponding to the slide operation. As shown in 12d, when the slide operation continues along the current sliding direction, the number displayed in the middle of the shooting button begins to increase. At the same time, as the number of burst photos increases, the thumbnail preview photos displayed in the gallery are also refreshed accordingly. As shown in 12e, when the slide operation stops but the touch point does not disappear (the user's finger is still on the current second interface), the number displayed in the middle of the shooting button continues to increase. It should be further noted that when the number of continuously accumulated photos reaches the maximum burst shooting threshold, the phone ends portrait burst shooting and restores the first interface corresponding to the shooting function label. As shown in 12f, when the touch point corresponding to the slide operation disappears (the user's finger leaves the current second interface), the phone ends portrait burst shooting and restores the third interface corresponding to the shooting function label before portrait burst shooting started, and refreshes the display content of the gallery thumbnails. The third interface and the first interface are both operation interfaces for camera functions. The difference between the two is that the content displayed in the gallery thumbnails is different, and the content displayed in the viewfinder in real time is different.
[0093] For example, such as Figure 13The diagram illustrates another type of portrait burst shooting interface. As shown in 13a, after the phone responds to the user's operation and opens the camera application, the phone displays the first interface corresponding to the photo function tab by default. As shown in 13b, the user selects the first interface corresponding to other camera function tabs, such as the portrait function tab, and the phone displays the first interface corresponding to the portrait function tab accordingly. The user performs a swipe operation on the first interface corresponding to the current portrait function tab (the black arrow in 13b indicates the swipe direction). As shown in 13c, when the swipe operation moves outward from the inner area of the shooting button and passes the edge of the shooting button, the phone determines the current swipe direction as pointing to the portrait function tab based on the movement trajectory of the touch point on the screen. It hides interface elements unrelated to the current shooting, such as various function tabs, flash icons, settings menu icons, etc., and only displays the viewfinder, gallery thumbnails, and shooting button (i.e., the second interface). The words "Portrait Burst Shooting" are displayed in the original position of the portrait function tab, and a number is displayed in the middle of the shooting button, which represents the current cumulative number of photos taken (initially 0). As shown in 13d, when the swipe operation continues... When the user slides into the second area 502 along the direction of the portrait function text ("Portrait Burst") and passes the "Portrait Burst" text, a line connecting the touch point of the slide operation and the edge of the shooting button is displayed. This line indicates the sliding direction corresponding to the slide operation. As shown in 13e, when the slide operation continues to slide along the current sliding direction, the number displayed in the middle of the shooting button begins to increase. At the same time, as the number of burst photos increases, the thumbnail preview photos displayed in the gallery are also refreshed accordingly. As shown in 13f, when the slide operation stops but the touch point does not disappear (the user's finger is still on the current second interface), the number displayed in the middle of the shooting button continues to increase. It should be further noted that when the number of continuously accumulated photos reaches the maximum burst shooting threshold, the phone ends portrait burst shooting and restores the display of the first interface corresponding to the portrait function label. As shown in 13g, when the touch point corresponding to the slide operation disappears (the user's finger leaves the current second interface), the phone ends portrait burst shooting and restores the display of the third interface corresponding to the portrait function label before the start of portrait burst shooting and refreshes the display content of the gallery thumbnails. The third interface and the first interface are both operation interfaces for camera functions. The difference between the two is that the content displayed in the gallery thumbnails is different, and the content displayed in the viewfinder in real time is different.
[0094] For example, such as Figure 14The diagram illustrates a sliding portrait photography interface, as shown in 14a. After the phone responds to the user's action and opens the camera app, it displays the first interface corresponding to the current photography function tab by default. The user does not select any other function tab but directly performs a sliding operation on the first interface corresponding to the current photography function tab (the black arrow in 14a indicates the sliding direction). As shown in 14b, when the sliding operation moves outward from the inner area of the shutter button and passes the edge of the shutter button, the phone determines the current sliding direction as pointing to the portrait function tab based on the movement trajectory of the touch point on the screen. It then hides interface elements unrelated to the current photography action, such as various function tabs, the flash icon, and the settings menu icon, and displays the viewfinder and gallery thumbnails. The image and shooting button (i.e., the second interface) are displayed, and the word "Portrait" is displayed in the original position of the portrait function label. As shown in 14c, when the swipe operation continues to slide along the direction of the portrait function text ("Portrait") into the second area 502 and passes the word "Portrait", a line connecting the touch point of the swipe operation and the edge of the shooting button is displayed. This line is used to indicate the swipe direction corresponding to the swipe operation. At the same time, a portrait photo is taken, and the thumbnail preview photo displayed in the gallery is refreshed. As shown in 14d, when the touch point corresponding to the swipe operation disappears (the user's finger leaves the current second interface), the phone ends the portrait shooting and restores the third interface corresponding to the shooting function label before the portrait shooting started, and refreshes the display content of the gallery thumbnail. Among them, the third interface and the first interface are both operation interfaces of the camera function. The difference between the two is that the content displayed in the gallery thumbnail is different, and the content displayed in the real time in the viewfinder is different.
[0095] In one optional embodiment, when the camera function is controlled to take continuous photos, the phone calls an image processing program adapted to the camera function to process each generated photo sequentially. For example, assuming the phone is currently controlling the portrait function to take continuous photos, the phone automatically calls a beautification program to process the portrait photo each time it generates a photo, such as slimming the face, smoothing the skin, and blurring the background. If the user has preset beautification parameters, the user-set beautification parameters are used; otherwise, the default beautification parameters of the beautification program are used.
[0096] In an optional embodiment, if the camera function triggered by the user's swipe operation is the video recording function, then on the second interface of the video recording function, the user continues to swipe along the location of the text of the video recording function in response to the swipe operation, and controls the video recording function to record video; when the swipe operation fails, the third interface of the video recording function is switched to be displayed, and the video recording function continues to run.
[0097] For example, such as Figure 15The layout of the recording interface shown mainly includes: viewfinder 101, front and rear camera switching button 105, camera focus adjustment control 106, flash control 109, recording control button 112, pause button 113, photo function switching button 114, and recording time 115.
[0098] The viewfinder 101 displays images captured in real time by the camera; clicking the front / rear camera switch button 105 allows switching between the front and rear cameras; sliding the camera focus adjustment control 106 adjusts the camera focus; clicking the flash control 109 controls the flash to be turned on or off; clicking the recording control button 112 starts or stops the recording function; clicking the pause button 113 pauses the recording process; clicking the photo function switch button 114 switches between the recording function and the photo function; and the recording time 115 displays the current recording duration.
[0099] For example, such as Figure 16The diagram illustrates the sliding video recording interface. As shown in 16a, in response to the user's operation, the phone opens the camera app and displays the first interface corresponding to the photo function tab by default. The user does not select any other function tab but directly performs a sliding operation on the first interface corresponding to the current photo function tab (the black arrow in 16a indicates the sliding direction). When the sliding operation moves outward from the inner area of the shutter button and passes the edge of the shutter button, or when the user presses and holds the shutter button (as shown in 16b), the phone determines the current sliding direction as pointing to the video recording tab based on the movement trajectory of the touch point on the screen. Alternatively, in response to the long press of the shutter button, it hides interface elements unrelated to the current recording, such as various function tabs and settings menu icons, and displays the viewfinder and shutter button (i.e., the second interface). The word "Video Recording" is displayed in the original position of the video recording tab, and a connecting line is displayed between the shutter button and the "Video Recording" tab. This connecting line can be used to prompt the user. Slide to the "Video Recording" tab to lock the recording function. This means that the user's finger does not need to remain on the screen to continuously record video. At the same time, the recording time is displayed in the top left of the viewfinder, which represents the cumulative duration of the current recording (initial value is 00:00). As shown in 16c, when the sliding operation continues to slide along the text of the recording function ("Video Recording") into the second area 502 and passes the word "Video Recording", the recording time increases. As shown in 16d, the touch point corresponding to the sliding operation disappears (the user's finger leaves the current second interface), and the third interface of the recording function is displayed, locking the recording function. The recording function continues to run and the recording time increases. As shown in 16e, when the user clicks the recording control button on the recording interface, the phone ends the recording, and the recording time stops increasing. As shown in 16f, when the recording ends, the phone restores the fourth interface corresponding to the photo function tab before the recording started and refreshes the display content of the gallery thumbnails. The fourth interface and the first interface are both operation interfaces for camera functions. The difference between the two lies in the content displayed in the gallery thumbnails and the content displayed in the viewfinder in real time. Since the content displayed in the gallery thumbnails and the content displayed in the viewfinder in real time are both dynamically changing, the third interface can be regarded as the first interface at different times to a certain extent.
[0100] In one optional embodiment, when the mobile phone displays the camera function interface, if a long press operation exists in the control area (i.e., the first area) of the current camera function interface, the recording function is triggered; when the long press operation fails, the mobile phone stops the recording function.
[0101] For example, such as Figure 17The diagram illustrates the long-press recording interface. As shown in 17a, after the phone opens the camera app, it displays the first interface corresponding to the photo function label by default. As shown in 17b, when the user long-presses the shutter button on this first interface, if the long press duration exceeds a preset threshold, the phone hides interface elements unrelated to the current recording, such as various function labels and settings menu icons, displaying only the viewfinder and shutter button (i.e., the second interface). The word "Record" is displayed in the original recording function label position, and a guide line is generated connecting the word "Record" to the edge of the shutter button. Simultaneously, the recording time is displayed on the top left of the viewfinder, representing the cumulative recording duration (initial value 00:00). As shown in 17c, if the user continues the long press, the phone continues to control the recording function, and the recording time increases. As shown in 17d, when the user releases the long press, the phone restores the third interface corresponding to the photo function label before recording began and refreshes the gallery thumbnail display. The third interface and the first interface are both operation interfaces for camera functions. The difference between the two is that the content displayed in the gallery thumbnails is different, and the content displayed in the viewfinder in real time is different.
[0102] The control conditions in this embodiment, combined with the implementation of the sliding operation, divide the second region into angle ranges, thereby associating each function label with each angle range. This makes it easy for users to control various camera functions by sliding operations corresponding to each angle range. Compared with existing camera function control methods, the camera function control method of this application does not require memorizing the direction of the sliding operation, and supports multi-directional sliding. This not only makes it convenient for users to operate, but also allows for the use of various camera functions, improving the user experience of capturing wonderful moments.
[0103] Corresponding to the above embodiments, this application also provides an electronic device, which includes a memory for storing a computer program and a processor for executing the computer program, wherein when the computer program stored in the memory is executed by the processor, the electronic device is triggered to execute some or all of the steps of the camera function control method in the above embodiments.
[0104] Figure 18 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. (Reference) Figure 18The electronic device 10 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, a headphone jack 170D, a sensor module 180, buttons 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, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0105] It is understood that the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the electronic device 10. In other embodiments of this application, the electronic device 10 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0106] Processor 110 may include one or more processing units, such as application processors (APs), modem processors, graphics processing units (GPUs), image signal processors (ISPs), controllers, video codecs, digital signal processors (DSPs), baseband processors, and / or neural network processing units (NPUs). These different processing units may be independent devices or integrated into one or more processors.
[0107] The controller can generate operation control signals based on the instruction opcode and timing signals to complete the control of instruction fetching and execution.
[0108] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0109] In some embodiments, the processor 110 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0110] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple I2C buses. The processor 110 can couple to the touch sensor 180K, charger, flash, camera 193, etc., through different I2C bus interfaces. For example, the processor 110 can couple to the touch sensor 180K through the I2C interface, enabling the processor 110 and the touch sensor 180K to communicate through the I2C bus interface, thereby realizing the touch function of the electronic device 10.
[0111] The I2S interface can be used for audio communication. In some embodiments, the processor 110 may include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the I2S interface to enable the function of answering phone calls through a Bluetooth headset.
[0112] The PCM interface can also be used for audio communication, sampling, quantizing, and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via the PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface, enabling the function of answering phone calls through a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
[0113] The UART interface is a universal serial data bus used for asynchronous communication. This bus can be a bidirectional communication bus. It converts the data to be transmitted between serial and parallel communication. In some embodiments, the UART interface is typically used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 via the UART interface to implement Bluetooth functionality. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the UART interface to enable music playback through Bluetooth headphones.
[0114] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI) and a display serial interface (DSI). In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to enable the electronic device 10 to capture images. The processor 110 and the display screen 194 communicate via the DSI interface to enable the electronic device 10 to display images.
[0115] The GPIO interface can be configured via software. It can be configured as a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 to a camera 193, a display screen 194, a wireless communication module 160, an audio module 170, a sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
[0116] USB port 130 is a USB standard compliant interface, specifically a Mini USB port, Micro USB port, USB Type-C port, etc. USB port 130 can be used to connect a charger to charge electronic device 10, and can also be used for data transfer between electronic device 10 and peripheral devices. It can also be used to connect headphones for audio playback. This interface can also be used to connect other electronic devices 10, such as AR devices.
[0117] It is understood that the interface connection relationships between the modules illustrated in the embodiments of the present invention are merely illustrative and do not constitute a structural limitation on the electronic device 10. In other embodiments of this application, the electronic device 10 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.
[0118] The charging management module 140 receives charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 receives charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 receives wireless charging input via the wireless charging coil of the electronic device 10. While charging the battery 142, the charging management module 140 can also supply power to the electronic device 10 via the power management module 141.
[0119] The power management module 141 connects the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, providing power to the processor 110, internal memory 121, display screen 194, camera 193, and wireless communication module 160, etc. The power management module 141 can also monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance). In some other embodiments, the power management module 141 may also be located within the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be located in the same device.
[0120] The wireless communication function of electronic device 10 can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor, and baseband processor.
[0121] Antennas 1 and 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 10 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with a tuning switch.
[0122] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 10. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via the antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to the modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via the antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.
[0123] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through an audio device (not limited to speaker 170A, receiver 170B, etc.) or displays images or videos through the display screen 194. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 110 and may be housed in the same device as the mobile communication module 150 or other functional modules.
[0124] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 10, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) technology, etc.
[0125] The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signal, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.
[0126] In some embodiments, antenna 1 of electronic device 10 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling electronic device 10 to communicate with networks and other devices via wireless communication technology. The wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. The GNSS may include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or satellite-based augmentation systems (SBAS).
[0127] Electronic device 10 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connecting the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.
[0128] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a miniature LED, a microLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 10 may include one or N displays 194, where N is a positive integer greater than 1.
[0129] Electronic device 10 can perform shooting functions through ISP, camera 193, video codec, GPU, display 194 and application processor.
[0130] The ISP (Image Signal Processor) is used to process data fed back from the camera 193. For example, when taking a picture, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, and the camera's photosensitive element transmits the electrical signal to the ISP for processing, transforming it into an image visible to the naked eye. The ISP can also perform algorithmic optimization of image noise, brightness, and skin tone. The ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In some embodiments, the ISP can be set in the camera 193.
[0131] Camera 193 is used to capture still images or videos. An object is projected onto a photosensitive element by generating an optical image through the lens. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then passed to an ISP for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP for processing. The DSP converts the digital image signal into image signals in standard RGB, YUV, or other formats. In some embodiments, the electronic device 10 may include one or N cameras 193, where N is a positive integer greater than 1.
[0132] A digital signal processor (DSP) is used to process digital signals. Besides digital image signals, it can also process other digital signals. For example, when the electronic device 10 selects a frequency, the DSP can perform Fourier transforms on the frequency energy.
[0133] Video codecs are used to compress or decompress digital video. Electronic device 10 may support one or more video codecs. Thus, electronic device 10 can play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG 2, MPEG 3, MPEG 4, etc.
[0134] An NPU (Neural Processing Unit) is a neural network (NN) computing processor that, by borrowing from the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, rapidly processes input information and can continuously learn on its own. NPUs enable intelligent cognitive applications in electronic devices, such as image recognition, facial recognition, speech recognition, and text understanding.
[0135] Internal memory 121 may include one or more random access memory (RAM) and one or more non-volatile memory (NVM).
[0136] Random access memory can include static random-access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM, for example, fifth generation DDR SDRAM is generally called DDR5 SDRAM), etc. Non-volatile memory can include disk storage devices and flash memory.
[0137] Flash memory can be classified according to its operating principle, including NOR FLASH, NAND FLASH, 3D NAND FLASH, etc.; according to the level of the storage cell, including single-level cell (SLC), multi-level cell (MLC), triple-level cell (TLC), quad-level cell (QLC), etc.; and according to the storage specification, including universal flash storage (UFS) and embedded multimedia card (eMMC), etc.
[0138] The random access memory can be directly read and written by the processor 110. It can be used to store executable programs (such as machine instructions) of the operating system or other running programs, as well as user and application data.
[0139] Non-volatile memory can also store executable programs and user and application data, and can be pre-loaded into random access memory for direct reading and writing by the processor 110.
[0140] The external memory interface 120 can be used to connect to external non-volatile memory, thereby expanding the storage capacity of the electronic device 10. The external non-volatile memory communicates with the processor 110 through the external memory interface 120 to perform data storage functions. For example, music, video, and other files can be stored in the external non-volatile memory.
[0141] Electronic device 10 can implement audio functions such as music playback and recording through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.
[0142] The audio module 170 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module 170 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 170 may be located in the processor 110, or some functional modules of the audio module 170 may be located in the processor 110.
[0143] The speaker 170A, also known as a "loudspeaker," is used to convert audio electrical signals into sound signals. The electronic device 10 can listen to music or make hands-free calls through the speaker 170A.
[0144] The receiver 170B, also known as the "earpiece," is used to convert audio electrical signals into sound signals. When the electronic device 10 receives a telephone call or voice message, the receiver 170B can be brought close to the ear to hear the voice.
[0145] Microphone 170C, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can speak by bringing their mouth close to microphone 170C, inputting the sound signal into microphone 170C. Electronic device 10 may have at least one microphone 170C. In some embodiments, electronic device 10 may have two microphones 170C, which, in addition to collecting sound signals, can also perform noise reduction. In other embodiments, electronic device 10 may also have three, four, or more microphones 170C, which can collect sound signals, reduce noise, identify the sound source, and perform directional recording, etc.
[0146] The 170D headphone jack is used to connect wired headphones. The 170D headphone jack can be a USB 130 interface or a 3.5mm Open Mobile Terminal Platform (OMTP) standard interface, a CTIA (Cellular Telecommunications Industry Association of the USA) standard interface.
[0147] Pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 180A can be disposed on display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. A capacitive pressure sensor may include at least two parallel plates with conductive material. When force is applied to pressure sensor 180A, the capacitance between the electrodes changes. Electronic device 10 determines the pressure intensity based on the change in capacitance. When a touch operation is applied to display screen 194, electronic device 10 detects the intensity of the touch operation based on pressure sensor 180A. Electronic device 10 can also calculate the touch position based on the detection signal from pressure sensor 180A. In some embodiments, touch operations applied to the same touch position but with different touch operation intensities can correspond to different operation commands. For example, when a touch operation with an intensity less than a first pressure threshold is applied to the SMS application icon, a command to view an SMS is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to the SMS application icon, a command to create a new SMS is executed.
[0148] The gyroscope sensor 180B can be used to determine the motion attitude of the electronic device 10. In some embodiments, the gyroscope sensor 180B can determine the angular velocity of the electronic device 10 around three axes (i.e., the x, y, and z axes). The gyroscope sensor 180B can be used for image stabilization. For example, when the shutter is pressed, the gyroscope sensor 180B detects the angle of the shake of the electronic device 10, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to counteract the shake of the electronic device 10 by moving in the opposite direction, thus achieving image stabilization. The gyroscope sensor 180B can also be used in navigation and motion-sensing game scenarios.
[0149] The barometric pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 10 calculates altitude using the air pressure value measured by the barometric pressure sensor 180C to assist in positioning and navigation.
[0150] The magnetic sensor 180D includes a Hall sensor. The electronic device 10 can use the magnetic sensor 180D to detect the opening and closing of the flip cover. In some embodiments, when the electronic device 10 is a flip phone, the electronic device 10 can detect the opening and closing of the flip cover based on the magnetic sensor 180D. Then, based on the detected opening and closing state of the cover or the flip cover, features such as automatic unlocking of the flip cover can be set.
[0151] The 180E accelerometer can detect the magnitude of acceleration in various directions (typically three axes) of the electronic device 10. When the electronic device 10 is stationary, it can detect the magnitude and direction of gravity. It can also be used to identify the posture of the electronic device 10, and can be applied to applications such as screen orientation switching and pedometers.
[0152] A distance sensor 180F is used to measure distance. Electronic device 10 can measure distance via infrared or laser. In some embodiments, during a shooting scene, electronic device 10 can utilize the distance sensor 180F to measure distance for rapid focusing.
[0153] The proximity sensor 180G may include, for example, a light-emitting diode (LED) and a light detector, such as a photodiode. The LED may be an infrared LED. The electronic device 10 emits infrared light outward through the LED. The electronic device 10 uses the photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 10. When insufficient reflected light is detected, the electronic device 10 can determine that there is no object near it. The electronic device 10 may use the proximity sensor 180G to detect when a user holds the electronic device 10 close to their ear for a call, so as to automatically turn off the screen to save power. The proximity sensor 180G can also be used in holster mode and pocket mode for automatic unlocking and locking of the screen.
[0154] The ambient light sensor 180L is used to sense the ambient light intensity. The electronic device 10 can adaptively adjust the brightness of the display screen 194 based on the sensed ambient light intensity. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also work with the proximity sensor 180G to detect whether the electronic device 10 is in a pocket to prevent accidental touches.
[0155] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 10 can utilize the characteristics of the collected fingerprints to achieve fingerprint unlocking, accessing application locks, taking photos with fingerprints, answering calls with fingerprints, etc.
[0156] Temperature sensor 180J is used to detect temperature. In some embodiments, electronic device 10 uses the temperature detected by temperature sensor 180J to execute a temperature handling strategy. For example, when the temperature reported by temperature sensor 180J exceeds a threshold, electronic device 10 performs thermal protection by reducing the performance of a processor located near temperature sensor 180J to reduce power consumption. In other embodiments, when the temperature is below another threshold, electronic device 10 heats battery 142 to prevent abnormal shutdown of electronic device 10 due to low temperature. In still other embodiments, when the temperature is below yet another threshold, electronic device 10 boosts the output voltage of battery 142 to prevent abnormal shutdown due to low temperature.
[0157] Touch sensor 180K, also known as a "touch device," can be located on display screen 194. The touch sensor 180K and display screen 194 together form a touchscreen, also known as a "touchscreen." Touch sensor 180K detects touch operations applied to or near it. The touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through display screen 194. In other embodiments, touch sensor 180K may also be located on the surface of electronic device 10, in a different position than display screen 194.
[0158] The bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire vibration signals from the vibrating bone segments of the human vocal cords. The bone conduction sensor 180M can also contact the human pulse to receive blood pressure signals. In some embodiments, the bone conduction sensor 180M can also be incorporated into headphones to form bone conduction headphones. The audio module 170 can parse the voice signals from the vibrating bone segments of the vocal cords acquired by the bone conduction sensor 180M to realize voice functionality. The application processor can parse heart rate information from the blood pressure signals acquired by the bone conduction sensor 180M to realize heart rate detection functionality.
[0159] Buttons 190 include a power button, volume buttons, etc. Buttons 190 can be mechanical buttons or touch-sensitive buttons. The electronic device 10 can receive button input and generate key signal inputs related to user settings and function control of the electronic device 10.
[0160] Motor 191 can generate vibration alerts. Motor 191 can be used for incoming call vibration alerts or for touch vibration feedback. For example, different vibration feedback effects can correspond to touch operations performed on different applications (such as taking photos, playing audio, etc.). Motor 191 can also correspond to different vibration feedback effects for touch operations performed on different areas of the display screen 194. Different application scenarios (such as time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also be customized.
[0161] Indicator 192 can be an indicator light, used to indicate charging status, power changes, or to indicate messages, missed calls, notifications, etc.
[0162] The SIM card interface 195 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 195 to make contact with and separate from the electronic device 10. The electronic device 10 can support one or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. Multiple SIM cards can be inserted into the same SIM card interface 195 simultaneously. The types of the multiple SIM cards can be the same or different. The SIM card interface 195 is also compatible with different types of SIM cards. The SIM card interface 195 is also compatible with external memory cards. The electronic device 10 interacts with the network through the SIM card to realize functions such as calls and data communication. In some embodiments, the electronic device 10 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 10 and cannot be separated from the electronic device 10.
[0163] This embodiment also provides a computer storage medium storing computer instructions. When the computer instructions are executed on the electronic device 10, the electronic device 10 performs the aforementioned related method steps to implement the camera function control method in the above embodiment.
[0164] This embodiment also provides a computer program product that, when run on a computer, causes the computer to perform the aforementioned steps to implement the camera function control method in the above embodiment.
[0165] In addition, embodiments of this application also provide an apparatus, which may specifically be a chip, component or module. The apparatus may include a connected processor and a memory. The memory is used to store computer execution instructions. When the apparatus is running, the processor can execute the computer execution instructions stored in the memory to cause the chip to execute the camera function control method in the above-described method embodiments.
[0166] In this embodiment, the electronic device, computer storage medium, computer program product or chip are all used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can be referred to the beneficial effects of the corresponding method provided above, and will not be repeated here.
[0167] Through the above description of the embodiments, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above 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.
[0168] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0169] The unit described as a separate component may or may not be physically separate. The component shown as a unit can be one physical unit or multiple physical units, that is, it can be located in one place or distributed in multiple different places. Some or all of the units can be selected to achieve the purpose of the solution in this embodiment according to actual needs.
[0170] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0171] If the integrated unit is implemented as 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 solutions of the embodiments of this application, essentially or in other words, the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0172] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application and are not intended to limit it. Although this application has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of this application without departing from the spirit and scope of the technical solutions of this application.
Claims
1. A camera function control method, applied to electronic devices, characterized in that, The electronic device includes multiple camera functions. The first interface corresponding to each camera function includes a first area and a second area. The first area is the camera's shutter button, and the second area is the area excluding the shutter button. The second area includes multiple function labels for identifying camera functions. The camera function control method includes: A first interface displays the first camera function of the electronic device; Receive the user's first operation on the first interface of the first camera function; In the first interface of the first camera function, when the first operation moves from the first area to the second area, it is determined whether the movement direction corresponding to the first operation points to the first function label. If the direction of movement points to the first function label, then switch to displaying the second interface of the second camera function identified by the first function label.
2. The camera function control method according to claim 1, characterized in that, The second interface includes text indicating the function of the second camera, and the text is displayed in the same position as the first function label. On the second interface of the second camera function, in response to the first operation, the user continues to move along the location of the text of the second camera function, thereby controlling the operation of the second camera function.
3. The camera function control method according to claim 2, characterized in that, The second area includes multiple non-overlapping partitions, each partition covering a function label, and the division of each partition is related to the relative position between the shooting button and each function label.
4. The camera function control method according to claim 3, characterized in that, In the first interface of the first camera function, when the first operation moves from the first area to the second area, determining whether the movement direction corresponding to the first operation points to the first function label includes: In the first interface of the first camera function, when the first operation moves from the first area to the second area, it is determined whether the first operation has entered the target partition of the second area; If the first operation enters the target partition of the second region, then the function label covered by the target partition is determined to be the first function label pointed to by the sliding direction corresponding to the first operation.
5. The camera function control method according to claim 2, characterized in that, The second region corresponds to multiple non-overlapping angle ranges, each angle range covers a function label, and the division of each angle range is related to the relative position between the shooting button and each function label.
6. The camera function control method according to claim 5, characterized in that, In the first interface of the first camera function, when the first operation moves from the first area to the second area, determining whether the movement direction corresponding to the first operation points to the first function label includes: In the first interface of the first camera function, when the first operation moves from the first area to the second area, the angle between the movement direction corresponding to the first operation and the preset reference direction is calculated. If the angle range includes the included angle, then the function label covered by the angle range including the included angle is determined to be the first function label pointed to by the movement direction corresponding to the sliding operation.
7. The camera function control method according to claim 2, characterized in that, The camera function control method also includes: When switching to the second interface displaying the second camera function identified by the first function label, the relevant controls displayed on the first interface of the first camera function are hidden, wherein the relevant controls include all function labels displayed on the first interface of the first camera function.
8. The camera function control method according to claim 2, characterized in that, The first operation includes a sliding operation, and the camera function control method includes: In the first interface of the first camera function, when the sliding operation moves from the first area to the second area, it is determined whether the sliding direction corresponding to the sliding operation points to the first function label; If the sliding direction points to the first function label, then switch to displaying the second interface of the second camera function identified by the first function label; The second interface includes text indicating the function of the second camera, and the text is displayed in the same position as the first function label. On the second interface of the second camera function, in response to the first operation, continue to slide along the location of the text of the second camera function to control the operation of the second camera function.
9. The camera function control method according to claim 2, characterized in that, The first operation also includes a long press operation, and the camera function control method further includes: In the first interface of the first camera function, when there is a long press operation in the first area, it is determined whether the long press duration of the long press operation reaches a preset duration threshold. If the duration of the long press operation reaches a preset duration threshold, the second interface of the recording function will be switched to display. On the second interface of the recording function, when the long press duration exceeds the duration threshold, the recording function is controlled to run.
10. The camera function control method according to claim 9, characterized in that, The camera function control method also includes: On the second interface of the recording function, when the long press operation fails, the recording function stops running and the first interface of the first camera function is restored.
11. The camera function control method according to claim 8, characterized in that, The function labels are swiped, and when a user swipes any function label on the first interface of the first camera function, the display position of all function labels changes.
12. The camera function control method according to claim 11, characterized in that, The camera function control method also includes: Obtain the second function tab selected by the user on the first interface of the first camera function by sliding the function tab; Switch to displaying the first interface showing the third camera function identified by the second function label.
13. The camera function control method according to claim 2, characterized in that, The second camera function includes a burst shooting function, the first function label includes a photo shooting function label, and the second interface of the second camera function includes the text of the burst shooting function; In the second interface of the second camera function, responding to the sliding operation by continuing to slide along the location of the text of the second camera function, controlling the operation of the second camera function includes: On the second interface of the burst shooting function, in response to the sliding operation continuing to slide along the direction of the text of the burst shooting function, the burst shooting function is controlled to continuously capture photos. The camera function control method also includes: When the sliding operation fails or the number of consecutively taken photos reaches a preset threshold, the continuous shooting function stops running and the first interface of the first camera function is restored. The number of consecutively taken photos is related to the duration of the sliding operation, which includes the sliding time and dwell time of the sliding operation on the second interface of the continuous shooting function.
14. The camera function control method according to any one of claims 1-13, characterized in that, The second camera function includes a portrait function, and the first function label includes a portrait function label. In the second interface of the second camera function, responding to the sliding operation by continuing to slide along the location of the text of the second camera function, controlling the operation of the second camera function includes: On the second interface of the portrait function, in response to the sliding operation, continue to slide along the location of the text in the portrait function to control the portrait function to take a picture; The image processing program adapted to the portrait function is invoked to process the generated photo and the processed image is saved.
15. The camera function control method according to claim 2, characterized in that, The second camera function includes a video recording function, and the first function label includes a video recording function label. In the second interface of the second camera function, responding to the sliding operation by continuing to slide along the location of the text for the second camera function, controlling the operation of the second camera function includes: On the second interface of the recording function, in response to the sliding operation, continue to slide along the location of the text of the recording function to control the recording function to record. When the sliding operation fails, the third interface of the recording function is switched to display, and the recording function continues to run.
16. The camera function control method according to claim 15, characterized in that, The camera function control method also includes: On the third interface of the recording function, when a user-triggered stop recording command is received, the recording function stops running and the first interface of the first camera function is restored.
17. An electronic device, characterized in that, The electronic device includes a processor and a memory, the processor being configured to invoke a computer program in the memory to execute the camera function control method as claimed in any one of claims 1-16.
18. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed on an electronic device, cause the electronic device to perform the camera function control method as described in any one of claims 1-16.