CN108111750B - Zoom adjustment method, mobile terminal and computer readable storage medium - Google Patents

Zoom adjustment method, mobile terminal and computer readable storage medium Download PDF

Info

Publication number
CN108111750B
CN108111750B CN201711315767.3A CN201711315767A CN108111750B CN 108111750 B CN108111750 B CN 108111750B CN 201711315767 A CN201711315767 A CN 201711315767A CN 108111750 B CN108111750 B CN 108111750B
Authority
CN
China
Prior art keywords
adjusting
focal length
touch points
zoom
unit
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.)
Active
Application number
CN201711315767.3A
Other languages
Chinese (zh)
Other versions
CN108111750A (en
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201711315767.3A priority Critical patent/CN108111750B/en
Publication of CN108111750A publication Critical patent/CN108111750A/en
Application granted granted Critical
Publication of CN108111750B publication Critical patent/CN108111750B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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; CALCULATING OR 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/52Details of telephonic subscriber devices including functional features of a camera

Abstract

The invention provides a zoom adjustment method, a mobile terminal and a computer readable storage medium, wherein the zoom adjustment method comprises the following steps: acquiring a first number of touch points on a shooting preview interface; acquiring displacement variation of at least one touch point under the condition that the first number is greater than or equal to three; determining the number of non-fixed touch points with displacement variation larger than or equal to a preset threshold; adjusting zooming parameters according to the number of the non-fixed touch points; wherein the zoom parameters include: one of a focal length and a focus center position. According to the scheme, when the first number of the touch points on the shooting preview interface is larger than or equal to three, the zoom parameters are adjusted according to the number of the non-fixed touch points, multi-finger zoom adjustment is achieved, and the zoom flexibility is enhanced.

Description

Zoom adjustment method, mobile terminal and computer readable storage medium
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a zoom adjusting method and a mobile terminal.
Background
Considering factors such as portability, most zooming of a camera on the mobile terminal is realized by digital zooming at present, and the zooming magnification of the mobile phone zooming can be adjusted by physical keys and virtual double-finger touch.
No matter the adjustment is performed by physical keys or double-finger touch, the zoom magnification of the conventional adjusting mode is fixed, and the adjusting requirement of a shooting scene with higher requirements on zoom magnification and precision cannot be met.
Disclosure of Invention
The embodiment of the invention provides a zoom adjusting method and a mobile terminal, and aims to solve the problem that the existing zoom adjusting mode has fixed zoom magnification and cannot meet the adjusting requirement of a shooting scene with higher requirements on zoom magnification and precision.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a zoom adjustment method, including:
acquiring a first number of touch points on a shooting preview interface;
acquiring displacement variation of at least one touch point under the condition that the first number is greater than or equal to three;
determining the number of non-fixed touch points with displacement variation larger than or equal to a preset threshold;
adjusting zooming parameters according to the number of the non-fixed touch points;
wherein the zoom parameters include: one of a focal length and a focus center position.
In a second aspect, an embodiment of the present invention further provides a mobile terminal, including:
the acquisition module is used for acquiring a first number of touch points on the shooting preview interface;
the acquisition module is used for acquiring the displacement variation of at least one touch point under the condition that the first number is more than or equal to three;
the determining module is used for determining the number of the non-fixed touch points of which the displacement variation is greater than or equal to a preset threshold;
the adjusting module is used for adjusting zooming parameters according to the number of the non-fixed touch points;
wherein the zoom parameters include: one of a focal length and a focus center position.
In a third aspect, an embodiment of the present invention further provides a mobile terminal, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the zoom adjustment method described above.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores thereon a computer program, and the computer program, when executed by a processor, implements the steps of the zoom adjustment method described above.
In the embodiment of the invention, when the first number of the touch points on the shooting preview interface is more than or equal to three, the zoom parameters are adjusted according to the number of the non-fixed touch points, so that multi-finger zoom adjustment is realized, and the zoom flexibility is enhanced.
Drawings
Fig. 1 is a schematic flow chart of a zoom adjustment method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an implementation of the focus adjustment;
FIG. 3 is a schematic diagram illustrating a state of a finger touch point when a user performs a touch operation with 3 fingers to adjust a zoom ratio;
FIG. 4 is a schematic diagram illustrating a state of a finger touch point when a user performs a touch operation with 4 fingers to adjust a zoom ratio;
FIG. 5 is a flow chart illustrating an embodiment of adjusting a focus center point;
fig. 6 is a schematic diagram illustrating a state of a finger touch point when a user performs a touch operation with 3 fingers to adjust a zoom center point;
FIG. 7 is a diagram illustrating a state of a finger touch point when a user performs a touch operation with 4 fingers to adjust a zoom center point;
FIG. 8 is a block diagram of a mobile terminal according to an embodiment of the present invention;
fig. 9 is a second block diagram of a mobile terminal according to an embodiment of the invention;
FIG. 10 shows a block schematic diagram of a first conditioning submodule of an embodiment of the invention;
fig. 11 is a third block diagram of a mobile terminal according to an embodiment of the present invention;
fig. 12 is a schematic diagram of a hardware configuration of a mobile terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, an embodiment of the present invention provides a zoom adjustment method, including:
step 101, acquiring a first number of touch points on a shooting preview interface;
the touch point refers to a touch point used by a user when zooming is performed by using the camera, and the user usually uses a finger to perform touch zooming.
Step 102, collecting displacement variation of at least one touch point under the condition that the first number is more than or equal to three;
it should be noted that the environment to which the embodiment of the present invention is applied is multi-finger zooming, in which the number of multi-fingers, i.e., the number of touch fingers used by the user, is greater than or equal to three.
103, determining the number of the non-fixed touch points with the displacement variation larger than or equal to a preset threshold;
it should be noted that, since there may be finger shake or unintentional sliding during zooming by the user, in order to prevent this situation from causing erroneous determination, the effective displacement variation needs to be identified in this step, and only the movement with the displacement variation greater than or equal to the preset threshold is considered to be effective.
Step 104, adjusting zooming parameters according to the number of the non-fixed touch points;
specifically, the zoom parameters include: one of a focal length and a focus center position (i.e., a focus center); it should be noted that, since the number of the non-fixed touch points directly determines whether to adjust the focal length or the position of the focus center point, after the number of the non-fixed touch points is determined, the corresponding zoom parameters can be adjusted according to the number.
The following describes embodiments of the present invention in detail, taking the adjustment of different zoom parameters as an example.
When the zooming parameter is the focal length
In this case, the specific implementation manner of step 104 is:
under the condition that the number of the non-fixed touch points is greater than or equal to two, obtaining the relative displacement variation between the two non-fixed touch points with the largest relative displacement variation;
in the present embodiment, the two fingers having the largest relative displacement change amount are used as references for the adjustment of the focal length.
Determining a target stepping unit for focal length adjustment;
it should be noted that the target step unit is inversely related to the first number; in the present embodiment, mainly the case where the user uses more than three fingers to zoom is described, and the step unit of zooming is controlled by using the number of fingers, in this case, in order to achieve precise focusing, the target step unit and the first number (i.e., the number of fingers used when the user zooms) are usually set to be in a negative correlation relationship, that is, when the user uses multiple fingers to zoom, higher accuracy of zooming can be ensured.
Adjusting the focal length according to the relative displacement variable quantity and the stepping unit;
after the changed stepping unit is obtained, the focal length can be adjusted to finally realize the focusing of the target image.
In this embodiment, two fingers with the largest relative displacement variation are used as a reference for focal length adjustment, and the focal length of zooming is adjusted by using the relative displacement variation of the two fingers and an adjusted target stepping unit, specifically, the implementation manner of adjusting the focal length according to the relative displacement variation and the stepping unit is as follows: determining the focal length adjustment amount according to the relative displacement variation and the target stepping unit; and adjusting the focal length according to the focal length adjustment amount.
When adjusting the focal length, firstly, the focal length adjustment amount needs to be acquired, specifically, the manner of acquiring the focal length adjustment amount is as follows:
determining the focal length adjustment amount according to a formula d which is X multiplied by L/S;
wherein d is the focal length adjustment, X is the target stepping unit, L is the relative displacement variation, and S is the preset displacement unit.
Specifically, as shown in fig. 2, the specific implementation flow of performing the focal length adjustment includes:
step 201, collecting a preview interface of a user using a multi-finger touch camera;
at this time, the user adds a touch finger, and the current touch hand index is F (F > -3);
it should be noted that, before step 201, the user may perform a zoom operation with two fingers; specifically, the implementation mode is as follows: when an instruction of opening a camera by a user is acquired, starting the camera (specifically, the user starts the camera by clicking a camera application icon on a display interface of the mobile terminal); according to the operation of a user, performing two-finger zooming operation, specifically, the user previews an image through a two-finger touch camera, and controls the zooming magnification of the mobile phone in a preset step (represented by R) through two-finger zooming.
It should be noted that performing the two-finger zoom operation is a well-established solution, and by detecting the positions of two points touched by two fingers on the screen, the distance change between the two points touched by the two fingers is determined, and according to the distance increasing or decreasing (denoted by M) of the distance between the two points touched by the two fingers, the zoom magnification is increased or decreased by a step value with the size of R, and the center point of the zoom is the position of the center point of the image by default, so as to achieve the precise control of the zoom magnification of the camera.
Step 202, obtaining relative displacement variation of two non-fixed touch points with the largest relative displacement variation;
in this case, the step unit for adjusting the zoom is R/(F-1), which is only an example, as long as the adjusted step unit is in a negative correlation with the number of the touch fingers;
and step 203, adjusting the zooming focal length according to the relative displacement variation and the adjusted stepping unit.
In general, when a user performs multi-finger touch, the user only uses the movement of two fingers to zoom, specifically, the user controls the touch positions of the other two fingers to change by fixing the touch positions of F-2 fingers.
For example, a user uses 3 fingers to perform touch operation, the user fixes the touch of 1 finger, and the rest 2 fingers perform zoom touch, as shown in fig. 3, the user moves the finger touch point B and the finger touch point C by fixing the position of the finger touch point a to control the zoom magnification change, and at this time, the step value of the zoom magnification change is changed to the previous size of 1/2; for example, the previous zoom magnification change step value is 0.1, and after adjustment, the current step becomes 0.05.
For example, when the user uses more fingers to perform touch operation, such as 4 fingers, the user fixes 2 fingers, and the rest 2 fingers perform zoom touch, as shown in fig. 4, the user moves the finger touch point C and the finger touch point D by fixing the positions of the finger touch point a and the finger touch point B, and controls the zoom magnification to change, and at this time, the step value of the zoom magnification change is changed to the previous size of 1/3; for example, the previous zoom magnification change step value is 0.1, and after adjustment, the current step becomes about 0.033.
According to the implementation mode, zooming of multi-finger touch is achieved, zooming speed can be flexibly adjusted, zooming adjusting precision is improved, and adjusting requirements of shooting scenes with higher requirements on zooming magnification and zooming precision can be met.
Secondly, when the zooming parameter is the focus central point position
In this case, the specific implementation manner of step 104 is:
under the condition that the number of the non-fixed touch points is one, acquiring the position coordinates of the non-fixed touch points; and adjusting the position of the focusing center point according to the position coordinate of the non-fixed touch point.
It should be noted that, in the embodiment of the present invention, the focus center point is adjusted by using a single finger, that is, when the focus center point is adjusted, other fingers need to be fixed, and only one finger is in a moving state.
Specifically, as shown in fig. 5, the specific implementation flow for adjusting the focus center point includes:
step 501, collecting a preview interface of a multi-finger touch camera used by a user;
specifically, the current finger touch point number is F (F > -3);
before this step, an instruction of the user to open the camera needs to be acquired, and the camera is started, specifically, the user starts the camera by clicking a camera application icon on a display interface of the mobile terminal.
Step 502, when only one non-fixed touch finger is acquired, acquiring the position change of the non-fixed touch finger;
in this case, the user controls the touch position change of the remaining 1 finger by fixing the touch position of F-1 fingers among them.
Step 503, adjusting the center position of the camera zoom according to the position change of the non-fixed touch finger, so as to adjust the camera zoom area.
It should be noted that, considering the fault tolerance of the user operation, the specific implementation method is as follows:
through traversing the position changes of F touch points, the number N of which the position change value is greater than the threshold value T is judged, when N is equal to 1, the initial zooming center point is the image center point position, the width and the height of the current image are W, H respectively, the lower left corner point of the image is taken as the origin, the image is upward, the right direction is the Y axis, and the positive direction of the X axis is the position coordinate of the image center point (W/2, H/2). And detecting the position change of the moving touch point, setting the current detected moving touch point position as (x, y), and setting the position coordinates of the last detected touch point as (x ', y'), and then adjusting the current zooming center point position as (W/2+ A (x-x '), H/2+ A (y-y')), wherein A is an adjusting coefficient.
For example, a user uses 3 fingers to perform touch operation, the user fixes the touch of 2 fingers, and the rest 1 finger performs up-down, left-right, and touch movement, as shown in fig. 6, the user fixes the positions of the finger touch point a and the finger touch point B, moves the finger touch point C, and controls and adjusts the change of the zoom center point, thereby adjusting the position of the zoom center point.
For example, when the user uses more fingers to perform the touch operation, such as 4 fingers, the user fixes the touch positions of 3 fingers of the user, and the remaining 1 finger performs the up-down, left-right, and touch movements, as shown in fig. 7, the user moves the finger touch point D by fixing the positions of the finger touch point a, the finger touch point B, and the finger touch point C, and controls and adjusts the change of the zoom center point, thereby achieving the flexible adjustment of the zoom center point position.
It should be further noted that, in this embodiment, a method for quickly resetting the position of the zoom center point is further provided, where a user controls the remaining one finger to perform a quick double-click action by fixing the touch of F-1 fingers, and the position of the zoom center point is reset to the default position of the image center point.
Specifically, the implementation mode is as follows: by detecting the number of current touch points, when the number of finger touches is changed from F-1 to F, the F is changed to F-1, and the click is judged to be one time of clicking, when the click event is detected to be 2 and the interval time of two times is less than a certain threshold value, the user is considered to fix F-1 fingers, the remaining finger is used for executing one time of quick double-click action, and at the moment, the zoom central area is set back to the default image central point position (W/2, H/2).
It should be noted that, this implementation way realizes adjustment interaction for the zoom center point region, and provides an interaction way for fast resetting; when the camera position is fixed and the zoom is carried out, the flexible control of the zoom image is realized through the interactive mode.
According to the embodiment of the invention, the zooming stepping unit is adjusted, so that the zooming multiplying power is adjusted, the zooming speed and precision can be controlled, and the zooming adjusting precision is improved; meanwhile, the position of the zooming central point is adjusted, so that the zooming image can be flexibly controlled.
As shown in fig. 8 to 11, an embodiment of the present invention further provides a mobile terminal, including:
an obtaining module 801, configured to obtain a first number of touch points on a shooting preview interface;
an acquisition module 802, configured to acquire a displacement variation of at least one touch point when the first number is greater than or equal to three;
a determining module 803, configured to determine the number of non-stationary touch points whose displacement variation is greater than or equal to a preset threshold;
an adjusting module 804, configured to adjust a zoom parameter according to the number of the non-fixed touch points;
wherein the zoom parameters include: one of a focal length and a focus center position.
Optionally, the adjusting module 804 includes:
a first obtaining submodule 8041, configured to obtain, when the number of the non-fixed touch points is greater than or equal to two, a relative displacement variation between two non-fixed touch points having a largest relative displacement variation;
a determination submodule 8042 for determining a target stepping unit of the focus adjustment;
a first adjusting submodule 8043, configured to adjust a focal length according to the relative displacement variation and the stepping unit;
wherein the target step unit is inversely related to the first number.
Further, the first adjusting submodule 8043 includes:
a determining unit 80431, configured to determine a focal length adjustment amount according to the relative displacement variation and the target stepping unit;
and an adjusting unit 80432 for adjusting the focal length according to the focal length adjustment amount.
Further, the determining unit 80431 is configured to:
determining the focal length adjustment amount according to a formula d which is X multiplied by L/S;
wherein d is the focal length adjustment, X is the target stepping unit, L is the relative displacement variation, and S is the preset displacement unit.
Optionally, the adjusting module 804 includes:
a second obtaining sub-module 8044, configured to obtain a position coordinate of the non-fixed touch point when the number of the non-fixed touch points is one;
and the second adjusting submodule 8045 is configured to adjust a position of a focus center point according to the position coordinate of the non-fixed touch point.
The mobile terminal provided by the embodiment of the present invention can implement each process implemented by the mobile terminal in the method embodiment of fig. 1, and is not described herein again in order to avoid repetition. The mobile terminal acquires the displacement variation of at least one touch point by acquiring the first number of the touch points on the shooting preview interface, determines the number of non-fixed touch points of which the displacement variation is greater than or equal to a preset threshold value under the condition that the first number is greater than or equal to three, and adjusts the zooming parameter according to the number of the non-fixed touch points; the multi-finger zoom adjustment is realized, and the flexibility of zooming is enhanced.
Fig. 12 is a schematic diagram of a hardware structure of a mobile terminal implementing an embodiment of the present invention.
The mobile terminal 120 includes but is not limited to: a radio frequency unit 1210, a network module 1220, an audio output unit 1230, an input unit 1240, a sensor 1250, a display unit 1260, a user input unit 1270, an interface unit 1280, a memory 1290, a processor 1211, and a power supply 1212. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 12 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 1211 is configured to obtain a first number of touch points on the shooting preview interface; acquiring displacement variation of at least one touch point under the condition that the first number is greater than or equal to three; determining the number of non-fixed touch points with displacement variation larger than or equal to a preset threshold; adjusting zooming parameters according to the number of the non-fixed touch points;
wherein the zoom parameters include: one of a focal length and a focus center position.
The mobile terminal acquires the displacement variation of at least one touch point by acquiring the first number of the touch points on the shooting preview interface, determines the number of non-fixed touch points of which the displacement variation is greater than or equal to a preset threshold value under the condition that the first number is greater than or equal to three, and adjusts the zooming parameter according to the number of the non-fixed touch points; the multi-finger zoom adjustment is realized, and the flexibility of zooming is enhanced.
It should be understood that, in the embodiment of the present invention, the rf unit 1210 may be used for receiving and transmitting signals during information transmission or communication, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 1211; in addition, the uplink data is transmitted to the base station. Generally, radio unit 1210 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio unit 1210 may also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access through the network module 1220, such as helping the user send and receive e-mails, browse web pages, and access streaming media.
The audio output unit 1230 may convert audio data received by the radio frequency unit 1210 or the network module 1220 or stored in the memory 1290 into an audio signal and output as sound. Also, the audio output unit 1230 may also provide audio output related to a specific function performed by the mobile terminal 120 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 1230 includes a speaker, a buzzer, a receiver, and the like.
The input unit 1240 is used to receive audio or video signals. The input Unit 1240 may include a Graphics Processing Unit (GPU) 1241 and a microphone 1242, and the Graphics processor 1241 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 1260. The image frames processed by the graphic processor 1241 may be stored in the memory 1290 (or other storage medium) or transmitted via the radio frequency unit 1210 or the network module 1220. The microphone 1242 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio unit 1210 in case of a phone call mode.
The mobile terminal 120 also includes at least one sensor 1250, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 1261 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 1261 and/or backlight when the mobile terminal 120 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 1250 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 1260 is used to display information input by a user or information provided to a user. The Display unit 126 may include a Display panel 1261, and the Display panel 1261 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 1270 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 1270 includes a touch panel 1271 and other input devices 1272. Touch panel 1271, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., user operations on touch panel 1271 or near touch panel 1271 using a finger, stylus, or any other suitable object or attachment). Touch panel 1271 may include two portions, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 1211, receives a command from the processor 1211, and executes the command. In addition, the touch panel 1271 may be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to touch panel 1271, user input unit 127 may include other input devices 1272. In particular, other input devices 1272 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, touch panel 1271 can be overlaid on display panel 1261, and when touch panel 1271 detects a touch operation thereon or nearby, it can be transmitted to processor 1211 for determining the type of touch event, and processor 1211 can then provide a corresponding visual output on display panel 1261 according to the type of touch event. Although in fig. 12, the touch panel 1271 and the display panel 1261 are implemented as two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1271 and the display panel 1261 may be integrated to implement the input and output functions of the mobile terminal, and are not limited herein.
The interface unit 1280 is an interface through which an external device is connected to the mobile terminal 120. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 1280 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 120 or may be used to transmit data between the mobile terminal 120 and external devices.
The memory 1290 may be used for storing software programs and various data. The memory 1290 may mainly include a program storage area and a data storage area, where the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 1290 can include high-speed random access memory and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 1211 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 1290 and calling data stored in the memory 1290, thereby monitoring the mobile terminal as a whole. Processor 1211 may include one or more processing units; preferably, the processor 1211 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It is to be understood that the modem processor may not be integrated into the processor 1211.
The mobile terminal 120 may also include a power supply 1212 (e.g., a battery) for powering the various components, and the power supply 1212 may be logically connected to the processor 1211 via a power management system that may be configured to manage charging, discharging, and power consumption.
In addition, the mobile terminal 120 includes some functional modules that are not shown, and thus, the detailed description thereof is omitted.
Preferably, an embodiment of the present invention further provides a mobile terminal, including a processor 1211, a memory 1290, and a computer program stored in the memory 1290 and operable on the processor 1211, where the computer program, when executed by the processor 1211, implements each process of the embodiment of the zoom adjustment method applied to the mobile terminal side, and can achieve the same technical effect, and in order to avoid repetition, the detailed description is omitted here.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the embodiment of the zoom adjustment method applied to the mobile terminal, and can achieve the same technical effect, and in order to avoid repetition, the detailed description is omitted here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the preferred embodiments of the present invention have been described, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention as defined in the following claims.

Claims (10)

1. A zoom adjustment method, characterized by comprising:
acquiring a first number of touch points on a shooting preview interface;
acquiring displacement variation of at least one touch point under the condition that the first number is greater than or equal to three;
determining the number of non-fixed touch points with displacement variation larger than or equal to a preset threshold;
adjusting zooming parameters according to the number of the non-fixed touch points;
wherein the zoom parameters include: one of a focal length and a focus center position;
adjusting zoom parameters according to the number of the non-fixed touch points, including:
under the condition that the number of the non-fixed touch points is greater than or equal to two, obtaining the relative displacement variation between the two non-fixed touch points with the largest relative displacement variation;
determining a target stepping unit for focal length adjustment;
adjusting the focal length according to the relative displacement variable quantity and the stepping unit;
wherein the target step unit is inversely related to the first number.
2. The zoom adjustment method according to claim 1, wherein the adjusting of the focal length according to the amount of change in the relative displacement and the unit of step includes:
determining the focal length adjustment amount according to the relative displacement variation and the target stepping unit;
and adjusting the focal length according to the focal length adjustment amount.
3. The zoom adjustment method according to claim 2, wherein the determining a focus adjustment amount from the relative displacement change amount and the target step unit includes:
determining the focal length adjustment amount according to a formula d which is X multiplied by L/S;
wherein d is the focal length adjustment, X is the target stepping unit, L is the relative displacement variation, and S is the preset displacement unit.
4. The zoom adjustment method according to claim 1, wherein the adjusting zoom parameters according to the number of the non-fixed touch points comprises:
under the condition that the number of the non-fixed touch points is one, acquiring the position coordinates of the non-fixed touch points;
and adjusting the position of the focusing center point according to the position coordinate of the non-fixed touch point.
5. A mobile terminal, comprising:
the acquisition module is used for acquiring a first number of touch points on the shooting preview interface;
the acquisition module is used for acquiring the displacement variation of at least one touch point under the condition that the first number is more than or equal to three;
the determining module is used for determining the number of the non-fixed touch points of which the displacement variation is greater than or equal to a preset threshold;
the adjusting module is used for adjusting zooming parameters according to the number of the non-fixed touch points;
wherein the zoom parameters include: one of a focal length and a focus center position;
the adjustment module includes:
the first obtaining submodule is used for obtaining the relative displacement variation between two non-fixed touch points with the largest relative displacement variation under the condition that the number of the non-fixed touch points is greater than or equal to two;
a determination submodule for determining a target stepping unit of the focus adjustment;
the first adjusting submodule is used for adjusting the focal length according to the relative displacement variable quantity and the stepping unit;
wherein the target step unit is inversely related to the first number.
6. The mobile terminal of claim 5, wherein the first adjusting submodule comprises:
the determining unit is used for determining the focal length adjustment amount according to the relative displacement variation and the target stepping unit;
and the adjusting unit is used for adjusting the focal length according to the focal length adjusting amount.
7. The mobile terminal of claim 6, wherein the determining unit is configured to:
determining the focal length adjustment amount according to a formula d which is X multiplied by L/S;
wherein d is the focal length adjustment, X is the target stepping unit, L is the relative displacement variation, and S is the preset displacement unit.
8. The mobile terminal of claim 5, wherein the adjusting module comprises:
the second obtaining submodule is used for obtaining the position coordinates of the non-fixed touch points under the condition that the number of the non-fixed touch points is one;
and the second adjusting submodule is used for adjusting the position of the focusing center point according to the position coordinate of the non-fixed touch point.
9. A mobile terminal, comprising: memory, processor and computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps of the zoom adjustment method as claimed in any one of claims 1 to 4.
10. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, carries out the steps of the zoom adjustment method as claimed in any one of claims 1 to 4.
CN201711315767.3A 2017-12-12 2017-12-12 Zoom adjustment method, mobile terminal and computer readable storage medium Active CN108111750B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711315767.3A CN108111750B (en) 2017-12-12 2017-12-12 Zoom adjustment method, mobile terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711315767.3A CN108111750B (en) 2017-12-12 2017-12-12 Zoom adjustment method, mobile terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN108111750A CN108111750A (en) 2018-06-01
CN108111750B true CN108111750B (en) 2020-04-07

Family

ID=62208445

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711315767.3A Active CN108111750B (en) 2017-12-12 2017-12-12 Zoom adjustment method, mobile terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108111750B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108965709B (en) * 2018-07-25 2020-08-14 维沃移动通信有限公司 Focusing method and terminal
CN110312073B (en) 2019-06-25 2021-03-16 维沃移动通信有限公司 Shooting parameter adjusting method and mobile terminal
CN112527166B (en) * 2020-12-18 2022-11-18 阿波罗智联(北京)科技有限公司 Touch instruction processing method, device, equipment and storage medium
CN112905088B (en) 2021-02-07 2022-11-04 北京蜂巢世纪科技有限公司 Video shooting control method and device

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102224488A (en) * 2008-12-22 2011-10-19 帕姆公司 Interpreting gesture input including introduction or removal of a point of contact while a gesture is in progress
EP2482179A2 (en) * 2011-01-28 2012-08-01 Samsung Electronics Co., Ltd Apparatus and method for controlling screen display in touch screen terminal
CN103150045A (en) * 2011-12-07 2013-06-12 义隆电子股份有限公司 Method for improving function of preventing touch of touch panel from error touch
CN103888656A (en) * 2012-12-19 2014-06-25 信泰光学(深圳)有限公司 Image acquisition device and hand vibration prevention control method thereof
CN103995663A (en) * 2014-01-26 2014-08-20 宇龙计算机通信科技(深圳)有限公司 Single-hand touch operation method and device
CN104486543A (en) * 2014-12-09 2015-04-01 北京时代沃林科技发展有限公司 Equipment and method for controlling cloud deck camera by intelligent terminal in touch manner
CN104935811A (en) * 2015-05-29 2015-09-23 努比亚技术有限公司 Adjusting method and terminal equipment
CN105052124A (en) * 2013-02-21 2015-11-11 日本电气株式会社 Image processing device, image processing method and permanent computer-readable medium
CN105204740A (en) * 2015-09-23 2015-12-30 惠州Tcl移动通信有限公司 Manual focal length adjusting method and system for mobile terminal
CN107155055A (en) * 2016-03-02 2017-09-12 中兴通讯股份有限公司 Image pickup method and device based on pressure sensor

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013070303A (en) * 2011-09-26 2013-04-18 Kddi Corp Photographing device for enabling photographing by pressing force to screen, photographing method and program
CN103729128B (en) * 2012-10-10 2017-12-22 腾讯科技(深圳)有限公司 A kind of method and device of picture pick-up device conversion focal length
US20170302847A1 (en) * 2016-04-14 2017-10-19 Samsung Electronics Co., Ltd. Image capturing method and electronic device supporting the same

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102224488A (en) * 2008-12-22 2011-10-19 帕姆公司 Interpreting gesture input including introduction or removal of a point of contact while a gesture is in progress
EP2482179A2 (en) * 2011-01-28 2012-08-01 Samsung Electronics Co., Ltd Apparatus and method for controlling screen display in touch screen terminal
CN103150045A (en) * 2011-12-07 2013-06-12 义隆电子股份有限公司 Method for improving function of preventing touch of touch panel from error touch
CN103888656A (en) * 2012-12-19 2014-06-25 信泰光学(深圳)有限公司 Image acquisition device and hand vibration prevention control method thereof
CN105052124A (en) * 2013-02-21 2015-11-11 日本电气株式会社 Image processing device, image processing method and permanent computer-readable medium
CN103995663A (en) * 2014-01-26 2014-08-20 宇龙计算机通信科技(深圳)有限公司 Single-hand touch operation method and device
CN104486543A (en) * 2014-12-09 2015-04-01 北京时代沃林科技发展有限公司 Equipment and method for controlling cloud deck camera by intelligent terminal in touch manner
CN104935811A (en) * 2015-05-29 2015-09-23 努比亚技术有限公司 Adjusting method and terminal equipment
CN105204740A (en) * 2015-09-23 2015-12-30 惠州Tcl移动通信有限公司 Manual focal length adjusting method and system for mobile terminal
CN107155055A (en) * 2016-03-02 2017-09-12 中兴通讯股份有限公司 Image pickup method and device based on pressure sensor

Also Published As

Publication number Publication date
CN108111750A (en) 2018-06-01

Similar Documents

Publication Publication Date Title
CN108668083B (en) Photographing method and terminal
CN108513070B (en) Image processing method, mobile terminal and computer readable storage medium
CN108495029B (en) Photographing method and mobile terminal
CN111182205B (en) Photographing method, electronic device, and medium
CN109743498B (en) Shooting parameter adjusting method and terminal equipment
CN109032445B (en) Screen display control method and terminal equipment
CN108111750B (en) Zoom adjustment method, mobile terminal and computer readable storage medium
CN110505400B (en) Preview image display adjustment method and terminal
CN110519512B (en) Object processing method and terminal
CN109639971B (en) Shooting focal length adjusting method and terminal equipment
CN111147752B (en) Zoom factor adjusting method, electronic device, and medium
CN108881719B (en) Method for switching shooting mode and terminal equipment
CN110769174B (en) Video viewing method and electronic equipment
CN107741814B (en) Display control method and mobile terminal
CN109104566B (en) Image display method and terminal equipment
CN110830713A (en) Zooming method and electronic equipment
CN111405181B (en) Focusing method and electronic equipment
CN108174109B (en) Photographing method and mobile terminal
CN108174110B (en) Photographing method and flexible screen terminal
CN111562896A (en) Screen projection method and electronic equipment
CN110536005B (en) Object display adjustment method and terminal
CN109542321B (en) Control method and device for screen display content
CN108737731B (en) Focusing method and terminal equipment
CN109002245B (en) Application interface operation method and mobile terminal
CN108897477B (en) Operation control method and terminal equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant