Focusing method, shooting method convenient for single-hand operation and electronic equipment

The method allows single-hand focus adjustment by moving shutter keys and focus icons within a camera interface, addressing the challenge of limited operational area in single-hand photography, ensuring precise and efficient focus adjustment.

CN120321497APending Publication Date: 2025-07-15HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410058381.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-01-12
Publication Date
2025-07-15

AI Technical Summary

Technical Problem

When a user operates an electronic device to take a photo with one hand, it is difficult to adjust the focus position, especially when the hand is occupied, and the prior art is difficult to easily adjust the focus position.

Method used

By responding to the user's operation on the shutter key in the camera interface, moving the shutter key and focus icon positions, adjusting the focus parameters, including setting displacement thresholds, duration thresholds and direction thresholds to distinguish operation types, and reminding the user of the adjustment process through visual feedback and vibration.

Benefits of technology

It enables users to easily adjust focus to any position in the preview screen even in one-handed operation, improving user experience and operation accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120321497A_ABST
    Figure CN120321497A_ABST
Patent Text Reader

Abstract

The invention provides a focusing method, a shooting method convenient for single-hand operation and electronic equipment, and aims to provide a convenient focusing adjustment method which is convenient for a user to adjust focusing even in a single-hand operation state. In the method, the electronic equipment displays a camera interface, and the camera interface comprises a picture preview area and a shutter key; in response to a first operation triggered by a user on a shutter key of the camera interface, the electronic equipment moves the shutter key to a first position; according to the first operation, the electronic equipment moves a focusing icon in the picture preview area to a second position; and the electronic equipment adjusts a focusing parameter according to the second position of the focusing icon. Through the scheme, a user can operate and move the position of the shutter key, and the electronic equipment can correspondingly adjust the position of the focusing icon, so that the focusing parameter is adjusted, the user can conveniently and quickly move the focusing position, and the user can adjust and focus to any position in a preview picture even in a single-hand operation state.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of terminals, and in particular, to a focusing method, a shooting method convenient for single-handed operation, and an electronic device. Background Art

[0002] The camera function is a frequently used function of electronic devices. When a user uses the camera function, the electronic device can display a preview image captured by the camera in the interface of the camera application, and the user can click on any position in the image preview area to adjust the focusing position of the camera.

[0003] When a user uses the camera function, there may be a scenario where the user needs to use the electronic device to take pictures with one hand. For example, when one hand of the user is occupied, the user will operate the electronic device to take pictures with one hand, and the area that can be operated by the user with one hand is limited. In this case, it is very difficult for the user to adjust the focusing position. Summary of the Invention

[0004] This application provides a focusing method, a shooting method convenient for single-handed operation, and an electronic device, so as to provide a convenient method for adjusting focus, which facilitates the user to adjust the focus even in the single-handed operation state.

[0005] In a first aspect, this application provides a focusing method, which can be applied to an electronic device. In this method, the electronic device displays a camera interface, and the camera interface includes an image preview area and a shutter button; in response to a first operation triggered by the user on the shutter button of the camera interface, the electronic device moves the shutter button to a first position; according to the first operation, the electronic device moves a focusing icon in the image preview area to a second position; the electronic device adjusts the focusing parameters according to the second position of the focusing icon.

[0006] In this method, the user can operate to move the position of the shutter button, and the electronic device can correspondingly adjust the position of the focusing icon, thereby adjusting the focusing parameters, which facilitates the user to quickly move the focusing position, that is, the user can adjust the focus to any position in the preview image even in the single-handed operation state.

[0007] In some implementation manners, before moving the shutter button to the first position, this method further includes: the electronic device determines that the sliding displacement of the first operation is greater than or equal to a displacement threshold; or, based on the first operation, a function of moving the focusing icon is triggered. In this way, when the electronic device determines that the sliding displacement of the first operation triggered by the user is greater than or equal to the displacement threshold, the electronic device adjusts the position of the focusing icon according to the first operation of the user, preventing misjudging other operations triggered by the user on the shutter button as operations for adjusting the focusing icon.

[0008] In some implementations, the duration of the first operation is greater than or equal to a duration threshold; or, the time interval between the initial click time and the start sliding time of the first operation is less than or equal to a time interval threshold. In this way, the electronic device can also determine that the first operation is an operation for adjusting focus when the duration of the first operation triggered by the user is relatively long, and / or, the time interval between the initial click time and the start sliding time is relatively short, further distinguishing the operation of adjusting the focus icon from other operations that can be responded to on the shutter key, and improving the accuracy of responding to the user's operation of adjusting focus.

[0009] In some implementations, in response to the first operation, the electronic device reduces the size of the shutter key; or in response to the first operation, the electronic device increases the size of the boundary of the shutter key in the camera interface; or in response to the first operation, the electronic device changes the shape of the shutter key along the sliding direction of the first operation. Optionally, the degree of deformation of the shutter key is related to the sliding length of the first operation. In this way, after the user triggers the operation of adjusting focus, the electronic device can make the visual effect of the movement of the shutter key more obvious by reducing the size of the shutter key, increasing the size of the boundary of the shutter key, changing the shape of the shutter key, etc.

[0010] In some implementations, the camera interface further includes a shutter key boundary, and the shutter key is located within the shutter key boundary; wherein, the shutter key is limited to move within the shutter key boundary, or the shutter key is limited to move within a range where the distance from the shutter key boundary is a set value. Thereby, when the user adjusts the focus through the first operation, the moving range of the shutter key based on the first operation is limited, thus preventing the shutter key from affecting other controls in the camera interface during the movement process.

[0011] In some implementations, when the electronic device determines that the first operation ends, it restores the shutter key to its initial position. In this way, after the user ends the first operation, the electronic device can restore the shutter key to the initial position, facilitating the user to trigger other operations on the shutter key subsequently.

[0012] In some implementations, before moving the shutter key to the first position, the method further includes: determining a first movement vector corresponding to the shutter key according to the sliding movement vector corresponding to the first operation, the unit vector of the first movement vector having the same direction as the direction of the sliding movement vector, and the length of the first movement vector and the length of the sliding movement vector satisfying a preset first mapping relationship; determining the first position according to the initial position of the shutter key and the first movement vector.

[0013] In some implementations, before moving the focus icon in the preview area of the moving picture to the second position, the method further includes: determining a second movement vector corresponding to the focus icon according to the sliding movement vector corresponding to the first operation, where the unit vector of the second movement vector is in the same direction as the direction of the sliding movement vector, and the length of the second movement vector and the length of the sliding movement vector satisfy a preset second mapping relationship; determining the second position according to the initial position of the focus icon and the second movement vector.

[0014] In some implementations, the initial position of the focus icon is the position of the focus icon after the last focus adjustment; or, the initial position of the focus icon is a preset position.

[0015] In a possible scenario, moving the focus icon in the preview area of the picture to the second position according to the first operation includes: moving the focus icon to the edge of the preview area of the picture according to the first operation. In this scenario, when the electronic device moves the focus icon according to the first operation, when the focus icon moves to the edge of the preview area of the picture, as the user continues to perform the first operation, the position of the focus icon no longer changes, so as to ensure that the focus icon moves within the edge of the preview area of the picture.

[0016] In some implementations, the first operation is a sliding operation; the method further includes: determining a sliding movement vector according to the initial click position and the stop sliding position where the user triggers the first operation.

[0017] In a possible scenario, after responding to the first operation triggered by the user on the shutter button in the camera interface, the electronic device performs a vibration feedback; or the electronic device displays a reminder message in the camera interface, and the reminder message is used to remind the user that the focus adjustment has started. In this way, after the user triggers the first operation, the electronic device can remind the user to start adjusting the focus by means of vibration feedback or displaying a reminder message, etc., which is convenient for the user to continue operating to adjust the focus and improves the user experience.

[0018] In some implementations, after adjusting the focus parameters according to the second position of the focus icon, the user can trigger the electronic device to take a picture, such as the electronic device responds to the second operation triggered by the user and performs the shooting function; where the second operation is a click operation triggered by the user on the shutter button; or the electronic device detects that the pressure value acting on the third position is greater than or equal to the pressure threshold and performs the shooting function; where the third position is the stop sliding position of the first operation. In this way, in the focus method provided in this application, after the user adjusts the focus, the user can continue to trigger shooting in various ways, meeting the user's need to take pictures as soon as possible after adjusting the focus and improving the user experience.

[0019] In a possible scenario, the method further includes: displaying a first control in a first display area of the camera interface, where the distance between the first display area and the shutter button is less than or equal to a distance threshold. In this scenario, the electronic device can also display the first control in the first display area near the shutter button, facilitating the user to quickly use the function corresponding to the first control, so that the user can conveniently operate the first control even in a one-handed operation state.

[0020] In some implementations, the first control is related to the shooting scenario of the camera application.

[0021] In a second aspect, the present application provides a shooting method that facilitates one-handed operation. This method can be applied to an electronic device. In this method, the electronic device displays a camera interface, which includes a picture preview area and a shutter button control; the shutter button control includes a shutter button boundary and a shutter button located within the shutter button boundary; in response to a sliding operation on the shutter button, the electronic device moves the shutter button along the sliding direction to the shutter button boundary; the electronic device moves the focus icon in the picture preview area along the sliding direction based on the sliding operation; in response to a confirmation operation on the shutter button, the electronic device captures an image.

[0022] In some embodiments, before moving the shutter button along the sliding direction to the shutter button boundary, it is determined that the sliding displacement of the sliding operation is greater than or equal to a displacement threshold; or, based on the sliding operation, the function of moving the focus icon is triggered.

[0023] In some embodiments, the duration of the sliding operation is greater than or equal to a duration threshold; or, the time interval between the initial click time and the start sliding time of the sliding operation is less than or equal to a time interval threshold.

[0024] In some embodiments, the method further includes: in response to the sliding operation, reducing the size of the shutter button; or, in response to the sliding operation, increasing the size of the shutter button boundary; or, in response to the sliding operation, changing the shape of the shutter button along the sliding direction.

[0025] In some embodiments, the method further includes: determining the end of the sliding operation and stopping moving the focus icon.

[0026] In a third aspect, the present application provides an electronic device, which includes a plurality of functional modules; the plurality of functional modules interact with each other to implement the methods performed by the electronic device in any of the above aspects and their respective embodiments. The plurality of functional modules can be implemented based on software, hardware, or a combination of software and hardware, and the plurality of functional modules can be arbitrarily combined or divided based on specific implementations.

[0027] Fourthly, the present application provides an electronic device, including at least one processor and at least one memory. Computer program instructions are stored in the at least one memory. When the electronic device runs, the at least one processor executes the methods executed by the electronic device in any of the above aspects and their respective embodiments.

[0028] Fifthly, the present application further provides a computer program product containing instructions. When the computer program product runs on a computer, it enables the computer to execute the methods executed by the electronic device in any of the above aspects and their respective embodiments.

[0029] Sixthly, the present application further provides a computer-readable storage medium. A computer program is stored in the computer-readable storage medium. When the computer program is executed by a computer, it enables the computer to execute the methods executed by the electronic device in any of the above aspects and their respective embodiments.

[0030] Seventhly, the present application further provides a chip. The chip is used to read the computer program stored in the memory and execute the methods executed by the electronic device in any of the above aspects and their respective embodiments.

[0031] Eighthly, the present application further provides a chip system. The chip system includes a processor, which is used to support a computer device to implement the methods executed by the electronic device in any of the above aspects and their respective embodiments. In a possible design, the chip system further includes a memory, and the memory is used to store the necessary programs and data of the computer device. The chip system can be composed of chips, or can include chips and other discrete devices.

[0032] It should be noted that for the technical effects that can be achieved by the technical solutions of any of the above second to eighth aspects, reference can be made to the technical effects that can be achieved by the technical solutions of the first aspect above, and the repeated parts will not be elaborated. Description of the Drawings

[0033] Figure 1 It is a schematic diagram of an interface of a camera application provided by an embodiment of the present application;

[0034] Figure 2 It is a schematic diagram of a single-handed operation area provided by an embodiment of the present application;

[0035] Figure 3 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application;

[0036] Figure 4 It is a software structure block diagram of an electronic device provided by an embodiment of the present application;

[0037] Figure 5 It is a schematic diagram of a camera interface provided by an embodiment of the present application;

[0038] Figure 6 A schematic diagram of a user-triggered sliding operation provided by an embodiment of the present application;

[0039] Figure 7 A flowchart of an operation detected by an electronic device when a user triggers a shutter button provided by an embodiment of the present application;

[0040] Figure 8 An example diagram of the mapping relationship between a first motion vector and a sliding motion vector provided by an embodiment of the present application;

[0041] Figure 9 A schematic diagram of the movement of a shutter button provided by an embodiment of the present application;

[0042] Figure 10 A schematic diagram of a shutter button provided by an embodiment of the present application;

[0043] Figure 11 A schematic diagram of a shutter button and the boundary of the shutter button provided by an embodiment of the present application;

[0044] Figure 12 A schematic diagram of a picture preview area provided by an embodiment of the present application;

[0045] Figure 13 A schematic diagram of an interface for adjusting focus provided by an embodiment of the present application;

[0046] Figure 14 A schematic diagram of a camera interface provided by an embodiment of the present application;

[0047] Figure 15 A flowchart of a focusing method provided by an embodiment of the present application. Detailed implementation manners

[0048] In order to make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings. Among them, in the description of the embodiments of the present application, hereinafter, the terms "first" and "second" are only used for descriptive purposes and cannot be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include one or more of such features.

[0049] It should be understood that in the embodiments of the present application, "at least one" means one or more, and "a plurality" means two or more. "And / or" describes the association relationship of associated objects and indicates that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone, where A and B can be singular or plural. The character " / " generally represents an "or" relationship between the associated objects before and after. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of a single item or multiple items. For example, at least one (item) of a, b, or c can represent: a, b, c, a and b, a and c, b and c, or a, b, and c, where a, b, and c can be single or multiple.

[0050] The camera function is a frequently used function of the electronic device. When the user uses the camera function, the electronic device can display the preview image captured by the camera in the interface of the camera application, and the user can click on any position in the image preview area to adjust the focusing position of the camera. For example, Figure 1 This is a schematic diagram of the interface of a camera application provided by the embodiments of the present application. Refer to Figure 1 , the user can click on any position in the image preview area. In response to the user's click operation, the electronic device displays a focus icon 101 in the image preview area and adjusts the focus parameters of the camera according to the position of the click operation triggered by the user.

[0051] Optionally, the camera application can also support the autofocus function. After displaying the preview image captured by the camera in the image preview area, the camera application can achieve autofocus according to the content of the preview image and display a focus icon at the corresponding position of the autofocus in the image preview area.

[0052] When the user uses the camera function, there may be a scenario where the user needs to take pictures with one hand using the electronic device. For example, when one hand of the user is occupied, the user will operate the electronic device to take pictures with one hand, and the area that can be operated with one hand is limited. For example, Figure 2 This is a schematic diagram of the one-handed operation area provided by the embodiments of the present application. Figure 2 It is the difficulty area division for operating the electronic device with one hand obtained based on ergonomic research. Among them, area 1 is the area where it is relatively easy to operate with one hand, area 2 is the area where it is possible to operate with one hand but not necessarily comfortably, and area 3 is the area where it is difficult to operate with one hand. When the user takes pictures with the mobile phone with one hand, if the user wants to click on a certain position in area 2 or area 3 to adjust the focus, it is relatively difficult.

[0053] Based on the above problems, embodiments of the present application provide a focusing method and an electronic device. In the focusing method provided by the embodiments of the present application, the electronic device displays a camera interface, in response to a first operation triggered by the user on the shutter button, moves the shutter button to a first position, and moves the focusing icon to a second position, and adjusts the focusing parameters of the camera according to the second position of the focusing icon. Through this solution, the user can operate to move the position of the shutter button, and the electronic device can correspondingly adjust the position of the focusing icon, thereby adjusting the focusing parameters, facilitating the user to quickly move the focusing position, that is, even in the single-handed operation state, the user can adjust the focus to any position in the preview screen.

[0054] The following describes an electronic device and embodiments for using such an electronic device. The electronic device in the embodiments of the present application can be a tablet computer, a mobile phone, a vehicle-mounted device, an augmented reality (AR) / virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), a wearable device, etc. The embodiments of the present application do not impose any restrictions on the specific type of the electronic device.

[0055] In some embodiments of the present application, the electronic device may also be a portable terminal device that further includes other functions such as a personal digital assistant and / or a music player function. Exemplary embodiments of the portable terminal device include, but are not limited to, those equipped with or other operating systems of the portable terminal device.

[0056] Figure 3 FIG. is a schematic structural diagram of an electronic device 100 provided by an embodiment of the present application. As Figure 3 shown, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.

[0057] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units may be independent devices or integrated in one or more processors. Among them, the controller may be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of fetching and executing instructions. A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can save the instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0058] The display screen 194 is used to display the display interface of an application, such as the display page of an application installed on the electronic device 100, etc. The display screen 194 includes a display panel. The display panel may adopt 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 Miniled, a MicroLed, a Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.

[0059] The camera 193 is used to capture still images or videos. An object generates an optical image through a lens and projects it onto a photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard format such as RGB or YUV. In some embodiments, the electronic device 100 may include one or N cameras 193, where N is a positive integer greater than 1.

[0060] Among them, the sensor module 180 may include a pressure sensor 180A, an acceleration sensor 180B, a touch sensor 180C, etc.

[0061] The pressure sensor 180A is used to sense pressure signals and can convert the pressure signals into electrical signals. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194.

[0062] The touch sensor 180C, also known as a "touch panel". The touch sensor 180C may be disposed on the display screen 194. The touch sensor 180C and the display screen 194 form a touch screen, also known as a "touch display screen". The touch sensor 180C is used to detect touch operations acting on 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 the display screen 194. In some other embodiments, the touch sensor 180C may also be disposed on the surface of the electronic device 100 at a position different from that of the display screen 194.

[0063] It can be understood that Figure 3 the components shown do not specifically limit the electronic device 100. The electronic device may further include more or fewer components than those shown, or combine certain components, or split certain components, or have different component arrangements. In addition, Figure 3 the combination / connection relationships among the components in

[0064] Figure 4 This is a software architecture block diagram of an electronic device provided by an embodiment of the present application. As Figure 4As shown in the figure, the software structure of an electronic device may be a layered architecture. For example, the software can be divided into several layers, and each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the operating system is divided into four layers, from top to bottom, namely the application layer, the application framework layer (FWK), the runtime, and the system library, and the kernel layer.

[0065] The application layer may include a series of application packages. As Figure 4 shown, the application layer may include a camera, settings, user interface (UI), third-party applications, etc. Among them, the third-party applications may include a gallery, a calendar, a call, a map, a navigation, WLAN, Bluetooth, music, video, short messages, etc. In the embodiments of the present application, the application layer may include a target installation package of a target application downloaded by the electronic device from a server, and the function files and layout files in the target installation package are adapted to the electronic device.

[0066] The application framework layer provides application programming interfaces (APIs) and programming frameworks for the applications in the application layer. The application framework layer may include some predefined functions. As Figure 4 shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, and a notification manager.

[0067] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc. The content provider is used to store and obtain data, and make this data accessible to applications. The data may include videos, images, audio, dialed and received calls, browsing history and bookmarks, phone books, etc.

[0068] The view system includes visible controls, such as controls for displaying text, controls for displaying pictures, etc. The view system can be used to build applications. The display interface can be composed of one or more views. For example, a display interface including a short message notification icon may include a view for displaying text and a view for displaying pictures.

[0069] The phone manager is used to provide the communication function of the electronic device. For example, the management of call status (including connection, hanging up, etc.).

[0070] The resource manager provides various resources for applications, such as localized strings, icons, pictures, layout files, video files, etc.

[0071] The notification manager enables an application to display notification information in the status bar. It can be used to convey messages of an informative nature, which can disappear automatically after a short stay without user interaction. For example, the notification manager is used to inform that a download is complete, a message reminder, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as a notification of a background-running application, or a notification that appears on the screen in the form of a dialogue window. For example, it can prompt text information in the status bar, emit a prompt sound, vibrate the electronic device, blink the indicator light, etc.

[0072] The runtime includes the core libraries and the virtual machine. The runtime is responsible for the scheduling and management of the operating system.

[0073] The core libraries consist of two parts: one part is the functional functions that the Java language needs to call, and the other part is the core libraries of the operating system. The application layer and the application framework layer run in the virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as the management of the object life cycle, stack management, thread management, security and exception management, and garbage collection.

[0074] The system libraries can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing library (e.g., OpenGL ES), 2D graphics engine (e.g., SGL), image processing library, etc.

[0075] The surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.

[0076] The media libraries support the playback and recording of multiple common audio and video formats, as well as static image files, etc. The media libraries can support multiple audio and video coding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0077] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing, etc.

[0078] The 2D graphics engine is the graphics engine for 2D drawing.

[0079] The kernel layer is the layer between the hardware and the software. The kernel layer includes at least a display driver, a camera driver, an audio driver, and a sensor driver.

[0080] The hardware layer can include various sensors, such as an acceleration sensor, a gyroscope sensor, a touch sensor, etc.

[0081] It should be noted that Figure 3 andFigure 4 The structure shown is only an example of the electronic device provided in the embodiments of the present application, and cannot limit the electronic device provided in the embodiments of the present application. In specific implementation, the electronic device may have more or fewer components or modules than Figure 3 or Figure 4 the structure shown.

[0082] The following introduces the focusing method provided in the embodiments of the present application with reference to the accompanying drawings.

[0083] First, the camera interface provided in the embodiments of the present application is introduced. Figure 5 is a schematic diagram of a camera interface provided in the embodiments of the present application. Referring to Figure 5 , the camera interface may include a shutter button 501, a shutter button boundary 502, a picture preview area 503, and a focus icon 504 located in the picture preview area 503. Among them, the shutter button 501 and the shutter button boundary 502 may jointly form a shutter button icon. The shutter button 501 is a controllable position control. The user can trigger a sliding operation on the shutter button 501 to move the position of the shutter button. The shutter button 501 can move within the shutter button boundary 502, or move within a range where the distance from the shutter button boundary 502 is a set value. In the embodiments of the present application, according to the sliding operation triggered by the user on the shutter button 501, the electronic device can correspondingly move the position of the focus icon 504.

[0084] In the embodiments of the present application, after the electronic device runs the camera application, it can display a camera interface as Figure 5 shown. The electronic device can detect a first operation triggered by the user on the shutter button in the camera interface. Optionally, the first operation is an operation triggered by the user for adjusting focus. The first operation can be a sliding operation triggered by the user on the shutter button. The sliding operation may include three actions: click, slide, and lift. The electronic device can determine the sliding movement vector according to the initial click position and the stop sliding position of the sliding operation triggered by the user. The parameters of the sliding movement vector may include the length and direction of the slide.

[0085] For example, Figure 6 is a schematic diagram of a sliding operation triggered by a user provided in the embodiments of the present application. Referring to Figure 6 , Figure 6 , the dashed circle 601 in

[0086] In some other embodiments, the shutter key boundary 502 is an optional part. When the electronic device displays the camera interface, it can display the shutter key 501 without displaying the shutter key boundary 502. After the user triggers a sliding operation on the shutter key 501, the electronic device can display the shutter key boundary 502 in the camera interface, so that the user can know the control range of the shutter key 501. Of course, in practice, the shutter key control can also have other display styles, which are not limited in the embodiments of the present application.

[0087] It can be understood that as a control for the camera shooting function, when the user clicks the shutter key, it can trigger taking a photo, and when the user long-presses the shutter key, it can trigger continuous shooting. In some embodiments, in order to distinguish the operation for adjusting focus triggered by the user on the shutter key from the operation for taking a photo or recording a video, the electronic device can determine that the first operation triggered by the user is an operation for adjusting focus when the first operation triggered by the user meets the first condition. The first condition can be, for example, that the duration of the user's operation on the shutter key is greater than or equal to a duration threshold, the time interval between the initial click time and the start sliding time of the user's trigger of the first operation is less than or equal to a time interval threshold, and the displacement of the user's operation on the shutter key is greater than or equal to a displacement threshold.

[0088] For example, Figure 7 is a flowchart for an electronic device provided by an embodiment of the present application to detect an operation triggered by a user on a shutter key. Refer to Figure 7 , the electronic device detecting the user operation may include the following steps:

[0089] S701: The electronic device detects a click event on the shutter key and records the duration.

[0090] S702: Does the electronic device determine whether the duration of the click event is less than the first duration threshold? If the duration of the click event is less than the first duration threshold, go to S703; if the duration of the click event is greater than or equal to the first duration threshold, go to S704.

[0091] S703: The electronic device ends the response.

[0092] For example, in S703, the electronic device can determine that this operation is a click operation for triggering taking a photo.

[0093] S704: The electronic device detects a movement event and determines whether the sliding displacement of the user operation is greater than or equal to the displacement threshold. If the sliding displacement of the user operation is greater than or equal to the displacement threshold, go to S707; if the sliding displacement of the user operation is less than the displacement threshold, go to S705.

[0094] S705: Does the electronic device determine whether the duration of the click event is greater than or equal to the second duration threshold? If the duration of the click event is greater than or equal to the second duration threshold, proceed to S706; if the duration of the click event is less than the second duration threshold, return to S704.

[0095] S706: The electronic device ends the response.

[0096] For example, in S706, the electronic device can determine that the operation is a long - press operation for triggering continuous shooting.

[0097] S707: Does the electronic device determine whether the time interval between the initial click time of the click event and the start - sliding time is less than or equal to the time - interval threshold? If the time interval between the initial click time of the click event and the start - sliding time is less than or equal to the time - interval threshold, proceed to S708; if the time interval between the initial click time of the click event and the start - sliding time is greater than the time - interval threshold, proceed to S709.

[0098] S708: The electronic device determines that the operation is an operation for triggering focus adjustment.

[0099] S709: The electronic device ends the response.

[0100] It should be noted that Figure 7 In the illustrated embodiments, the electronic device determines that the click operation is an operation for triggering photographing, and the electronic device determines that the long - press operation is an operation for triggering continuous shooting only as an example rather than a limitation. In practice, the electronic device can also set the click operation and the long - press operation to trigger other functions respectively, and the embodiments of the present application do not limit this. Additionally, in the above - mentioned embodiments, the first duration threshold, the second duration threshold, the time - interval threshold, and the displacement threshold can be default values or values determined according to user operation habits, or values customized by the user, and the embodiments of the present application do not limit this.

[0101] Optionally, after the electronic device determines that the user triggers the first operation, the user can know that the focus adjustment has started by moving the focus icon, or the electronic device can remind the user that the focus adjustment has started in other ways. For example, the electronic device can feedback to the user that the focus adjustment has started through vibration, or the electronic device can display a reminder message in the camera interface. For example, the reminder message can be "The focus adjustment has started".

[0102] In the embodiments of the present application, in response to the first operation triggered by the user, the electronic device can move the shutter key to the first position, and move the focus icon to the second position, and the electronic device can adjust the focus parameters of the camera according to the second position of the focus icon. The following separately introduces the ways for the electronic device in the embodiments of the present application to move the shutter key and the focus icon.

[0103] 1. Move the shutter key

[0104] The electronic device can determine the first movement vector corresponding to the shutter key according to the sliding movement vector corresponding to the first operation triggered by the user. The unit vector of the first movement vector is the same as the unit vector of the sliding movement vector, and the length of the first movement vector and the length of the sliding movement vector satisfy a preset first mapping relationship.

[0105] For example, the mapping relationship satisfied by the first movement vector and the sliding movement vector can also be called the display control ratio. As the sliding length corresponding to the first operation triggered by the user increases, the length of the first movement vector increases. Refer to Figure 5 , the movement range of the shutter key is limited, so there is a maximum value for the length of the first movement vector. For example, Figure 8 This is an example diagram of the mapping relationship between the first movement vector and the sliding movement vector provided by the embodiments of this application. Refer to Figure 8 In (a) of, the length y of the first movement vector and the sliding movement vector x can satisfy the following relationship:

[0106]

[0107] where k is a constant, x0 is the maximum length at which the sliding operation triggered by the user will cause the shutter key to displace. That is to say, when the length of the sliding movement vector is greater than x0, the length of the first movement vector will no longer change, and y0 is the maximum value of the length of the first movement vector.

[0108] Exemplarily, when x = x0, kx can be equal to y0.

[0109] Again, for example, refer to Figure 8 In (b) of, the length y of the first movement vector and the sliding movement vector x can satisfy the following relationship:

[0110] y = mtanhx

[0111] where m is a constant.

[0112] It should be noted that Figure 8 the mapping relationship between the first movement vector and the sliding movement vector shown is only an example rather than a limitation. In implementation, the first movement vector can also be determined according to other methods. For example, the electronic device can determine the first movement vector based on the sliding movement vector according to a preset model, or the first movement vector and the sliding movement vector can also satisfy other mapping relationships. The embodiments of this application do not limit this.

[0113] After determining the first movement vector, the electronic device may determine the first position based on the initial position of the shutter button and the first movement vector, and display the movement of the shutter button from the initial position to the first position. Optionally, the initial position of the shutter button may be the center position of the shutter button boundary. In the embodiments of the present application, after the user finishes the first operation, the shutter button may return to the initial position.

[0114] For example, Figure 9 is a schematic diagram of the movement of a shutter button provided in an embodiment of the present application. Figure 9 In the circle marker 901 represents the starting point of the sliding operation triggered by the user, and the circle marker 902 identifies the ending point of the sliding operation triggered by the user. Refer to Figure 9 , the user triggers a sliding operation on the shutter button, and the shutter button moves from the initial position to the first position according to the user's sliding operation.

[0115] In some embodiments, after the user triggers a sliding operation on the shutter button, the shutter button or the shutter button boundary may change to make the visualization effect more obvious. For example, the size of the shutter button may become smaller or the size of the shutter button boundary may increase, making the displacement effect of the shutter button more obvious. Another example is that the shutter button may protrude in the direction corresponding to the sliding operation triggered by the user or display a moving effect of the shutter button moving to indicate the direction of adjusting the focus triggered by the user.

[0116] Figure 10 is a schematic diagram of a shutter button provided in an embodiment of the present application. Refer to Figure 10 , Figure 10 the diagonally filled circle in represents the starting point and the ending point of the sliding operation triggered by the user. After the user triggers a sliding operation on the shutter button, the position of the shutter button changes, and the shutter button bulges in the direction of the sliding operation. Optionally, the degree of deformation of the deformed part of the shutter button may also be related to the length of the sliding operation triggered by the user. When the length of the sliding operation triggered by the user is longer, the degree of deformation of the protrusion deformation of the shutter button in the user's sliding direction may be greater. The degree of deformation of the shutter button may have a maximum value. When the deformation of the shutter button reaches the maximum value, as the length of the user's sliding operation increases, the deformation of the shutter button no longer changes, indicating that the current boundary that the user can adjust the focus has been reached.

[0117] Optionally, referring to Figure 5 the introduction of the shutter button, in the embodiments of the present application, the shutter button 501 may move within the shutter button boundary 502, or move within a range where the distance from the shutter button boundary 502 is a set value, as Figure 11 is a schematic diagram of a shutter button and a shutter button boundary provided in an embodiment of the present application. Refer to Figure 11, according to the sliding operation triggered by the user, the shutter button 1101 can move within the shutter button boundary 1102 or within the range of the boundary 1103. The distance between the boundary 1103 and the shutter button boundary 1102 can be a set value. In an alternative embodiment, according to the sliding operation triggered by the user, the speed of the shutter button 1101 moving within the boundary 1103 can be greater than the speed of the shutter button 1101 moving within the shutter button boundary 1102.

[0118] 2. Move the focus icon

[0119] In the embodiment of the present application, the electronic device can determine the second movement vector corresponding to the focus icon according to the sliding movement vector corresponding to the first operation triggered by the user. The unit vector of the second movement vector is the same as the unit vector of the sliding movement vector, and the length of the second movement vector and the length of the sliding movement vector satisfy a preset second mapping relationship.

[0120] Optionally, the second mapping relationship can be a preset functional relationship, or the second mapping relationship can be a preset model, etc. The method for the electronic device to determine the second movement vector can refer to the way the electronic device determines the first movement vector, and the repeated parts will not be elaborated here.

[0121] After determining the first movement vector, the electronic device can determine the second position according to the initial position of the focus icon and the second movement vector, and display the focus icon moving from the initial position to the second position.

[0122] It should be noted that since the range of the picture preview area is limited, after the electronic device determines the second movement vector corresponding to the focus icon according to the sliding movement vector, when determining the second position to which the focus icon needs to move, it can judge whether the focus icon after moving based on the second movement vector will exceed the display area of the picture preview area according to the initial position of the focus icon and the second movement vector. The second position is the farthest position that the focus icon can move to within the picture preview area of the camera interface based on the second movement vector.

[0123] For example, Figure 12 is a schematic diagram of a picture preview area provided by an embodiment of the present application. Refer to Figure 12 , the electronic device can set a coordinate system with the lower left corner of the picture preview area as the origin. The width of the picture preview area is w and the height is h. In the embodiment of the present application, the position of the focus icon can be the center point coordinates of the focus icon. Then the range where the center point of the focus icon can move is as Figure 12As shown by the dashed line in the figure, the lower left vertex coordinates of the range where the center point of the focus icon can move are (w1, h1), and the upper right vertex coordinates are (w2, h2), where w1 < w2 < w and h1 < h2 < h. The electronic device can obtain the initial position (x1, y1) of the focus icon. The electronic device determines the second movement vector v2. The electronic device determines that the position of the focus icon after moving based on the second movement vector v2 is (x2, y2). When x2 > w2, the electronic device determines that the abscissa of the second position of the focus icon is w2; when x2 < w1, the electronic device determines that the abscissa of the second position of the focus icon is w1; when y2 > h2, the electronic device determines that the ordinate of the second position of the focus icon is h2; when y2 < h1, the electronic device determines that the ordinate of the second position of the focus icon is h1.

[0124] For example, referring to Figure 12 (a) in, based on the second movement vector v2, it is determined that the focus icon needs to move to (x2, y2). If the electronic device determines that the focus icon moving to (x2, y2) will not exceed the display area of the screen preview area, then the electronic device can determine that the second position of the focus icon is (x2, y2). Another example, referring to Figure 12 (b) in, based on the second movement vector v2, it is determined that the focus icon needs to move to (x2, y2), and when x2 > w2, the electronic device determines that the focus icon moving to (x2, y2) will exceed the right boundary of the screen preview area, then the electronic device determines that the second position of the focus icon is (w2, y2). Still another example, referring to Figure 12 (c) in, based on the second movement vector v2, it is determined that the focus icon needs to move to (x2, y2), and when y2 > h, the electronic device determines that the focus icon moving to (x2, y2) will exceed the upper boundary of the screen preview area, then the electronic device determines that the second position of the focus icon is (x2, h2).

[0125] Optionally, the initial position of the focus icon can be the position of the focus icon after the last focus adjustment, where the last focus adjustment can be the electronic device automatically adjusting the focus or the user manually adjusting the focus. When the user triggers the first operation and the focus icon is not included in the screen preview area of the electronic device, the initial position of the focus icon can be a preset position. For example, the preset position can be the center position of the screen preview area.

[0126] For example, Figure 13 is a schematic diagram of an interface for adjusting focus provided by an embodiment of the present application. Among them, Figure 13 (a) in is an example of an interface for the user to adjust the focus in the portrait mode, Figure 13 (b) in is an example of an interface for the user to adjust the focus in the landscape mode. As in Figure 13 (a) and Figure 13As shown in (b) of [description], the user triggers the first operation, the shutter key moves to the first position, and the focus icon moves to the second position.

[0127] In the embodiments of the present application, the electronic device can adjust the focus parameters of the camera according to the second position of the focus icon to focus on the picture content at the second position in the picture preview area.

[0128] In some embodiments, the electronic device can also display a first control in a first display area near the shutter key in the camera interface. The first control can be a function control of the camera application. For example, the electronic device can also display the first control in the area above the shutter key, so that the user can quickly operate the control even when operating the electronic device with one hand. For example, Figure 14 is a schematic diagram of a camera interface provided by the embodiments of the present application. Refer to Figure 14 , the electronic device can display an exposure control 1401 in the area above the shutter key, and the user can quickly adjust the exposure.

[0129] Optionally, the electronic device can adjust the control displayed above the shutter key according to the shooting scene. For example, when the electronic device is in the portrait mode, the electronic device can display a "beauty" control in the area above the shutter key; for another example, when the electronic device is in the night shooting mode, the electronic device can display a "brightness" control in the area above the shutter key.

[0130] In the focus method provided by the embodiments of the present application, after the electronic device adjusts the focus parameters, it can execute the shooting function in response to the second operation triggered by the user. Optionally, the second operation can be a click operation on the shutter key triggered by the user. The second operation can be a click operation triggered by the user after ending the first operation. The shooting function can be any function provided by the camera application. For example, the shooting function can include a photo-taking function, a video-recording function, a portrait shooting function, a slow-motion shooting function, etc. The shooting function executed by the electronic device in response to the second operation is related to the function mode of the camera application of the electronic device. For example, when the electronic device is in the photo-taking mode, in response to the second operation, the electronic device can take a picture. In another implementation, after the electronic device adjusts the focus parameters, if it detects that the pressure value acting on the third position is greater than a preset pressure threshold, it can execute the shooting function, where the third position is the stop-sliding position of the first operation triggered by the user. That is to say, when the user triggers the first operation, they can press the shutter key again without lifting their hand to trigger the electronic device to execute the shooting function.

[0131] For example, taking the case where the camera is in the photo-taking mode as an example, after the user triggers the first operation to adjust the focus and then raises the hand to end the first operation, the user can click the shutter button to trigger taking a photo; or after the user triggers the first operation to adjust the focus, the user does not raise the hand and presses the shutter button hard to trigger taking a photo. Of course, the gestures for triggering taking a photo after the above-mentioned focus adjustment are only taken as an example, and in specific implementation, taking a photo can also be triggered by other gestures or input commands, which are not limited in the embodiments of the present application.

[0132] Optionally, when the camera is in the video-recording mode, during the video recording process, the user can perform a sliding operation on the shutter button multiple times to dynamically adjust the focus, meeting the user's need to focus on different positions during the video recording process and improving the user experience.

[0133] Based on the same concept, the embodiments of the present application also provide a focusing method, which can be executed by an electronic device. Figure 15 For the flowchart of a focusing method provided by the embodiments of the present application, refer to Figure 15 , and the method includes the following steps:

[0134] S1501: The electronic device displays a camera interface.

[0135] Among them, the camera interface includes a picture preview area and a shutter button.

[0136] S1502: The electronic device responds to the first operation triggered by the user on the shutter button of the camera interface and moves the shutter button to the first position.

[0137] S1503: The electronic device moves the focus icon in the picture preview area to the second position according to the first operation.

[0138] S1504: The electronic device adjusts the focus parameters according to the second position of the focus icon.

[0139] It should be noted that the focusing method shown in the present application Figure 15 in specific implementation can refer to the above-mentioned embodiments of the present application, and the repeated parts will not be elaborated.

[0140] Based on the above embodiments, the present application also provides an electronic device, and the electronic device includes multiple functional modules; the multiple functional modules interact with each other to implement the functions executed by the electronic device in each method described in the embodiments of the present application. Such as the steps executed by the electronic device in the embodiments shown in Figure 15 . The multiple functional modules can be implemented based on software, hardware, or a combination of software and hardware, and the multiple functional modules can be arbitrarily combined or divided based on specific implementation.

[0141] Based on the above embodiments, the present application further provides an electronic device, which includes at least one processor and at least one memory. Computer program instructions are stored in the at least one memory. When the electronic device runs, the at least one processor executes the functions performed by the electronic device in the various methods described in the embodiments of the present application. Such as executing Figure 15 the steps performed by the electronic device in the illustrated embodiments.

[0142] Based on the above embodiments, the present application further provides a computer program product containing instructions. When the computer program product runs on a computer, the computer is caused to execute the various methods described in the embodiments of the present application.

[0143] Based on the above embodiments, the present application further provides a computer-readable storage medium. A computer program is stored in the computer-readable storage medium. When the computer program is executed by a computer, the computer is caused to execute the various methods described in the embodiments of the present application.

[0144] Based on the above embodiments, the present application further provides a chip. The chip is used to read the computer program stored in the memory and implement the various methods described in the embodiments of the present application.

[0145] Based on the above embodiments, the present application provides a chip system, which includes a processor for supporting a computer device to implement the various methods described in the embodiments of the present application. In a possible design, the chip system further includes a memory for storing necessary programs and data of the computer device. The chip system can be composed of chips or can include chips and other discrete devices.

[0146] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. The present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0147] The present application is described with reference to the flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and the combination of flows and / or blocks in the flowcharts and / or block diagrams can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing devices generate for implementing in the process Figure 1 one process or multiple processes and / or blocks Figure 1means for the functions specified in one or more boxes.

[0148] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to operate in a particular manner, such that the instructions stored in the computer-readable memory produce a manufacture including an instruction means that implements the functions specified in one Figure 1 or more processes and / or boxes Figure 1 or the functions specified in one or more boxes.

[0149] These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus, such that a series of operational steps are performed on the computer or other programmable apparatus to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable apparatus provide steps for implementing the functions specified in one Figure 1 or more processes and / or boxes Figure 1 or the functions specified in one or more boxes.

[0150] Obviously, those skilled in the art can make various changes and modifications to this application without departing from the scope of protection of this application. Thus, if these modifications and variations of this application fall within the scope of the claims of this application and their equivalent technologies, this application is also intended to include these changes and modifications.

Claims

1. A focusing method, characterized in that Applied to an electronic device, the method includes: Displaying a camera interface, the camera interface including a picture preview area and a shutter button; In response to a first operation triggered by a user on the shutter button of the camera interface, moving the shutter button to a first position; According to the first operation, moving a focus icon in the picture preview area to a second position; Adjusting a focus parameter according to the second position of the focus icon.

2. The method according to claim 1, wherein Before moving the shutter button to the first position, the method further includes: Determining that a sliding displacement of the first operation is greater than or equal to a displacement threshold; or, triggering a function of moving the focus icon based on the first operation.

3. The method according to claim 1 or 2, wherein A duration of the first operation is greater than or equal to a duration threshold; or, A time interval between an initial click time and a start sliding time of the first operation is less than or equal to a time interval threshold.

4. The method according to any one of claims 1 to 3, characterized in that, The method further includes: In response to the first operation, reducing a size of the shutter button; or In response to the first operation, increasing a size of a boundary of the shutter button in the camera interface; or In response to the first operation, changing a shape of the shutter button along a sliding direction of the first operation.

5. The method according to any one of claims 1-4, characterized in that, The camera interface further includes a shutter button boundary, the shutter button being located within the shutter button boundary; wherein, the shutter button is limited to move within the shutter button boundary, or the shutter button is limited to move within a range where a distance from the shutter button boundary is a set value.

6. The method according to any one of claims 1-5, characterized in that, The method further includes: Determining that the first operation ends and restoring the shutter button to an initial position of the shutter button.

7. The method according to any one of claims 1-6, characterized in that, Before moving the shutter button to the first position, the method further includes: Determining a first movement vector corresponding to the shutter button according to a sliding movement vector corresponding to the first operation, a unit vector of the first movement vector being in the same direction as a direction of the sliding movement vector, and a length of the first movement vector and a length of the sliding movement vector satisfying a preset first mapping relationship; Determining the first position according to an initial position of the shutter button and the first movement vector.

8. The method according to any one of claims 1-7, characterized in that, Before moving the focus icon in the picture preview area to the second position, the method further includes: Determining a second movement vector corresponding to the focus icon according to the sliding movement vector corresponding to the first operation, a unit vector of the second movement vector being in the same direction as the direction of the sliding movement vector, and a length of the second movement vector and a length of the sliding movement vector satisfying a preset second mapping relationship; Determining the second position according to an initial position of the focus icon and the second movement vector.

9. The method according to claim 8, wherein The initial position of the focus icon is a position of the focus icon after the last focus adjustment; or, The initial position of the focus icon is a preset position.

10. The method according to claim 8 or 9, characterized in that The moving the focus icon in the picture preview area to the second position according to the first operation includes: Moving the focus icon to an edge of the picture preview area according to the first operation.

11. The method according to any one of claims 7-10, characterized in that, The first operation is a sliding operation; the method further includes: Determining the sliding movement vector according to an initial click position and a stop sliding position where the user triggers the first operation.

12. The method according to any one of claims 1-11, characterized in that After responding to a first operation triggered by the user on the shutter button in the camera interface, the method further includes: Performing a vibration feedback; or, Displaying a reminder message in the camera interface, the reminder message being used to remind the user that the focus adjustment has started.

13. The method according to any one of claims 1 to 12, characterized in that After adjusting the focus parameters according to the second position of the focus icon, the method further includes: In response to a second operation triggered by the user, performing a shooting function; wherein the second operation is a click operation triggered by the user on the shutter button; or Detecting that a pressure value acting on a third position is greater than or equal to a pressure threshold, and performing the shooting function; wherein the third position is the stop sliding position of the first operation.

14. The method according to any one of claims 1-13, characterized in that, The method further includes: Displaying a first control in a first display area of the camera interface, the distance between the first display area and the shutter button being less than or equal to a distance threshold.

15. A shooting method convenient for single-handed operation, characterized in that, Including: Displaying a camera interface, the camera interface including a picture preview area and a shutter button control; the shutter button control includes a shutter button boundary and a shutter button located within the shutter button boundary; In response to a sliding operation on the shutter button, moving the shutter button along the sliding direction to the shutter button boundary; Based on the sliding operation, moving a focus icon in the picture preview area along the sliding direction; In response to a confirmation operation on the shutter button, taking a picture.

16. The method according to claim 15, wherein Before moving the shutter button along the sliding direction to the shutter button boundary, the method further includes: Determining that the sliding displacement of the sliding operation is greater than or equal to a displacement threshold; or, triggering a function of moving the focus icon based on the sliding operation.

17. The method according to claim 16, wherein The duration of the sliding operation is greater than or equal to a duration threshold; or, The time interval between the initial click time and the start sliding time of the sliding operation is less than or equal to a time interval threshold.

18. The method according to any one of claims 15-17, characterized in that, The method further includes: In response to the sliding operation, reducing the size of the shutter button; or, In response to the sliding operation, increasing the size of the shutter button boundary; or, In response to the sliding operation, changing the shape of the shutter button along the sliding direction.

19. The method according to any one of claims 15-18, characterized in that, The method further includes: Determining that the sliding operation ends, and stopping moving the focus icon.

20. An electronic device, characterized in that, Including at least one processor, the at least one processor being coupled to at least one memory, the at least one processor being configured to read and execute a computer program stored in the at least one memory, so that the method according to any one of claims 1 to 14 is executed, or so that the method according to any one of claims 15 to 19 is executed.

21. A computer-readable storage medium, characterized in that, Instructions are stored in the computer-readable storage medium, and when the instructions are run on a computer, the computer is caused to execute the method according to any one of claims 1 to 14, or the computer is caused to execute the method according to any one of claims 15 to 19.

22. A computer program product comprising instructions, characterized in that, When the computer program product runs on a computer, the computer is caused to execute the method according to any one of claims 1 to 14, or the computer is caused to execute the method according to any one of claims 15 to 19.