WO2022007549A1 - 一种调焦方法、装置、设备及计算机可读存储介质 - Google Patents

一种调焦方法、装置、设备及计算机可读存储介质 Download PDF

Info

Publication number
WO2022007549A1
WO2022007549A1 PCT/CN2021/097775 CN2021097775W WO2022007549A1 WO 2022007549 A1 WO2022007549 A1 WO 2022007549A1 CN 2021097775 W CN2021097775 W CN 2021097775W WO 2022007549 A1 WO2022007549 A1 WO 2022007549A1
Authority
WO
WIPO (PCT)
Prior art keywords
focusing
focal length
time
real
touch
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2021/097775
Other languages
English (en)
French (fr)
Inventor
卢胤婷
高晓冬
戴润达
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to EP21838329.7A priority Critical patent/EP4175284A4/en
Publication of WO2022007549A1 publication Critical patent/WO2022007549A1/zh
Priority to US18/151,025 priority patent/US12348854B2/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/69Control of means for changing angle of the field of view, e.g. optical zoom objectives or electronic zooming

Definitions

  • the present application relates to the technical field of mobile terminals, and in particular, to a focusing method, apparatus, device, and computer-readable storage medium.
  • the lens of a camera is a set of lenses that, when light rays parallel to the main optical axis pass through the lenses, converge to a point called the focal point.
  • the distance from the focal point to the center of the lens (ie, the optical center) is called the focal length.
  • the focal length is one of the important parameters for the camera to capture images.
  • the distance between the object being photographed and the camera (lens) is not always the same, that is, the object distance is not always fixed. Therefore, in order to obtain a clear image, it is usually necessary to change the film to the distance with the object distance.
  • the distance of the optical center of the lens This process of changing is often referred to as "focusing" or "zooming.”
  • the focal length adjustment method for the camera is highly limited, and the human-computer interaction performance during focusing is poor.
  • the embodiments of the present application provide a focusing method, apparatus, device, and computer-readable storage medium, which can respond to a focusing touch operation at any position on a shooting interface in any shooting state of the camera, thereby improving the focusing range,
  • the focus limitation has been improved, so that the human-computer interaction performance can be improved.
  • An embodiment of the present application provides a focusing method, including: in a shooting interface for shooting a target object, when a focusing prompt control is displayed, receiving a first touch movement operation acting on a first area of the display screen; the The first area is any area in the shooting interface; the included angle between the moving direction of the first touch movement operation and the first direction is less than or equal to a preset angle; the first direction is the same as the adjustment angle.
  • Focusing prompt controls are arranged in a direction parallel to the axis; in response to the first touch movement operation, determine the focusing position mapped to the focusing prompting control; determine the corresponding focusing based on the focusing position parameter; based on the focus adjustment parameter, adjust the focal length for shooting the target object.
  • An embodiment of the present application provides a focusing device, including: a receiving part configured to receive a first touch acting on a first area of a display screen when a focusing prompt control is displayed in a shooting interface of a shooting target object control movement operation; the first area is any area in the shooting interface; the angle between the movement direction of the first touch movement operation and the first direction is less than or equal to a preset angle; the first The direction is a direction parallel to the arrangement axis of the focusing prompting controls; the determining part is configured to determine the focusing position mapped to the focusing prompting controls in response to the first touch movement operation; and determining a corresponding focusing parameter based on the focusing position; the focusing part is configured to adjust the focal length for photographing the target object based on the focusing parameter.
  • An embodiment of the present application provides a focusing device, including: a memory configured to store an executable computer program; and a processor configured to implement the above focusing method when executing the executable computer program stored in the memory.
  • An embodiment of the present application provides a computer-readable storage medium, which stores a computer program and is configured to cause the processor to execute the above-mentioned focusing method.
  • FIG. 1 is an optional schematic structural diagram of a focusing system provided by an embodiment of the present application
  • FIG. 2 is a schematic structural diagram of a terminal provided by an embodiment of the present application.
  • FIG. 3 is an optional schematic flowchart of the focusing method provided by the embodiment of the present application.
  • FIG. 4 is a schematic diagram of a display effect of an exemplary focusing prompt control on a shooting interface provided by an embodiment of the present application
  • FIG. 5 is a schematic diagram of the included angle relationship between the sliding directions and the first direction of four exemplary sliding operations provided by an embodiment of the present application;
  • FIG. 6 is a schematic diagram of a relationship between a movement trajectory and a first direction of an exemplary first touch movement operation provided by an embodiment of the present application;
  • FIG. 7 is a schematic diagram of a display effect of an exemplary focusing progress bar and focusing controls on a shooting interface provided by an embodiment of the present application;
  • FIG. 8 is an optional schematic flowchart of the focusing method provided by the embodiment of the present application.
  • FIG. 9 is an optional schematic flowchart of the focusing method provided by the embodiment of the present application.
  • FIG. 10 is an optional schematic flowchart of the focusing method provided by the embodiment of the present application.
  • FIG. 11 is a schematic diagram of a display effect of an exemplary focusing prompt control provided on a part of a shooting interface provided by an embodiment of the present application;
  • FIG. 12A is a schematic diagram of a display effect of another exemplary focusing prompt control on a part of the shooting interface provided by an embodiment of the present application;
  • FIG. 12B is a schematic diagram of a display effect of another exemplary focusing prompt control provided on a partial shooting interface provided by an embodiment of the present application;
  • FIG. 13 is an optional schematic flowchart of the focusing method provided by the embodiment of the present application.
  • FIG. 14 is an optional schematic flowchart of the focusing method provided by the embodiment of the present application.
  • FIG. 15 is a schematic diagram of a display effect of an exemplary focus adjustment prompt control on a shooting interface provided by an embodiment of the present application.
  • FIG. 16 is an optional schematic flowchart of the focusing method provided by the embodiment of the present application.
  • FIG. 17 is an optional schematic flowchart of the focusing method provided by the embodiment of the present application.
  • FIG. 18 is a schematic diagram of a display effect of a photographing interface during an exemplary second touch movement operation provided by an embodiment of the present application;
  • FIG. 19 is an optional schematic flowchart of the focusing method provided by the embodiment of the present application.
  • FIG. 20 is a schematic diagram of a display effect of a photographing interface during an exemplary first touch movement operation provided by an embodiment of the present application
  • FIG. 21 is an optional schematic flowchart of the focusing method provided by the embodiment of the present application.
  • FIG. 22 is an optional schematic flowchart of the focusing method provided by the embodiment of the present application.
  • FIG. 23 is an optional schematic flowchart of the focusing method provided by the embodiment of the present application.
  • first ⁇ second ⁇ third is only used to distinguish similar objects, and does not represent a specific ordering of objects. It is understood that “first ⁇ second ⁇ third” Where permitted, the specific order or sequence may be interchanged to enable the embodiments of the application described herein to be practiced in sequences other than those illustrated or described herein.
  • Embodiments of the present application provide a focusing method, apparatus, device, and computer-readable storage medium, which can increase the focusing range, improve the focusing limitation of the focusing device, and further improve the human-computer interaction performance.
  • the focusing device provided by the embodiment of the present application can be implemented as various types of terminals with a photographing device, such as a smartphone, a tablet computer, and a notebook computer.
  • a display screen is provided on the focusing device, and the display screen may be a display panel integrating touch and display, or may be composed of a display panel and a touch panel covering the display panel.
  • the touch panel may be an infrared type, a resistive type, a surface acoustic wave type or a capacitive type touch panel, etc., which is not limited in the embodiment of the present invention.
  • the focusing device may have a built-in photographing device, so as to adjust the focal length of the built-in photographing device when photographing the target object.
  • the focusing device may also be connected in communication with other photographing devices, so as to realize the adjustment of the focal length of other photographing devices when photographing the target object by sending control instructions to other photographing devices. limit.
  • FIG. 1 is a schematic diagram of an optional structure of a focusing system provided by an embodiment of the present application.
  • the terminal 400 focusing device, exemplarily shown in The terminal 400-1 and the terminal 400-2
  • the network 300 may be a wide area network or a local area network, or a combination of the two.
  • the following describes the focusing system in conjunction with a scene in which a first user sends a photographed picture to a second user in a social application as an example.
  • the first user corresponds to the terminal 400-1
  • the second user corresponds to the terminal 400-2.
  • the terminal 400-1 is configured to receive the information acting on the display screen when the focus adjustment prompt control is displayed in the shooting interface of the shooting target object.
  • the interface 401-1 is displayed.
  • the server 200 is configured to send the final image captured by the user through the terminal 400-1, and send the final image to the terminal 400-2, so that the terminal 400-2 displays the final image on the graphical interface 401-2.
  • FIG. 2 is a schematic structural diagram of a terminal provided by an embodiment of the present application.
  • the terminal 400 shown in FIG. 2 includes: at least one processor 410 , a memory 450 , at least one network interface 420 and a user interface 430 .
  • the various components in terminal 400 are coupled together by bus system 440 .
  • the bus system 440 is configured to enable connection communication between these components.
  • the bus system 440 also includes a power bus, a control bus, and a status signal bus.
  • the various buses are labeled as bus system 440 in FIG. 2 .
  • the processor 410 may be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., where a general-purpose processor may be a microprocessor or any conventional processor or the like.
  • DSP Digital Signal Processor
  • User interface 430 includes one or more output devices 431 that enable presentation of media content, including one or more speakers and/or one or more visual display screens.
  • User interface 430 also includes one or more input devices 432, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, and other input buttons and controls.
  • Memory 450 includes volatile memory or non-volatile memory, and may also include both volatile and non-volatile memory.
  • the non-volatile memory may be a read-only memory (ROM, Read Only Memory), and the volatile memory may be a random access memory (RAM, Random Access Memory).
  • ROM read-only memory
  • RAM random access memory
  • the memory 450 described in the embodiments of the present application is intended to include any suitable type of memory.
  • Memory 450 optionally includes one or more storage devices that are physically remote from processor 410 .
  • the memory 450 is configured to store executable computer programs; the processor 410 is configured to implement the adjustment described in the embodiments of the present application when executing the executable computer programs stored in the memory. focus method.
  • memory 450 is capable of storing data to support various operations, examples of which include programs, modules, and data structures, or subsets or supersets thereof, as exemplified below.
  • the operating system 451 includes system programs configured to process various basic system services and perform hardware-related tasks, such as a framework layer, core library layer, driver layer, etc., configured to implement various basic services and process hardware-based tasks;
  • a network communication module 452 configured to reach other computing devices via one or more (wired or wireless) network interfaces 420, exemplary network interfaces 420 including: Bluetooth, Wi-Fi, and Universal String Line bus (USB, Universal Serial Bus), etc.;
  • Display module 453 configured to enable presentation of information via one or more output devices 431 (eg, display screens, etc.) associated with user interface 430 (eg, a user interface configured to operate peripherals and display content and information) );
  • output devices 431 eg, display screens, etc.
  • user interface 430 eg, a user interface configured to operate peripherals and display content and information
  • the input processing module 454 is configured to detect one or more user inputs or interactions from one of the one or more input devices 432 and to translate the detected inputs or interactions.
  • the software implementation part in the terminal provided by the embodiments of the present application may be implemented by a focusing device, and FIG. 2 shows a part of the focusing device 455 stored in the memory 450, which may be a program
  • the software in the form of plug-in and plug-in includes the following software parts: a receiving part 4551, a determining part 4552, a focusing part 4553 and a displaying part 4554, the functions of each part will be explained below.
  • the apparatus provided by the embodiment of the present application may be implemented in hardware.
  • the apparatus provided by the embodiment of the present application may be a processor in the form of a hardware decoding processor, which is programmed to To execute the focusing method provided by the embodiments of the present application, for example, a processor in the form of a hardware decoding processor may adopt one or more application-specific integrated circuits (ASIC, Application Specific Integrated Circuit), DSP, programmable logic device (PLD, Programmable Logic Device), Complex Programmable Logic Device (CPLD, Complex Programmable Logic Device), Field Programmable Gate Array (FPGA, Field-Programmable Gate Array) or other electronic components.
  • ASIC application-specific integrated circuits
  • DSP digital signal processor
  • PLD programmable logic device
  • CPLD Complex Programmable Logic Device
  • FPGA Field Programmable Gate Array
  • the following will combine the exemplary application and implementation of the focusing device provided by the embodiments of the present application, and take the focusing device as a terminal, where the terminal includes a display screen and a photographing device (for example, a camera) as an example, to describe the focusing device provided by the embodiments of the present application. focus method.
  • FIG. 3 is an optional schematic flowchart of the focusing method provided by the embodiment of the present application, which will be described with reference to the steps shown in FIG. 3 .
  • a focus adjustment prompt control In the shooting interface for shooting the target object, when a focus adjustment prompt control is displayed, receive a first touch movement operation acting on a first area of the display screen; the first area is any area in the shooting interface; the first The included angle between the movement direction of the touch movement operation and the first direction is less than or equal to the preset angle; the first direction is a direction parallel to the arrangement axis of the focusing prompting controls.
  • the terminal when the terminal receives the camera trigger instruction, it can control the camera to enter the shooting interface, and at the same time display a focus adjustment prompt control in any area on the shooting interface to enable the zoom function.
  • the terminal may receive the user's first touch movement operation through the first area in the shooting interface of the display screen.
  • the first area may include the second area; in this way, the user can either adjust the focus by touching the display area of the focus adjustment prompt control, or adjust the focus without touching the focus adjustment prompt.
  • the control corresponds to the area, the adjustment of the camera's shooting focal length can be realized through the touch movement operation in other areas of the shooting interface.
  • the terminal may receive a first touch movement operation performed by the user on the display area of the focus adjustment prompt control, and, in response to the received operation in the display area of the focus adjustment prompt control, The first touch movement operation determines the corresponding focusing parameters, and finally adjusts the focal length of the shooting target object with the determined focusing parameters.
  • the first area may also be an area other than the second area in the photographing interface, where the second area is the display area of the focus adjustment prompt control.
  • the terminal may also receive the user's first touch movement operation by displaying the first area and the second area in the shooting interface of the screen.
  • the shooting interface may be an interface of a terminal in a video shooting state, or an interface in a photographing state, etc., and may be a shooting interface when the camera is working, which is not limited in the embodiments of the present application.
  • the terminal receives the camera trigger instruction, that is, when the user clicks the shooting control in the shooting control interface, the terminal can control the camera to enter the shooting interface to shoot the target object, and display the captured image of the target object in the shooting interface in real time.
  • the terminal when the terminal is in the shooting interface, it may not display the focus prompt control as soon as it enters the shooting interface, but can display and exit the focus prompt control through touch operations in the shooting interface. will be described in detail.
  • the focus adjustment prompt control can be used to represent the adjustment direction and focus adjustment position of the focus distance, so as to display the real-time focus adjustment progress and real-time focus adjustment position during the user's focus adjustment process, so that the user can Tips for performing focusing operations.
  • the adjustment direction of the focal length may include increasing the focal length and decreasing the focal length.
  • the arrangement axis of the focus prompting controls may be a horizontal direction or a vertical direction, etc., which is not limited in this embodiment of the present application. However, the included angle between the moving direction of the first touch movement operation and the first direction is less than or equal to the preset angle, wherein the first direction is a direction parallel to the arrangement axis of the focus prompting controls.
  • the first touch movement operation may be a touch operation of sliding along a preset direction, which is referred to as a sliding operation for short.
  • the movement direction of the first touch movement operation is an extension direction from the initial touch position to each real-time touch position in the movement track generated on the display screen.
  • the first touch movement operation may be a sliding operation in which the angle between the sliding direction and the first direction is less than or equal to a preset angle, and the first direction is the arrangement of the focus adjustment prompt control Axial parallel direction.
  • the preset angle is a smaller angle or an angle range set in advance, for example, the preset angle may be within 30°, which is not limited in the embodiments of the present application.
  • the sliding operation can be determined as The first touch movement operation.
  • FIG. 4 is a schematic diagram of a display effect of an exemplary focusing prompt control provided on a shooting interface provided by an embodiment of the present application.
  • the focus adjustment prompt control 100 is vertically arranged on the first area 11 of the photographing interface 10 .
  • FIG. 5 is a schematic diagram of the included angle relationship between the sliding directions and the first direction of four exemplary sliding operations provided by an embodiment of the present application.
  • Y represents the first direction parallel to the arrangement axis of the focusing prompt controls 100
  • Y includes two opposite directions Y1 and Y2
  • X represents the arrangement axis of the focus prompt controls 100 .
  • O 0 represents the starting touch position of the sliding operation
  • O 1 , O 2 , O 3 and O 4 are respectively a real-time touch position (that is, the real-time touch position) generated by four different sliding operations during the sliding process.
  • the position of the control point) the direction Z1 formed by O 0 and O 1 is the sliding direction of the first sliding operation
  • the direction Z2 formed by O 0 and O 2 is the sliding direction of the second sliding operation
  • the direction Z3 formed by O 3 is the sliding direction of the third sliding operation
  • the direction Z4 formed by O 0 and O 4 is the sliding direction of the fourth sliding operation.
  • the first sliding operation, the second sliding operation, the third sliding operation or the third sliding operation can be determined.
  • the four-slide operation is the first touch movement operation.
  • the terminal may determine the moving direction of the sliding operation according to the relative positional relationship between the initial touch position of the sliding operation and at least one real-time touch position generated during the sliding process.
  • FIG. 6 is a schematic diagram of a relationship between a movement trajectory and a first direction of an exemplary first touch movement operation provided by an embodiment of the present application.
  • Y represents the first direction parallel to the axis of arrangement of the focusing prompt controls
  • Y includes two opposite directions Y1 and Y2
  • O 0 represents the initial touch of the first touch movement operation position
  • O 1 represents a real-time touch position generated by the first touch movement operation.
  • the terminal since the initial touch position O 0 is located below the real-time touch position O 1 , the terminal can determine that the initial touch position O 0 points upward to the real-time touch position O 1 . Therefore, the terminal may determine that the upward direction Y1 is the movement direction of the first touch movement.
  • the terminal when the terminal receives the first touch movement operation through the display screen, it can determine the focus adjustment prompt control in response to the movement distance and movement direction of the first touch movement operation during the movement process.
  • the real-time focusing position, and along with the moving process of the first touch movement operation, the real-time focusing position on the focusing prompt control is displayed in real time, so that the user can know the current focusing position through the real-time focusing position on the focusing prompt control. focus progress.
  • the focus adjustment prompt control includes a focus adjustment progress bar and a focus adjustment prompt control
  • the user's touch operation on the display screen of the terminal that is, the first touch movement operation
  • the movement of the focusing control on the focusing prompt control obtains the real-time position of the focusing control on the focusing progress bar during the user's touch operation.
  • FIG. 7 is a schematic diagram of a display effect of an exemplary focusing progress bar and focusing controls on a shooting interface provided by an embodiment of the present application.
  • the focus adjustment prompt control 100 includes a focus adjustment progress bar 103 and a focus adjustment control 104 .
  • the position of the focusing control 104 on the focusing progress bar 103 may change correspondingly with the moving process of the first touch movement operation.
  • the movement distance corresponding to the first touch movement operation and the focus position of the focus control on the focus progress bar are positively correlated, and the movement distance corresponding to the first touch movement operation may be Corresponds to the distance between the focus control's focus position on the focus progress bar and the focus control's initial position. Moreover, when the length of the movement track corresponding to the first touch movement operation is longer, the distance between the focusing position of the focusing control on the focusing progress bar and the initial position of the focusing control is farther.
  • different positions on the focusing prompt control correspond to different focusing parameters.
  • the terminal determines the real-time focusing position mapped to the focusing prompt control
  • the focusing parameters corresponding to the real-time focusing position can be determined.
  • the focusing parameter of the present application may be a focal length value or a focal length adjustment amount within a preset unit time, etc., which are not limited in the embodiments of the present application.
  • the focusing parameter corresponding to a position on the focusing prompt control may represent a focal length value or a focal length adjustment amount corresponding to the position, which is not limited in this embodiment of the present application.
  • the terminal may determine the focal length value corresponding to the first position.
  • the terminal obtains the focal length adjustment parameter, and can increase or decrease the focal length when the camera shoots the target object according to the focal length adjustment parameter.
  • the terminal may send an adjustment instruction to the camera, so that the camera directly adjusts the focal length when the camera is currently shooting the target object to the focal length according to the received adjustment instruction
  • the terminal may send an adjustment instruction to the camera, so that the camera can use the focal length adjustment amount to increase or decrease the current shot according to the received adjustment instruction.
  • the focal length of the target object when the focal length adjustment parameter is a focal length value, the terminal may send an adjustment instruction to the camera, so that the camera directly adjusts the focal length when the camera is currently shooting the target object to the focal length according to the received adjustment instruction.
  • the zoom function when the zoom function is enabled on the shooting interface of the shooting target object, the first touch movement operation of any area in the shooting interface is received, so that the focal length of the shooting target object can be adjusted by touching any area.
  • the focus adjustment touch operation can also be realized, the focus adjustment range is improved, and the human-computer interaction performance is further improved.
  • FIG. 8 is an optional schematic flowchart of the focusing method provided by the embodiment of the present application.
  • the focusing prompt control includes a focusing progress bar and a focusing control; the above S102 can be implemented through S1021-S1023, which will be combined with the focus shown in FIG. 8 . steps are explained.
  • the terminal when the terminal receives a first touch movement operation acting on the display screen, the terminal may determine, during the action process of the first touch movement operation, the on-screen display within a preset unit time. Real-time movement distance and real-time movement direction on the screen.
  • the preset unit time may be the frequency at which the terminal acquires the movement distance of the first touch movement operation during the movement process of the first touch movement operation.
  • the frequency may be 1 second or 20 milliseconds, etc., which is not limited in this embodiment of the present application.
  • the preset unit time is 1 second
  • the real-time moving distance of the first touch movement operation within the preset unit time is the distance between a real-time touch position obtained every 1 second and the initial touch position .
  • the terminal is in the movement process of the first touch movement operation, and when each preset unit time arrives, the real-time movement distance and movement direction are determined.
  • the terminal may determine the preset unit time by using the relative positional relationship between the initial touch position of the first touch movement operation and a real-time touch position corresponding to the preset unit time direction of movement.
  • the preset unit time is 1 second as an example for description.
  • O 0 is the initial touch position of the first touch movement operation
  • O 1 is the real-time touch position corresponding to the first second during the movement of the first touch movement operation. Since O 0 is located at the real-time touch position O 1 Therefore, the initial touch position O 0 points upward to the real-time touch position O 1 , and the terminal can determine the upward direction Y1 as the movement direction corresponding to the first touch movement operation in the first second.
  • the real-time movement distance of the first touch operation and the control movement distance of the focusing control have a preset mapping relationship.
  • the focusing prompt control includes a focusing progress bar and a focusing control.
  • the first touch movement operation may act on the focusing progress bar or on the focusing prompt control, which is not limited in the embodiments of the present application.
  • the preset mapping relationship is a corresponding relationship or a proportional relationship between the moving distance of the first touch movement operation on the display screen and the moving distance of the focusing control on the focusing prompt control.
  • the terminal After obtaining the real-time moving distance of the first touch operation on the display screen, the terminal can convert the moving distance of the focusing control on the focusing progress bar according to the moving distance of the first touch operation and the proportional relationship.
  • the preset mapping relationship can also be converted into the movement speed and action time of the first touch movement operation on the display screen, which are mapped to the movement speed and action time on the focusing prompt control, so as to obtain Get the control movement distance of the focus control.
  • the preset mapping relationship when the preset mapping relationship is the corresponding relationship of the movement track, the preset mapping relationship between the real-time movement distance of the first touch movement operation and the control movement distance of the focusing control may be, the first touch movement
  • the focus control moves 0.2L on the focus progress bar.
  • L represents the total length of the focusing progress bar, and the preset mapping relationship can be arbitrarily set according to actual needs, which is not limited in this embodiment of the present application.
  • the terminal may Within the time, according to the moving direction, move the focusing control on the focusing progress bar by the moving distance of the control to obtain the real-time focusing position.
  • the real-time focusing position is the current position of the focusing control on the focusing progress bar.
  • the terminal determines the moving distance of the moving control of the focusing control according to the moving distance and moving direction of the first touch movement operation, and moves the focusing control on the focusing progress bar by the moving distance of the control to obtain the focusing control.
  • Location the terminal can control the corresponding focusing position on the focusing prompt control according to the user's first touch movement operation in the first area, and display the focusing position through the focusing progress bar and the focusing control. The process is more intuitive.
  • FIG. 9 is an optional schematic flowchart of the focusing method provided by the embodiment of the present application.
  • the foregoing S1021 may be implemented by S10211-S10212, which will be described with reference to the steps shown in FIG. 9 .
  • the terminal when the terminal receives the first touch movement operation, during the action process of the first touch movement operation, each time a preset unit time arrives, the terminal may obtain the first touch movement operation The initial touch position of the operation and the real-time touch position generated during the touch movement.
  • the terminal may acquire the touch position in the process of the touch movement operation every time the preset unit time arrives.
  • the acquired real-time touch position generated during the touch movement process is one obtained in 1 second.
  • the location of the real-time touch point That is, the position of a real-time touch point P1 is acquired in the first second, and the position of a real-time touch point P2 is acquired in the second second.
  • the terminal when the terminal obtains the position of a real-time touch point, the terminal may, according to the distance between the real-time touch point and the initial touch point, along the axis parallel to the arrangement axis of the focusing prompt controls The distance in the direction is used as the real-time moving distance.
  • the terminal compares the initial touch position of the first touch movement operation with the real-time touch position generated during the touch movement process within a preset unit time. The distance between them is used as the real-time moving distance. In this way, the terminal can accurately determine the real-time movement distance of the first touch movement operation during the movement process of the first touch movement operation.
  • FIG. 10 is an optional schematic flowchart of the focusing method provided by the embodiment of the present application, and the focusing parameters include focusing speed. Based on this, the above S103 can be implemented through S1031, which will be described in conjunction with the steps shown in FIG. 10 .
  • different positions on the focusing progress bar correspond to different focusing speeds, and each position uniquely corresponds to one focusing speed.
  • the focusing control is located at a certain position of the focusing progress bar, the position is the focusing position, and the focusing speed corresponding to this position is the focusing speed corresponding to the focusing position.
  • the focus adjustment parameter may include a focus adjustment speed, that is, a focus adjustment amount in a preset unit time.
  • the focusing speed includes: a focusing direction identifier, a focusing value and a numerical unit, which are not limited in the embodiment of the present application.
  • the focusing direction identification includes two identifications of increase and decrease.
  • the increase indicator may be the character "+”
  • the decrease indicator may be the character "-”.
  • the focusing speed may be +3X/S, where X represents the focal length magnification, and S represents seconds (numerical unit), then +3X/S represents that the shooting focal length of the camera is increased by 3X per second (focusing value). ).
  • the length L of the focusing progress bar can be divided into two parts L1 and L2 along the center position, and L1 and L2 are respectively divided into multiple lengths l, along the direction from the center position to the two parts L1 and L2.
  • set a number and focusing speed for each length l in turn, and make the focusing speed in the L1 part increase gradually with the increase of the number of the length l, so that in the L2 part,
  • the focusing speed gradually decreases as the number of the length l increases, and the focusing speed at the center position of the progress bar is set as the preset initial focusing speed; exemplarily, the preset initial focusing speed may be 0 .
  • the preset initial focusing speed may be 0 .
  • FIG. 11 is a schematic diagram of the display effect of the exemplary focusing prompt control provided by the embodiment of the present application on a part of the shooting interface; when the focusing control 104 is at the center of the focusing progress bar 103 , the current The focus speed is 0.
  • FIG. 12A is a schematic diagram of a display effect of another exemplary focusing prompt control provided by an embodiment of the present application on a partial shooting interface
  • FIG. 12B is another exemplary focusing prompt control provided by an embodiment of the present application. Schematic diagram of the display effect on part of the shooting interface. As shown in FIGS.
  • the focus control 104 moves on the focus progress bar 103 along the direction Y1 (a direction parallel to the arrangement axis of the focus prompt controls 100 ) to one end of the focus progress bar and passes At different positions, the focusing speed will gradually increase from -1X/S to +2X/S, and the focal length of the corresponding camera will also increase, and it means that the focal length decreases from 1X per second to the increase of 2X focal length per second.
  • the length L of the focusing progress bar can also be divided into multiple lengths l, and a number and a focusing speed V are set for each length l in turn, and, with the length l As the number increases, the focusing speed V corresponding to the length l increases gradually. For example, divide the length L of the focusing progress bar into 100 lengths l, so that the focusing speed V1 corresponding to the first length l is less than the focusing speed V2 corresponding to the second length l, and so on, then the number The focusing speed corresponding to the maximum length l is the maximum focusing speed.
  • the terminal after determining the focusing parameters (real-time focusing parameters) corresponding to the focusing positions, the terminal also displays the focusing parameters in the shooting interface to prompt the user, so that the The focusing process is more intuitive.
  • the terminal when the focusing parameter includes the focusing speed, the terminal adjusts the shooting focal length of the camera according to the real-time focusing speed corresponding to the focusing position, so that the focusing position can correspond to the focusing process , which can make the focusing process more intuitive.
  • FIG. 13 is an optional schematic flowchart of the focusing method provided by the embodiment of the present application.
  • the foregoing S104 may be implemented by S1041 , which will be described in conjunction with the steps shown in FIG. 13 .
  • the terminal after the terminal obtains the real-time focusing speed corresponding to the focusing position, it can adjust the focal length of the shooting target object within a preset unit time with the obtained real-time focusing speed.
  • the time unit of the focusing speed may be the preset time unit.
  • the preset time unit is 1S (second).
  • the real-time movement distance of the first touch movement operation and the first touch movement operation are within a preset unit time real-time touch position correlation. Therefore, when the terminal acquires the touch position of the first touch movement operation at the preset acquisition frequency, each acquisition time point (preset unit time) corresponds to a touch position, and the touch position corresponds to a focus adjustment position, and a focusing position corresponds to a focusing speed; therefore, each preset unit time corresponds to a focusing speed.
  • the terminal can adjust the shooting focal length of the camera at the corresponding focusing speed within the preset unit time.
  • the focusing position is the first focusing position, then in the first 1 second, the focusing speed V1 corresponding to the first focusing position is used for focusing; when In the second 1 second, the focusing position is at the second focusing position, then in the second 1 second, the focus is adjusted at the focusing speed V2 corresponding to the second focusing position; in the third 1 second, if The focusing position is still the second focusing position, then in the third 1 second, focusing is still performed at the focusing speed V2 corresponding to the second focusing position, etc., until the focusing speed reaches the upper limit of the focusing speed or lower limit.
  • the focusing prompt control includes a focusing direction identification, and the focusing direction identification includes a first direction identification and a second direction identification; the first direction identification represents The focal length is increased, and the second direction identifier represents the reduction of the focal length; the real-time focus adjustment speed includes the focus adjustment direction identifier and the focus adjustment rate.
  • the foregoing S1041 may be implemented through S301-S303, which will be described with reference to the steps shown in FIG. 14 .
  • the terminal may first determine the focusing direction identification and focusing rate of the real-time focusing speed, and then, according to the preset direction identification and focusing direction identification The mapping relationship determines whether to increase or decrease the focal length.
  • the focus adjustment prompt control includes a focus adjustment direction identifier
  • the focus adjustment direction identifier includes a first direction identifier and a second direction identifier.
  • the first direction identifier represents increasing the focal length
  • the second direction identifier represents reducing the focal length
  • the real-time focusing speed includes the focusing direction identifier and the focusing speed.
  • the first direction identification may be the character "+”
  • the second direction identification may be the character "-”
  • the first direction identification and the second direction identification are located at two ends of the focusing progress bar, respectively.
  • FIG. 15 is a schematic diagram of a display effect of an exemplary focusing prompt control provided on a shooting interface provided by an embodiment of the present application.
  • the first direction identification can be the character "+" 101, which represents increasing the focal length
  • the second direction identification can be the character "-" 102, which represents reducing the focal length
  • the first direction identification 101 and the second direction Marks 102 are displayed on both ends of the focusing progress bar, respectively.
  • the focus control 104 moves along the Y1 direction on the focus distance progress bar 103 and moves closer to the character “+” 101, it can indicate that the focus is currently increasing.
  • the focus control 104 is in the focus distance
  • the progress bar 103 moves up along the Y2 direction and moves closer to the character "-" 101, it indicates that the focus is currently being reduced.
  • the focusing direction identification of the real-time focusing speed may also be a character "+” or a character "-", which is not limited in the embodiment of the present application.
  • the real-time focusing speed is +3X/S
  • the character "+” is the direction mark
  • 3X/S is the focusing speed of the real-time focusing speed
  • the real-time focusing speed is -1X/S
  • the character "-" is the direction mark
  • 1X/S is the focusing speed of the real-time focusing speed.
  • the terminal may preset a mutual mapping relationship between the focus adjustment direction identifier and the focus adjustment direction.
  • the focusing direction identification "+” can be made to correspond to increasing the focal length
  • the focusing direction identification "-” can be made to correspond to the decreasing focal length
  • the determined focusing speed is +2X/S
  • it can be determined according to The mapping relationship between the preset focusing direction identification and the focal length adjustment direction, determine that the focusing direction identification "+” corresponds to increasing the focal length, so that +2X/S is determined to increase the camera's shooting focal length per second. 2X.
  • the terminal when the terminal determines to increase the focal length according to the focusing direction identification of the focusing speed, when the preset unit time arrives, the time when the camera shoots the target object can be increased at the focusing speed of the focusing speed.
  • focal length For example, when the focusing speed is +2X/S, after it is determined that the focusing direction mark "+" corresponds to increasing the focal length, the focal length of the camera when shooting the target object can be increased at a rate of 2X per second. .
  • the focusing speed of the focusing speed can be used to increase the focus of the camera on the shooting target object.
  • focal length For example, when the focusing speed is -2X/S, after it is determined that the focusing direction mark "-" corresponds to reducing the focal length, the focal length of the camera when shooting the target object can be reduced at a rate of 2X per second. .
  • the terminal determines whether to increase or decrease the focal length of the shooting target object according to the mapping relationship between the preset direction identification and the focusing direction identification, and performs the focusing adjustment according to the determined adjustment direction and the determined focusing rate. Adjustment of focal length. In this way, the terminal can visually display the adjustment direction of the focal length while adjusting the shooting focal length of the camera according to the focusing speed, thereby making the focusing process more intuitive.
  • FIG. 16 is an optional schematic flowchart of the focusing method provided by the embodiment of the present application.
  • the foregoing S302 may be implemented through S3021 , which will be described in conjunction with the steps shown in FIG. 16 .
  • the focal length of the camera has a numerical range, and the range includes a maximum numerical value, and the focal length of the camera can be increased within the numerical range until reaching the maximum numerical value of the numerical range.
  • the maximum value may be 60X.
  • the terminal in the touch process of the first touch movement operation, when the terminal determines that the adjustment direction corresponding to the first touch movement operation is to increase the focal length when the preset unit time arrives, the terminal will adjust the focal length according to the The obtained focusing rate corresponding to the real-time focusing speed, when the preset unit time arrives, increase the focal length of the target object, and judge in real time whether the increased focal length reaches the maximum focal length threshold until the focal length reaches the maximum focal length threshold. , stop zooming.
  • the terminal when the first touch movement operation input by the user in the display area of the focus adjustment prompt control is an upward sliding operation, the terminal will determine that the adjustment direction corresponding to the upward sliding operation is to increase the focal length, and in the When the preset unit time arrives, increase the focal length of the target object at the focusing rate corresponding to the real-time focusing speed, and determine in real time whether the increased focal length reaches the maximum focal length threshold, and when the increased focal length reaches the maximum focal length When the threshold is reached, the terminal stops zooming.
  • the terminal when the first touch movement operation inputted by the user in the display area of the focus prompt control is an upward sliding operation, the terminal will determine that the adjustment direction corresponding to the upward sliding operation is to increase the focus, and every 1 second When arriving, increase the focal length of the target object at the focusing rate corresponding to the real-time focusing speed, and judge in real time whether the increased focal length reaches the maximum focal length threshold, and when the increased focal length reaches the maximum focal length threshold, the terminal stops. zoom. That is to say, after the terminal increases the focal length to the maximum focal length threshold according to the upward sliding operation input by the user's finger, even if the user's finger continues to slide upward, the terminal will not continue to increase the focal length of the shooting target object.
  • the above S303 may be implemented through S3031:
  • the terminal during the touch process of the first touch movement operation, when the terminal determines that the adjustment direction corresponding to the first touch movement operation is to reduce the focal length when the preset unit time arrives, the terminal will adjust the focal length according to the The obtained focusing rate corresponding to the real-time focusing speed, when the preset unit time arrives, reduce the focal length of the target object, and judge in real time whether the reduced focal length reaches the minimum focal length threshold until the focal length reaches the minimum focal length threshold. , stop zooming.
  • the terminal when the first touch movement operation input by the user in the display area of the focus adjustment prompt control is a slide down operation, the terminal will determine that the adjustment direction corresponding to the slide down operation is to reduce the focus.
  • the unit time arrives, reduce the focal length of the target object at the focusing rate corresponding to the real-time focusing speed, and determine in real time whether the reduced focal length reaches the minimum focal length threshold, and when the reduced focal length reaches the minimum focal length threshold, The terminal stops zooming.
  • the terminal when the first touch movement operation input by the user in the display area of the focus prompt control is a sliding operation, the terminal will determine that the adjustment direction corresponding to the sliding operation is to reduce the focus. Reduce the focal length of the target object at the focusing rate corresponding to the real-time focusing speed, and determine in real time whether the reduced focal length reaches the minimum focal length threshold, and when the reduced focal length reaches the minimum focal length threshold, the terminal stops zooming. That is to say, after the terminal reduces the focal length to the minimum focal length threshold according to the sliding operation input by the user's finger, even if the user's finger continues to slide, the terminal will not continue to reduce the focal length of the shooting target object.
  • the focal length of the camera has a numerical range, and the range includes a minimum value, and the focal length of the camera can be reduced within the numerical range until reaching the minimum value of the numerical range.
  • the minimum value may be 5X.
  • the terminal stops zooming when the focal length is adjusted to the maximum focal length threshold or the minimum threshold it can be avoided that the focal length of the camera has reached the maximum and cannot continue to increase, or the focal length of the camera has reached the maximum focal length.
  • the problem of consuming terminal power and resources caused by continuing to focus can reduce the waste of terminal resources.
  • the above S302 can also be implemented by S3022, and the above S303 can also be implemented by S3032, as follows:
  • the terminal when the terminal determines that the real-time adjustment direction corresponding to the first touch movement operation is to increase the focus, and determines that the real-time focus speed has reached the maximum focus speed, the terminal can When the time is up, the focus adjustment continues at the maximum focus adjustment rate.
  • the focusing speed corresponds to the maximum focusing speed (the upper limit value of the focusing speed).
  • the maximum focusing speed may be +3X/S, and the maximum focusing speed corresponding to the maximum focusing speed is 3X/S.
  • the terminal when the first touch movement operation input by the user in the display area of the focus adjustment prompt control is an upward sliding operation, the terminal will determine that the adjustment direction corresponding to the upward sliding operation is to increase the focal length , and determine whether the focusing rate of the real-time focusing speed is the maximum focusing rate, and when the focusing rate of the real-time focusing speed is the maximum focusing rate, when each preset unit time arrives, the maximum focusing rate is used. Continue to increase the focal length of the target subject.
  • the terminal determines that the adjustment direction corresponding to the upward sliding operation is to increase the focus, and judges that the real-time adjustment Whether the focusing rate of the focusing speed is the maximum focusing rate 3X/S, and when the focusing rate of the real-time focusing speed is the maximum focusing rate 3X/S, when it arrives every 1 second, the maximum focusing rate 3X/S S, continue to increase the focal length of the target subject.
  • the terminal when the terminal determines that the real-time adjustment direction corresponding to the first touch movement operation is to reduce the focus, and determines that the real-time focus speed has reached the maximum focus speed, the terminal may When the unit time is reached, the focus adjustment is continued according to the maximum focus adjustment rate, and the focus adjustment operation is stopped when the camera's shooting focus is adjusted to the minimum focus distance.
  • the focusing speed corresponds to a minimum focusing speed (the lower limit value of the focusing speed).
  • the maximum focusing rate is 3X/S.
  • the terminal when the first touch movement operation input by the user in the display area of the focus adjustment prompt control is a sliding operation, the terminal will determine that the adjustment direction corresponding to the sliding operation is to reduce the focus, and Determine whether the focusing rate of the real-time focusing speed is the maximum focusing rate, and when the focusing rate of the real-time focusing speed is the maximum focusing rate, when each preset unit time arrives, it will continue to decrease at the maximum focusing rate.
  • the focal length of small target subjects when the first touch movement operation input by the user in the display area of the focus adjustment prompt control is a sliding operation.
  • the terminal will determine that the adjustment direction corresponding to the sliding operation is to reduce the focus, and judge the real-time focusing speed Whether the focusing rate is the maximum focusing rate 3X/S, and when the focusing rate of the real-time focusing speed is the maximum focusing rate 3X/S, when it arrives every 1 second, the maximum focusing rate 3X/S, Continue to decrease the focal length of the target subject.
  • the terminal will continue to increase the focal length of the shooting target object at the maximum focusing rate, and stop zooming when the focal length is increased to the maximum focal length, or until the first touch movement operation ends , to stop zooming.
  • the terminal will continue to reduce the focal length of the shooting target object at the maximum focusing rate, and stop zooming when the focal length is reduced to the minimum focal length, or until the first touch movement operation ends , stop zooming.
  • the first touch movement operation is a continuous operation.
  • the touch position changes in real time
  • determine The resulting focusing position mapped to the focusing prompt control also changes in real time
  • the focusing speed determined based on the focusing position also changes in real time.
  • the touch position no longer changes
  • the focusing position on the focusing prompt control determined by the terminal according to the touch position also no longer changes
  • the real-time focusing speed determined based on the focusing position also no longer changes.
  • the terminal can continue to increase or decrease the focal length of the target object at the real-time focusing speed until the focal length is reduced.
  • stop zooming or until the first touch movement operation ends, stop zooming.
  • FIG. 17 is an optional schematic flowchart of the focusing method provided by the embodiment of the present application. Before S101 , the foregoing may further include: S1001 to S1002 , which will be described with reference to the steps shown in FIG. 17 .
  • the second touch movement operation can be received at any position on the shooting interface.
  • the second touch movement operation may be a touch operation of sliding in a preset direction.
  • the second touch movement operation may be a slide-up operation or a slide-down operation, wherein the slide-up operation or slide-down operation may be between a slide direction and a horizontal direction or a vertical direction on the shooting interface of the camera
  • the sliding operation whose included angle is less than or equal to the preset angle is not limited in the embodiment of the present application.
  • the second touch movement operation may also be other touch movement operations such as a touch click operation, which is not limited in the embodiments of the present application.
  • a focus adjustment prompt may be displayed at any position on the shooting interface control to turn on the zoom function, so that the user can follow the focus adjustment direction and focus position feedback through the focus adjustment prompt control.
  • FIG. 18 is a schematic diagram of a display effect of a photographing interface during an exemplary second touch movement operation provided by an embodiment of the present application.
  • the focusing prompt control is not displayed on the shooting interface, and when the terminal receives the second touch movement operation on the display screen , the focus adjustment prompt control 100 may be displayed on the shooting interface 10 , so that the focus adjustment prompt control 100 can be used to provide feedback to the user on the focus adjustment direction and focus position.
  • the display area of the focus prompt control may be different from the first area.
  • the user can adjust the shooting focal length of the camera by touching the moving operation at other positions of the shooting interface without touching the area corresponding to the focus adjustment prompt control 100 , which improves the focus of the focusing operation. Scope.
  • a focus prompt control such as the focus prompt control 100 shown in FIG. 18 , may be displayed near the shooting boundary of the shooting interface.
  • the terminal when the terminal turns on the zoom function in response to the second touch movement operation, and displays the focus adjustment prompt control in the second area of the display screen, as shown in FIG.
  • the focus adjustment control 104 may be at the center position of the focus adjustment progress bar 103, and the current focus adjustment speed is 0.
  • the terminal in the shooting interface, the terminal enables the zoom function according to the received second touch movement operation at any position on the display screen, and displays the focus adjustment prompt control in the second area of the display screen;
  • the focus adjustment prompt control starts to be displayed, so that the focus adjustment direction and focus adjustment position can be fed back to the user through the focus adjustment prompt control, so that The focusing process is more intuitive.
  • FIG. 19 is an optional schematic flowchart of the focusing method provided by the embodiment of the present application.
  • the above-mentioned S104 may further include S105 , which will be described in conjunction with the steps shown in FIG. 19 .
  • the terminal may stop displaying the focusing prompt control in the second area of the display screen when detecting the end of the first touch movement operation, so as to avoid the occlusion of the captured image by the focusing display control and improve the A preview of the captured image.
  • FIG. 20 is a schematic diagram showing a display effect of a photographing interface during an exemplary first touch movement operation provided by an embodiment of the present application.
  • the focus adjustment prompt control 100 is displayed on the second area on the shooting interface, and when the terminal detects the touch movement on the display screen
  • the focus adjustment prompt control 100 is exited in the second area of the display screen, so that when the user does not perform the focus adjustment operation, the focus adjustment prompt control 100 is not displayed, thereby avoiding focus adjustment.
  • the occlusion of the captured image by the display control 100 ultimately improves the preview effect of the captured image.
  • the terminal when the first touch movement operation ends, the terminal exits and displays the focus adjustment prompt control in the second area of the display screen; it can avoid the occlusion of the captured image by the focus adjustment display control, thereby improving the preview effect of the captured image .
  • FIG. 21 is an optional schematic flowchart of the focusing method provided by the embodiment of the present application.
  • the above-mentioned S1001 may further include: S1003-S1004, and the following will be S1003-S1004 after S1002, combined with the steps shown in FIG. 21. instruction.
  • a corresponding initial focusing speed may be preset for the second touch movement operation. After the adjustment device receives the second touch movement operation acting on any position on the display screen, it may Get the corresponding initial focusing speed.
  • the initial focusing speed may be 0X/S or 0.5X/S, which is not limited in the embodiments of the present application.
  • S1003-S1004 and S1002 may be executed together, which is not limited in this embodiment of the present application.
  • the terminal may adjust the shooting focal length of the terminal at the preset initial focusing speed before detecting the first touch movement operation.
  • the terminal after receiving the second touch movement operation acting on any position on the display screen in the shooting interface, the terminal adjusts the focal length at the obtained preset initial focusing speed; it can be adjusted manually without the need of the user.
  • the automatic focusing of the focal length is performed, compared with the manual focusing by the user, the focusing method of the terminal is increased, and the focusing limitation of the terminal is improved.
  • FIG. 22 is an optional schematic flowchart of the focusing method provided by the embodiment of the present application.
  • the above-mentioned S104 may further include S106 , which will be described in conjunction with the steps shown in FIG. 22 .
  • the terminal when it detects the end of the first touch movement operation, it can stop adjusting the focal length of the camera when shooting the target object; in this way, the focal length can be adjusted correspondingly with the user's focusing operation. .
  • S105 and S106 may be performed together, and S105 may also be performed after S106, which is not limited in this embodiment of the present application.
  • the terminal when the first touch movement operation ends, the terminal stops adjusting the focal length of the shooting target object, so that the corresponding adjustment of the focal length can be implemented along with the user's focusing operation.
  • FIG. 23 is an optional schematic flowchart of the focusing method provided by the embodiment of the present application, which will be described with reference to the steps shown in FIG. 23 .
  • the shooting interface for shooting the target object when the focus adjustment prompt control is displayed, receive a first touch movement operation acting on a first area of the display screen; the first area is any area in the shooting interface; the first touch The included angle between the movement direction of the control movement operation and the first direction is less than or equal to the preset angle; the first direction is a direction parallel to the arrangement axis of the focus adjustment prompt controls.
  • the software modules stored in the focusing device 455 of the memory 450 may include:
  • the receiving part 4551 is configured to receive a first touch movement operation acting on a first area of the display screen when a focus adjustment prompt control is displayed in the photographing interface for photographing the target object; the first area is the Any area in the shooting interface; the angle between the moving direction of the first touch movement operation and the first direction is less than or equal to a preset angle; the first direction is the arrangement with the focus adjustment prompt control Axial parallel direction;
  • a determination part 4552 configured to determine a focus position mapped to the focus prompt control in response to the first touch movement operation
  • the determining part 4552 is further configured to determine a corresponding focusing parameter based on the focusing position
  • the focusing part 4553 is configured to adjust the focal length for photographing the target object based on the focusing parameters.
  • the focus adjustment prompt control includes a focus adjustment progress bar and a focus adjustment control; the determining part 4552 is further configured to:
  • the real-time movement distance and movement direction within a preset unit time are determined; according to the preset mapping relationship, the real-time movement distance is mapped to the location where the focusing control is located.
  • the determining part 4552 is further configured to:
  • the focusing parameter includes a focusing speed
  • the determining part 4552 is further configured to:
  • the real-time focusing speed corresponding to the focusing position is determined, wherein one focusing position corresponds to one focusing speed.
  • the focusing part 4553 is further configured to adjust the focal length for photographing the target object according to the real-time focusing speed within the preset unit time.
  • the focus adjustment prompt control includes a focus adjustment direction identification
  • the focus adjustment direction identification includes a first direction identification and a second direction identification
  • the first direction identification indicates increasing the focus
  • the second direction identification signifies reducing the focal length
  • the real-time focusing speed includes: the focusing direction identification and the focusing rate
  • the focusing part 4553 is further configured as:
  • the adjustment direction corresponding to the focusing direction identification of the real-time focusing speed is determined; when the adjustment direction is to increase the focal length, in the preset unit within the time, according to the focusing rate of the real-time focusing speed, increase the focal length of the target object; or, when the adjustment direction is to decrease the focal length, within the preset unit time, according to the The focusing rate of the real-time focusing speed reduces the focal length for shooting the target object.
  • the focusing part 4553 is further configured to:
  • the focusing part 4553 is further configured to:
  • the maximum focusing rate continues to increase Shooting the focal length of the target object; or, when the adjustment direction is to reduce the focal length and the focusing speed of the real-time focusing speed is the maximum focusing speed, within each preset unit time, according to The maximum focusing rate continuously reduces the focal length for photographing the target object.
  • the receiving part 4551 is further configured to:
  • the focusing apparatus further includes a display part 4554 configured to display the focusing prompt control in the second area of the display screen in response to the second touch movement operation.
  • the display part 4554 is further configured as:
  • the focus adjustment prompt control is exited and displayed in the second area of the display screen.
  • the focusing part 4553 is further configured to:
  • a preset initial focusing speed is obtained; based on the preset initial focusing speed, the focal length is adjusted.
  • the focusing part 4553 is further configured to:
  • An embodiment of the present application provides a focusing device, including: a memory configured to store an executable computer program; and a processor configured to execute the executable computer program stored in the memory to implement the embodiments of the present application. method.
  • a focusing device including: a memory configured to store an executable computer program; and a processor configured to execute the executable computer program stored in the memory to implement the embodiments of the present application. method.
  • the focusing method provided by the embodiments of the present application.
  • the embodiments of the present application provide a storage medium storing executable instructions, where a computer program is stored, and when the computer program is executed by a processor, the processor will cause the processor to execute the method provided by the embodiments of the present application, for example, the embodiments of the present application Provided focusing method.
  • the storage medium may be memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; it may also include one or any combination of the above memories Various equipment.
  • executable instructions may take the form of programs, software, software modules, scripts, or code, written in any form of programming language, including compiled or interpreted languages, or declarative or procedural languages , and it may be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other portion suitable for use in a computing environment.
  • executable instructions may, but do not necessarily correspond to files in a file system, may be stored as part of a file that holds other programs or data, for example, a Hyper Text Markup Language (HTML, Hyper Text Markup Language) document
  • HTML Hyper Text Markup Language
  • One or more scripts in stored in a single file dedicated to the program in question, or in multiple cooperating files (eg, files that store one or more modules, subroutines, or code sections).
  • executable instructions may be deployed to be executed on one computing device, or on multiple computing devices located at one site, or alternatively, distributed across multiple sites and interconnected by a communication network execute on.
  • the focus adjustment prompt control when the focus adjustment prompt control is displayed, the first touch movement operation of any area in the shooting interface is received, so that any area can be touched to adjust the focal length of the shooting target object.
  • the focus touch operation can also be realized, which improves the focus range and improves the human-computer interaction performance;
  • the focus adjustment prompt control is displayed, and the focus adjustment direction and focus position feedback can be given to the user through the focus adjustment prompt control, so that the focus adjustment process is more intuitive; and, After receiving the second touch movement operation acting on any position on the display screen, the focus is also adjusted at the preset initial focusing speed.
  • the focusing method of the terminal is increased, which improves the The focusing limitation of the terminal is eliminated.
  • Embodiments of the present application disclose a focusing method, apparatus, device, and computer-readable storage medium.
  • the shooting interface for shooting the target object when the focus adjustment prompt control is displayed, a first touch movement operation acting on a first area of the display screen is received, and the first area is any area in the shooting interface, and the first touch
  • the included angle between the moving direction of the moving operation and the first direction is less than or equal to a preset angle; the first direction is a direction parallel to the axis of arrangement of the focusing prompt controls; moving in response to the first touch
  • the operation is to determine the focus adjustment position mapped to the focus adjustment prompt control, determine the corresponding focus adjustment parameter based on the focus adjustment position, and adjust the focal length of the shooting target object based on the focus adjustment parameter.
  • the focus adjustment prompt control when the focus adjustment prompt control is displayed, the first touch movement operation of any area in the shooting interface is received, so that any area can be touched to realize the function of adjusting the focal length of the shooting target object, that is, It is said that in the area without the focus adjustment prompt control, the focus adjustment touch operation can also be realized, the focus adjustment range is improved, and the human-computer interaction performance is further improved.

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Studio Devices (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请实施例公开了一种调焦方法、装置、设备及计算机可读存储介质。方法包括:在拍摄目标对象的拍摄界面中,当显示有调焦提示控件时,接收作用于显示屏幕的第一区域的第一触控移动操作;所述第一区域为所述拍摄界面中的任意区域;所述第一触控移动操作的移动方向与第一方向之间的夹角小于或等于预设角度;所述第一方向为与所述调焦提示控件的排布轴向平行的方向;响应于所述第一触控移动操作,确定映射到所述调焦提示控件上的调焦位置;基于所述调焦位置,确定对应的调焦参数;基于所述调焦参数,调节拍摄所述目标对象的焦距。上述方法能提高调焦范围,改善调焦局限性,提高人机交互性能。

Description

一种调焦方法、装置、设备及计算机可读存储介质
相关申请的交叉引用
本申请基于申请号为202010653799.X、申请日为2020年07月08日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。
技术领域
本申请涉及移动终端技术领域,尤其涉及一种调焦方法、装置、设备及计算机可读存储介质。
背景技术
相机的镜头是一组透镜,当平行于主光轴的光线穿过透镜时,光会聚到一点上,这个点称为焦点。焦点到透镜中心(即光心)的距离,称为焦距。焦距是相机进行图像拍摄时的重要参数之一。由于拍照时,被拍摄的物体与相机(镜头)的距离不总是相同的,即物距不总是固定的,所以,要想获得清晰的图像,通常需要随着物距的不同而改变胶片到镜头光心的距离,这个改变的过程通常称为“调焦”或“变焦”。
相关技术中,针对相机的焦距调节方式局限性较高,调焦时的人机交互性能较差。
发明内容
本申请实施例提供一种调焦方法、装置、设备及计算机可读存储介质,能够在相机的任何拍摄状态下,响应拍摄界面的任意位置处的调焦触控操作,提高了调焦范围,改善了调焦局限性,从而可以提高人机交互性能。
本申请实施例的技术方案是这样实现的:
本申请实施例提供一种调焦方法,包括:在拍摄目标对象的拍摄界面中,当显示有调焦提示控件时,接收作用于显示屏幕的第一区域的第一触控移动操作;所述第一区域为所述拍摄界面中的任意区域;所述第一触控移动操作的移动方向与第一方向之间的夹角小于或等于预设角度;所述第一方向为与所述调焦提示控件的排布轴向平行的方向;响应于所述第一触控移动操作,确定映射到所述调焦提示控件上的调焦位置;基于所述调焦位置,确定对应的调焦参数;基于所述调焦参数,调节拍摄所述目标对象的焦距。
本申请实施例提供一种调焦装置,包括:接收部分,被配置为在拍摄目标对象的拍摄界面中,当显示有调焦提示控件时,接收作用于显示屏幕的第一区域的第一触控移动操作;所述第一区域为所述拍摄界面中的任意区域;所述第一触控移动操作的移动方向与第一方向之间的夹角小于或等于预设角度;所述第一方向为与所述调焦提示控件的排布轴向平行的方向;确定部分,被配置为响应于所述第一触控移动操作,确定映射到所述调焦提示控件上的调焦位置;以及基于所述调焦位置,确定对应的调焦参数;调焦部分,被配置为基于所述调焦参数,调节拍摄所述目标对象的焦距。
本申请实施例提供一种调焦设备,包括:存储器,被配置为存储可执行计算机程序;处理器,被配置为执行所述存储器中存储的可执行计算机程序时,实现上述的调焦方法。
本申请实施例提供一种计算机可读存储介质,存储有计算机程序,被配置为引起处理器执行时,实现上述的调焦方法。
附图说明
图1为本申请实施例提供的调焦系统的一个可选的架构示意图;
图2为本申请实施例提供的终端的结构示意图;
图3为本申请实施例提供的调焦方法的一个可选的流程示意图;
图4为本申请实施例提供的示例性的调焦提示控件在拍摄界面上的显示效果示意图;
图5为本申请实施例提供的示例性的四个不同的滑动操作的滑动方向与第一方向之间的夹角关系示意图;
图6为本申请实施例提供的示例性的第一触控移动操作的移动轨迹与第一方向之间的关系示意图;
图7为本申请实施例提供的示例性的调焦进度条和调焦控件在拍摄界面上的显示效果示意图;
图8为本申请实施例提供的调焦方法的一个可选的流程示意图;
图9为本申请实施例提供的调焦方法的一个可选的流程示意图;
图10为本申请实施例提供的调焦方法的一个可选的流程示意图;
图11为本申请实施例提供的示例性的调焦提示控件在部分拍摄界面上的显示效果示意图;
图12A为本申请实施例提供的另一示例性的调焦提示控件在部分拍摄界面上的显示效果示意图;
图12B为本申请实施例提供的又一示例性的调焦提示控件在部分拍摄界面上的显示效果示意图;
图13为本申请实施例提供的调焦方法的一个可选的流程示意图;
图14为本申请实施例提供的调焦方法的一个可选的流程示意图;
图15为本申请实施例提供的示例性的调焦提示控件在拍摄界面上的显示效果示意图;
图16为本申请实施例提供的调焦方法的一个可选的流程示意图;
图17为本申请实施例提供的调焦方法的一个可选的流程示意图;
图18为本申请实施例提供的示例性的第二触控移动操作时拍摄界面的显示效果示意图;
图19为本申请实施例提供的调焦方法的一个可选的流程示意图;
图20为本申请实施例提供的示例性的第一触控移动操作时拍摄界面的显示效果示意图;
图21为本申请实施例提供的调焦方法的一个可选的流程示意图;
图22为本申请实施例提供的调焦方法的一个可选的流程示意图;
图23为本申请实施例提供的调焦方法的一个可选的流程示意图。
具体实施方式
为了使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请作进一步地详细描述,所描述的实施例不应视为对本申请的限制,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本申请保护的范围。
在以下的描述中,涉及到“一些实施例”,其描述了所有可能实施例的子集,但是可以理解,“一些实施例”可以是所有可能实施例的相同子集或不同子集,并且可以在不冲突的情况下相互结合。
在以下的描述中,所涉及的术语“第一\第二\第三”仅仅是是区别类似的对象,不代表针对对象的特定排序,可以理解地,“第一\第二\第三”在允许的情况下可以互换特定的顺序或先后次序,以使这里描述的本申请实施例能够以除了在这里图示或描述的以外的顺序实施。
除非另有定义,本申请实施例所使用的所有的技术和科学术语与属于本申请的技术领域的技术人员通常理解的含义相同。本申请实施例中所使用的术语只是为了描述本申请实施例的目的,不是旨在限制本申请。
本申请实施例提供一种调焦方法、装置、设备及计算机可读存储介质,能够提高调焦范围,改善调焦装置的调焦局限性,进而提高人机交互性能。
下面说明本申请实施例提供的调焦设备的示例性应用,本申请实施例提供的调焦设备可以实施为智能手机、平板电脑、笔记本电脑等各种类型的具有拍摄装置的终端。调焦设备上设置有显示屏幕,该显示屏幕可以是触控与显示一体的显示面板,也可以由显示面板和覆盖在显示面板上的触控面板组成等。触控面板可以是红外线式、电阻式、表面声波式或电容式触控面板等,本发明实施例不作限制。在一实施例中,该调焦设备可以内置有拍摄装置,以对内置的拍摄装置在拍摄目标对象时的焦距进行调节。在另一实施例中,该调焦设备还可以与其他拍摄装置通信连接,以通过向其他拍摄装置发送控制指令,实现对其他拍摄装置在拍摄目标对象时的焦距进行调节,本发明实施例不作限制。下面,将说明调焦设备实施为终端时的示例性应用。
参见图1,图1是本申请实施例提供的调焦系统的一个可选的架构示意图,为支撑一个调焦应用,在调焦系统100中,终端400(调焦设备,示例性示出了终端400-1和终端400-2)通过网络300连接服务器200,网络300可以是广域网或者局域网,又或者是二者的组合。下面结合在社交应用中,第一用户向第二用户发送拍摄的图片的场景为例进行调焦系统的说明。第一用户对应终端400-1,第二用户对应终端400-2。在社交应用的社交界面中,实现图像拍摄和图像发送的场景时,终端400-1,被配置为在拍摄目标对象的拍摄界面中,当显示有调焦提示控件时,接收作用于显示屏幕的第一区域的第一触控移动操作;所述第一区域为所述拍摄界面中的任意区域;所述第一触控移动操作的移动方向与第一方向之间的夹角小于或等于预设角度;所述第一方向为与所述调焦提示控件的排布轴向平行的方向;响应于所述第一触控移动操作,确定映射到所述调焦提示控件上的所述调焦位置;基于所述调焦位置,确定对应的调焦参数;基于所述调焦参数,调节拍摄所述目标对象的焦距,最终得到调焦完成时拍摄的最终图像;并将最终图像在图形界面401-1显示。
服务器200,被配置为在用户通过终端400-1发送拍摄获得的最终图像,将最终图像发送至终端400-2,以使终端400-2在图形界面401-2上显示该最终图像。
参见图2,图2是本申请实施例提供的终端的结构示意图,图2所示的终端400包括:至少一个处理器410、存储器450、至少一个网络接口420和用户接口430。终端400中的各个组件通过总线系统440耦合在一起。可理解,总线系统440被配置为实现这些组件之间的连接通信。总线系统440除包括数据总线 之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图2中将各种总线都标为总线系统440。
处理器410可以是一种集成电路芯片,具有信号的处理能力,例如通用处理器、数字信号处理器(DSP,Digital Signal Processor),或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等,其中,通用处理器可以是微处理器或者任何常规的处理器等。
用户接口430包括使得能够呈现媒体内容的一个或多个输出装置431,包括一个或多个扬声器和/或一个或多个视觉显示屏。用户接口430还包括一个或多个输入装置432,包括有助于用户输入的用户接口部件,比如键盘、鼠标、麦克风、触屏显示屏、摄像头、其他输入按钮和控件。
存储器450包括易失性存储器或非易失性存储器,也可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(ROM,Read Only Memory),易失性存储器可以是随机存取存储器(RAM,Random Access Memory)。本申请实施例描述的存储器450旨在包括任意适合类型的存储器。存储器450可选地包括在物理位置上远离处理器410的一个或多个存储设备。
在本申请的一些实施例中,存储器450,被配置为存储可执行计算机程序;处理器410,被配置为执行所述存储器中存储的可执行计算机程序时,实现本申请实施例所述的调焦方法。
在本申请的一些实施例中,存储器450能够存储数据以支持各种操作,这些数据的示例包括程序、模块和数据结构或者其子集或超集,下面示例性说明。
操作系统451,包括被配置为处理各种基本系统服务和执行硬件相关任务的系统程序,例如框架层、核心库层、驱动层等,被配置为实现各种基础业务以及处理基于硬件的任务;
网络通信模块452,被配置为经由一个或多个(有线或无线)网络接口420到达其他计算设备,示例性的网络接口420包括:蓝牙、无线相容性认证(Wi-Fi)、和通用串行总线(USB,Universal Serial Bus)等;
显示模块453,被配置为经由一个或多个与用户接口430相关联的输出装置431(例如,显示屏等)使得能够呈现信息(例如,被配置为操作外围设备和显示内容和信息的用户接口);
输入处理模块454,被配置为对一个或多个来自一个或多个输入装置432之一的一个或多个用户输入或互动进行检测以及翻译所检测的输入或互动。
在本申请的一些实施例中,本申请实施例提供的终端中的软件实现部分可以由调焦装置实现,图2示出了存储在存储器450中的调焦装置455的部分,其可以是程序和插件等形式的软件,包括以下软件部分:接收部分4551、确定部分4552、调焦部分4553和显示部分4554,将在下文中说明各个部分的功能。
在本申请的另一些实施例中,本申请实施例提供的装置可以采用硬件方式实现,作为示例,本申请实施例提供的装置可以是采用硬件译码处理器形式的处理器,其被编程以执行本申请实施例提供的调焦方法,例如,硬件译码处理器形式的处理器可以采用一个或多个应用专用集成电路(ASIC,Application Specific Integrated Circuit)、DSP、可编程逻辑器件(PLD,Programmable Logic Device)、复杂可编程逻辑器件(CPLD,Complex Programmable Logic Device)、现场可编程门阵列(FPGA,Field-Programmable Gate Array)或其他电子元件。
以下将结合本申请实施例提供的调焦设备的示例性应用和实施,并以调焦设备为终端,终端包括显示屏幕和拍摄装置(例如,相机)为例,说明本申请实施例提供的调焦方法。
图3是本申请实施例提供的调焦方法的一个可选的流程示意图,将结合图3示出的步骤进行说明。
S101、在拍摄目标对象的拍摄界面中,当显示有调焦提示控件时,接收作用于显示屏幕的第一区域的第一触控移动操作;第一区域为拍摄界面中的任意区域;第一触控移动操作的移动方向与第一方向之间的夹角小于或等于预设角度;第一方向为与调焦提示控件的排布轴向平行的方向。
在本申请的一些实施例中,当终端接收到相机触发指令时,可以控制相机进入拍摄界面,并同时在拍摄界面上的任意区域处显示调焦提示控件,以开启变焦功能。在变焦功能开启的情况下,终端可以通过显示屏幕的拍摄界面中的第一区域来接收用户的第一触控移动操作。
在本申请的一些实施例中,第一区域可以包括第二区域;如此,可以使用户既可以通过触控调焦提示控件的显示区域来进行焦距调节,也可以在不通过触控调焦提示控件对应的区域时,通过在拍摄界面的其他区域的触控移动操作,实现对相机的拍摄焦距的调节。
示例性的,在第一区域包含第二区域时,终端可以接收用户作用在调焦提示控件的显示区域的第一触控移动操作,并且,响应于在调焦提示控件的显示区域接收到的第一触控移动操作,确定对应的调焦参数,最终以确定的调焦参数调节拍摄目标对象的焦距。
在本申请的另一些实施例中,第一区域也可以是拍摄界面中除第二区域之外的区域,其中,第二区域是调焦提示控件的显示区域。
在本申请的另一些实施例中,在变焦功能开启的情况下,终端也可以通过显示屏幕的拍摄界面中的第 一区域和第二区域,来接收用户的第一触控移动操作。
在本申请的一些实施例中,拍摄界面可以是视频拍摄状态下终端的界面,也可以是拍照状态下的界面等,是相机工作下的拍摄界面即可,本申请实施例对此不作限定。当终端接收到相机触发指令,即用户在拍摄控制界面中点击拍摄控件时,可以控制相机进入拍摄界面,进行对目标对象的拍摄,并将拍摄的目标对象的图像实时显示在拍摄界面中。
需要说明的是,终端在拍摄界面中时,可以不是一进入拍摄界面就显示调焦提示控件,而是可以在拍摄界面中通过触控操作实现调焦提示控件的显示和退出显示的,后续将会进行详细的描述。
在本申请的另一些实施例中,调焦提示控件可以用于表征焦距的调整方向和调焦位置,以在用户调焦的过程中,显示实时调焦进度和实时调焦位置,从而对用户进行调焦操作的提示。其中,焦距的调整方向可以包括增大焦距和减小焦距。调焦提示控件的排布轴向可以是水平方向或垂直方向等,本申请实施例不作限制。但是第一触控移动操作的移动方向与第一方向之间的夹角小于或等于预设角度,其中,第一方向为与调焦提示控件的排布轴向平行的方向。
在本申请的一些实施例中,第一触控移动操作可以是沿预设方向进行滑动的触控操作,简称滑动操作。第一触控移动操作的移动方向为在显示屏幕上产生的移动轨迹中起始触控位置指向各个实时触控位置的延伸方向。在本申请的一些实施例中,第一触控移动操作可以是滑动方向与第一方向之间的夹角小于或等于预设角度的滑动操作,第一方向为与调焦提示控件的排布轴向平行的方向。
在本申请的一些实施例中,预设角度为事先设置的一个较小的角度或者角度范围,例如预设角度可以为30°以内,本申请实施例不作限制。
也就是说,当用户的手指在显示屏幕的第一区域的滑动方向和与调焦提示控件的排布轴向平行的方向之间的夹角小于或等于30°时,可以确定该滑动操作为第一触控移动操作。
示例性的,图4是本申请实施例提供的示例性的调焦提示控件在拍摄界面上的显示效果示意图。如图4所示,调焦提示控件100垂直排布在拍摄界面的10的第一区域11上。图5是本申请实施例提供的示例性的四个不同的滑动操作的滑动方向与第一方向之间的夹角关系示意图。如图5所示,Y表示与调焦提示控件100的排布轴向所平行的第一方向,Y包括两个相反的方向Y1和Y2,X表示与调焦提示控件100的排布轴向垂直的方向,O 0表示滑动操作的起始触控位置,O 1、O 2、O 3和O 4分别为四个不同的滑动操作在滑动过程中产生的一个实时触控位置(即实时触控点的位置),O 0与O 1形成的方向Z1为第一个滑动操作的滑动方向,O 0与O 2形成的方向Z2为第二个滑动操作的滑动方向,依次类推,O 0与O 3形成的方向Z3为第三个滑动操作的滑动方向,O 0与O 4形成的方向Z4为第四个滑动操作的滑动方向。如图5所示,当滑动方向Z1、Z2、Z3或Z4与方向Y之间的夹角β小于或等于30°时,可以确定第一滑动操作、第二滑动操作、第三滑动操作或第四滑动操作为第一触控移动操作。
在本申请的另一些实施例中,终端可以通过滑动操作的起始触控位置与滑动过程中产生的至少一个实时触控位置之间的相对位置关系,确定该滑动操作的移动方向。
示例性的,图6是本申请实施例提供的示例性的第一触控移动操作的移动轨迹与第一方向之间的关系示意图。如图6所示,Y表示与调焦提示控件的排布轴向所平行的第一方向,Y包括两个相反的方向Y1和Y2,O 0表示第一触控移动操作的起始触控位置,O 1表示第一触控移动操作产生的一个实时触控位置。如图6所示,由于起始触控位置O 0位于实时触控位置O 1的下方,所以,终端可以确定起始触控位置O 0向上指向实时触控位置O 1。因此,终端可以确定向上的方向Y1为第一触控移动的移动方向。
S102、响应于第一触控移动操作,确定映射到调焦提示控件上的调焦位置。
在本申请的一些实施例中,终端通过显示屏幕接收到第一触控移动操作,就可以响应第一触控移动操作在移动过程中的移动距离和移动方向,确定出调焦提示控件上的实时调焦位置,并随着第一触控移动操作的移动过程,实时显示调焦提示控件上的实时调焦位置,从而使用户可以通过调焦提示控件上的实时调焦位置获知当前的调焦进度。
需要说明的是,在本申请实施例中,调焦提示控件包括调焦进度条和调焦提示控件,用户在终端的显示屏幕上的触控操作,即第一触控移动操作,可以对应控制调焦提示控件上的调焦控件的移动,得到用户在触控操作过程中,调焦控件在调焦进度条上的实时位置。
示例性的,图7是本申请实施例提供的示例性的调焦进度条和调焦控件在拍摄界面上的显示效果示意图。如图7所示,调焦提示控件100包括调焦进度条103和调焦控件104。调焦控件104在调焦进度条103上的位置可以随着第一触控移动操作的移动过程而进行相应变化。
在本申请的一些实施例中,第一触控移动操作对应的移动距离与调焦控件在调焦进度条上的调焦位置之间正相关,第一触控移动操作对应的移动距离,可以与调焦控件在调焦进度条上的调焦位置和调焦控件的初始位置之间的距离相对应。并且,当第一触控移动操作对应的移动轨迹的长度越长,调焦控件在调焦进度条上的调焦位置与调焦控件的初始位置之间的距离越远。
S103、基于调焦位置,确定对应的调焦参数。
在本申请的一些实施例中,调焦提示控件上的不同位置对应不同的调焦参数。终端确定出映射到调焦提示控件上的实时调焦位置,就可以确定出该实时调焦位置所对应的调焦参数。
在本申请的一些实施例中,本申请的调焦参数可以是焦距值或者预设单位时间内的焦距调节量等,本申请实施例不作限制。
示例性的,调焦提示控件上的一个位置所对应的调焦参数可以表示该位置对应的一个焦距值或焦距调节量等,本申请实施例不作限制。
示例性的,当调焦参数是焦距值,且当终端确定出调焦控件处于调焦进度条的第一位置处时,终端可以确定出该第一位置所对应的焦距值。
S104、基于调焦参数,调节拍摄目标对象的焦距。
在本申请的一些实施例中,终端获得焦距调节参数,可以根据焦距调焦参数增大或减小相机拍摄目标对象时的焦距。
在本申请的一些实施例中,当焦距调节参数为焦距值时,终端可以向相机发送调整指令,以使相机根据接收到的调整指令,直接将相机当前拍摄目标对象时的焦距调整为该焦距值;或者,当焦距调节参数为预设单位时间内的焦距调节量时,终端可以向相机发送调整指令,以使相机根据接收到的调整指令,采用该焦距调节量增大或减小当前拍摄目标对象时的焦距。
可以理解的是,在拍摄目标对象的拍摄界面,当变焦功能开启时,接收拍摄界面中的任意区域的第一触控移动操作,这样就可以通过触控任意区域实现调节拍摄目标对象的焦距的功能。也就是说,在没有调焦提示控件的区域中,也可以实现调焦触控操作,提高了调焦范围,进而提高了人机交互性能。
图8是本申请实施例提供的调焦方法的一个可选的流程示意图,调焦提示控件包括调焦进度条和调焦控件;上述S102可以通过S1021-S1023实现,将结合图8示出的步骤进行说明。
S1021、响应于第一触控移动操作的移动过程,确定预设单位时间内的实时移动距离和移动方向。
在本申请的一些实施例中,终端在接收到作用在显示屏幕上的第一触控移动操作时,可以在该第一触控移动操作的作用过程中,确定预设单位时间内的在显示屏幕上的实时移动距离和实时移动方向。
在本申请的一些实施例中,预设单位时间可以是终端在第一触控移动操作的移动过程中,获取第一触控移动操作的移动距离的频率。例如,频率可以为1秒或20毫秒等等,本申请实施例对此不作限定。当预设单位时间为1秒时,预设单位时间内的第一触控移动操作的实时移动距离则为每1秒内获取到的一个实时触控位置与起始触控位置之间的距离。
需要说明的是,在本申请实施例中,终端是在第一触控移动操作的移动过程,当每个预设单位时间到达时,进行实时移动距离和移动方向的确定的。
在本申请的一些实施例中,终端可以通过第一触控移动操作的起始触控位置和与预设单位时间对应的一个实时触控位置之间的相对位置关系,确定预设单位时间内的移动方向。
示例性的,如图6所示,以预设单位时间为1秒为例进行说明。O 0为第一触控移动操作的起始触控位置,O 1为第一触控移动操作的移动过程中与第1秒对应的实时触控位置,由于O 0位于实时触控位置O 1的下方,所以,起始触控位置O 0向上指向实时触控位置O 1,终端可以确定向上的方向Y1为第一触控移动操作在该第1秒对应的移动方向。
S1022、根据预设映射关系,将实时移动距离,映射为调焦控件在调焦进度条上的控件移动距离。
在本申请的一些实施例中,第一触控操作的实时移动距离与调焦控件的控件移动距离具有预设映射关系,根据该预设映射关系和第一触控操作的实时移动距离,终端在获得第一触控操作的实时移动距离后,可以根据该预设映射关系,将确定调焦控件在调焦进度条上的控件移动距离。其中,调焦提示控件包括调焦进度条和调焦控件。
在本申请的一些实施例中,第一触控移动操作可以作用在调焦进度条上,也可以作用在调焦提示控件上,本申请实施例对此不作限定。
需要说明的是,预设映射关系为显示屏幕上第一触控移动操作的移动距离与调焦提示控件上的调焦控件的移动距离的对应关系或比例关系。当终端在获得第一触控操作在显示屏幕上的实时移动距离后,可以根据第一触控操作的移动距离和该比例关系,换算出调焦控件在调焦进度条上的控件移动距离。
在本申请的一些实施例中,预设映射关系还可以转换为第一触控移动操作在显示屏幕上的移动速度和作用时间,映射到调焦提示控件上的移动速度和作用时间,从而来得到调焦控件的控件移动距离。
示例性的,当预设映射关系为移动轨迹的对应关系时,第一触控移动操作的实时移动距离与调焦控件的控件移动距离之间的预设映射关系可以为,第一触控移动操作的实时移动距离每增加200个像素点(pixel)时,则调焦控件在调焦进度条上移动0.2L。其中,L表示调焦进度条的总长度,预设映射关系可以根据实际需要任意设置,本申请实施例对此不作限定。
S1023、按照移动方向,将调焦控件在调焦进度条上移动控件移动距离,得到调焦位置。
在本申请的一些实施例中,终端在获得第一触控移动操作的预设单位时间内的移动方向,以及调焦控件在调焦进度条上的控件移动距离后,可以在该预设单位时间内,按照移动方向,将调焦控件在调焦进度条上移动该控件移动距离,得到实时的调焦位置。其中,实时的调焦位置为调焦控件在调焦进度条上的当前位置。
本申请实施例中,终端根据第一触控移动操作的移动距离和移动方向,确定调焦控件的移动控件移动距离,并将调焦控件在调焦进度条上移动控件移动距离,得到调焦位置。终端可以在调焦过程中根据用户在第一区域的第一触控移动操作,控制调焦提示控件上相应的调焦位置,并通过调焦进度条和调焦控件显示调焦位置,调焦过程更加直观。
图9是本申请实施例提供的调焦方法的一个可选的流程示意图,上述S1021可以通过S10211-S10212实现,将结合图9示出的步骤进行说明。
S10211、响应于第一触控移动操作的移动过程,确定第一触控移动操作的移动方向,以及显示屏幕上的起始触控位置和在预设单位时间内的触控移动过程中产生的实时触控位置。
在本申请的一些实施例中,终端在接收到第一触控移动操作时,可以在第一触控移动操作的作用过程中,在每次预设单位时间到达时,获取第一触控移动操作的起始触控位置和触控移动过程中产生的实时触控位置。
需要说明的是,在本申请实施例中,终端可以在每次预设单位时间到达时,进行触控移动操作的过程中的触控位置的获取。
示例性的,当预设单位时间为1秒时,则第一触控移动操作在每次1秒到达时,获取的触控移动过程中产生的实时触控位置为1秒所获取到的一个实时触控点的位置。即第1秒获取到一个实时触控点P1的位置,第2秒获取到一个实时触控点P2的位置。
S10212、将起始触控位置与实时触控位置之间的距离,作为实时移动距离。
在本申请的一些实施例中,终端在获得一个实时触控点的位置时,可以根据该实时触控点与起始触控点之间,沿与调焦提示控件的排布轴向平行的方向的距离作为实时移动距离。
示例性的,如图5为例进行说明,当触控位置为触控点的位置,且当预设单位时间为1秒时,O 0为第一触控移动操作的起始触控点,O 1为与第一触控移动操作的移动过程中第二个1秒时获得的实时触控点,则可以将起始触控点O 0与实时触控点O 1之间沿Y方向的距离,作为第一触控移动操作在预设单位时间内(即该第二个1秒)内的实时移动距离。
本申请实施例中,终端在第一触控移动操作的移动过程将第一触控移动操作的起始触控位置,与在预设单位时间内的触控移动过程中产生的实时触控位置之间的距离,作为实时移动距离。这样终端可以准确的确定在第一触控移动操作的移动过程中,第一触控移动操作的实时移动距离。
图10是本申请实施例提供的调焦方法的一个可选的流程示意图,调焦参数包括调焦速度。基于此,上述S103可以通过S1031实现,将结合图10示出的步骤进行说明。
S1031、基于预设的调焦控件的位置与调焦速度的对应关系,确定出调焦位置所对应的实时调焦速度,其中,一个调焦位置对应一个调焦速度。
在本申请的一些实施例中,调焦进度条上的不同位置对应不同的调焦速度,且每个位置与一个调焦速度唯一对应。当调焦控件位于调焦进度条的某一位置处时,该位置则为调焦位置,与该位置对应的调焦速度则为该调焦位置所对应的调焦速度。
在本申请的一些实施例中,调焦参数可以包括调焦速度,即预设单位时间内的焦距调节量。
在本申请实施例中,调焦速度包括:调焦方向标识,调焦数值和数值单位,本申请实施例不作限制。其中,调焦方向标识包括增大和减小两种标识。示例性的,增大标识可以为字符“+”,减小标识可以为字符“-”。
示例性的,调焦速度可以为+3X/S,其中,X表示焦距倍率,S表示秒(数值单位),则+3X/S表示,每秒将相机的拍摄焦距增大3X(调焦数值)。
在本申请的一些实施例中,可以将调焦进度条的长度L沿中心位置划分为两部分L1和L2两部分,并将L1和L2分别划分为多个长度l,沿从中心位置处向调焦进度条两端的方向上,依次为每个长度l设置一个编号和调焦速度,并使L1部分中,调焦速度随着长度l的编号的递增而逐渐增大,使L2部分中,调焦速度随着长度l的编号的递增而逐渐减小,并将进度条的中心位置处的调焦速度设置为预设初始调焦速度;示例性的,预设初始调焦速度可以为0。如图11所示,图11是本申请实施例提供的示例性的调焦提示控件在部分拍摄界面上的显示效果示意图;当调焦控件104在调焦进度条103的中心位置处时,当前的调焦速度为0。
可以理解的是,通过上述的设置,当调焦控件在调焦进度条上向调焦进度条的一端移动而经过不同位 置时,调焦位置对应的调焦速度逐渐减小,并且,当调焦控件在调焦进度条上向调焦进度条的另一端移动而经过不同位置时,调焦位置对应的调焦速度逐渐增大。
示例性的,图12A是本申请实施例提供的另一示例性的调焦提示控件在部分拍摄界面上的显示效果示意图;图12B是本申请实施例提供的又一示例性的调焦提示控件在部分拍摄界面上的显示效果示意图。如图12A和12B所示,当调焦控件104在调焦进度条103上沿着方向Y1(与调焦提示控件100的排布轴向平行的方向)向调焦进度条的一端移动而经过不同位置时,调焦速度会从-1X/S逐渐增大至+2X/S,对应的相机的焦距也增大,并且表示,从每秒减少1X焦距变化为每秒增加2X焦距。
在本申请的另一些实施例中,还可以将调焦进度条的长度L均匀划分为多个长度l,依次为每个长度l设置一个编号和一个调焦速度V,且,随着长度l编号的递增,长度l所对应的调焦速度V逐渐增大。例如,将调焦进度条的长度L划分为100个长度l,使第一个长度l所对应的调焦速度V1,小于第二个长度l所对应的调焦速度V2,依次类推,则编号最大的长度l所对应的调焦速度为最大调焦速度。
在本申请的另一些实施例中,终端在确定出调焦位置对应的调焦参数(实时的调焦参数)后,还在拍摄界面中显示该调焦参数,以向用户进行提示,从而使调焦过程更直观。
本申请实施例中,当调焦参数包括调焦速度时,终端根据调焦位置所对应的实时调焦速度,进行相机的拍摄焦距的调焦,可以使调焦位置可以与调焦过程相对应,从而可以使调焦过程更直观。
图13是本申请实施例提供的调焦方法的一个可选的流程示意图,上述S104可以通过S1041实现,将结合图13示出的步骤进行说明。
S1041、在预设单位时间内,按照实时调焦速度,调节拍摄目标对象的焦距。
在本申请的一些实施例中,当终端获得与调焦位置对应的实时调焦速度后,可以在在预设单位时间内,以获得的实时调焦速度,调节拍摄目标对象的焦距。
在本申请的实施例中,调焦速度的时间单位可以为该预设时间单位。
示例性的,当调焦速度为+3X/S时,则该预设时间单位为1S(秒)。
在本申请的一些实施例中,由于调焦位置与第一触控移动操作的实时移动距离相关,而第一触控移动操作的实时移动距离与第一触控移动操作在预设单位时间内的实时触控位置相关。所以,当终端以预设获取频率获取第一触控移动操作的触控位置时,每个获取时间点(预设单位时间内)会对应一个触控位置,该触控位置会对应一个调焦位置,而一个调焦位置对应一个调焦速度;所以,每个预设单位时间对应一个调焦速度。终端可以在该预设单位时间内以对应的调焦速度,调节相机的拍摄焦距。例如,第一个1秒(预设单位时间)时,调焦位置为第一调焦位置,则第一个1秒时,以第一调焦位置对应的调焦速度V1进行调焦;当第二个1秒时,调焦位置位于第二调焦位置,则第二个1秒时,以第二调焦位置对应的调焦速度V2进行调焦;当第三个1秒时,若调焦位置仍为第二调焦位置,则第三个1秒时,仍以第二调焦位置对应的调焦速度V2进行调焦等,直至调焦速度到达调焦速度的上限值或者下限值。
图14是本申请实施例提供的调焦方法的一个可选的流程示意图,调焦提示控件包括调焦方向标识,调焦方向标识包括第一方向标识和第二方向标识;第一方向标识表征增大焦距,第二方向标识表征减小焦距;实时调焦速度包括调焦方向标识和调焦速率。上述S1041可以通过S301-S303实现,将结合图14示出的步骤进行说明。
S301、根据预设的方向标识与调焦方向标识的映射关系,确定出实时调焦速度的调焦方向标识对应的调整方向。
在本申请的一些实施例中,终端在获得实时调焦速度后,可以先确定出该实时调焦速度的调焦方向标识和调焦速率,然后,根据预设的方向标识与调焦方向标识的映射关系,确定出是要将焦距增大,还是减小。
在本申请的一些实施例中,调焦提示控件包括调焦方向标识,调焦方向标识包括第一方向标识和第二方向标识。第一方向标识表征增大焦距,第二方向标识表征减小焦距;实时调焦速度包括调焦方向标识和调焦速率。
示例性的,第一方向标识可以为字符“+”,第二方向标识可以为字符“-”,且,第一方向标识与第二方向标识分别位于调焦进度条的两端。
示例性的,图15是本申请实施例提供的示例性的调焦提示控件在拍摄界面上的显示效果示意图。如图15所示,第一方向标识可以为字符“+”101,表征增大焦距,第二方向标识可以为字符“-”102,表征减小焦距;并且第一方向标识101和第二方向标识102分别显示在调焦进度条的两端。并且,如图15所示,当调焦控件104在调焦距进度条103上沿Y1方向,向靠近字符“+”101运动时,可以表征当前正增大焦距,当调焦控件104在调焦距进度条103上沿Y2方向,向靠近字符“-”101运动时,表征当前正减小焦距。
在本申请实施例中,实时调焦速度的调焦方向标识也可以为字符“+”或字符“-”,本申请实施例不作限制。例如,当实时调焦速度为+3X/S时,则字符“+”为方向标识,3X/S为该实时调焦速度的调焦速率;又 例如,当实时调焦速度为-1X/S时,字符“-”为方向标识,1X/S为该实时调焦速度的调焦速率。
在本申请的一些实施例中,终端可以为调焦方向标识与焦距的调整方向预先设定相互映射关系。例如,可以使调焦方向标识“+”与增大焦距互相对应,并使调焦方向标识“-”与减小焦距对应;当确定出的调焦速度是+2X/S时,则可以根据预先设定的调焦方向标识与焦距的调整方向之间的映射关系,确定调焦方向标识“+”与增大焦距对应,从而确定出+2X/S为每秒将相机的拍摄焦距增大2X。
S302、当调整方向为增大焦距时,在预设单位时间内,按照实时调焦速度的调焦速率,增大拍摄目标对象的焦距。
在本申请的一些实施例中,当终端根据调焦速度的调焦方向标识确定增大焦距时,可以在预设单位时间到达时,以调焦速度的调焦速率增大相机拍摄目标对象时的焦距。例如,当调焦速度是+2X/S时,则可以在确定调焦方向标识“+”与增大焦距对应之后,以每秒增大2X的速率,增大相机在拍摄目标对象时的焦距。
S303、当调整方向为减小焦距时,在预设单位时间内,按照实时调焦速度的调焦速率,减小拍摄目标对象的焦距。
在本申请的一些实施例中,当终端根据调焦速度的调焦方向标识确定增大焦距时,可以在预设单位时间达到时,以调焦速度的调焦速率增大相机在拍摄目标对象时的焦距。例如,当调焦速度是-2X/S时,则可以在确定调焦方向标识“-”与减小焦距对应之后,以每秒减小2X的速率,减小相机在拍摄目标对象时的焦距。
本申请实施例中,终端根据预设的方向标识与调焦方向标识的映射关系,确定是否增大或减小拍摄目标对象的焦距,并根据确定出的调整方向以确定出的调焦速率进行焦距的调节。这样终端可以在根据调焦速度进行相机的拍摄焦距的调节的同时,直观显示焦距的调整方向,从而使调焦过程更直观。
图16是本申请实施例提供的调焦方法的一个可选的流程示意图,上述S302可以通过S3021实现,将结合图16示出的步骤进行说明。
S3021、在预设单位时间内,按照实时调焦速度的调焦速率增大拍摄目标对象的焦距,直至调整后的焦距达到最大焦距阈值时,停止变焦。
在本申请的一些实施例中,相机的焦距具有一个数值范围,该范围包括了最大数值,相机的焦距可在该数值范围内进行增大,直至达到数值范围的最大数值。示例性的,最大数值可以是60X。
在本申请的实施例中,在第一触控移动操作的触控过程中,当终端确定在预设单位时间到达时第一触控移动操作对应的调整方向为增大焦距时,终端会根据获取到的实时调焦速度所对应的调焦速率,在预设单位时间到达时,增大拍摄目标对象的焦距,并实时判断增大后的焦距是否达到最大焦距阈值,直至焦距达到最大焦距阈值时,停止变焦。
在本申请的实施例中,当用户在调焦提示控件的显示区域中输入的第一触控移动操作为上滑操作时,终端会确定出上滑操作对应的调整方向为增大焦距,在预设单位时间到达时,以实时调焦速度对应的调焦速率增大拍摄目标对象的焦距,并实时判断增大后的焦距是否达到最大焦距阈值,并当增大后的焦距值达到最大焦距阈值时,终端停止变焦。
例如,当用户通过手指在调焦提示控件的显示区域中输入的第一触控移动操作为上滑的操作时,终端会确定出上滑操作对应的调整方向为增大焦距,在每1秒到达时,以实时调焦速度对应的调焦速率增大拍摄目标对象的焦距,并实时判断增大后的焦距是否达到最大焦距阈值,并当增大后的焦距达到最大焦距阈值时,终端停止变焦。也就是说,当终端根据用户手指输入的上滑操作,而将焦距增大到最大焦距阈值后,即使用户的手指仍在继续上滑,终端也不会继续增大拍摄目标对象的焦距。
在本申请的一些实施例中,如图16所示,上述S303可以通过S3031实现:
S3031、在预设单位时间内,按照实时调焦速度的调焦速率减小拍摄目标对象的焦距,直至调整后的焦距达到最小焦距阈值时,停止变焦。
在本申请的实施例中,在第一触控移动操作的触控过程中,当终端确定在预设单位时间到达时第一触控移动操作对应的调整方向为减小焦距时,终端会根据获取到的实时调焦速度所对应的调焦速率,在预设单位时间到达时,减小拍摄目标对象的焦距,并实时判断减小后的焦距是否达到最小焦距阈值,直至焦距达到最小焦距阈值时,停止变焦。
在本申请的实施例中,当用户在调焦提示控件的显示区域中输入的第一触控移动操作为下滑操作时,终端会确定出下滑操作对应的调整方向为减小焦距,在预设单位时间到达时,以实时调焦速度对应的调焦速率减小拍摄目标对象的焦距,并实时判断减小后的焦距是否达到最小焦距阈值,并当减小后的焦距达到最小焦距阈值时,终端停止变焦。
例如,当用户通过手指在调焦提示控件的显示区域中输入的第一触控移动操作为下滑操作时,终端会确定出下滑操作对应的调整方向为减小焦距,在每1秒到达时,以实时调焦速度对应的调焦速率减小拍摄 目标对象的焦距,并实时判断减小后的焦距是否达到最小焦距阈值,并当减小后的焦距达到最小焦距阈值时,终端停止变焦。也就是说,当终端根据用户手指输入的下滑操作,而将焦距减小到最小焦距阈值后,即使用户的手指仍在继续下滑,终端也不会继续减小拍摄目标对象的焦距。
在本申请的一些实施例中,相机的焦距具有一个数值范围,该范围包括了最小数值,相机的焦距可在该数值范围内进行减小,直至达到数值范围的最小数值。示例性的,最小数值可以是5X。
本申请实施例中,由于终端在将焦距调整到最大焦距阈值或最小阈值时会停止变焦,因此,可以避免在相机的拍摄焦距已达到最大且无法继续增大,或者在相机的拍摄焦距已达到最小且无法继续减小时,仍继续调焦而带来的耗费终端电量和资源的问题,从而可以降低终端的资源浪费。
在本申请的一些实施例中,上述S302还可以通过S3022实现,上述S303还可以通过S3032实现,具体如下:
S3022、当调整方向为增大焦距,且实时调焦速度的调焦速率为最大调焦速率时,在每个预设单位时间内,按照最大调焦速率,持续增大拍摄目标对象的焦距。
在本申请的实施例中,当终端确定第一触控移动操作对应的实时调整方向为增大焦距,且确定出实时调焦速度已经达到最大调焦速率时,终端可以在每个预设单位时间达到时,持续按照该最大调焦速率进行焦距调节。
在本申请的实施例中,调焦速率对应有最大调焦速度(调焦速度的上限值)。示例性的,最大调焦速度可以是+3X/S,则最大调焦速度对应的最大调焦速率为3X/S。
在本申请的实施例中,当用户在调焦提示控件的显示区域中输入的第一触控移动操作为上滑操作时,终端会确定出该上滑操作所对应的调整方向为增大焦距,并判断实时调焦速度的调焦速率是否为最大调焦速率,并当实时调焦速度的调焦速率为最大调焦速率时,在每个预设单位时间到达时,以最大调焦速率持续增大拍摄目标对象的焦距。
例如,当用户通过手指在调焦提示控件的显示区域中输入的第一触控移动操作为上滑操作时,终端会确定出该上滑操作对应的调整方向为增大焦距,并判断实时调焦速度的调焦速率是否为最大调焦速率3X/S,并当实时调焦速度的调焦速率为最大调焦速率3X/S时,在每1秒到达时,以最大调焦速率3X/S,持续增大拍摄目标对象的焦距。
S3032、当调整方向为减小焦距,且实时调焦速度的调焦速率为最大调焦速率时,在每个预设单位时间内,按照最大调焦速率,持续减小拍摄目标对象的焦距。
在本申请的一些实施例中,当终端确定第一触控移动操作对应的实时调整方向为减小焦距,且确定出实时调焦速度已经达到最大调焦速率时,终端可以在每个预设单位时间达到时,持续按照该最大调焦速率进行焦距调节,直到将相机的拍摄焦距调至最小焦距时,停止调焦操作。
在本申请的一些实施例中,调焦速率对应有最小调焦速度(调焦速度的下限值),示例性的,最小调焦速度可以是-3X/S,则最小调焦速度对应的最大调焦速率为3X/S。
在本申请的实施例中,当用户在调焦提示控件的显示区域中输入的第一触控移动操作为下滑操作时,终端会确定出该下滑操作所对应的调整方向为减小焦距,并判断实时调焦速度的调焦速率是否为最大调焦速率,并当实时调焦速度的调焦速率为最大调焦速率时,在每个预设单位时间到达时,以最大调焦速率持续减小拍摄目标对象的焦距。
例如,当用户通过手指在调焦提示控件的显示区域中输入的第一触控移动操作为下滑操作时,终端会确定出该下滑操作对应的调整方向为减小焦距,并判断实时调焦速度的调焦速率是否为最大调焦速率3X/S,并当实时调焦速度的调焦速率为最大调焦速率3X/S时,在每1秒到达时,以最大调焦速率3X/S,持续减小拍摄目标对象的焦距。
在本申请的一些实施例中,在终端会以最大调焦速率,持续增大拍摄目标对象的焦距,直至将焦距增加至最大焦距时,停止变焦,或者,直至第一触控移动操作结束时,停止变焦。
在本申请的一些实施例中,在终端会以最大调焦速率,持续减小拍摄目标对象的焦距,直至将焦距减小至最小焦距时,停止变焦,或者,直至第一触控移动操作结束时,停止变焦。
在本申请的一些实施例中,第一触控移动操作是持续的操作,在第一触控移动操作持续的过程中,当触控位置实时变化时,响应于第一触控移动操作,确定出的映射到调焦提示控件上的调焦位置也实时变化,进而基于调焦位置而确定的调焦速度也是实时变化的。而当触控位置不再变化时,终端根据该触控位置确定出的调焦提示控件上的调焦位置也不再变化,进而基于调焦位置确定出的实时调焦速度也不再变化。所以,即使实时调焦速度不是最大调焦速率,在实时的调焦位置不变的情况下,终端也可以该实时调焦速度持续增大或减小拍摄目标对象的焦距,直至将焦距减小至最小焦距时,停止变焦,或者,直至第一触控移动操作结束时,停止变焦。
图17是本申请实施例提供的调焦方法的一个可选的流程示意图,上述S101之前还可以包括: S1001-S1002,将结合图17示出的步骤进行说明。
S1001、在拍摄界面中,接收到作用于显示屏幕上任意位置处的第二触控移动操作。
在本申请的一些实施例中,当终端进入相机的拍摄模式后,可以在拍摄界面的任意位置处接收第二触控移动操作。
在本申请的一些实施例中,第二触控移动操作可以是沿预设方向进行滑动的触控操作。
在本申请实施例中,第二触控移动操作可以是上滑操作或下滑操作,其中,该上滑操作或下滑操作可以是滑动方向与相机的拍摄界面上的水平方向或垂直方向之间的夹角小于或等于预设角度的滑动操作,本申请实施例不作限制。
在本申请的另一些实施例中,第二触控移动操作还可以是触控点击操作等其他触控移动操作,本申请实施例对此不作限定。
S1002、响应于第二触控移动操作,在显示屏幕的第二区域显示调焦提示控件。
在本申请的一些实施例中,当终端进入相机的拍摄模式后,且接收到作用于显示屏幕上任意位置处的第二触控移动操作时,可以在拍摄界面的任意位置处显示调焦提示控件,以开启变焦功能,这样就可以后续通过调焦提示控件向用户进行焦距的调整方向和调焦位置的反馈。
示例性的,图18是本申请实施例提供的示例性的第二触控移动操作时拍摄界面的显示效果示意图。如图18所示,当终端未接收到显示屏幕上的第二触控移动操作之前,拍摄界面上不显示调焦提示控件,而当终端在接收到显示屏幕上的第二触控移动操作时,可以在拍摄界面10上显示调焦提示控件100,这样就可以后续通过调焦提示控件100向用户进行焦距的调整方向和调焦位置的反馈。
在本申请的一些实施例中,调焦提示控件的显示区域,即上述的第二区域,可以与第一区域不同。如此,可以使用户在不通过触控调焦提示控件100对应的区域时,也可以通过在拍摄界面的其他位置的触控移动操作,实现对相机的拍摄焦距的调节,提高了调焦操作的范围。在本申请的一些实施例中,为了不影响对拍摄对象的拍摄图像的预览,可以在拍摄界面的拍摄边界附近显示调焦提示控件,例如上述图18所示的调焦提示控件100。
在本申请的一些实施例中,当终端响应于第二触控移动操作,开启变焦功能,在显示屏幕的第二区域显示调焦提示控件时,如上述图11所示,在显示屏的第二区域显示调焦提示控件时,调焦控件104可以在调焦进度条103的中心位置处时,且当前的调焦速度为0。
本申请实施例中,在拍摄界面中,终端根据接收到的显示屏幕上任意位置处的第二触控移动操作,开启变焦功能,并在显示屏幕的第二区域显示调焦提示控件;可以在接收到用户在显示屏幕的第二区域内输入的第二触控移动操作时,开始显示调焦提示控件,从而可以通过调焦提示控件向用户进行焦距的调整方向和调焦位置的反馈,使调焦过程更直观。
图19是本申请实施例提供的调焦方法的一个可选的流程示意图,上述S104之后还可以包括S105,将结合图19示出的步骤进行说明。
S105、在第一触控移动操作结束时,在显示屏幕的第二区域退出显示调焦提示控件。
在本申请的一些实施例中,终端可以在检测到第一触控移动操作结束时,停止在显示屏幕的第二区域显示调焦提示控件,以避免调焦显示控件对拍摄图像的遮挡,提高拍摄图像的预览效果。
示例性的,图20是本申请实施例提供的示例性的第一触控移动操作时拍摄界面的显示效果示意图。如图20所示,当终端在接收到显示屏幕上的第一触控移动操作的过程中,拍摄界面上的第二区域上显示调焦提示控件100,而当终端在检测到显示屏幕上的第一触控移动操作结束时,则在显示屏幕的第二区域退出显示调焦提示控件100,这样就可以在用户不进行调焦操作时,不显示调焦提示控件100,从而可以避免调焦显示控件100对拍摄图像的遮挡,最终提高拍摄图像的预览效果。
本申请实施例中,终端在第一触控移动操作结束时,在显示屏幕的第二区域退出显示调焦提示控件;可以避免调焦显示控件对拍摄图像的遮挡,从而提高拍摄图像的预览效果。
图21是本申请实施例提供的调焦方法的一个可选的流程示意图,上述S1001之后还可以包括:S1003-S1004,以下将以S1003-S1004具体在S1002之后,结合图21示出的步骤进行说明。
S1003、响应于第二触控移动操作,获取预设初始调焦速度。
在本申请的一些实施例中,可以为第二触控移动操作预先设置一个对应的初始调焦速度,当调节设备接收到作用于显示屏幕上任意位置处的第二触控移动操作之后,可以获取对应的初始调焦速度。在本申请的一些实施例中,初始调焦速度可以为0X/S,也可以为0.5X/S,本申请实施例对此不作限定。
在本申请的一些实施例中,S1003-S1004与S1002可以一同执行,本申请实施例对此不作限定。
S1004、基于预设初始调焦速度,调节焦距。
在本申请的一些实施例中,终端在获取到预设初始调焦速度后,可以在没有检测到第一触控移动操作之前,先以该预设初始调焦速度,调节终端的拍摄焦距。
本申请实施例中,终端在拍摄界面中,接收到作用于显示屏幕上任意位置处的第二触控移动操作之后,以获取的预设初始调焦速度调节焦距;可以在不需要用户手动调节的情况下,进行焦距的自动调焦,相比于用户手动调焦而言,增加了终端的调焦方式,改善了终端的调焦局限性。
图22是本申请实施例提供的调焦方法的一个可选的流程示意图,上述S104之后还可以包括S106,将结合图22示出的步骤进行说明。
S106、在第一触控移动操作结束时,停止调节拍摄目标对象的焦距。
在本申请的一些实施例中,当终端检测到第一触控移动操作结束时,可以停止调节相机拍摄目标对象时的焦距;如此,可以实现随着用户的调焦操作而进行焦距的相应调节。
在本申请的一些实施例中,S105与S106可以一同执行,S105也可以在S106之后执行,本申请实施例对此不作限定。
本申请实施例中,在第一触控移动操作结束时,终端停止调节拍摄目标对象的焦距,可以实现随着用户的调焦操作而进行焦距的相应调节。
图23是本申请实施例提供的调焦方法的一个可选的流程示意图,将结合图23示出的步骤进行说明。
S1001、在拍摄界面中,接收到作用于显示屏幕上任意位置处的第二触控移动操作。
S1002、响应于第二触控移动操作,在显示屏幕的第二区域显示调焦提示控件。
S101、在拍摄目标对象的拍摄界面中,当显示调焦提示控件时,接收作用于显示屏幕的第一区域的第一触控移动操作;第一区域为拍摄界面中的任意区域;第一触控移动操作的移动方向与第一方向之间的夹角小于或等于预设角度;第一方向为与调焦提示控件的排布轴向平行的方向。
S102、响应于第一触控移动操作,确定映射到调焦提示控件上的调焦位置。
S103、基于调焦位置,确定对应的调焦参数。
S104、基于调焦参数,调节拍摄目标对象的焦距。
S105、在第一触控移动操作结束时,在显示屏幕的第二区域退出显示调焦提示控件。
S106、在第一触控移动操作结束时,停止调节拍摄目标对象的焦距。
下面继续说明本申请实施例提供的调焦装置455部分实施为软件模块的示例性结构,如图2所示,存储在存储器450的调焦装置455中的软件模块可以包括:
接收部分4551,被配置为在拍摄目标对象的拍摄界面中,当显示有调焦提示控件时,接收作用于显示屏幕的第一区域的第一触控移动操作;所述第一区域为所述拍摄界面中的任意区域;所述第一触控移动操作的移动方向与第一方向之间的夹角小于或等于预设角度;所述第一方向为与所述调焦提示控件的排布轴向平行的方向;
确定部分4552,被配置为响应于所述第一触控移动操作,确定映射到所述调焦提示控件上的调焦位置;
所述确定部分4552,还被配置为基于所述调焦位置,确定对应的调焦参数;
调焦部分4553,被配置为基于所述调焦参数,调节拍摄所述目标对象的焦距。
在本申请的一些实施例中,所述调焦提示控件包括调焦进度条和调焦控件;所述确定部分4552,还被配置为:
响应于所述第一触控移动操作的移动过程,确定预设单位时间内的实时移动距离和移动方向;根据预设映射关系,将所述实时移动距离,映射为所述调焦控件在所述调焦进度条上的控件移动距离;按照所述移动方向,将所述调焦控件在所述调焦进度条上移动所述控件移动距离,得到所述调焦位置。
在本申请的一些实施例中,所述确定部分4552,还被配置为:
响应于所述第一触控移动操作的移动过程,确定所述第一触控移动操作的所述移动方向,以及所述显示屏幕上的起始触控位置和在所述预设单位时间内的触控移动过程中产生的实时触控位置;将所述起始触控位置与所述实时触控位置之间的距离,作为所述实时移动距离。
在本申请的一些实施例中,所述调焦参数包括调焦速度,所述确定部分4552,还被配置为:
基于预设的所述调焦控件的位置与调焦速度的对应关系,确定出所述调焦位置所对应的实时调焦速度,其中,一个调焦位置对应一个调焦速度。
在本申请的一些实施例中,所述调焦部分4553,还被配置为在所述预设单位时间内,按照所述实时调焦速度,调节拍摄所述目标对象的焦距。
在本申请的一些实施例中,所述调焦提示控件包括调焦方向标识,所述调焦方向标识包括第一方向标识和第二方向标识;所述第一方向标识表征增大焦距,所述第二方向标识表征减小焦距;所述实时调焦速度包括:调焦方向标识和调焦速率,所述调焦部分4553,还被配置为:
根据预设的方向标识与调焦方向标识的映射关系,确定出所述实时调焦速度的调焦方向标识对应的调整方向;当所述调整方向为增大焦距时,在所述预设单位时间内,按照所述实时调焦速度的调焦速率,增大拍摄所述目标对象的焦距;或者,当所述调整方向为减小焦距时,在所述预设单位时间内,按照所述实 时调焦速度的调焦速率,减小拍摄所述目标对象的焦距。
在本申请的一些实施例中,所述调焦部分4553,还被配置为:
在所述预设单位时间内,按照所述实时调焦速度的调焦速率增大拍摄所述目标对象的焦距,直至调整后的焦距达到最大焦距阈值时,停止变焦;或者,在所述预设单位时间内,按照所述实时调焦速度的调焦速率减小拍摄所述目标对象的焦距,直至调整后的焦距达到最小焦距阈值时,停止变焦。
在本申请的一些实施例中,所述调焦部分4553,还被配置为:
当所述调整方向为增大焦距,且所述实时调焦速度的调焦速率为最大调焦速率时,在每个所述预设单位时间内,按照所述最大调焦速率,持续增大拍摄所述目标对象的焦距;或者,当所述调整方向为减小焦距,且所述实时调焦速度的调焦速率为最大调焦速率时,在每个所述预设单位时间内,按照所述最大调焦速率,持续减小拍摄所述目标对象的焦距。
在本申请的一些实施例中,接收部分4551,还被配置为:
在所述接收到作用于显示屏幕的第一区域的第一触控移动操作之前,在所述拍摄界面中,接收到作用于所述显示屏幕上任意位置处的第二触控移动操作;
所述调焦装置还包括显示部分4554,被配置为响应于所述第二触控移动操作,在所述显示屏幕的第二区域显示所述调焦提示控件。
在本申请的一些实施例中,所述显示部分4554,还被配置为:
在所述第一触控移动操作结束时,在所述显示屏幕的第二区域退出显示所述调焦提示控件。
在本申请的一些实施例中,所述调焦部分4553,还被配置为:
响应于所述第二触控移动操作,获取预设初始调焦速度;基于所述预设初始调焦速度,调节所述焦距。
在本申请的一些实施例中,所述调焦部分4553,还被配置为:
在所述第一触控移动操作结束时,停止调节拍摄所述目标对象的焦距。
本申请实施例提供一种调焦设备,包括:存储器,被配置为存储可执行计算机程序;处理器,被配置为执行所述存储器中存储的可执行计算机程序时,实现本申请实施例提供的方法。例如,本申请实施例提供的调焦方法。
本申请实施例提供一种存储有可执行指令的存储介质,其中存储有计算机程序,当计算机程序被处理器执行时,将引起处理器执行本申请实施例提供的方法,例如,本申请实施例提供的调焦方法。
在本申请的一些实施例中,存储介质可以是FRAM、ROM、PROM、EPROM、EEPROM、闪存、磁表面存储器、光盘、或CD-ROM等存储器;也可以是包括上述存储器之一或任意组合的各种设备。
在本申请的一些实施例中,可执行指令可以采用程序、软件、软件模块、脚本或代码的形式,按任意形式的编程语言(包括编译或解释语言,或者声明性或过程性语言)来编写,并且其可按任意形式部署,包括被部署为独立的程序或者被部署为模块、组件、子例程或者适合在计算环境中使用的其它部分。
作为示例,可执行指令可以但不一定对应于文件系统中的文件,可以可被存储在保存其它程序或数据的文件的一部分,例如,存储在超文本标记语言(HTML,Hyper Text Markup Language)文档中的一个或多个脚本中,存储在专用于所讨论的程序的单个文件中,或者,存储在多个协同文件(例如,存储一个或多个模块、子程序或代码部分的文件)中。
作为示例,可执行指令可被部署为在一个计算设备上执行,或者在位于一个地点的多个计算设备上执行,又或者,在分布在多个地点且通过通信网络互连的多个计算设备上执行。
综上所述,采用本技术实现方案,由于当显示有调焦提示控件时,接收拍摄界面中的任意区域的第一触控移动操作,这样就可以触控任意区域实现调节拍摄目标对象的焦距的功能,也就是说,在没有调焦提示控件的区域中,也可以实现调焦触控操作,提高了调焦范围,进而提高人机交互性能;而且,由于在接收到用户在显示屏幕的第二区域内输入的第二触控移动操作时,开始显示调焦提示控件,可以通过调焦提示控件向用户进行焦距的调整方向和调焦位置的反馈,使调焦过程更直观;以及,在接收到作用于显示屏幕上任意位置处的第二触控移动操作之后,还以预设初始调焦速度调节焦距,相比于用户手动调焦而言,增加了终端的调焦方式,改善了终端的调焦局限性。
以上所述,仅为本申请的实施例而已,并非用于限定本申请的保护范围。凡在本申请的精神和范围之内所作的任何修改、等同替换和改进等,均包含在本申请的保护范围之内。
工业实用性
本申请实施例公开了一种调焦方法、装置、设备及计算机可读存储介质。在拍摄目标对象的拍摄界面中,当显示有调焦提示控件时,接收作用于显示屏幕的第一区域的第一触控移动操作,第一区域为拍摄界面中的任意区域,第一触控移动操作的移动方向与第一方向之间的夹角小于或等于预设角度;所述第一方向为与所述调焦提示控件的排布轴向平行的方向;响应于第一触控移动操作,确定映射到调焦提示控件上 的调焦位置,基于调焦位置,确定对应的调焦参数,基于调焦参数,调节拍摄目标对象的焦距。采用本技术实现方案,由于当显示有调焦提示控件时,接收拍摄界面中的任意区域的第一触控移动操作,这样就可以触控任意区域实现调节拍摄目标对象的焦距的功能,也就是说,在没有调焦提示控件的区域中,也可以实现调焦触控操作,提高了调焦范围,进而提高了人机交互性能。

Claims (20)

  1. 一种调焦方法,包括:
    在拍摄目标对象的拍摄界面中,当显示有调焦提示控件时,接收作用于显示屏幕的第一区域的第一触控移动操作;所述第一区域为所述拍摄界面中的任意区域;所述第一触控移动操作的移动方向与第一方向之间的夹角小于或等于预设角度;所述第一方向为与所述调焦提示控件的排布轴向平行的方向;
    响应于所述第一触控移动操作,确定映射到所述调焦提示控件上的调焦位置;
    基于所述调焦位置,确定对应的调焦参数;
    基于所述调焦参数,调节拍摄所述目标对象的焦距。
  2. 根据权利要求1所述的方法,其中,所述调焦提示控件包括调焦进度条和调焦控件;所述响应于所述第一触控移动操作,确定映射到所述调焦提示控件上的所述调焦位置,包括:
    响应于所述第一触控移动操作的移动过程,确定预设单位时间内的实时移动距离和移动方向;
    根据预设映射关系,将所述实时移动距离,映射为所述调焦控件在所述调焦进度条上的控件移动距离;
    按照所述移动方向,将所述调焦控件在所述调焦进度条上移动所述控件移动距离,得到所述调焦位置。
  3. 根据权利要求2所述的方法,其中,所述响应于所述第一触控移动操作的移动过程,确定实时移动距离和移动方向,包括:
    响应于所述第一触控移动操作的移动过程,确定所述第一触控移动操作的所述移动方向,以及所述显示屏幕上的起始触控位置和在所述预设单位时间内的触控移动过程中产生的实时触控位置;
    将所述起始触控位置与所述实时触控位置之间的距离,作为所述实时移动距离。
  4. 根据权利要求1至3任一项所述的方法,其中,所述调焦参数包括调焦速度,所述基于调焦位置,确定对应的调焦参数,包括:
    基于预设的所述调焦控件的位置与调焦速度的对应关系,确定出所述调焦位置所对应的实时调焦速度,其中,一个调焦位置对应一个调焦速度。
  5. 根据权利要求4所述的方法,其中,所述基于所述调焦参数,调节拍摄所述目标对象的焦距,包括:
    在预设单位时间内,按照所述实时调焦速度,调节拍摄所述目标对象的焦距。
  6. 根据权利要求5所述的方法,其中,所述调焦提示控件包括调焦方向标识,所述调焦方向标识包括第一方向标识和第二方向标识;所述第一方向标识表征增大焦距,所述第二方向标识表征减小焦距;所述实时调焦速度包括:调焦方向标识和调焦速率;所述在预设单位时间内,按照所述实时调焦速度,调节拍摄所述目标对象的焦距,包括:
    根据预设的方向标识与调焦方向标识的映射关系,确定出所述实时调焦速度的调焦方向标识对应的调整方向;
    当所述调整方向为增大焦距时,在所述预设单位时间内,按照所述实时调焦速度的调焦速率,增大拍摄所述目标对象的焦距;
    或者,当所述调整方向为减小焦距时,在所述预设单位时间内,按照所述实时调焦速度的调焦速率,减小拍摄所述目标对象的焦距。
  7. 根据权利要求6所述的方法,其中,
    所述在所述预设单位时间内,按照所述实时调焦速度的调焦速率,增大拍摄所述目标对象的焦距,包括:
    在所述预设单位时间内,按照所述实时调焦速度的调焦速率增大拍摄所述目标对象的焦距,直至调整后的焦距达到最大焦距阈值时,停止变焦;
    所述在所述预设单位时间内,按照所述实时调焦速度的调焦速率,减小拍摄所述目标对象的焦距,包括:
    在所述预设单位时间内,按照所述实时调焦速度的调焦速率减小拍摄所述目标对象的焦距,直至调整后的焦距达到最小焦距阈值时,停止变焦。
  8. 根据权利要求6所述的方法,其中,
    所述在所述预设单位时间内,按照所述实时调焦速度的调焦速率,减小拍摄所述目标对象的焦距,包括:
    当所述调整方向为增大焦距,且所述实时调焦速度的调焦速率为最大调焦速率时,在每个所述预设 单位时间内,按照所述最大调焦速率,持续增大拍摄所述目标对象的焦距;
    所述在所述预设单位时间内,按照所述实时调焦速度的调焦速率,减小拍摄所述目标对象的焦距,包括:
    当所述调整方向为减小焦距,且所述实时调焦速度的调焦速率为最大调焦速率时,在每个所述预设单位时间内,按照所述最大调焦速率,持续减小拍摄所述目标对象的焦距。
  9. 根据权利要求1所述的方法,其中,在所述接收到作用于显示屏幕的第一区域的第一触控移动操作之前,所述方法还包括:
    在所述拍摄界面中,接收到作用于所述显示屏幕上任意位置处的第二触控移动操作;
    响应于所述第二触控移动操作,在所述显示屏幕的第二区域显示所述调焦提示控件。
  10. 根据权利要求9所述的方法,其中,所述方法还包括:
    在所述第一触控移动操作结束时,在所述显示屏幕的第二区域退出显示所述调焦提示控件。
  11. 根据权利要求1所述的方法,其中,所述基于所述调焦参数,调节拍摄所述目标对象的焦距之后,所述方法还包括:
    在所述第一触控移动操作结束时,停止调节拍摄所述目标对象的焦距。
  12. 根据权利要求2所述的方法,其中,
    所述第一触控移动操作对应的所述移动距离与所述调焦控件在所述调焦进度条上的调焦位置之间正相关。
  13. 根据权利要求2所述的方法,其中,
    所述第一触控移动操作对应的所述移动距离,与所述调焦控件在所述调焦进度条上的所述调焦位置和所述调焦控件的初始位置之间的距离相对应。
  14. 根据权利要求2所述的方法,其中,
    所述预设映射关系为所述显示屏幕上第一触控移动操作的移动距离与调焦提示控件上的调焦控件的移动距离的对应关系或比例关系。
  15. 根据权利要求2所述的方法,其中,
    所述预设映射关系为转换为所述第一触控移动操作在所述显示屏幕上的移动速度和作用时间,映射到所述调焦提示控件上的移动速度和作用时间。
  16. 根据权利要求1至15任一项所述的方法,其中,所述方法还包括:
    在确定出调焦位置对应的调焦参数后,在所述拍摄界面中显示所述调焦参数。
  17. 一种调焦装置,包括:
    接收部分,被配置为在拍摄目标对象的拍摄界面中,当显示有调焦提示控件时,接收作用于显示屏幕的第一区域的第一触控移动操作;所述第一区域为所述拍摄界面中的任意区域;所述第一触控移动操作的移动方向与第一方向之间的夹角小于或等于预设角度;所述第一方向为与所述调焦提示控件的排布轴向平行的方向;
    确定部分,被配置为响应于所述第一触控移动操作,确定映射到所述调焦提示控件上的调焦位置;以及基于所述调焦位置,确定对应的调焦参数;
    调焦部分,被配置为基于所述调焦参数,调节拍摄所述目标对象的焦距。
  18. 根据权利要求17所述的装置,其中,所述确定部分,还被配置为:
    响应于所述第一触控移动操作的移动过程,确定所述第一触控移动操作的所述移动方向,以及所述显示屏幕上的起始触控位置和在所述预设单位时间内的触控移动过程中产生的实时触控位置;将所述起始触控位置与所述实时触控位置之间的距离,作为所述实时移动距离。
  19. 一种调焦设备,包括:
    存储器,被配置为存储可执行计算机程序;
    处理器,被配置为执行所述存储器中存储的可执行计算机程序时,实现权利要求1至16中任一项所述的方法。
  20. 一种计算机可读存储介质,存储有计算机程序,被配置为引起处理器执行时,实现权利要求1至16中任一项所述的方法。
PCT/CN2021/097775 2020-07-08 2021-06-01 一种调焦方法、装置、设备及计算机可读存储介质 Ceased WO2022007549A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP21838329.7A EP4175284A4 (en) 2020-07-08 2021-06-01 METHOD, APPARATUS AND DEVICE FOR FOCUSING, AND COMPUTER-READABLE STORAGE MEDIUM
US18/151,025 US12348854B2 (en) 2020-07-08 2023-01-06 Focusing method, device, and computer-readable storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010653799.XA CN111866381B (zh) 2020-07-08 2020-07-08 一种调焦方法、装置、设备及计算机可读存储介质
CN202010653799.X 2020-07-08

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US18/151,025 Continuation US12348854B2 (en) 2020-07-08 2023-01-06 Focusing method, device, and computer-readable storage medium

Publications (1)

Publication Number Publication Date
WO2022007549A1 true WO2022007549A1 (zh) 2022-01-13

Family

ID=73152720

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/097775 Ceased WO2022007549A1 (zh) 2020-07-08 2021-06-01 一种调焦方法、装置、设备及计算机可读存储介质

Country Status (4)

Country Link
US (1) US12348854B2 (zh)
EP (1) EP4175284A4 (zh)
CN (1) CN111866381B (zh)
WO (1) WO2022007549A1 (zh)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DK180859B1 (en) 2017-06-04 2022-05-23 Apple Inc USER INTERFACE CAMERA EFFECTS
US11112964B2 (en) 2018-02-09 2021-09-07 Apple Inc. Media capture lock affordance for graphical user interface
US11722764B2 (en) 2018-05-07 2023-08-08 Apple Inc. Creative camera
DK201870623A1 (en) 2018-09-11 2020-04-15 Apple Inc. User interfaces for simulated depth effects
US11321857B2 (en) 2018-09-28 2022-05-03 Apple Inc. Displaying and editing images with depth information
US11770601B2 (en) 2019-05-06 2023-09-26 Apple Inc. User interfaces for capturing and managing visual media
CN111866381B (zh) * 2020-07-08 2022-05-10 Oppo广东移动通信有限公司 一种调焦方法、装置、设备及计算机可读存储介质
US11212449B1 (en) * 2020-09-25 2021-12-28 Apple Inc. User interfaces for media capture and management
CN112732151B (zh) * 2021-01-25 2022-05-20 珠海格力电器股份有限公司 控件的调节方法、装置、终端设备及存储介质
US12506953B2 (en) 2021-12-03 2025-12-23 Apple Inc. Device, methods, and graphical user interfaces for capturing and displaying media
CN116823858B (zh) * 2022-03-18 2026-03-17 深圳市普渡科技有限公司 相机调焦方法、装置和机器人
US20240373121A1 (en) 2023-05-05 2024-11-07 Apple Inc. User interfaces for controlling media capture settings
US20250238129A1 (en) 2024-01-18 2025-07-24 Apple Inc. User interfaces integrating hardware buttons

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102902131A (zh) * 2011-07-28 2013-01-30 Lg伊诺特有限公司 触摸型便携式终端
CN104317494A (zh) * 2014-10-11 2015-01-28 广东欧珀移动通信有限公司 移动光标的方法及系统
CN105450921A (zh) * 2014-08-22 2016-03-30 宏碁股份有限公司 图像获取装置及其自动对焦补偿方法
US20170064192A1 (en) * 2015-09-02 2017-03-02 Canon Kabushiki Kaisha Video Processing Apparatus, Control Method, and Recording Medium
WO2017113150A1 (zh) * 2015-12-30 2017-07-06 深圳市大疆创新科技有限公司 变焦控制方法、系统、装置以及存储器、飞行器
CN111866381A (zh) * 2020-07-08 2020-10-30 Oppo广东移动通信有限公司 一种调焦方法、装置、设备及计算机可读存储介质

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100835956B1 (ko) * 2006-12-04 2008-06-09 삼성전자주식회사 이동통신 단말기의 이미지 처리 방법
EP2207342B1 (en) * 2009-01-07 2017-12-06 LG Electronics Inc. Mobile terminal and camera image control method thereof
KR101857564B1 (ko) * 2009-05-15 2018-05-15 삼성전자 주식회사 휴대 단말기의 이미지 처리 방법
JP5326802B2 (ja) * 2009-05-19 2013-10-30 ソニー株式会社 情報処理装置、画像拡大縮小方法及びそのプログラム
CN103376924B (zh) * 2012-04-13 2016-04-27 宏碁股份有限公司 电子装置及其操作方法
CN103729128B (zh) * 2012-10-10 2017-12-22 腾讯科技(深圳)有限公司 一种摄像设备变换焦距的方法及装置
CN103019585B (zh) * 2012-11-15 2016-06-22 中兴通讯股份有限公司 触摸屏的单点控制方法、装置及移动终端
JP5725425B2 (ja) * 2012-12-19 2015-05-27 カシオ計算機株式会社 撮像装置及び撮像方法並びにプログラム
CN107077239B (zh) 2015-05-29 2020-06-26 华为技术有限公司 通过触控板调节移动终端拍照焦距的方法和移动终端
CN105045501A (zh) * 2015-06-23 2015-11-11 上海斐讯数据通信技术有限公司 一种电子设备及其应用的滑动动作响应方法和系统
US10645272B2 (en) * 2017-12-04 2020-05-05 Qualcomm Incorporated Camera zoom level and image frame capture control
WO2019111515A1 (ja) * 2017-12-08 2019-06-13 パナソニックIpマネジメント株式会社 入力装置、及び、入力方法

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102902131A (zh) * 2011-07-28 2013-01-30 Lg伊诺特有限公司 触摸型便携式终端
CN105450921A (zh) * 2014-08-22 2016-03-30 宏碁股份有限公司 图像获取装置及其自动对焦补偿方法
CN104317494A (zh) * 2014-10-11 2015-01-28 广东欧珀移动通信有限公司 移动光标的方法及系统
CN107977148A (zh) * 2014-10-11 2018-05-01 广东欧珀移动通信有限公司 移动光标的方法及装置
US20170064192A1 (en) * 2015-09-02 2017-03-02 Canon Kabushiki Kaisha Video Processing Apparatus, Control Method, and Recording Medium
WO2017113150A1 (zh) * 2015-12-30 2017-07-06 深圳市大疆创新科技有限公司 变焦控制方法、系统、装置以及存储器、飞行器
CN111866381A (zh) * 2020-07-08 2020-10-30 Oppo广东移动通信有限公司 一种调焦方法、装置、设备及计算机可读存储介质

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4175284A4 *

Also Published As

Publication number Publication date
US20230164427A1 (en) 2023-05-25
CN111866381B (zh) 2022-05-10
US12348854B2 (en) 2025-07-01
EP4175284A1 (en) 2023-05-03
EP4175284A4 (en) 2023-11-29
CN111866381A (zh) 2020-10-30

Similar Documents

Publication Publication Date Title
CN111866381B (zh) 一种调焦方法、装置、设备及计算机可读存储介质
US9313402B2 (en) Method for photographing control and electronic device thereof
CN101996044B (zh) 使用触摸屏控制变焦的方法和设备
CN106254682B (zh) 一种拍照方法及移动终端
CN106416222A (zh) 实时捕获曝光调整手势
WO2022002053A1 (zh) 拍照方法、装置及电子设备
CN107155064B (zh) 一种拍摄方法及移动终端
US9509733B2 (en) Program, communication apparatus and control method
CN107637063B (zh) 用于基于用户的手势控制功能的方法和拍摄装置
KR20110006243A (ko) 휴대용 단말기에서 매뉴얼 포커싱 방법 및 장치
KR20130092196A (ko) 카메라 셔터키 표시 장치 및 방법
WO2021243788A1 (zh) 屏幕截图方法及装置
CN112584043B (zh) 辅助对焦方法、装置、电子设备及存储介质
CN106506942A (zh) 一种拍照方法及移动终端
WO2025036252A1 (zh) 拍摄方法、终端、电子设备及可读存储介质
US20180035038A1 (en) Control apparatus, method of controlling the same, and storage medium
CN111008060A (zh) 参数的调节方法、终端及计算机可读存储介质
CN107026982A (zh) 一种移动终端的拍照方法及移动终端
CN108769538B (zh) 自动对焦方法、装置、存储介质及终端
US10488923B1 (en) Gaze detection, identification and control method
CN107105158B (zh) 一种拍照方法及移动终端
CN107529010A (zh) 一种拍照方法、移动终端和存储介质
CN116991300B (zh) 触控方法、装置、设备及计算机可读存储介质
CN107426500A (zh) 一种移动终端的相机对焦方法、对焦装置以及移动终端
JP2017204718A (ja) 撮像装置およびそのズーム制御方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21838329

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2021838329

Country of ref document: EP

Effective date: 20230124

NENP Non-entry into the national phase

Ref country code: DE